This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 60942d1a9c0eb53888cb258cdbaf5e1554c80919 Author: Jim Jagielski <[email protected]> AuthorDate: Fri Oct 23 07:03:20 2026 -0400 sfx2, xmloff: write xlink:type on meta:auto-reload --- main/sfx2/source/doc/SfxDocumentMetaData.cxx | 3 +++ main/xmloff/source/meta/xmlmetae.cxx | 1 + 2 files changed, 4 insertions(+) diff --git a/main/sfx2/source/doc/SfxDocumentMetaData.cxx b/main/sfx2/source/doc/SfxDocumentMetaData.cxx index e709b7eb93..a5f9c687b4 100644 --- a/main/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/main/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -992,6 +992,9 @@ void SAL_CALL SfxDocumentMetaData::updateUserDefinedAndAttributes() attributes.clear(); if (!m_AutoloadURL.equalsAscii("") || (0 != m_AutoloadSecs)) { + attributes.push_back(std::make_pair( + static_cast<const char*>("xlink:type"), + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("simple")))); attributes.push_back(std::make_pair( static_cast<const char*>("xlink:href" ), m_AutoloadURL )); attributes.push_back(std::make_pair( diff --git a/main/xmloff/source/meta/xmlmetae.cxx b/main/xmloff/source/meta/xmlmetae.cxx index 8701f96448..57c9f78e82 100644 --- a/main/xmloff/source/meta/xmlmetae.cxx +++ b/main/xmloff/source/meta/xmlmetae.cxx @@ -213,6 +213,7 @@ void SvXMLMetaExport::_MExport() const sal_Int32 sReloadDelay = mxDocProps->getAutoloadSecs(); if (sReloadDelay != 0 || sReloadURL.getLength() != 0) { + mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE ); mrExport.AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, mrExport.GetRelativeReference( sReloadURL ) );
