Canorus 0.0
Signals | Public Member Functions | Protected Slots | Protected Attributes | Private Member Functions | List of all members
CASVGExport Class Reference

SVG export filter This class is used to export the document or parts of the document to SVG format. The most common use is to simply call the constructor. More...

#include <svgexport.h>

Inheritance diagram for CASVGExport:
Inheritance graph
[legend]

Signals

void svgIsFinished (int iExitCode)
 
- Signals inherited from CAExport
void documentExported (CADocument *)
 
void sheetExported (CASheet *)
 
void staffExported (CAStaff *)
 
void voiceExported (CAVoice *)
 
void lyricsContextExported (CALyricsContext *)
 
void functionMarkContextExported (CAFunctionMarkContext *)
 
void exportDone (int status)
 

Public Member Functions

 CASVGExport (QTextStream *stream=0)
 
 ~CASVGExport ()
 
QString getTempFilePath ()
 
- Public Member Functions inherited from CAExport
 CAExport (QTextStream *stream=0)
 
virtual ~CAExport ()
 
virtual const QString readableStatus ()
 
void exportDocument (CADocument *, bool bStartThread=true)
 
void exportSheet (CASheet *)
 
void exportStaff (CAStaff *)
 
void exportVoice (CAVoice *)
 
void exportLyricsContext (CALyricsContext *)
 
void exportFunctionMarkContext (CAFunctionMarkContext *)
 
CADocumentexportedDocument ()
 
CASheetexportedSheet ()
 
CAStaffexportedStaff ()
 
CAVoiceexportedVoice ()
 
CALyricsContextexportedLyricsContext ()
 
CAFunctionMarkContextexportedFunctionMarkContext ()
 
virtual void setStreamToFile (const QString filename)
 
bool wait (unsigned long time=ULONG_MAX)
 
- Public Member Functions inherited from CAFile
 CAFile ()
 
virtual ~CAFile ()
 
const int status ()
 
const int progress ()
 
virtual const QString readableStatus ()=0
 
void setStreamFromFile (const QString filename)
 
void setStreamToFile (const QString filename)
 
void setStreamFromDevice (QIODevice *device)
 
void setStreamToDevice (QIODevice *device)
 
void setStreamToString ()
 
QString getStreamAsString ()
 

Protected Slots

void outputTypsetterOutput (const QByteArray &roOutput)
 
void svgFinished (int iExitCode)
 

Protected Attributes

CATypesetCtl_poTypesetCtl
 

Private Member Functions

void startExport ()
 
void finishExport ()
 
void exportDocumentImpl (CADocument *doc)
 
void exportSheetImpl (CASheet *poSheet)
 
void runTypesetter ()
 

Additional Inherited Members

- Protected Member Functions inherited from CAExport
virtual void exportDocumentImpl (CADocument *)
 
virtual void exportSheetImpl (CASheet *)
 
virtual void exportStaffImpl (CAStaff *)
 
virtual void exportVoiceImpl (CAVoice *)
 
virtual void exportLyricsContextImpl (CALyricsContext *)
 
virtual void exportFunctionMarkContextImpl (CAFunctionMarkContext *)
 
QTextStream & out ()
 
void run ()
 
- Protected Member Functions inherited from CAFile
void setStatus (const int status)
 
void setProgress (const int progress)
 
QTextStream * stream ()
 
virtual void setStream (QTextStream *stream)
 
QFile * file ()
 
void setFile (QFile *file)
 

Detailed Description

SVG export filter This class is used to export the document or parts of the document to SVG format. The most common use is to simply call the constructor.

Copyright (c) 2008, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

CASVGExport( &textStream );
CASVGExport(QTextStream *stream=0)
Definition: svgexport.cpp:33

textStream is usually the file stream or the content of the score source view widget.

Constructor & Destructor Documentation

◆ CASVGExport()

CASVGExport::CASVGExport ( QTextStream *  stream = 0)

Constructor for SVG export. Exports a document to LilyPond and create a SVG from it using the given text stream.

References _poTypesetCtl.

◆ ~CASVGExport()

CASVGExport::~CASVGExport ( )

References _poTypesetCtl, and CATypesetCtl::getExporter().

Here is the call graph for this function:

Member Function Documentation

◆ exportDocumentImpl()

void CASVGExport::exportDocumentImpl ( CADocument poDoc)
privatevirtual
  Exports the document \a poDoc to LilyPond first and create a SVG from it

using the Typesetter instance.

Reimplemented from CAExport.

References _poTypesetCtl, CATypesetCtl::exportDocument(), runTypesetter(), CADocument::sheetList(), and startExport().

Here is the call graph for this function:

◆ exportSheetImpl()

void CASVGExport::exportSheetImpl ( CASheet poSheet)
privatevirtual

Exports the sheet poSheet to LilyPond first and create a PDF from it using the Typesetter instance.

Reimplemented from CAExport.

References _poTypesetCtl, CATypesetCtl::exportSheet(), runTypesetter(), and startExport().

Here is the call graph for this function:

◆ finishExport()

void CASVGExport::finishExport ( )
private

References _poTypesetCtl, outputTypsetterOutput(), and svgFinished().

Referenced by svgFinished().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTempFilePath()

QString CASVGExport::getTempFilePath ( )

References _poTypesetCtl, and CATypesetCtl::getTempFilePath().

Referenced by CAPrintCtl::printDocument(), and svgFinished().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ outputTypsetterOutput

void CASVGExport::outputTypsetterOutput ( const QByteArray &  roOutput)
protectedslot

Show the output roOutput of the typesetter on the console

Referenced by finishExport(), and startExport().

Here is the caller graph for this function:

◆ runTypesetter()

void CASVGExport::runTypesetter ( )
private

Run creation of PDF file after deleting a potential old one

References _poTypesetCtl, CAFile::file(), CATypesetCtl::getTempFilePath(), CATypesetCtl::runTypesetter(), CATypesetCtl::setTSetOption(), and CATypesetCtl::waitForFinished().

Referenced by exportDocumentImpl(), and exportSheetImpl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startExport()

void CASVGExport::startExport ( )
private

◆ svgFinished

void CASVGExport::svgFinished ( int  iExitCode)
protectedslot

When the typesetter is finished copy the pdf file to the defined destination

References CAFile::file(), finishExport(), getTempFilePath(), CAFile::setStatus(), and svgIsFinished().

Referenced by finishExport(), and startExport().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ svgIsFinished

void CASVGExport::svgIsFinished ( int  iExitCode)
signal

Referenced by svgFinished().

Here is the caller graph for this function:

Member Data Documentation

◆ _poTypesetCtl

CATypesetCtl* CASVGExport::_poTypesetCtl
protected

The documentation for this class was generated from the following files: