#include <export.h>

Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
This class inherits CAFile and is the base class for any specific import filter (eg. LilyPond, CanorusML, MusicXML etc.).
If a developer wants to write a new export filter, he should: 1) Create a new class with the base class CAExport 2) Implement CAExport constructors and at least exportDocumentImpl() function 3) Register the filter (put a new fileformat to CAFileFormats and add the filter to open/save dialogs in CACanorus)
Optionally: Developer should change the current status and progress while operations are in progress. He should also rewrite the readableStatus() function.
The following example illustrates the usage of export class:
CAMyExportFilter export();
export.setStreamToFile("jingle bells.xml");
export.exportDocument( curDocument );
export.wait();
Definition at line 20 of file export.h.
| CAExport::CAExport | ( | QTextStream * | stream = 0 |
) |
Definition at line 38 of file export.cpp.
References setExportedDocument(), setExportedFunctionMarkingContext(), setExportedLyricsContext(), setExportedSheet(), setExportedStaff(), setExportedVoice(), and CAFile::setStream().

| CAExport::~CAExport | ( | ) | [virtual] |
Definition at line 50 of file export.cpp.
| const QString CAExport::readableStatus | ( | ) | [virtual] |
Implements CAFile.
Definition at line 133 of file export.cpp.
References CAFile::status().

| void CAExport::exportDocument | ( | CADocument * | doc | ) |
Definition at line 97 of file export.cpp.
References setExportedDocument(), and CAFile::setStatus().
Referenced by CACanExport::exportDocumentImpl(), CAMainWin::on_uiExportDocument_triggered(), CASourceViewPort::rebuild(), CAMainWin::saveDocument(), and CAAutoRecovery::saveRecovery().


| void CAExport::exportSheet | ( | CASheet * | sheet | ) |
Definition at line 103 of file export.cpp.
References setExportedSheet(), and CAFile::setStatus().

| void CAExport::exportStaff | ( | CAStaff * | staff | ) |
Definition at line 109 of file export.cpp.
References setExportedStaff(), and CAFile::setStatus().

| void CAExport::exportVoice | ( | CAVoice * | voice | ) |
Definition at line 115 of file export.cpp.
References setExportedVoice(), and CAFile::setStatus().
Referenced by CASourceViewPort::rebuild().

| void CAExport::exportLyricsContext | ( | CALyricsContext * | lc | ) |
Definition at line 121 of file export.cpp.
References setExportedLyricsContext(), and CAFile::setStatus().
Referenced by CASourceViewPort::rebuild().

| void CAExport::exportFunctionMarkingContext | ( | CAFunctionMarkingContext * | fmc | ) |
Definition at line 127 of file export.cpp.
References setExportedFunctionMarkingContext(), and CAFile::setStatus().

| CADocument* CAExport::exportedDocument | ( | ) | [inline] |
Definition at line 36 of file export.h.
References _exportedDocument.
Referenced by run(), CAMainWin::saveDocument(), and CALilyPondExport::writeDocumentHeader().

| CASheet* CAExport::exportedSheet | ( | ) | [inline] |
Definition at line 37 of file export.h.
References _exportedSheet.
Referenced by run().

| CAStaff* CAExport::exportedStaff | ( | ) | [inline] |
Definition at line 38 of file export.h.
References _exportedStaff.
Referenced by run().

| CAVoice* CAExport::exportedVoice | ( | ) | [inline] |
Definition at line 39 of file export.h.
References _exportedVoice.
Referenced by run().

| CALyricsContext* CAExport::exportedLyricsContext | ( | ) | [inline] |
Definition at line 40 of file export.h.
References _exportedLyricsContext.
Referenced by run().

| CAFunctionMarkingContext* CAExport::exportedFunctionMarkingContext | ( | ) | [inline] |
Definition at line 41 of file export.h.
References _exportedFunctionMarkingContext.
Referenced by run().

| void CAExport::documentExported | ( | CADocument * | ) | [signal] |
Referenced by run().
| void CAExport::lyricsContextExported | ( | CALyricsContext * | ) | [signal] |
Referenced by run().
| void CAExport::functionMarkingContextExported | ( | CAFunctionMarkingContext * | ) | [signal] |
Referenced by run().
| void CAExport::exportDone | ( | int | status | ) | [signal] |
Referenced by run().
| virtual void CAExport::exportDocumentImpl | ( | CADocument * | ) | [inline, protected, virtual] |
Reimplemented in CACanExport, CACanorusMLExport, CALilyPondExport, and CAMidiExport.
Definition at line 56 of file export.h.
References CAFile::setStatus().
Referenced by run().


| virtual void CAExport::exportSheetImpl | ( | CASheet * | ) | [inline, protected, virtual] |
Reimplemented in CALilyPondExport.
Definition at line 57 of file export.h.
References CAFile::setStatus().
Referenced by run().


| virtual void CAExport::exportStaffImpl | ( | CAStaff * | ) | [inline, protected, virtual] |
Definition at line 58 of file export.h.
References CAFile::setStatus().
Referenced by run().


| virtual void CAExport::exportVoiceImpl | ( | CAVoice * | ) | [inline, protected, virtual] |
Reimplemented in CALilyPondExport.
Definition at line 59 of file export.h.
References CAFile::setStatus().
Referenced by run().


| virtual void CAExport::exportLyricsContextImpl | ( | CALyricsContext * | ) | [inline, protected, virtual] |
Reimplemented in CALilyPondExport.
Definition at line 60 of file export.h.
References CAFile::setStatus().
Referenced by run().


| virtual void CAExport::exportFunctionMarkingContextImpl | ( | CAFunctionMarkingContext * | ) | [inline, protected, virtual] |
Definition at line 61 of file export.h.
References CAFile::setStatus().
Referenced by run().


| QTextStream& CAExport::out | ( | ) | [inline, protected] |
Definition at line 63 of file export.h.
References CAFile::stream().
Referenced by CAMidiExport::exportDocumentImpl(), CALilyPondExport::exportDocumentImpl(), CACanorusMLExport::exportDocumentImpl(), CALilyPondExport::exportLyricsContextBlock(), CALilyPondExport::exportLyricsContextImpl(), CALilyPondExport::exportScoreBlock(), CALilyPondExport::exportStaffVoices(), CALilyPondExport::exportVoiceImpl(), CALilyPondExport::indent(), CALilyPondExport::writeDocumentHeader(), and CALilyPondExport::writeRelativeIntro().


| void CAExport::run | ( | ) | [protected] |
Executed when a new thread is dispatched. It looks which part of the document should be exported and starts the procedure. It emits the appropriate signal when the procedure is finished.
Definition at line 58 of file export.cpp.
References documentExported(), exportDocumentImpl(), exportDone(), exportedDocument(), exportedFunctionMarkingContext(), exportedLyricsContext(), exportedSheet(), exportedStaff(), exportedVoice(), exportFunctionMarkingContextImpl(), exportLyricsContextImpl(), exportSheetImpl(), exportStaffImpl(), exportVoiceImpl(), functionMarkingContextExported(), lyricsContextExported(), CAFile::setStatus(), sheetExported(), staffExported(), CAFile::status(), CAFile::stream(), and voiceExported().

| void CAExport::setExportedDocument | ( | CADocument * | doc | ) | [inline, private] |
Definition at line 68 of file export.h.
References _exportedDocument.
Referenced by CAExport(), and exportDocument().

| void CAExport::setExportedSheet | ( | CASheet * | sheet | ) | [inline, private] |
Definition at line 69 of file export.h.
References _exportedSheet.
Referenced by CAExport(), and exportSheet().

| void CAExport::setExportedStaff | ( | CAStaff * | staff | ) | [inline, private] |
Definition at line 70 of file export.h.
References _exportedStaff.
Referenced by CAExport(), and exportStaff().

| void CAExport::setExportedVoice | ( | CAVoice * | voice | ) | [inline, private] |
Definition at line 71 of file export.h.
References _exportedVoice.
Referenced by CAExport(), and exportVoice().

| void CAExport::setExportedLyricsContext | ( | CALyricsContext * | lc | ) | [inline, private] |
Definition at line 72 of file export.h.
References _exportedLyricsContext.
Referenced by CAExport(), and exportLyricsContext().

| void CAExport::setExportedFunctionMarkingContext | ( | CAFunctionMarkingContext * | fmc | ) | [inline, private] |
Definition at line 73 of file export.h.
References _exportedFunctionMarkingContext.
Referenced by CAExport(), and exportFunctionMarkingContext().

CADocument* CAExport::_exportedDocument [private] |
Definition at line 75 of file export.h.
Referenced by exportedDocument(), and setExportedDocument().
CASheet* CAExport::_exportedSheet [private] |
CAStaff* CAExport::_exportedStaff [private] |
CAVoice* CAExport::_exportedVoice [private] |
CALyricsContext* CAExport::_exportedLyricsContext [private] |
Definition at line 79 of file export.h.
Referenced by exportedLyricsContext(), and setExportedLyricsContext().
Definition at line 80 of file export.h.
Referenced by exportedFunctionMarkingContext(), and setExportedFunctionMarkingContext().
1.5.3