LibreOffice Module xmloff (master) 1
|
#include <PageMasterExportPropMapper.hxx>
Public Member Functions | |
XMLPageMasterExportPropMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport) | |
virtual | ~XMLPageMasterExportPropMapper () override |
virtual void | handleElementItem (SvXMLExport &rExport, const XMLPropertyState &rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override |
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set More... | |
virtual void | handleSpecialItem (comphelper::AttributeList &rAttrList, const XMLPropertyState &rProperty, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override |
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set More... | |
void | SetGutterAtTop (bool bGutterAtTop) |
Public Member Functions inherited from SvXMLExportPropertyMapper | |
SvXMLExportPropertyMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper) | |
virtual | ~SvXMLExportPropertyMapper () override |
void | ChainExportMapper (const rtl::Reference< SvXMLExportPropertyMapper > &rMapper) |
std::vector< XMLPropertyState > | Filter (SvXMLExport const &rExport, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bEnableFoFontFamily=false) const |
Filter all properties we don't want to export: Take all properties of the XPropertySet which are also found in the XMLPropertyMapEntry-array and which are not set directly (so, the value isn't default and isn't inherited) After this process It'll called 'Contextfilter' for application-specific filter-processes. More... | |
std::vector< XMLPropertyState > | FilterDefaults (SvXMLExport const &rExport, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const |
Like Filter(), except that: More... | |
bool | LessPartial (const ::std::vector< XMLPropertyState > &aProperties1, const ::std::vector< XMLPropertyState > &aProperties2) const |
Provides a partial ordering over two arrays of XMLPropertyState, Partial because implementing a full order requires quite a lot of code. More... | |
bool | Equals (const ::std::vector< XMLPropertyState > &aProperties1, const ::std::vector< XMLPropertyState > &aProperties2) const |
Compare two arrays of XMLPropertyState. More... | |
void | exportXML (SvXMLExport &rExport, const ::std::vector< XMLPropertyState > &rProperties, SvXmlExportFlags nFlags, bool bUseExtensionNamespaceForGraphicProperties=false) const |
fills the given attribute list with the items in the given set void SvXMLExportPropertyMapper::exportXML( SvXMLAttributeList& rAttrList,
const ::std::vector< XMLPropertyState >& rProperties,
const SvXMLUnitConverter& rUnitConverter,
const SvXMLNamespaceMap& rNamespaceMap,
sal_uInt16 nFlags ) const { _exportXML( rAttrList, rProperties, rUnitConverter, rNamespaceMap, nFlags, 0, -1, -1 ); } More... | |
void | exportXML (SvXMLExport &rExport, const ::std::vector< XMLPropertyState > &rProperties, sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx, SvXmlExportFlags nFlags, bool bExtensionNamespace=false) const |
like above but only properties whose property map index is within the specified range are exported More... | |
virtual void | handleElementItem (SvXMLExport &rExport, const XMLPropertyState &rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const |
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set More... | |
virtual void | handleSpecialItem (comphelper::AttributeList &rAttrList, const XMLPropertyState &rProperty, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const |
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set More... | |
const rtl::Reference< XMLPropertySetMapper > & | getPropertySetMapper () const |
void | SetStyleName (const OUString &rStyleName) |
const OUString & | GetStyleName () const |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Member Functions | |
virtual void | ContextFilter (bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override |
Application-specific filter. More... | |
Private Attributes | |
XMLBackgroundImageExport | aBackgroundImageExport |
XMLTextColumnsExport | aTextColumnsExport |
XMLFootnoteSeparatorExport | aFootnoteSeparatorExport |
bool | m_bGutterAtTop = false |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from SvXMLExportPropertyMapper | |
std::vector< XMLPropertyState > | Filter_ (SvXMLExport const &rExport, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, bool bDefault, bool bDisableFoFontFamily) const |
Filter all properties we don't want to export: Take all properties of the XPropertySet which are also found in the XMLPropertyMapEntry-array and which are not set directly (so, the value isn't default and isn't inherited, apart from bDefault is true) After this process It'll called 'Contextfilter' for application-specific filter-processes. More... | |
virtual void | ContextFilter (bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const |
Application-specific filter. More... | |
void | _exportXML (sal_uInt16 nPropType, sal_uInt16 &rPropTypeFlags, comphelper::AttributeList &rAttrList, const ::std::vector< XMLPropertyState > &rProperties, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, std::vector< sal_uInt16 > *pIndexArray, sal_Int32 nPropMapStartIdx, sal_Int32 nPropMapEndIdx) const |
fills the given attribute list with the items in the given set More... | |
void | _exportXML (comphelper::AttributeList &rAttrList, const XMLPropertyState &rProperty, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const |
void | exportElementItems (SvXMLExport &rExport, const ::std::vector< XMLPropertyState > &rProperties, SvXmlExportFlags nFlags, const std::vector< sal_uInt16 > &rIndexArray) const |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 27 of file PageMasterExportPropMapper.hxx.
XMLPageMasterExportPropMapper::XMLPageMasterExportPropMapper | ( | const rtl::Reference< XMLPropertySetMapper > & | rMapper, |
SvXMLExport & | rExport | ||
) |
Definition at line 265 of file PageMasterExportPropMapper.cxx.
|
overridevirtual |
Definition at line 275 of file PageMasterExportPropMapper.cxx.
|
overrideprivatevirtual |
Application-specific filter.
By default do nothing.
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 357 of file PageMasterExportPropMapper.cxx.
References aBackgroundImageExport, aStr, SvXMLExportPropertyMapper::ContextFilter(), CTF_PM_BORDERALL, CTF_PM_BORDERBOTTOM, CTF_PM_BORDERLEFT, CTF_PM_BORDERRIGHT, CTF_PM_BORDERTOP, CTF_PM_BORDERWIDTHALL, CTF_PM_BORDERWIDTHBOTTOM, CTF_PM_BORDERWIDTHLEFT, CTF_PM_BORDERWIDTHRIGHT, CTF_PM_BORDERWIDTHTOP, CTF_PM_FILL, CTF_PM_FILLBITMAPNAME, CTF_PM_FILLGRADIENTNAME, CTF_PM_FILLHATCHNAME, CTF_PM_FILLTRANSNAME, CTF_PM_FLAGMASK, CTF_PM_FOOTERDYNAMIC, CTF_PM_FOOTERFILLBITMAPNAME, CTF_PM_FOOTERFILLGRADIENTNAME, CTF_PM_FOOTERFILLHATCHNAME, CTF_PM_FOOTERFILLTRANSNAME, CTF_PM_FOOTERFLAG, CTF_PM_FOOTERHEIGHT, CTF_PM_FOOTERMINHEIGHT, CTF_PM_FOOTERREPEAT_OFFSET_X, CTF_PM_FOOTERREPEAT_OFFSET_Y, CTF_PM_HEADERDYNAMIC, CTF_PM_HEADERFILLBITMAPNAME, CTF_PM_HEADERFILLGRADIENTNAME, CTF_PM_HEADERFILLHATCHNAME, CTF_PM_HEADERFILLTRANSNAME, CTF_PM_HEADERFLAG, CTF_PM_HEADERHEIGHT, CTF_PM_HEADERMINHEIGHT, CTF_PM_HEADERREPEAT_OFFSET_X, CTF_PM_HEADERREPEAT_OFFSET_Y, CTF_PM_MARGINALL, CTF_PM_MARGINGUTTER, CTF_PM_MARGINLEFT, CTF_PM_MARGINRIGHT, CTF_PM_MARGINTOP, CTF_PM_PADDINGALL, CTF_PM_PADDINGBOTTOM, CTF_PM_PADDINGLEFT, CTF_PM_PADDINGRIGHT, CTF_PM_PADDINGTOP, CTF_PM_PRINT_ANNOTATIONS, CTF_PM_PRINT_CHARTS, CTF_PM_PRINT_DRAWING, CTF_PM_PRINT_FORMULAS, CTF_PM_PRINT_GRID, CTF_PM_PRINT_HEADERS, CTF_PM_PRINT_OBJECTS, CTF_PM_PRINT_ZEROVALUES, CTF_PM_PRINTMASK, CTF_PM_REPEAT_OFFSET_X, CTF_PM_REPEAT_OFFSET_Y, CTF_PM_RTLGUTTER, CTF_PM_SCALETO, CTF_PM_SCALETOPAGES, CTF_PM_SCALETOX, CTF_PM_SCALETOY, CTF_PM_STANDARD_MODE, CTP_PM_GRID_BASE_WIDTH, CTP_PM_GRID_SNAP_TO, CTP_PM_GRID_SNAP_TO_CHARS, getBOOL(), XMLBackgroundImageExport::GetExport(), SvXMLExportPropertyMapper::getPropertySetMapper(), SvXMLExport::getSaneDefaultVersion(), lcl_AddState(), lcl_RemoveState(), lcl_RemoveStateIfZero16(), m_bGutterAtTop, XMLPropertyState::maValue, XMLPropertyState::mnIndex, SvtSaveOptions::ODFSVER_EXTENDED, and XML_PM_CTF_START.
|
overridevirtual |
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 279 of file PageMasterExportPropMapper.cxx.
References aBackgroundImageExport, aFootnoteSeparatorExport, Any, aTextColumnsExport, CTF_PM_FOOTERGRAPHICFILTER, CTF_PM_FOOTERGRAPHICPOSITION, CTF_PM_FOOTERGRAPHICURL, CTF_PM_FTN_LINE_WEIGHT, CTF_PM_GRAPHICFILTER, CTF_PM_GRAPHICPOSITION, CTF_PM_GRAPHICURL, CTF_PM_HEADERGRAPHICFILTER, CTF_PM_HEADERGRAPHICPOSITION, CTF_PM_HEADERGRAPHICURL, CTF_PM_TEXTCOLUMNS, XMLFootnoteSeparatorExport::exportXML(), XMLTextColumnsExport::exportXML(), XMLBackgroundImageExport::exportXML(), SvXMLExportPropertyMapper::getPropertySetMapper(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, nIndex, and nPos.
|
overridevirtual |
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 347 of file PageMasterExportPropMapper.cxx.
|
inline |
Definition at line 63 of file PageMasterExportPropMapper.hxx.
References m_bGutterAtTop.
|
private |
Definition at line 29 of file PageMasterExportPropMapper.hxx.
Referenced by ContextFilter(), and handleElementItem().
|
private |
Definition at line 31 of file PageMasterExportPropMapper.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 30 of file PageMasterExportPropMapper.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 32 of file PageMasterExportPropMapper.hxx.
Referenced by ContextFilter(), and SetGutterAtTop().