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 ) )
170 GetImport().GetTextImport()->GetCursorAsRange(),
"",
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 ) )
228 GetImport().GetTextImport()->GetCursorAsRange(),
"",
SvXMLImport & GetImport()
rtl::Reference< XMLTextImportHelper > const & GetTextImport()
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
#define SC_UNO_PAGE_FTRON
#define SC_UNO_PAGE_FTRSHARED
#define SC_UNO_PAGE_RIGHTHDRCON
#define SC_UNO_PAGE_FIRSTHDRCONT
#define SC_UNO_PAGE_HDRON
#define SC_UNO_PAGE_FIRSTFTRSHARED
#define SC_UNO_PAGE_LEFTHDRCONT
#define SC_UNO_PAGE_FIRSTFTRCONT
#define SC_UNO_PAGE_HDRSHARED
#define SC_UNO_PAGE_LEFTFTRCONT
#define SC_UNO_PAGE_FIRSTHDRSHARED
#define SC_UNO_PAGE_RIGHTFTRCON
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)