|
Canorus
0.7
|
#include <canorusmlexport.h>

Public Member Functions | |
| CACanorusMLExport (QTextStream *stream=0) | |
| virtual | ~CACanorusMLExport () |
| void | exportDocumentImpl (CADocument *doc) |
Private Member Functions | |
| void | exportVoiceImpl (CAVoice *voice, QDomElement &dVoice) |
| 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 |
| 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.
| CACanorusMLExport::~CACanorusMLExport | ( | ) | [virtual] |
| void CACanorusMLExport::exportColor | ( | CAMusElement * | elt, |
| QDomElement & | domParent | ||
| ) | [private] |
References CAMusElement::color().
Referenced by exportMarks(), and exportVoiceImpl().


| void CACanorusMLExport::exportDiatonicKey | ( | CADiatonicKey | k, |
| QDomElement & | domParent | ||
| ) | [private] |
References CADiatonicKey::diatonicPitch(), exportDiatonicPitch(), CADiatonicKey::gender(), and CADiatonicKey::genderToString().
Referenced by exportDocumentImpl(), and exportVoiceImpl().


| void CACanorusMLExport::exportDiatonicPitch | ( | CADiatonicPitch | p, |
| QDomElement & | domParent | ||
| ) | [private] |
References CADiatonicPitch::accs(), and CADiatonicPitch::noteName().
Referenced by exportDiatonicKey(), and exportVoiceImpl().


| void CACanorusMLExport::exportDocumentImpl | ( | CADocument * | doc | ) | [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(), CASheet::contextAt(), CASheet::contextCount(), CAContext::contextType(), CADocument::copyright(), CADocument::dateCreated(), CADocument::dateLastModified(), CADocument::dedication(), exportDiatonicKey(), exportResources(), exportVoiceImpl(), CAContext::FunctionMarkContext, CAFunctionMarkContext::functionMarkList(), CAFunctionMark::functionTypeToString(), CAContext::LyricsContext, CAVoice::midiChannel(), CAVoice::midiProgram(), CAContext::name(), CASheet::name(), CAVoice::name(), CAStaff::numberOfLines(), CAExport::out(), CADocument::poet(), CAFile::setProgress(), CADocument::sheetAt(), CADocument::sheetCount(), CAContext::Staff, CALyricsContext::stanzaNumber(), CAVoice::stemDirection(), CANote::stemDirectionToString(), CADocument::subtitle(), CALyricsContext::syllableList(), CADocument::textTranslator(), CADocument::timeEdited(), CADocument::title(), CAStaff::voiceAt(), CAStaff::voiceCount(), and CASheet::voiceList().

| void CACanorusMLExport::exportMarks | ( | CAMusElement * | associatedElt, |
| QDomElement & | domParent | ||
| ) | [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(), 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(), CAMark::Text, CAText::text(), CADynamic::text(), CAMusElement::timeLength(), CAMusElement::timeStart(), CARepeatMark::Volta, CARepeatMark::voltaNumber(), and CADynamic::volume().
Referenced by exportVoiceImpl().


| void CACanorusMLExport::exportPlayableLength | ( | CAPlayableLength | l, |
| QDomElement & | domParent | ||
| ) | [private] |
References CAPlayableLength::dotted(), CAPlayableLength::musicLength(), and CAPlayableLength::musicLengthToString().
Referenced by exportMarks(), and exportVoiceImpl().


| void CACanorusMLExport::exportResources | ( | CADocument * | doc, |
| QDomElement & | dCanorusDocument | ||
| ) | [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().


| void CACanorusMLExport::exportTime | ( | CAMusElement * | elt, |
| QDomElement & | domParent | ||
| ) | [private] |
References CAMusElement::isPlayable(), CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by exportVoiceImpl().


| void CACanorusMLExport::exportVoiceImpl | ( | CAVoice * | voice, |
| QDomElement & | dVoice | ||
| ) | [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(), CAPlayable::isFirstInTuplet(), CAMusElement::KeySignature, CAKeySignature::keySignatureType(), CAKeySignature::keySignatureTypeToString(), CAKeySignature::MajorMinor, CAKeySignature::Modus, CAKeySignature::modus(), CAKeySignature::modusToString(), CAVoice::musElementAt(), CAVoice::musElementCount(), CAMusElement::musElementType(), CAMusElement::Note, CATuplet::number(), CAClef::offset(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CAPlayable::playableLength(), CAMusElement::Rest, CARest::restType(), CARest::restTypeToString(), CASlur::slurDirection(), CASlur::slurDirectionToString(), CANote::slurEnd(), CANote::slurStart(), CASlur::slurStyle(), CASlur::slurStyleToString(), CANote::stemDirection(), CANote::stemDirectionToString(), CANote::StemPreferred, CANote::tieStart(), CAMusElement::TimeSignature, CATimeSignature::timeSignatureType(), CATimeSignature::timeSignatureTypeToString(), and CAPlayable::tuplet().
Referenced by exportDocumentImpl().


QColor CACanorusMLExport::_color [private] |
QDomElement CACanorusMLExport::_dTuplet [private] |
Referenced by exportVoiceImpl().
1.8.0