22#include <com/sun/star/text/XText.hpp>
23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
28#include <osl/diagnose.h>
30#include <unonames.hxx>
49 const Reference< XText >& rText,
50 bool bAutoStyles,
bool bProgress )
52 OSL_ENSURE( rText.is(),
"There is the text" );
56 ->collectTextAutoStyles( rText, bProgress,
false );
68 if( !xHeaderFooter.is() )
82 Reference < XText > xCenter(xHeaderFooter->getCenterText());
83 Reference < XText > xLeft(xHeaderFooter->getLeftText());
84 Reference < XText > xRight(xHeaderFooter->getRightText());
85 if (!(xCenter.is() && xLeft.is() && xRight.is()))
88 OUString sCenter (xCenter->getString());
89 OUString sLeft (xLeft->getString());
90 OUString sRight (xRight->getString());
97 if (!sCenter.isEmpty() && sLeft.isEmpty() && sRight.isEmpty())
101 if (!sLeft.isEmpty())
107 if (!sCenter.isEmpty())
113 if (!sRight.isEmpty())
123 const Reference < XPropertySet > & rPropSet,
126 Reference < sheet::XHeaderFooterContent > xHeader(rPropSet->getPropertyValue(
SC_UNO_PAGE_RIGHTHDRCON ), uno::UNO_QUERY);
128 Reference < sheet::XHeaderFooterContent > xHeaderLeft(rPropSet->getPropertyValue(
SC_UNO_PAGE_LEFTHDRCONT ), uno::UNO_QUERY);
130 Reference < sheet::XHeaderFooterContent > xHeaderFirst(rPropSet->getPropertyValue(
SC_UNO_PAGE_FIRSTHDRCONT ), uno::UNO_QUERY);
132 Reference < sheet::XHeaderFooterContent > xFooter(rPropSet->getPropertyValue(
SC_UNO_PAGE_RIGHTFTRCON ), uno::UNO_QUERY);
134 Reference < sheet::XHeaderFooterContent > xFooterLeft(rPropSet->getPropertyValue(
SC_UNO_PAGE_LEFTFTRCONT ), uno::UNO_QUERY);
136 Reference < sheet::XHeaderFooterContent > xFooterFirst(rPropSet->getPropertyValue(
SC_UNO_PAGE_FIRSTFTRCONT ), uno::UNO_QUERY);
146 if( xHeaderLeft.is())
152 if( xHeaderFirst.is())
164 if( xFooterLeft.is())
170 if( xFooterFirst.is())
195 bool bLeftFooter = (!::cppu::any2bool(rPropSet->getPropertyValue(
SC_UNO_PAGE_FTRSHARED )) && bFooter);
rtl::Reference< XMLTextParagraphExport > const & GetTextParagraphExport()
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
SvXMLExport & GetExport()
virtual void exportHeaderFooterContent(const css::uno::Reference< css::text::XText > &rText, bool bAutoStyles, bool bProgress=true) override
void exportHeaderFooter(const css::uno::Reference< css::sheet::XHeaderFooterContent > &xHeaderFooter, const xmloff::token::XMLTokenEnum aName, const bool bDisplay)
virtual ~XMLTableMasterPageExport() override
XMLTableMasterPageExport(ScXMLExport &rExp)
virtual void exportMasterPageContent(const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bAutoStyles) override
constexpr OUStringLiteral SC_UNO_PAGE_FTRSHARED
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTFTRSHARED
constexpr OUStringLiteral SC_UNO_PAGE_HDRSHARED
constexpr OUStringLiteral SC_UNO_PAGE_FTRON
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTFTRCONT
constexpr OUStringLiteral SC_UNO_PAGE_LEFTHDRCONT
constexpr OUStringLiteral SC_UNO_PAGE_LEFTFTRCONT
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTHDRCONT
constexpr OUStringLiteral SC_UNO_PAGE_FIRSTHDRSHARED
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTFTRCON
constexpr OUStringLiteral SC_UNO_PAGE_RIGHTHDRCON
constexpr OUStringLiteral SC_UNO_PAGE_HDRON
constexpr sal_uInt16 XML_NAMESPACE_LO_EXT
constexpr sal_uInt16 XML_NAMESPACE_STYLE