20#include <com/sun/star/text/XText.hpp>
21#include <com/sun/star/text/XParagraphAppend.hpp>
22#include <com/sun/star/beans/XPropertySet.hpp>
36 const Reference < XPropertySet > & rPageStylePropSet,
37 bool bFooter,
bool bLft,
bool bFrst ) :
39 xPropSet( rPageStylePropSet ),
40 sOn( bFooter ? OUString(
"FooterIsOn") : OUString(
"HeaderIsOn") ),
41 sShareContent( bFooter ? OUString(
"FooterIsShared") : OUString(
"HeaderIsShared") ),
42 sText( bFooter ? OUString(
"FooterText") : OUString(
"HeaderText") ),
43 sTextFirst(bFooter ? OUString(
"FooterTextFirst") : OUString(
"HeaderTextFirst")),
44 sTextLeft( bFooter ? OUString(
"FooterTextLeft") : OUString(
"HeaderTextLeft") ),
45 bInsertContent( true ),
54 bool bOn = *o3tl::doAccess<bool>(aAny);
61 bool bShared = bool();
62 if (!(aAny >>= bShared))
72 static constexpr OUStringLiteral sShareContentFirst(
u"FirstIsShared" );
73 aAny =
xPropSet->getPropertyValue( sShareContentFirst );
74 bool bSharedFirst = bool();
75 if (!(aAny >>= bSharedFirst))
80 xPropSet->setPropertyValue( sShareContentFirst,
Any(
false) );
98 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
105 bool bRemoveContent =
true;
119 bool bOn = *o3tl::doAccess<bool>(aAny);
128 bRemoveContent =
false;
133 bool bShared = *o3tl::doAccess<bool>(aAny);
142 Reference < XText > xText;
147 xText->setString(OUString());
150 uno::Reference<text::XParagraphAppend>
const xAppend(
151 xText, uno::UNO_QUERY_THROW);
152 uno::Reference<lang::XComponent>
const xPara(
153 xAppend->finishParagraph(
154 uno::Sequence<beans::PropertyValue>()),
155 uno::UNO_QUERY_THROW);
163 xTxtImport->SetCursor( xText->createTextCursor() );
167 GetImport().GetTextImport()->CreateTextChildContext(
179 GetImport().GetTextImport()->DeleteParagraph();
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()