|
Canorus 0.0
|
#include <canorusmlexport.h>

Private Member Functions | |
| void | exportVoiceImpl (CAVoice *voice, QDomElement &dVoice) |
| void | exportFiguredBass (CAFiguredBassContext *c, QDomElement &domParent) |
| void | exportMarks (CAMusElement *associatedElt, QDomElement &domParent) |
| void | exportPlayableLength (CAPlayableLength l, QDomElement &domParent) |
| void | exportDiatonicPitch (CADiatonicPitch p, QDomElement &domParent) |
| void | exportDiatonicKey (CADiatonicKey k, QDomElement &domParent) |
| void | exportColor (CAMusElement *elt, QDomElement &domParent) |
| void | exportTime (CAMusElement *elt, QDomElement &domParent) |
| void | exportResources (CADocument *, QDomElement &) |
Private Attributes | |
| QDomElement | _dTuplet |
| QColor | _color |
Additional Inherited Members | |
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) |
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) |
| CACanorusMLExport::CACanorusMLExport | ( | QTextStream * | stream = 0 | ) |
Copyright (c) 2006-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.
|
virtual |
|
private |
References CAMusElement::color().
Referenced by exportFiguredBass(), exportMarks(), and exportVoiceImpl().


|
private |
References CADiatonicKey::diatonicPitch(), exportDiatonicPitch(), CADiatonicKey::gender(), and CADiatonicKey::genderToString().
Referenced by exportDocumentImpl(), and exportVoiceImpl().


|
private |
References CADiatonicPitch::accs(), and CADiatonicPitch::noteName().
Referenced by exportDiatonicKey(), and exportVoiceImpl().


|
virtual |
Saves the document to CanorusML XML format. It uses DOM object internally for writing the XML output.
Reimplemented from CAExport.
References CADocument::arranger(), CALyricsContext::associatedVoice(), CADocument::comments(), CADocument::composer(), CAContext::contextType(), CADocument::copyright(), CADocument::dateCreated(), CADocument::dateLastModified(), CADocument::dedication(), exportDiatonicKey(), exportFiguredBass(), exportResources(), exportVoiceImpl(), CAContext::FiguredBassContext, CAContext::FunctionMarkContext, CAFunctionMarkContext::functionMarkList(), CAFunctionMark::functionTypeToString(), CAContext::LyricsContext, CAVoice::midiChannel(), CAVoice::midiPitchOffset(), CAVoice::midiProgram(), CAContext::name(), CAVoice::name(), CAStaff::numberOfLines(), CAExport::out(), CADocument::poet(), CAFile::setProgress(), CADocument::sheetList(), CAContext::Staff, CALyricsContext::stanzaNumber(), CAVoice::stemDirection(), CANote::stemDirectionToString(), CADocument::subtitle(), CALyricsContext::syllableList(), CADocument::textTranslator(), CADocument::timeEdited(), CADocument::title(), and CAStaff::voiceList().

|
private |
References exportColor(), CAFiguredBassContext::figuredBassMarkList(), and CAContext::name().
Referenced by exportDocumentImpl().


|
private |
References CAMark::Articulation, CAArticulation::articulationType(), CAArticulation::articulationTypeToString(), CATempo::beat(), CAMark::BookMark, CATempo::bpm(), CAMark::Crescendo, CACrescendo::crescendoType(), CACrescendo::crescendoTypeToString(), CAMark::Dynamic, exportColor(), exportPlayableLength(), CAMark::Fermata, CAFermata::fermataType(), CAFermata::fermataTypeToString(), CARitardando::finalTempo(), CACrescendo::finalVolume(), CAMark::Fingering, CAFingering::fingerList(), CAFingering::fingerNumberToString(), CAInstrumentChange::instrument(), CAMark::InstrumentChange, CAMark::isCommon(), CANote::isFirstInChord(), CAFingering::isOriginal(), CAMusElement::markList(), CAMark::markType(), CAMark::markTypeToString(), CAMusElement::musElementType(), CAMusElement::Note, CAMark::Pedal, CAMark::RehersalMark, CAMark::RepeatMark, CARepeatMark::repeatMarkType(), CARepeatMark::repeatMarkTypeToString(), CAMark::Ritardando, CARitardando::ritardandoType(), CARitardando::ritardandoTypeToString(), CAMark::Tempo, CABookMark::text(), CADynamic::text(), CAMark::Text, CAText::text(), CAMusElement::timeLength(), CAMusElement::timeStart(), CAMark::Undefined, CARepeatMark::Volta, CARepeatMark::voltaNumber(), and CADynamic::volume().
Referenced by exportVoiceImpl().


|
private |
References CAPlayableLength::dotted(), CAPlayableLength::musicLength(), and CAPlayableLength::musicLengthToString().
Referenced by exportMarks(), and exportVoiceImpl().


|
private |
Exports the resources to exported filename files/ directory.
There are 4 possible scenarios: 1) Linked resource, resource is remote (eg. http, https resource on the web): Only resource url is stored inside the xml file. 2) Linked resource, resource is local (eg. large video on the disk): Relative path to the resource is calculated from the directory where the document is being saved. 3) Attached resource: Resource is copied from the tmp/ directory to the directory where the document is being saved + "filename files/". eg. "content.xml files/myImageXXXX.png"
References CAResource::copy(), CAResource::description(), CAFile::file(), CAResource::isLinked(), CAResource::name(), CADocument::resourceList(), CAResource::resourceType(), CAResource::resourceTypeToString(), and CAResource::url().
Referenced by exportDocumentImpl().


|
private |
References CAMusElement::isPlayable(), CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by exportVoiceImpl().


|
private |
Used for writing the voice node in XML output. It uses DOM object internally for writing the XML output. This method is usually called by saveDocument().
References _dTuplet, CATuplet::actualNumber(), CAMusElement::Barline, CABarline::barlineType(), CABarline::barlineTypeToString(), CATimeSignature::beat(), CATimeSignature::beats(), CAClef::c1(), CAMusElement::Clef, CAClef::clefType(), CAClef::clefTypeToString(), CAKeySignature::diatonicKey(), CANote::diatonicPitch(), exportColor(), exportDiatonicKey(), exportDiatonicPitch(), exportMarks(), exportPlayableLength(), exportTime(), CAMusElement::FiguredBassMark, CAMusElement::FunctionMark, CAPlayable::isFirstInTuplet(), CAMusElement::KeySignature, CAKeySignature::keySignatureType(), CAKeySignature::keySignatureTypeToString(), CAKeySignature::MajorMinor, CAMusElement::Mark, CAMusElement::MidiNote, CAKeySignature::Modus, CAKeySignature::modus(), CAKeySignature::modusToString(), CAVoice::musElementList(), CAMusElement::musElementType(), CAMusElement::Note, CATuplet::number(), CAClef::offset(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CAPlayable::playableLength(), CAMusElement::Rest, CARest::restType(), CARest::restTypeToString(), CAMusElement::Slur, CASlur::slurDirection(), CASlur::slurDirectionToString(), CANote::slurEnd(), CANote::slurStart(), CASlur::slurStyle(), CASlur::slurStyleToString(), CANote::stemDirection(), CANote::stemDirectionToString(), CANote::StemPreferred, CAMusElement::Syllable, CANote::tieStart(), CAMusElement::TimeSignature, CATimeSignature::timeSignatureType(), CATimeSignature::timeSignatureTypeToString(), CAMusElement::Tuplet, CAPlayable::tuplet(), and CAMusElement::Undefined.
Referenced by exportDocumentImpl().


|
private |
|
private |
Referenced by exportVoiceImpl().