22#include <com/sun/star/text/XText.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
58 const Reference< XText >& rText,
59 bool bAutoStyles,
bool bExportParagraph )
61 SAL_WARN_IF( !rText.is(),
"xmloff",
"There is the text" );
69 ->collectTextAutoStyles( rText,
true, bExportParagraph );
81 const Reference < XPropertySet > & rPropSet,
86 Reference < XText > xHeaderText;
90 Reference < XText > xHeaderTextFirst;
92 aAny >>= xHeaderTextFirst;
94 Reference < XText > xHeaderTextLeft;
96 aAny >>= xHeaderTextLeft;
98 Reference < XText > xFooterText;
100 aAny >>= xFooterText;
102 Reference < XText > xFooterTextFirst;
104 aAny >>= xFooterTextFirst;
106 Reference < XText > xFooterTextLeft;
108 aAny >>= xFooterTextLeft;
112 if( xHeaderText.is() )
114 if( xHeaderTextFirst.is() && xHeaderTextFirst != xHeaderText )
116 if( xHeaderTextLeft.is() && xHeaderTextLeft != xHeaderText )
118 if( xFooterText.is() )
120 if( xFooterTextFirst.is() && xFooterTextFirst != xFooterText )
122 if( xFooterTextLeft.is() && xFooterTextLeft != xFooterText )
129 aAny = rPropSet->getPropertyValue(
gsHeaderOn );
130 bool bHeader =
false;
133 bool bHeaderFirstShared =
false;
137 aAny >>= bHeaderFirstShared;
140 bool bHeaderLeftShared =
false;
144 aAny >>= bHeaderLeftShared;
147 if( xHeaderText.is() )
157 if( xHeaderTextLeft.is() && xHeaderTextLeft != xHeaderText )
159 if (bHeaderLeftShared)
167 if (xHeaderTextFirst.is() && xHeaderTextFirst != xHeaderText
170 if (bHeaderFirstShared)
182 aAny = rPropSet->getPropertyValue(
gsFooterOn );
183 bool bFooter =
false;
186 bool bFooterFirstShared =
false;
190 aAny >>= bFooterFirstShared;
193 bool bFooterLeftShared =
false;
197 aAny >>= bFooterLeftShared;
200 if( xFooterText.is() )
210 if( xFooterTextLeft.is() && xFooterTextLeft != xFooterText )
212 if (bFooterLeftShared)
220 if (xFooterTextFirst.is() && xFooterTextFirst != xFooterText
223 if (bFooterFirstShared)
constexpr OUStringLiteral gsFooterText(u"FooterText")
constexpr OUStringLiteral gsFirstShareContent(u"FirstIsShared")
constexpr OUStringLiteral gsHeaderOn(u"HeaderIsOn")
constexpr OUStringLiteral gsHeaderText(u"HeaderText")
constexpr OUStringLiteral gsHeaderTextFirst(u"HeaderTextFirst")
constexpr OUStringLiteral gsFooterOn(u"FooterIsOn")
constexpr OUStringLiteral gsFooterShareContent(u"FooterIsShared")
constexpr OUStringLiteral gsFooterTextLeft(u"FooterTextLeft")
constexpr OUStringLiteral gsHeaderShareContent(u"HeaderIsShared")
constexpr OUStringLiteral gsHeaderTextLeft(u"HeaderTextLeft")
constexpr OUStringLiteral gsFooterTextFirst(u"FooterTextFirst")
rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
SvXMLExport & GetExport()
virtual void exportMasterPageContent(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bAutoStyles) override
XMLTextMasterPageExport(SvXMLExport &rExp)
virtual void exportHeaderFooterContent(const css::uno::Reference< css::text::XText > &rText, bool bAutoStyles, bool bExportParagraph=true)
virtual ~XMLTextMasterPageExport() override
#define SAL_WARN_IF(condition, area, stream)
Handling of tokens in XML:
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
constexpr sal_uInt16 XML_NAMESPACE_STYLE