33 #include <com/sun/star/frame/XModel.hpp>
34 #include <com/sun/star/style/XStyle.hpp>
35 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
36 #include <com/sun/star/presentation/XPresentationPage.hpp>
37 #include <com/sun/star/drawing/FillStyle.hpp>
38 #include <com/sun/star/drawing/XDrawPages.hpp>
39 #include <com/sun/star/container/XNamed.hpp>
40 #include <com/sun/star/beans/XPropertySet.hpp>
41 #include <com/sun/star/beans/XPropertyState.hpp>
42 #include <com/sun/star/presentation/XHandoutMasterSupplier.hpp>
43 #include <com/sun/star/util/Color.hpp>
48 #include <com/sun/star/container/XNameContainer.hpp>
72 SdXMLDrawingPagePropertySetContext(
SvXMLImport& rImport, sal_Int32 nElement,
73 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
74 ::std::vector< XMLPropertyState > &rProps,
80 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
81 ::std::vector< XMLPropertyState > &rProperties,
88 uno::Reference<beans::XPropertySet> m_xMasterPage;
93 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
94 const uno::Reference<beans::XPropertySet>& xMasterPage);
98 sal_Int32 nElement,
const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
override;
105 std::vector<util::Color> m_aColorScheme;
109 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
111 ~XMLColorTableContext();
114 sal_Int32 nElement,
const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
override;
122 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
123 std::vector<util::Color>& rColorScheme);
127 SdXMLDrawingPagePropertySetContext::SdXMLDrawingPagePropertySetContext(
129 const uno::Reference< xml::sax::XFastAttributeList > & xAttrList,
130 ::std::vector< XMLPropertyState > &rProps,
137 css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLDrawingPagePropertySetContext::createFastChildContext(
139 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
140 ::std::vector< XMLPropertyState > &rProperties,
143 switch( mxMapper->getPropertySetMapper()->GetEntryContextId( rProp.
mnIndex ) )
151 uno::Any aAny( GetImport().GetAbsoluteReference( aIter.toString() ) );
153 rProperties.push_back( aPropState );
164 rProperties, rProp );
174 SdXMLDrawingPageStyleContext(
179 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList )
override;
181 virtual void Finish(
bool bOverwrite )
override;
184 const sal_uInt16 MAX_SPECIAL_DRAW_STYLES = 7;
187 {
CTF_DASHNAME, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE },
189 {
CTF_LINEENDNAME, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE },
194 { -1, -1, drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE }
215 , m_pFamilies(pFamilies)
223 SdXMLDrawingPageStyleContext::SdXMLDrawingPageStyleContext(
230 css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLDrawingPageStyleContext::createFastChildContext(
232 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
237 GetStyles()->GetImportPropertyMapper( GetFamily() );
239 return new SdXMLDrawingPagePropertySetContext( GetImport(), nElement,
248 void SdXMLDrawingPageStyleContext::Finish(
bool bOverwrite )
252 ::std::vector< XMLPropertyState > &rProperties = GetProperties();
261 sal_Int16 nContextID = rImpPrMap->GetEntryContextId(
property.mnIndex);
267 property.maValue >>= sStyleName;
269 sal_Int32 nStyle = 0;
278 property.maValue <<= nStyle;
293 SAL_WARN_IF( !xImpPrMap.is(),
"xmloff",
"There is the import prop mapper" );
309 SAL_INFO(
"xmloff.style",
"XMLDrawingPageStyleContext: dropping fill named item: " << sStyleName);
317 xImpPrMap->getPropertySetMapper();
320 const OUString& rPropertyName =
321 rPropMapper->GetEntryAPIName(rState.
mnIndex);
323 xInfo = rPropSet->getPropertySetInfo();
324 if ( xInfo->hasPropertyByName( rPropertyName ) )
326 rPropSet->setPropertyValue( rPropertyName,
Any( sStyleName ) );
336 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList)
344 meOrientation(GetSdImport().IsDraw() ?
view::PaperOrientation_PORTRAIT :
view::PaperOrientation_LANDSCAPE)
351 switch(aIter.getToken())
417 const uno::Reference< xml::sax::XFastAttributeList>& )
427 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
444 const uno::Reference< xml::sax::XFastAttributeList >& )
454 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
463 xContext = xLclContext.get();
466 maList.push_back(xLclContext);
483 if( pObj0->
GetName() ==
"handout" )
512 if( pObj0->
GetName() ==
"title" )
526 if( pObj1->
GetName() ==
"subtitle" )
530 else if( pObj1->
GetName() ==
"outline" )
534 else if( pObj1->
GetName() ==
"chart" )
538 else if( pObj1->
GetName() ==
"table" )
542 else if( pObj1->
GetName() ==
"object" )
546 else if( pObj1->
GetName() ==
"vertical_outline" )
548 if( pObj0->
GetName() ==
"vertical_title" )
568 if( pObj1->
GetName() ==
"outline" )
570 if( pObj2->
GetName() ==
"outline" )
574 else if( pObj2->
GetName() ==
"chart" )
578 else if( pObj2->
GetName() ==
"graphic" )
594 else if( pObj1->
GetName() ==
"chart" )
598 else if( pObj1->
GetName() ==
"graphic" )
600 if( pObj2->
GetName() ==
"vertical_outline" )
609 else if( pObj1->
GetName() ==
"vertical_outline" )
631 if( pObj1->
GetName() ==
"object" )
652 if( pObj1->
GetName() ==
"object" )
683 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList)
689 switch(aIter.getToken())
693 msName = aIter.toString();
700 mnX, aIter.toView());
732 const uno::Reference< xml::sax::XFastAttributeList>& xAttrList,
733 uno::Reference< drawing::XShapes >
const & rShapes)
737 OUString sStyleName, sPageMasterName;
741 const OUString sValue = aIter.toString();
742 switch(aIter.getToken())
756 sPageMasterName = sValue;
805 if(!sPageMasterName.isEmpty())
828 pSdContext->SetMasterPageStyles(*
this);
837 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
844 if(
GetSdImport().GetShapeImport()->GetStylesContext())
849 *
GetSdImport().GetShapeImport()->GetStylesContext(),
863 uno::Reference< presentation::XPresentationPage > xPresPage(
GetLocalShapesContext(), uno::UNO_QUERY);
866 uno::Reference< drawing::XDrawPage > xNotesDrawPage = xPresPage->getNotesPage();
867 if(xNotesDrawPage.is())
882 return new XMLThemeContext(
GetSdImport(), xAttrList, xMasterPage);
894 mbIsAutoStyle(bIsAutoStyle)
903 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList)
909 auto pContext =
GetImport().
GetShapeImport()->GetShapeTableImport()->CreateTableTemplateContext(nElement, xAttrList );
958 const uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
963 return new SdXMLDrawingPageStyleContext(
GetSdImport(), *
this );
978 const Reference< XFastAttributeList > & xAttrList )
1004 aImpHelper->GetPresPagePropsMapper();
1060 if (
const XMLShapeStyleContext* pParentStyle = dynamic_cast<const XMLShapeStyleContext*>(pStyle))
1062 if(pParentStyle->GetStyle().is())
1081 uno::Reference< beans::XPropertySet > xInfoSet(
GetImport().getImportInfo() );
1084 uno::Reference< beans::XPropertySetInfo > xInfoSetInfo( xInfoSet->getPropertySetInfo() );
1086 if( xInfoSetInfo->hasPropertyByName(
"PageLayouts") )
1098 const uno::Reference<container::XNameAccess>& rStyleFamilies =
1101 if (!rStyleFamilies.is())
1109 uno::Reference< container::XNameAccess > xMasterPageStyles( rStyleFamilies->getByName(rMaster.
GetDisplayName()), UNO_QUERY_THROW );
1113 catch (
const uno::Exception&)
1124 if(
GetSdImport().GetLocalDocStyleFamilies().is())
try
1126 uno::Reference< container::XNameAccess > xGraphicPageStyles(
GetSdImport().GetLocalDocStyleFamilies()->getByName(
"graphics"), uno::UNO_QUERY_THROW );
1130 catch( uno::Exception& )
1138 if(
GetSdImport().GetLocalDocStyleFamilies().is())
try
1140 uno::Reference< container::XNameAccess > xGraphicPageStyles(
GetSdImport().GetLocalDocStyleFamilies()->getByName(
"cell"), uno::UNO_QUERY_THROW );
1144 catch( uno::Exception& )
1159 bool bCanSkipReset =
false;
1160 if (pPropStyle && rName ==
u"TextAutoGrowHeight")
1162 bool bOldStyleTextAutoGrowHeight(
false);
1163 rPropSet->getPropertyValue(
"TextAutoGrowHeight") >>= bOldStyleTextAutoGrowHeight;
1165 sal_Int32 nIndexStyle = rPrMap->GetEntryIndex(
XML_NAMESPACE_DRAW,
u"auto-grow-height", 0);
1166 if (nIndexStyle != -1)
1168 const ::std::vector< XMLPropertyState > &rProperties = pPropStyle->
GetProperties();
1169 auto property = std::find_if(rProperties.cbegin(), rProperties.cend(),
1171 if (
property != rProperties.cend())
1173 bool bNewStyleTextAutoGrowHeight(
false);
1174 property->maValue >>= bNewStyleTextAutoGrowHeight;
1175 bCanSkipReset = (bNewStyleTextAutoGrowHeight == bOldStyleTextAutoGrowHeight);
1179 return bCanSkipReset;
1186 sal_Int32 nPrefLen(rPrefix.getLength());
1213 sal_Int32 nStylePrefLen = aStyleName.lastIndexOf(
'-' ) + 1;
1214 if( (nPrefLen != nStylePrefLen) || !aStyleName.startsWith(rPrefix) )
1217 aStyleName = aStyleName.copy( nPrefLen );
1222 uno::Reference< style::XStyle > xStyle;
1223 if(xPageStyles->hasByName(aStyleName))
1225 xPageStyles->getByName(aStyleName) >>= xStyle;
1228 uno::Reference< beans::XPropertySet > xPropSet( xStyle, uno::UNO_QUERY );
1229 uno::Reference< beans::XPropertySetInfo > xPropSetInfo;
1231 xPropSetInfo = xPropSet->getPropertySetInfo();
1233 uno::Reference< beans::XPropertyState > xPropState( xStyle, uno::UNO_QUERY );
1235 if( xPropState.is() )
1239 SAL_WARN_IF( !xImpPrMap.is(),
"xmloff",
"There is the import prop mapper" );
1240 if( xImpPrMap.is() )
1241 xPrMap = xImpPrMap->getPropertySetMapper();
1244 const sal_Int32
nCount = xPrMap->GetEntryCount();
1245 for( sal_Int32 i = 0;
i < nCount;
i++ )
1247 const OUString& rName = xPrMap->GetEntryAPIName( i );
1248 if( xPropSetInfo->hasPropertyByName( rName ) && beans::PropertyState_DIRECT_VALUE == xPropState->getPropertyState( rName ) )
1250 bool bCanSkipReset =
canSkipReset(rName, pPropStyle, xPropSet, xPrMap);
1253 xPropState->setPropertyToDefault( rName );
1262 uno::Reference< lang::XSingleServiceFactory > xServiceFact(xPageStyles, uno::UNO_QUERY);
1263 if(xServiceFact.is())
1265 uno::Reference< style::XStyle > xNewStyle( xServiceFact->createInstance(), uno::UNO_QUERY);
1273 uno::Reference< container::XNameContainer > xInsertContainer(xPageStyles, uno::UNO_QUERY);
1274 if(xInsertContainer.is())
1275 xInsertContainer->insertByName(aStyleName,
uno::Any( xStyle ) );
1283 uno::Reference< beans::XPropertySet > xPropSet(xStyle, uno::UNO_QUERY);
1284 if(xPropSet.is() && pPropStyle)
1292 catch(
const Exception& e)
1308 sal_Int32 nStylePrefLen = aStyleName.lastIndexOf(
'-' ) + 1;
1309 if( (nPrefLen != nStylePrefLen) || !aStyleName.startsWith( rPrefix ) )
1312 aStyleName = aStyleName.copy( nPrefLen );
1315 uno::Reference< style::XStyle > xStyle( xPageStyles->getByName(aStyleName), UNO_QUERY );
1322 sal_Int32 nStylePrefLen = sParentStyleDisplayName.lastIndexOf(
'-' ) + 1;
1323 if( (nPrefLen != nStylePrefLen) || !sParentStyleDisplayName.startsWith( rPrefix ) )
1326 sParentStyleDisplayName = sParentStyleDisplayName.copy( nPrefLen );
1328 xStyle->setParentStyle( sParentStyleDisplayName );
1331 catch(
const Exception& e )
1350 xLayouts->insertByName(pStyle->
GetName(),
uno::Any(static_cast<sal_Int32>(pContext->GetTypeId())));
1366 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
1375 uno::Reference< drawing::XDrawPage > xNewMasterPage;
1376 uno::Reference< drawing::XDrawPages > xMasterPages(
GetSdImport().GetLocalMasterPages(), uno::UNO_QUERY);
1378 if( xMasterPages.is() )
1381 sal_Int32 nMasterPageCount = xMasterPages->getCount();
1382 if (nNewMasterPageCount + 1 > nMasterPageCount)
1389 xNewMasterPage = xMasterPages->insertNewByIndex(nMasterPageCount);
1394 xMasterPages->getByIndex(nNewMasterPageCount) >>= xNewMasterPage;
1400 if(xNewMasterPage.is())
1406 nElement, xAttrList, xNewMasterPage)};
1415 uno::Reference< presentation::XHandoutMasterSupplier > xHandoutSupp(
GetSdImport().GetModel(), uno::UNO_QUERY );
1416 if( xHandoutSupp.is() )
1418 uno::Reference< drawing::XShapes > xHandoutPage = xHandoutSupp->getHandoutMasterPage();
1422 nElement, xAttrList, xHandoutPage);
1432 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
1489 XMLThemeContext::XMLThemeContext(
SvXMLImport& rImport,
1490 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
1491 const uno::Reference<beans::XPropertySet>& xMasterPage)
1493 , m_xMasterPage(xMasterPage)
1497 switch (rAttribute.getToken())
1501 m_aTheme[
"Name"] <<= rAttribute.toString();
1508 XMLThemeContext::~XMLThemeContext()
1510 uno::Any aTheme(m_aTheme.getAsConstPropertyValueList());
1511 m_xMasterPage->setPropertyValue(
"Theme", aTheme);
1514 uno::Reference<xml::sax::XFastContextHandler> SAL_CALL XMLThemeContext::createFastChildContext(
1515 sal_Int32 nElement,
const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
1519 return new XMLColorTableContext(GetImport(), xAttribs, m_aTheme);
1525 XMLColorTableContext::XMLColorTableContext(
1526 SvXMLImport& rImport,
const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
1533 switch (rAttribute.getToken())
1537 m_rTheme[
"ColorSchemeName"] <<= rAttribute.toString();
1544 XMLColorTableContext::~XMLColorTableContext()
1549 uno::Reference<xml::sax::XFastContextHandler> SAL_CALL XMLColorTableContext::createFastChildContext(
1550 sal_Int32 nElement,
const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
1554 return new XMLColorContext(GetImport(), xAttribs, m_aColorScheme);
1560 XMLColorContext::XMLColorContext(
SvXMLImport& rImport,
1561 const uno::Reference<xml::sax::XFastAttributeList>& xAttrList,
1562 std::vector<util::Color>& rColorScheme)
1567 switch (rAttribute.getToken())
1573 rColorScheme.push_back(nColor);
1583 css::uno::Reference<css::beans::XPropertySet>
const& xProps,
1586 assert(xProps.is());
1587 if (nExpectedFillStyle == drawing::FillStyle::FillStyle_MAKE_FIXED_SIZE)
1594 xProps->getPropertyValue(
"FillStyle") >>= fillStyle;
1595 return fillStyle != nExpectedFillStyle;
void SetLayout()
sets the presentation layout at this page.
virtual SvXMLStyleContext * CreateStyleChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XmlStyleFamily GetFamily() 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
std::vector< rtl::Reference< SdXMLMasterPageContext > > maMasterPageList
Title, 2 Content and Content.
bool convertMeasureToCore(sal_Int32 &rValue, std::u16string_view rString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32) const
convert string to measure with meCoreMeasureUnit, using optional min and max values ...
void AddFooterDecl(const OUString &rName, const OUString &rText)
COMPHELPER_DLLPUBLIC css::uno::Reference< css::container::XNameContainer > NameContainer_createInstance(const css::uno::Type &aType)
const css::uno::Reference< css::container::XNameAccess > & GetLocalDocStyleFamilies() const
rtl::Reference< ::xmloff::OFormLayerXMLImport > const & GetFormImport()
void SetPageMaster(OUString const &rsPageMasterName)
sets the properties from a page master style with the given name on this contexts page ...
rtl::Reference< SdXMLPageMasterStyleContext > mxPageMasterStyle
OUString maUseHeaderDeclName
enum SAL_DLLPUBLIC_RTTI FillStyle
sal_Int32 GetNewMasterPageCount() const
SvXMLImport & GetImport()
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 ...
const SdXMLImport & GetSdImport() const
SvXMLStyleContext * GetStyle(sal_uInt32 i)
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 ...
bool IsDefaultStyle() const
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define CTF_FILLGRADIENTNAME
OUString maUseFooterDeclName
#define CTF_FILLTRANSNAME
rtl::Reference< XMLTextImportHelper > const & GetTextImport()
rtl::Reference< SchXMLImportHelper > const & GetChartImport()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) 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
Title, Content and 2 Content.
#define CTF_FILLBITMAPNAME
XmlStyleFamily const *const m_pFamilies
rtl::Reference< SvXMLImportPropertyMapper > xPresImpPropMapper
const OUString & GetName() const
const SdXMLImport & GetSdImport() const
#define XMLOFF_WARN_UNKNOWN(area, rIter)
const SdXMLImport & GetSdImport() const
bool IsIgnoreFillStyleNamedItem(css::uno::Reference< css::beans::XPropertySet > const &xProps, drawing::FillStyle const nExpectedFillStyle)
Title, 2 Content over Content.
SdXMLPageMasterStyleContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
sal_Int32 GetDrawKey() const
std::unique_ptr< ContextID_Index_Pair[]> m_pContextIDs
constexpr sal_uInt16 XML_NAMESPACE_DRAW
#define XMLERROR_FLAG_WARNING
const OUString & GetDisplayName() const
const SdXMLImport & GetSdImport() const
#define CTF_PAGE_SOUND_URL
std::unique_ptr< SvNumberFormatter > mpNumFormatter
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const
void SetMasterPageStyles(SdXMLMasterPageContext const &rMaster) const
#define TOOLS_WARN_EXCEPTION(area, stream)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
#define DBG_ASSERT(sCon, aError)
const OUString & GetDisplayName() const
void DeleteAllShapes()
deletes all shapes on this drawing page
virtual void FillPropertySet(const css::uno::Reference< css::beans::XPropertySet > &rPropSet)
Title, Content over Content.
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
::std::vector< XMLPropertyState > & GetProperties()
exports com.sun.star. view
void SetStyle(const css::uno::Reference< css::style::XStyle > &xStl)
std::vector< rtl::Reference< SdXMLPresentationPlaceholderContext > > maList
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
OUString maUseDateTimeDeclName
Vertical Title, Vertical Content over Vertical Content.
SdXMLMasterStylesContext(SdXMLImport &rImport)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
void IncrementNewMasterPageCount()
void AddDateTimeDecl(const OUString &rName, const OUString &rText, bool bFixed, const OUString &rDateTimeFormat)
virtual ~SdXMLMasterPageContext() override
void ImpSetCellStyles() const
void AddHeaderDecl(const OUString &rName, const OUString &rText)
virtual SvXMLStyleContext * CreateDefaultStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
const SdXMLImport & GetSdImport() const
#define CTF_FILLHATCHNAME
virtual ~SdXMLPresentationPlaceholderContext() override
virtual rtl::Reference< SvXMLImportPropertyMapper > GetImportPropertyMapper(XmlStyleFamily nFamily) const override
OUString maPageLayoutName
const SdXMLImport & GetSdImport() const
#define CTF_LINESTARTNAME
This class deliberately does not support XWeak, to improve performance when loading large documents...
virtual void Finish(bool bOverwrite) override
XMLDrawingPageStyleContext(SvXMLImport &rImport, SvXMLStylesContext &rStyles, ContextID_Index_Pair const pContextIDs[], XmlStyleFamily const pFamilies[])
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 & GetParentName() const
css::uno::Reference< css::uno::XComponentContext > const & GetComponentContext() const
SdXMLPageMasterContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OUString GetStyleDisplayName(XmlStyleFamily nFamily, const OUString &rName) const
#define SAL_WARN_IF(condition, area, stream)
const OUString & GetName() const
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
virtual SvXMLStyleContext * CreateStyleChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::view::PaperOrientation meOrientation
Handling of tokens in XML:
Title, 2 Vertical Content.
#define SAL_INFO(area, stream)
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
const css::uno::Reference< css::drawing::XShapes > & GetLocalShapesContext() const
#define XML_ELEMENT(prefix, name)
css::uno::Reference< css::container::XNameAccess > getPageLayouts() const
virtual SvXMLStyleContext * CreateStyleStyleChildContext(XmlStyleFamily nFamily, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Smart struct to transport an Any with an index to the appropriate property-name.
const SvXMLUnitConverter & GetMM100UnitConverter() const
SdXMLPresentationPlaceholderContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
#define CTF_DATE_TIME_FORMAT
SvXMLStylesContext * GetStyles()
#define XML_TYPE_PROP_DRAWING_PAGE
const SvXMLStyleContext * FindStyleChildContext(XmlStyleFamily nFamily, const OUString &rName, bool bCreateIndex=false) const
void AddStyleDisplayName(XmlStyleFamily nFamily, const OUString &rName, const OUString &rDisplayName)
This struct is used as an optional parameter to the static _FillPropertySet() methods.
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
constexpr sal_Int32 TOKEN_MASK
#define XMLOFF_WARN_UNKNOWN_ELEMENT(area, token)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
SdXMLStylesContext(SdXMLImport &rImport, bool bIsAutoStyle)
SdXMLPresentationPageLayoutContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void FillPropertySet(css::uno::Reference< css::beans::XPropertySet > const &rPropSet) override
sal_uInt32 GetStyleCount() const
void SetStyle(OUString const &rStyleName)
sets the page style on this page
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 ...
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 FinishStyles(bool bOverwrite)
std::unique_ptr< SvXMLNumFmtHelper > mpNumFmtHelper
Vertical Title, Vertical Content over Vertical Content.
void ImpSetGraphicStyles() const
rtl::Reference< XMLShapeImportHelper > const & GetShapeImport()
virtual ~SdXMLPageMasterStyleContext() override
SdXMLMasterPageContext(SdXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes)
bool m_bDetectedRangeSegmentation false
static bool canSkipReset(std::u16string_view rName, const XMLPropStyleContext *pPropStyle, const uno::Reference< beans::XPropertySet > &rPropSet, const rtl::Reference< XMLPropertySetMapper > &rPrMap)