|
Canorus
0.7
|
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>

Signals | |
| void | svgIsFinished (int iExitCode) |
Public Member Functions | |
| CASVGExport (QTextStream *stream=0) | |
| ~CASVGExport () | |
| QString | getTempFilePath () |
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) |
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 );
textStream is usually the file stream or the content of the score source view widget.
| 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.
References _poTypesetCtl, and CATypesetCtl::getExporter().

| void CASVGExport::exportDocumentImpl | ( | CADocument * | poDoc | ) | [private, virtual] |
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(), CAFile::file(), CATypesetCtl::getTempFilePath(), CATypesetCtl::runTypesetter(), CATypesetCtl::setTSetOption(), CADocument::sheetCount(), startExport(), and CATypesetCtl::waitForFinished().

| void CASVGExport::finishExport | ( | ) | [private] |
References _poTypesetCtl, outputTypsetterOutput(), and svgFinished().
Referenced by svgFinished().


| QString CASVGExport::getTempFilePath | ( | ) |
References _poTypesetCtl, and CATypesetCtl::getTempFilePath().
Referenced by CAPrintCtl::printDocument(), and svgFinished().


| void CASVGExport::outputTypsetterOutput | ( | const QByteArray & | roOutput | ) | [protected, slot] |
Show the output roOutput of the typesetter on the console
Referenced by finishExport(), and startExport().

| void CASVGExport::startExport | ( | ) | [private] |
References _poTypesetCtl, CASettings::DEFAULT_TYPESETTER_LOCATION, outputTypsetterOutput(), CATypesetCtl::setExporter(), CACanorus::settings(), CATypesetCtl::setTSetOption(), CATypesetCtl::setTypesetter(), and svgFinished().
Referenced by exportDocumentImpl().


| void CASVGExport::svgFinished | ( | int | iExitCode | ) | [protected, slot] |
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().


| void CASVGExport::svgIsFinished | ( | int | iExitCode | ) | [signal] |
CATypesetCtl* CASVGExport::_poTypesetCtl [protected] |
Referenced by CASVGExport(), exportDocumentImpl(), finishExport(), getTempFilePath(), startExport(), and ~CASVGExport().
1.8.0