From eb358d77291eba677141bab113dc27d7aabb0f3e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 11:44:04 +0200 Subject: Merging upstream version 4:24.2.2. Signed-off-by: Daniel Baumann --- xmloff/source/text/XMLSectionExport.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmloff') 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 xName(rSection, UNO_QUERY); GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_NAME, xName->getName()); + Reference xPropSet(rSection, UNO_QUERY); + Any aAny = xPropSet->getPropertyValue("IsProtected"); + if (*o3tl::doAccess(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 ); -- cgit v1.2.3