Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Signals | Public Member Functions | Protected Slots | Protected Attributes | Private Member Functions
CAPDFExport Class Reference

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

#include <pdfexport.h>

Inheritance diagram for CAPDFExport:
Inheritance graph
[legend]

List of all members.

Signals

void pdfIsFinished (int iExitCode)

Public Member Functions

 CAPDFExport (QTextStream *stream=0)
 ~CAPDFExport ()
QString getTempFilePath ()

Protected Slots

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

Protected Attributes

CATypesetCtl_poTypesetCtl

Private Member Functions

void startExport ()
void finishExport ()
void exportDocumentImpl (CADocument *doc)

Detailed Description

PDF export filter This class is used to export the document or parts of the document to PDF 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.
        CAPDFExport( &textStream );

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


Constructor & Destructor Documentation

CAPDFExport::CAPDFExport ( QTextStream *  stream = 0)

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

References _poTypesetCtl.

References _poTypesetCtl, and CATypesetCtl::getExporter().

Here is the call graph for this function:


Member Function Documentation

void CAPDFExport::exportDocumentImpl ( CADocument poDoc) [private, virtual]
  Exports the document \a poDoc to LilyPond first and create a PDF 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().

Here is the call graph for this function:

void CAPDFExport::finishExport ( ) [private]

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

Referenced by pdfFinished().

Here is the call graph for this function:

Here is the caller graph for this function:

References _poTypesetCtl, and CATypesetCtl::getTempFilePath().

Referenced by CAPreviewCtl::on_uiPrintPreview_triggered(), and pdfFinished().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAPDFExport::outputTypsetterOutput ( const QByteArray &  roOutput) [protected, slot]

Show the output roOutput of the typesetter on the console

Referenced by finishExport(), and startExport().

Here is the caller graph for this function:

void CAPDFExport::pdfFinished ( int  iExitCode) [protected, slot]

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

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

Referenced by finishExport(), and startExport().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAPDFExport::pdfIsFinished ( int  iExitCode) [signal]

Referenced by pdfFinished().

Here is the caller graph for this function:

void CAPDFExport::startExport ( ) [private]

References _poTypesetCtl, CASettings::DEFAULT_TYPESETTER_LOCATION, outputTypsetterOutput(), pdfFinished(), CATypesetCtl::setExporter(), CACanorus::settings(), and CATypesetCtl::setTypesetter().

Referenced by exportDocumentImpl().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


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