LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
PageMasterImportPropertyMapper Class Reference

#include <PageMasterImportPropMapper.hxx>

Inheritance diagram for PageMasterImportPropertyMapper:
[legend]
Collaboration diagram for PageMasterImportPropertyMapper:
[legend]

Public Member Functions

 PageMasterImportPropertyMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLImport &rImp)
 
virtual ~PageMasterImportPropertyMapper () override
 
virtual bool handleSpecialItem (XMLPropertyState &rProperty, ::std::vector< XMLPropertyState > &rProperties, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap) const override
 this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set More...
 
virtual void finished (::std::vector< XMLPropertyState > &rProperties, sal_Int32 nStartIndex, sal_Int32 nEndIndex) const override
 This method is called when all attributes have been processed. More...
 
- Public Member Functions inherited from SvXMLImportPropertyMapper
 SvXMLImportPropertyMapper (rtl::Reference< XMLPropertySetMapper > xMapper, SvXMLImport &rImport)
 
virtual ~SvXMLImportPropertyMapper () override
 
void ChainImportMapper (const rtl::Reference< SvXMLImportPropertyMapper > &rMapper)
 
void importXML (::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, sal_uInt32 nPropType, sal_Int32 nStartIdx, sal_Int32 nEndIdx) const
 fills the given itemset with the attributes in the given list the map is only searched within the range [nStartIdx, nEndIdx[ More...
 
virtual bool handleSpecialItem (XMLPropertyState &rProperty, ::std::vector< XMLPropertyState > &rProperties, const OUString &rValue, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap) const
 this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set More...
 
virtual void finished (::std::vector< XMLPropertyState > &rProperties, sal_Int32 nStartIndex, sal_Int32 nEndIndex) const
 This method is called when all attributes have benn processed. More...
 
void CheckSpecialContext (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, ContextID_Index_Pair *pSpecialContextIds) const
 
bool FillPropertySet (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, ContextID_Index_Pair *pSpecialContextIds=nullptr) const
 
void FillPropertySequence (const ::std::vector< XMLPropertyState > &aProperties, css::uno::Sequence< css::beans::PropertyValue > &rValues) const
 
const rtl::Reference< XMLPropertySetMapper > & getPropertySetMapper () const
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

SvXMLImport & rImport
 

Additional Inherited Members

- Static Public Member Functions inherited from SvXMLImportPropertyMapper
static bool FillPropertySet_ (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo, const rtl::Reference< XMLPropertySetMapper > &rPropMapper, SvXMLImport &rImport, ContextID_Index_Pair *pSpecialContextIds)
 implementation helper for FillPropertySet: fill an XPropertySet. More...
 
static bool FillMultiPropertySet_ (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XMultiPropertySet > &rMultiPropSet, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo, const rtl::Reference< XMLPropertySetMapper > &rPropMapper, ContextID_Index_Pair *pSpecialContextIds)
 implementation helper for FillPropertySet: fill an XMultiPropertySet. More...
 
static bool FillTolerantMultiPropertySet_ (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XTolerantMultiPropertySet > &rTolPropSet, const rtl::Reference< XMLPropertySetMapper > &rPropMapper, SvXMLImport &rImport, ContextID_Index_Pair *pSpecialContextIds)
 implementation helper for FillPropertySet: fill an XTolerantMultiPropertySet. More...
 
static void PrepareForMultiPropertySet_ (const ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySetInfo > &rPropSetInfo, const rtl::Reference< XMLPropertySetMapper > &rPropMapper, ContextID_Index_Pair *pSpecialContextIds, css::uno::Sequence< OUString > &rNames, css::uno::Sequence< css::uno::Any > &rValues)
 
- 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 SvXMLImportPropertyMapper
SvXMLImport & GetImport () const
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from SvXMLImportPropertyMapper
rtl::Reference< XMLPropertySetMappermaPropMapper
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 26 of file PageMasterImportPropMapper.hxx.

Constructor & Destructor Documentation

◆ PageMasterImportPropertyMapper()

PageMasterImportPropertyMapper::PageMasterImportPropertyMapper ( const rtl::Reference< XMLPropertySetMapper > &  rMapper,
SvXMLImport &  rImp 
)

Definition at line 43 of file PageMasterImportPropMapper.cxx.

◆ ~PageMasterImportPropertyMapper()

PageMasterImportPropertyMapper::~PageMasterImportPropertyMapper ( )
overridevirtual

Definition at line 51 of file PageMasterImportPropMapper.cxx.

Member Function Documentation

◆ finished()

void PageMasterImportPropertyMapper::finished ( ::std::vector< XMLPropertyState > &  rProperties,
sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
) const
overridevirtual

This method is called when all attributes have been processed.

It may be used to remove items that are incomplete

Reimplemented from SvXMLImportPropertyMapper.

Definition at line 89 of file PageMasterImportPropMapper.cxx.

References Any, 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_FOOTERBORDERALL, CTF_PM_FOOTERBORDERBOTTOM, CTF_PM_FOOTERBORDERLEFT, CTF_PM_FOOTERBORDERRIGHT, CTF_PM_FOOTERBORDERTOP, CTF_PM_FOOTERBORDERWIDTHALL, CTF_PM_FOOTERBORDERWIDTHBOTTOM, CTF_PM_FOOTERBORDERWIDTHLEFT, CTF_PM_FOOTERBORDERWIDTHRIGHT, CTF_PM_FOOTERBORDERWIDTHTOP, CTF_PM_FOOTERHEIGHT, CTF_PM_FOOTERMARGINALL, CTF_PM_FOOTERMARGINBOTTOM, CTF_PM_FOOTERMARGINLEFT, CTF_PM_FOOTERMARGINRIGHT, CTF_PM_FOOTERMARGINTOP, CTF_PM_FOOTERMINHEIGHT, CTF_PM_FOOTERPADDINGALL, CTF_PM_FOOTERPADDINGBOTTOM, CTF_PM_FOOTERPADDINGLEFT, CTF_PM_FOOTERPADDINGRIGHT, CTF_PM_FOOTERPADDINGTOP, CTF_PM_HEADERBORDERALL, CTF_PM_HEADERBORDERBOTTOM, CTF_PM_HEADERBORDERLEFT, CTF_PM_HEADERBORDERRIGHT, CTF_PM_HEADERBORDERTOP, CTF_PM_HEADERBORDERWIDTHALL, CTF_PM_HEADERBORDERWIDTHBOTTOM, CTF_PM_HEADERBORDERWIDTHLEFT, CTF_PM_HEADERBORDERWIDTHRIGHT, CTF_PM_HEADERBORDERWIDTHTOP, CTF_PM_HEADERHEIGHT, CTF_PM_HEADERMARGINALL, CTF_PM_HEADERMARGINBOTTOM, CTF_PM_HEADERMARGINLEFT, CTF_PM_HEADERMARGINRIGHT, CTF_PM_HEADERMARGINTOP, CTF_PM_HEADERMINHEIGHT, CTF_PM_HEADERPADDINGALL, CTF_PM_HEADERPADDINGBOTTOM, CTF_PM_HEADERPADDINGLEFT, CTF_PM_HEADERPADDINGRIGHT, CTF_PM_HEADERPADDINGTOP, CTF_PM_MARGINALL, CTF_PM_MARGINBOTTOM, 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_RTLGUTTER, SvXMLImportPropertyMapper::finished(), SvXMLImportPropertyMapper::GetImport(), SvXMLImportPropertyMapper::getPropertySetMapper(), i, XMLPropertyState::maValue, XMLPropertyState::mnIndex, nLeftMargin, nRightMargin, nTopMargin, XML_LINE_BOTTOM, XML_LINE_LEFT, XML_LINE_RIGHT, and XML_LINE_TOP.

◆ handleSpecialItem()

bool PageMasterImportPropertyMapper::handleSpecialItem ( XMLPropertyState rProperty,
::std::vector< XMLPropertyState > &  rProperties,
const OUString &  rValue,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap 
) const
overridevirtual

this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set

Reimplemented from SvXMLImportPropertyMapper.

Definition at line 55 of file PageMasterImportPropMapper.cxx.

References CTF_PM_REGISTER_STYLE, SvXMLImportPropertyMapper::getPropertySetMapper(), SvXMLImportPropertyMapper::handleSpecialItem(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, rImport, sDisplayName, and TEXT_PARAGRAPH.

Member Data Documentation

◆ rImport

SvXMLImport& PageMasterImportPropertyMapper::rImport
private

Definition at line 28 of file PageMasterImportPropMapper.hxx.

Referenced by handleSpecialItem().


The documentation for this class was generated from the following files: