void InstrumentData::write(Xml& xml) const { xml.stag("Instrument"); foreach(const StaffNameDoc& doc, _longNames) { xml.stag(QString("longName pos=\"%1\"").arg(doc.pos)); xml.writeHtml(doc.name.toHtml()); xml.etag(); }
void Text::writeProperties(Xml& xml, bool writeText) const { Element::writeProperties(xml); if (xml.clipboardmode || styled()) xml.tag("style", textStyle().name()); if (xml.clipboardmode || !styled()) _textStyle.writeProperties(xml); if (writeText) { if (styled()) xml.tag("text", getText()); else { xml.stag("html-data"); xml.writeHtml(_doc->toHtml("utf-8")); xml.etag(); } } }