summaryrefslogtreecommitdiffstats
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 09:43:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 09:43:56 +0000
commit030eda2c4d6cad6d44c35499bcfc43ba89c88bb9 (patch)
treeed84eab0aa326f0af8421e20e99d57d62eab22e7 /xmloff/source/text
parentAdding upstream version 4:24.2.1. (diff)
downloadlibreoffice-030eda2c4d6cad6d44c35499bcfc43ba89c88bb9.tar.xz
libreoffice-030eda2c4d6cad6d44c35499bcfc43ba89c88bb9.zip
Adding upstream version 4:24.2.2.upstream/4%24.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx6
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 );