void TextLineBase::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); writeProperties(xml); xml.etag(); }
void Volta::write(XmlWriter& xml) const { xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); TextLineBase::writeProperties(xml); QString s; for (int i : _endings) { if (!s.isEmpty()) s += ", "; s += QString("%1").arg(i); } xml.tag("endings", s); xml.etag(); }
void Trill::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); xml.tag("subtype", trillTypeName()); writeProperty(xml, Pid::PLAY); writeProperty(xml, Pid::ORNAMENT_STYLE); SLine::writeProperties(xml); if (_accidental) _accidental->write(xml); xml.etag(); }
void Ottava::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); xml.tag("subtype", ottavaDefault[int(ottavaType())].name); for (const StyledProperty& spp : *styledProperties()) writeProperty(xml, spp.pid); Element::writeProperties(xml); xml.etag(); }
void Glissando::write(XmlWriter& xml) const { if (!xml.canWrite(this)) return; xml.stag(QString("%1 id=\"%2\"").arg(name()).arg(xml.spannerId(this))); if (_showText && !_text.isEmpty()) xml.tag("text", _text); xml.tag("subtype", int(_glissandoType)); writeProperty(xml, P_ID::PLAY); writeProperty(xml, P_ID::GLISSANDO_STYLE); SLine::writeProperties(xml); xml.etag(); }