[Libreoffice-commits] core.git: sw/qa xmloff/source

Luke Deller luke at deller.id.au
Thu Jul 20 09:48:00 UTC 2017


 sw/qa/extras/odfexport/odfexport.cxx           |    1 -
 xmloff/source/text/XMLTextMasterPageExport.cxx |    4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit f1481007077723f7676f517db8df1363d070d459
Author: Luke Deller <luke at deller.id.au>
Date:   Thu Jul 13 00:01:53 2017 +1000

    tdf#109080 First page header/footer ODF (2/2)
    
    The proposal to add <style:header-first> / <style:footer-first>
    to the ODF standard has not yet been accepted, so meanwhile we
    should be using an extension namespace for these elements.
    
    This second commit changes LibreOffice to emit
    <loext:header-first> / <loext:footer-first>
    
    Change-Id: Iffec14696a09c3378a6e65b78b5c63b9a43d9b46
    Reviewed-on: https://gerrit.libreoffice.org/39865
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index b4c79b1b048c..38ce6a5596c6 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -53,7 +53,6 @@ public:
             "fdo86963.odt",
             "shape-relsize.odt",
             "fdo60769.odt",
-            "first-header-footer.odt",
             "fdo38244.odt"
         };
 
diff --git a/xmloff/source/text/XMLTextMasterPageExport.cxx b/xmloff/source/text/XMLTextMasterPageExport.cxx
index 8d31899929e7..3c60880c6e18 100644
--- a/xmloff/source/text/XMLTextMasterPageExport.cxx
+++ b/xmloff/source/text/XMLTextMasterPageExport.cxx
@@ -155,7 +155,7 @@ void XMLTextMasterPageExport::exportMasterPageContent(
             if (bHeaderFirstShared)
                 GetExport().AddAttribute( XML_NAMESPACE_STYLE,
                                           XML_DISPLAY, XML_FALSE );
-            SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_STYLE,
+            SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_LO_EXT,
                                         XML_HEADER_FIRST, true, true );
             exportHeaderFooterContent( xHeaderTextFirst, false );
         }
@@ -203,7 +203,7 @@ void XMLTextMasterPageExport::exportMasterPageContent(
             if (bFooterFirstShared)
                 GetExport().AddAttribute( XML_NAMESPACE_STYLE,
                                           XML_DISPLAY, XML_FALSE );
-            SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_STYLE,
+            SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_LO_EXT,
                                         XML_FOOTER_FIRST, true, true );
             exportHeaderFooterContent( xFooterTextFirst, false );
         }


More information about the Libreoffice-commits mailing list