20#include <com/sun/star/beans/XPropertySet.hpp>
21#include <com/sun/star/text/XText.hpp>
22#include <com/sun/star/sheet/XHeaderFooterContent.hpp>
30#include <unonames.hxx>
42 xml::sax::XFastAttributeList > & xAttrList,
43 const Reference < XPropertySet > & rPageStylePropSet,
44 bool bFooter,
bool bLeft,
bool bFirst ) :
46 xPropSet( rPageStylePropSet ),
48 bContainsRight(false),
49 bContainsCenter(false)
57 bool bDisplay(
true );
65 bool bOn(::cppu::any2bool(
xPropSet->getPropertyValue( sOn )));
68 const OUString sShare = bLeft ? sShareContent : sShareFirstContent;
71 if( ::cppu::any2bool(
xPropSet->getPropertyValue( sShare )) )
77 if( !::cppu::any2bool(
xPropSet->getPropertyValue( sShare )) )
84 if ( bOn != bDisplay )
93 sCont = sContentFirst;
109 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
113 uno::Reference < text::XText > xText;
132 xText->setString(
"");
133 uno::Reference < text::XTextCursor > xTempTextCursor(xText->createTextCursor());
145 xText->setString(
"");
164 if(
GetImport().GetTextImport()->GetCursor().is() )
167 if(
GetImport().GetTextImport()->GetCursor()->goLeft( 1,
true ) )
169 GetImport().GetTextImport()->GetText()->insertString(
170 GetImport().GetTextImport()->GetCursorAsRange(),
"",
173 GetImport().GetTextImport()->ResetCursor();
192 uno::Reference< text::XTextCursor >& xCursor ) :
194 xTextCursor ( xCursor )
206 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
222 if(
GetImport().GetTextImport()->GetCursor().is() )
225 if(
GetImport().GetTextImport()->GetCursor()->goLeft( 1,
true ) )
227 GetImport().GetTextImport()->GetText()->insertString(
228 GetImport().GetTextImport()->GetCursorAsRange(),
"",
231 GetImport().GetTextImport()->ResetCursor();
SvXMLImport & GetImport()
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
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
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)