diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLSectionExport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx index fc3adc0c88..ad525b59ee 100644 --- a/xmloff/source/text/XMLSectionExport.cxx +++ b/xmloff/source/text/XMLSectionExport.cxx @@ -308,6 +308,12 @@ void XMLSectionExport::ExportIndexHeaderStart( // export name, dammit! Reference<XNamed> xName(rSection, UNO_QUERY); GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_NAME, xName->getName()); + Reference<XPropertySet> xPropSet(rSection, UNO_QUERY); + Any aAny = xPropSet->getPropertyValue("IsProtected"); + if (*o3tl::doAccess<bool>(aAny)) + { + GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_PROTECTED, XML_TRUE); + } // format already handled -> export only start element GetExport().StartElement( XML_NAMESPACE_TEXT, XML_INDEX_TITLE, true ); |