34#include <com/sun/star/frame/XModel.hpp>
35#include <com/sun/star/style/XStyle.hpp>
36#include <com/sun/star/lang/XSingleServiceFactory.hpp>
37#include <com/sun/star/presentation/XPresentationPage.hpp>
38#include <com/sun/star/drawing/FillStyle.hpp>
39#include <com/sun/star/drawing/XDrawPages.hpp>
40#include <com/sun/star/container/XNamed.hpp>
41#include <com/sun/star/beans/XPropertySet.hpp>
42#include <com/sun/star/beans/XPropertyState.hpp>
43#include <com/sun/star/presentation/XHandoutMasterSupplier.hpp>
44#include <com/sun/star/util/Color.hpp>
49#include <com/sun/star/container/XNameContainer.hpp>
74 SdXMLDrawingPagePropertySetContext( SvXMLImport& rImport, sal_Int32 nElement,
75 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
76 ::std::vector< XMLPropertyState > &rProps,
82 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
83 ::std::vector< XMLPropertyState > &rProperties,
88SdXMLDrawingPagePropertySetContext::SdXMLDrawingPagePropertySetContext(
89 SvXMLImport& rImport, sal_Int32 nElement,
90 const uno::Reference< xml::sax::XFastAttributeList > & xAttrList,
91 ::std::vector< XMLPropertyState > &rProps,
98css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLDrawingPagePropertySetContext::createFastChildContext(
100 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
101 ::std::vector< XMLPropertyState > &rProperties,
104 switch( mxMapper->getPropertySetMapper()->GetEntryContextId( rProp.
mnIndex ) )
112 uno::Any aAny( GetImport().GetAbsoluteReference( aIter.toString() ) );
114 rProperties.push_back( aPropState );
125 rProperties, rProp );
135 SdXMLDrawingPageStyleContext(
136 SvXMLImport& rImport,
140 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
142 virtual void Finish(
bool bOverwrite )
override;
145const sal_uInt16 MAX_SPECIAL_DRAW_STYLES = 7;
148 {
CTF_DASHNAME, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE },
150 {
CTF_LINEENDNAME, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE },
155 { -1, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE }
171 SvXMLImport& rImport,
176 , m_pFamilies(pFamilies)
184SdXMLDrawingPageStyleContext::SdXMLDrawingPageStyleContext(
185 SvXMLImport& rImport,
191css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLDrawingPageStyleContext::createFastChildContext(
193 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
198 GetStyles()->GetImportPropertyMapper( GetFamily() );
200 return new SdXMLDrawingPagePropertySetContext( GetImport(), nElement,
209void SdXMLDrawingPageStyleContext::Finish(
bool bOverwrite )
213 ::std::vector< XMLPropertyState > &rProperties = GetProperties();
222 sal_Int16 nContextID = rImpPrMap->GetEntryContextId(
property.mnIndex);
228 property.maValue >>= sStyleName;
230 sal_Int32 nStyle = 0;
239 property.maValue <<= nStyle;
250 const Reference< beans::XPropertySet > & rPropSet )
254 SAL_WARN_IF( !xImpPrMap.is(),
"xmloff",
"There is the import prop mapper" );
258 Reference< beans::XPropertySetInfo > xInfo;
270 SAL_INFO(
"xmloff.style",
"XMLDrawingPageStyleContext: dropping fill named item: " << sStyleName);
278 xImpPrMap->getPropertySetMapper();
281 const OUString& rPropertyName =
282 rPropMapper->GetEntryAPIName(rState.
mnIndex);
284 xInfo = rPropSet->getPropertySetInfo();
285 if ( xInfo->hasPropertyByName( rPropertyName ) )
287 rPropSet->setPropertyValue( rPropertyName,
Any( sStyleName ) );
297 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList)
305 meOrientation(GetSdImport().IsDraw() ? view::PaperOrientation_PORTRAIT : view::PaperOrientation_LANDSCAPE)
312 switch(aIter.getToken())
317 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
324 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
331 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
338 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
345 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
352 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
378 const uno::Reference< xml::sax::XFastAttributeList>& )
388 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
405 const uno::Reference< xml::sax::XFastAttributeList >& )
415 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
424 xContext = xLclContext.get();
427 maList.push_back(xLclContext);
444 if( pObj0->
GetName() ==
"handout" )
473 if( pObj0->
GetName() ==
"title" )
487 if( pObj1->
GetName() ==
"subtitle" )
491 else if( pObj1->
GetName() ==
"outline" )
495 else if( pObj1->
GetName() ==
"chart" )
499 else if( pObj1->
GetName() ==
"table" )
503 else if( pObj1->
GetName() ==
"object" )
507 else if( pObj1->
GetName() ==
"vertical_outline" )
509 if( pObj0->
GetName() ==
"vertical_title" )
529 if( pObj1->
GetName() ==
"outline" )
531 if( pObj2->
GetName() ==
"outline" )
535 else if( pObj2->
GetName() ==
"chart" )
539 else if( pObj2->
GetName() ==
"graphic" )
555 else if( pObj1->
GetName() ==
"chart" )
559 else if( pObj1->
GetName() ==
"graphic" )
561 if( pObj2->
GetName() ==
"vertical_outline" )
570 else if( pObj1->
GetName() ==
"vertical_outline" )
592 if( pObj1->
GetName() ==
"object" )
613 if( pObj1->
GetName() ==
"object" )
644 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList)
650 switch(aIter.getToken())
654 msName = aIter.toString();
660 GetSdImport().GetMM100UnitConverter().convertMeasureToCore(
661 mnX, aIter.toView());
693 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList,
694 uno::Reference< drawing::XShapes >
const & rShapes)
698 OUString sStyleName, sPageMasterName;
702 const OUString sValue = aIter.toString();
703 switch(aIter.getToken())
717 sPageMasterName = sValue;
766 if(!sPageMasterName.isEmpty())
789 pSdContext->SetMasterPageStyles(*
this);
798 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
805 if(
GetSdImport().GetShapeImport()->GetStylesContext())
810 *
GetSdImport().GetShapeImport()->GetStylesContext(),
814 GetSdImport().GetShapeImport()->GetStylesContext()->AddStyle(*pNew);
824 uno::Reference< presentation::XPresentationPage > xPresPage(
GetLocalShapesContext(), uno::UNO_QUERY);
827 uno::Reference< drawing::XDrawPage > xNotesDrawPage = xPresPage->getNotesPage();
828 if(xNotesDrawPage.is())
854 mbIsAutoStyle(bIsAutoStyle)
856 Reference< uno::XComponentContext > xContext = rImport.GetComponentContext();
863 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
869 auto pContext =
GetImport().GetShapeImport()->GetShapeTableImport()->CreateTableTemplateContext(nElement, xAttrList );
918 const uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
923 return new SdXMLDrawingPageStyleContext(
GetSdImport(), *
this );
938 const Reference< XFastAttributeList > & xAttrList )
964 aImpHelper->GetPresPagePropsMapper();
1001 GetImport().GetTextImport()->SetAutoStyles(
this );
1004 GetImport().GetChartImport()->SetAutoStylesContext(
this );
1007 GetImport().GetFormImport()->setAutoStyleContext(
this );
1022 if(pParentStyle->GetStyle().is())
1038 GetImport().GetShapeImport()->GetShapeTableImport()->finishStyles();
1041 uno::Reference< beans::XPropertySet > xInfoSet(
GetImport().getImportInfo() );
1044 uno::Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
1046 if( xInfoSetInfo->hasPropertyByName(
"PageLayouts") )
1058 const uno::Reference<container::XNameAccess>& rStyleFamilies =
1061 if (!rStyleFamilies.is())
1069 uno::Reference< container::XNameAccess > xMasterPageStyles( rStyleFamilies->getByName(rMaster.
GetDisplayName()), UNO_QUERY_THROW );
1073 catch (
const uno::Exception&)
1084 if(
GetSdImport().GetLocalDocStyleFamilies().is())
try
1086 uno::Reference< container::XNameAccess > xGraphicPageStyles(
GetSdImport().GetLocalDocStyleFamilies()->getByName(
"graphics"), uno::UNO_QUERY_THROW );
1090 catch( uno::Exception& )
1098 if(
GetSdImport().GetLocalDocStyleFamilies().is())
try
1100 uno::Reference< container::XNameAccess > xGraphicPageStyles(
GetSdImport().GetLocalDocStyleFamilies()->getByName(
"cell"), uno::UNO_QUERY_THROW );
1104 catch( uno::Exception& )
1119 bool bCanSkipReset =
false;
1120 if (pPropStyle && rName ==
u"TextAutoGrowHeight")
1122 bool bOldStyleTextAutoGrowHeight(
false);
1123 rPropSet->getPropertyValue(
"TextAutoGrowHeight") >>= bOldStyleTextAutoGrowHeight;
1125 sal_Int32 nIndexStyle = rPrMap->GetEntryIndex(
XML_NAMESPACE_DRAW,
u"auto-grow-height", 0);
1126 if (nIndexStyle != -1)
1128 const ::std::vector< XMLPropertyState > &rProperties = pPropStyle->
GetProperties();
1129 auto property = std::find_if(rProperties.cbegin(), rProperties.cend(),
1130 [nIndexStyle](
const XMLPropertyState& rProp) { return rProp.mnIndex == nIndexStyle; });
1131 if (
property != rProperties.cend())
1133 bool bNewStyleTextAutoGrowHeight(
false);
1134 property->maValue >>= bNewStyleTextAutoGrowHeight;
1135 bCanSkipReset = (bNewStyleTextAutoGrowHeight == bOldStyleTextAutoGrowHeight);
1139 return bCanSkipReset;
1146 sal_Int32 nPrefLen(rPrefix.size());
1173 sal_Int32 nStylePrefLen = aStyleName.lastIndexOf(
'-' ) + 1;
1174 if( (nPrefLen != nStylePrefLen) || !aStyleName.startsWith(rPrefix) )
1177 aStyleName = aStyleName.copy( nPrefLen );
1182 uno::Reference< style::XStyle > xStyle;
1183 if(xPageStyles->hasByName(aStyleName))
1185 xPageStyles->getByName(aStyleName) >>= xStyle;
1188 uno::Reference< beans::XPropertySet > xPropSet( xStyle, uno::UNO_QUERY );
1189 uno::Reference< beans::XPropertySetInfo > xPropSetInfo;
1191 xPropSetInfo = xPropSet->getPropertySetInfo();
1193 uno::Reference< beans::XPropertyState > xPropState( xStyle, uno::UNO_QUERY );
1195 if( xPropState.is() )
1199 SAL_WARN_IF( !xImpPrMap.is(),
"xmloff",
"There is the import prop mapper" );
1200 if( xImpPrMap.is() )
1201 xPrMap = xImpPrMap->getPropertySetMapper();
1204 const sal_Int32
nCount = xPrMap->GetEntryCount();
1205 for( sal_Int32 i = 0;
i <
nCount;
i++ )
1207 const OUString& rName = xPrMap->GetEntryAPIName( i );
1208 if( xPropSetInfo->hasPropertyByName( rName ) && beans::PropertyState_DIRECT_VALUE == xPropState->getPropertyState( rName ) )
1210 bool bCanSkipReset =
canSkipReset(rName, pPropStyle, xPropSet, xPrMap);
1213 xPropState->setPropertyToDefault( rName );
1222 uno::Reference< lang::XSingleServiceFactory > xServiceFact(xPageStyles, uno::UNO_QUERY);
1223 if(xServiceFact.is())
1225 uno::Reference< style::XStyle > xNewStyle( xServiceFact->createInstance(), uno::UNO_QUERY);
1233 uno::Reference< container::XNameContainer > xInsertContainer(xPageStyles, uno::UNO_QUERY);
1234 if(xInsertContainer.is())
1235 xInsertContainer->insertByName(aStyleName,
uno::Any( xStyle ) );
1243 uno::Reference< beans::XPropertySet > xPropSet(xStyle, uno::UNO_QUERY);
1244 if(xPropSet.is() && pPropStyle)
1252 catch(
const Exception& e)
1268 sal_Int32 nStylePrefLen = aStyleName.lastIndexOf(
'-' ) + 1;
1269 if( (nPrefLen != nStylePrefLen) || !aStyleName.startsWith( rPrefix ) )
1272 aStyleName = aStyleName.copy( nPrefLen );
1275 uno::Reference< style::XStyle > xStyle( xPageStyles->getByName(aStyleName), UNO_QUERY );
1282 sal_Int32 nStylePrefLen = sParentStyleDisplayName.lastIndexOf(
'-' ) + 1;
1283 if( (nPrefLen != nStylePrefLen) || !sParentStyleDisplayName.startsWith( rPrefix ) )
1286 sParentStyleDisplayName = sParentStyleDisplayName.copy( nPrefLen );
1288 xStyle->setParentStyle( sParentStyleDisplayName );
1291 catch(
const Exception& e )
1310 xLayouts->insertByName(pStyle->
GetName(),
uno::Any(
static_cast<sal_Int32
>(pContext->GetTypeId())));
1326 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
1335 uno::Reference< drawing::XDrawPage > xNewMasterPage;
1336 uno::Reference< drawing::XDrawPages > xMasterPages(
GetSdImport().GetLocalMasterPages(), uno::UNO_QUERY);
1338 if( xMasterPages.is() )
1341 sal_Int32 nMasterPageCount = xMasterPages->getCount();
1342 if (nNewMasterPageCount + 1 > nMasterPageCount)
1349 xNewMasterPage = xMasterPages->insertNewByIndex(nMasterPageCount);
1354 xMasterPages->getByIndex(nNewMasterPageCount) >>= xNewMasterPage;
1360 if(xNewMasterPage.is())
1362 if(
GetSdImport().GetShapeImport()->GetStylesContext())
1366 nElement, xAttrList, xNewMasterPage)};
1375 uno::Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetSdImport().GetModel(), uno::UNO_QUERY );
1376 if( xHandoutSupp.is() )
1378 uno::Reference< drawing::XShapes > xHandoutPage = xHandoutSupp->getHandoutMasterPage();
1379 if(xHandoutPage.is() &&
GetSdImport().GetShapeImport()->GetStylesContext())
1382 nElement, xAttrList, xHandoutPage);
1392 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1452 css::uno::Reference<css::beans::XPropertySet>
const& xProps,
1455 assert(xProps.is());
1456 if (nExpectedFillStyle == drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE)
1463 xProps->getPropertyValue(
"FillStyle") >>= fillStyle;
1464 return fillStyle != nExpectedFillStyle;
@ AUTOLAYOUT_TITLE_2CONTENT_OVER_CONTENT
Title, 2 Content over Content.
@ AUTOLAYOUT_TITLE
Title Slide.
@ AUTOLAYOUT_TITLE_CONTENT_OVER_CONTENT
Title, Content over Content.
@ AUTOLAYOUT_TITLE_2VTEXT
Title, 2 Vertical Content.
@ AUTOLAYOUT_VTITLE_VCONTENT_OVER_VCONTENT
Vertical Title, Vertical Content over Vertical Content.
@ AUTOLAYOUT_VTITLE_VCONTENT
Vertical Title, Vertical Content over Vertical Content.
@ AUTOLAYOUT_TITLE_ONLY
Title Only.
@ AUTOLAYOUT_TITLE_2CONTENT
Title and 2 Content.
@ AUTOLAYOUT_ONLY_TEXT
Centered Text.
@ AUTOLAYOUT_TITLE_6CONTENT
Title, 6 Content.
@ AUTOLAYOUT_TITLE_2CONTENT_CONTENT
Title, 2 Content and Content.
@ AUTOLAYOUT_TITLE_CONTENT_2CONTENT
Title, Content and 2 Content.
@ AUTOLAYOUT_NONE
Blank Slide.
@ AUTOLAYOUT_TITLE_CONTENT
Title, Content.
@ AUTOLAYOUT_TITLE_VCONTENT
Title, Vertical Content.
@ AUTOLAYOUT_TITLE_4CONTENT
Title, 4 Content.
OUString maUseHeaderDeclName
const SdXMLImport & GetSdImport() const
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
void SetLayout()
sets the presentation layout at this page.
OUString maUseDateTimeDeclName
void DeleteAllShapes()
deletes all shapes on this drawing page
OUString maUseFooterDeclName
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
void SetPageMaster(OUString const &rsPageMasterName)
sets the properties from a page master style with the given name on this contexts page
const css::uno::Reference< css::drawing::XShapes > & GetLocalShapesContext() const
OUString maPageLayoutName
void SetStyle(OUString const &rStyleName)
sets the page style on this page
void AddFooterDecl(const OUString &rName, const OUString &rText)
void IncrementNewMasterPageCount()
void AddHeaderDecl(const OUString &rName, const OUString &rText)
void AddDateTimeDecl(const OUString &rName, const OUString &rText, bool bFixed, const OUString &rDateTimeFormat)
sal_Int32 GetNewMasterPageCount() const
const css::uno::Reference< css::container::XNameAccess > & GetLocalDocStyleFamilies() const
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual ~SdXMLMasterPageContext() override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
SdXMLMasterPageContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
const OUString & GetDisplayName() const
const SdXMLImport & GetSdImport() const
SdXMLMasterStylesContext(SdXMLImport &rImport)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
std::vector< rtl::Reference< SdXMLMasterPageContext > > maMasterPageList
sal_Int32 GetDrawKey() const
SdXMLPageMasterContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
rtl::Reference< SdXMLPageMasterStyleContext > mxPageMasterStyle
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
const SdXMLImport & GetSdImport() const
const SdXMLImport & GetSdImport() const
virtual ~SdXMLPageMasterStyleContext() override
css::view::PaperOrientation meOrientation
SdXMLPageMasterStyleContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
SdXMLPresentationPageLayoutContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
std::vector< rtl::Reference< SdXMLPresentationPlaceholderContext > > maList
const SdXMLImport & GetSdImport() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
SdXMLPresentationPlaceholderContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
const OUString & GetName() const
virtual ~SdXMLPresentationPlaceholderContext() override
const SdXMLImport & GetSdImport() const
std::unique_ptr< SvXMLNumFmtHelper > mpNumFmtHelper
void ImpSetCellStyles() const
const SdXMLImport & GetSdImport() const
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
void SetMasterPageStyles(SdXMLMasterPageContext const &rMaster) const
void ImpSetGraphicStyles() const
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
endFastElement is called before a context will be destructed, but after an elements context has been ...
virtual SvXMLStyleContext * CreateStyleChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
rtl::Reference< SvXMLImportPropertyMapper > xPresImpPropMapper
SdXMLStylesContext(SdXMLImport &rImport, bool bIsAutoStyle)
css::uno::Reference< css::container::XNameAccess > getPageLayouts() const
std::unique_ptr< SvNumberFormatter > mpNumFormatter
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
const OUString & GetName() const
XmlStyleFamily GetFamily() const
const OUString & GetParentName() const
bool IsDefaultStyle() const
const OUString & GetDisplayName() const
sal_uInt32 GetStyleCount() const
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
SvXMLStyleContext * GetStyle(sal_uInt32 i)
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const
virtual SvXMLStyleContext * CreateStyleChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
void FinishStyles(bool bOverwrite)
XMLDrawingPageStyleContext(SvXMLImport &rImport, SvXMLStylesContext &rStyles, ContextID_Index_Pair const pContextIDs[], XmlStyleFamily const pFamilies[])
virtual void FillPropertySet(css::uno::Reference< css::beans::XPropertySet > const &rPropSet) override
std::unique_ptr< ContextID_Index_Pair[]> m_pContextIDs
XmlStyleFamily const *const m_pFamilies
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
::std::vector< XMLPropertyState > & GetProperties()
void SetStyle(const css::uno::Reference< css::style::XStyle > &xStl)
SvXMLStylesContext * GetStyles()
virtual void Finish(bool bOverwrite) override
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
@ SD_PAGEMASTERSTYLECONTEXT_ID
@ SD_PAGEMASTERCONTEXT_ID
@ SD_PRESENTATIONPAGELAYOUT_ID
#define SAL_WARN_IF(condition, area, stream)
#define SAL_INFO(area, stream)
enum SAL_DLLPUBLIC_RTTI FillStyle
COMPHELPER_DLLPUBLIC css::uno::Reference< css::container::XNameContainer > NameContainer_createInstance(const css::uno::Type &aType)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
@ XML_PRESENTATION_PAGE_LAYOUT
@ XML_DRAWING_PAGE_PROPERTIES
@ XML_PRESENTATION_PAGE_LAYOUT_NAME
@ XML_PAGE_LAYOUT_PROPERTIES
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
bool IsIgnoreFillStyleNamedItem(css::uno::Reference< css::beans::XPropertySet > const &xProps, drawing::FillStyle const nExpectedFillStyle)
This struct is used as an optional parameter to the static _FillPropertySet() methods.
Smart struct to transport an Any with an index to the appropriate property-name.
static bool canSkipReset(std::u16string_view rName, const XMLPropStyleContext *pPropStyle, const uno::Reference< beans::XPropertySet > &rPropSet, const rtl::Reference< XMLPropertySetMapper > &rPrMap)
#define XMLERROR_FLAG_WARNING
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XMLOFF_INFO_UNKNOWN_ELEMENT(area, token)
#define XML_ELEMENT(prefix, name)
constexpr sal_Int32 TOKEN_MASK
constexpr sal_uInt16 XML_NAMESPACE_DRAW
#define CTF_PAGE_SOUND_URL
#define CTF_FILLBITMAPNAME
#define CTF_FILLGRADIENTNAME
#define CTF_LINESTARTNAME
#define CTF_DATE_TIME_FORMAT
#define CTF_FILLTRANSNAME
#define CTF_FILLHATCHNAME
#define XML_TYPE_PROP_DRAWING_PAGE