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

#include <txtexppr.hxx>

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

Public Member Functions

 XMLTextExportPropertySetMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExt)
 
virtual ~XMLTextExportPropertySetMapper () 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...
 
- Public Member Functions inherited from SvXMLExportPropertyMapper
 SvXMLExportPropertyMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper)
 
virtual ~SvXMLExportPropertyMapper () override
 
void ChainExportMapper (const rtl::Reference< SvXMLExportPropertyMapper > &rMapper)
 
std::vector< XMLPropertyStateFilter (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< XMLPropertyStateFilterDefaults (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

void ContextFontFilter (bool bEnableFoFontFamily, XMLPropertyState *pFontNameState, XMLPropertyState *pFontFamilyNameState, XMLPropertyState *pFontStyleNameState, XMLPropertyState *pFontFamilyState, XMLPropertyState *pFontPitchState, XMLPropertyState *pFontCharsetState) const
 
virtual void ContextFilter (bool bEnableFoFontFamily, ::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override
 Application-specific filter. More...
 
const SvXMLExportGetExport () const
 

Static Private Member Functions

static void ContextFontHeightFilter (XMLPropertyState *pCharHeightState, XMLPropertyState *pCharPropHeightState, XMLPropertyState *pCharDiffHeightState)
 

Private Attributes

SvXMLExportrExport
 
OUString sDropCharStyle
 
bool bDropWholeWord
 
XMLTextDropCapExport maDropCapExport
 
SvxXMLTabStopExport maTabStopExport
 
XMLTextColumnsExport maTextColumnsExport
 
XMLComplexColorExport maComplexColorExport
 
XMLBackgroundImageExport maBackgroundImageExport
 

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< XMLPropertyStateFilter_ (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
 

Detailed Description

Definition at line 30 of file txtexppr.hxx.

Constructor & Destructor Documentation

◆ XMLTextExportPropertySetMapper()

XMLTextExportPropertySetMapper::XMLTextExportPropertySetMapper ( const rtl::Reference< XMLPropertySetMapper > &  rMapper,
SvXMLExport rExt 
)

Definition at line 210 of file txtexppr.cxx.

◆ ~XMLTextExportPropertySetMapper()

XMLTextExportPropertySetMapper::~XMLTextExportPropertySetMapper ( )
overridevirtual

Definition at line 224 of file txtexppr.cxx.

Member Function Documentation

◆ ContextFilter()

void XMLTextExportPropertySetMapper::ContextFilter ( bool  bEnableFoFontFamily,
::std::vector< XMLPropertyState > &  rProperties,
const css::uno::Reference< css::beans::XPropertySet > &  rPropSet 
) const
overrideprivatevirtual

Application-specific filter.

By default do nothing.

Reimplemented from SvXMLExportPropertyMapper.

Definition at line 524 of file txtexppr.cxx.

References Any, aStr, COL_TRANSPARENT(), SvXMLExportPropertyMapper::ContextFilter(), ContextFontFilter(), ContextFontHeightFilter(), CTF_ALLBORDER, CTF_ALLBORDERDISTANCE, CTF_ALLBORDERWIDTH, CTF_ANCHORTYPE, CTF_BOTTOMBORDER, CTF_BOTTOMBORDERDISTANCE, CTF_BOTTOMBORDERWIDTH, CTF_CHAR_BACKGROUND, CTF_CHAR_BACKGROUND_TRANSPARENCY, CTF_CHAR_HIGHLIGHT, CTF_CHARALLBORDER, CTF_CHARALLBORDERDISTANCE, CTF_CHARALLBORDERWIDTH, CTF_CHARBOTTOMBORDER, CTF_CHARBOTTOMBORDERDISTANCE, CTF_CHARBOTTOMBORDERWIDTH, CTF_CHARHEIGHT, CTF_CHARHEIGHT_CJK, CTF_CHARHEIGHT_CTL, CTF_CHARHEIGHT_DIFF, CTF_CHARHEIGHT_DIFF_CJK, CTF_CHARHEIGHT_DIFF_CTL, CTF_CHARHEIGHT_REL, CTF_CHARHEIGHT_REL_CJK, CTF_CHARHEIGHT_REL_CTL, CTF_CHARLEFTBORDER, CTF_CHARLEFTBORDERDISTANCE, CTF_CHARLEFTBORDERWIDTH, CTF_CHARRIGHTBORDER, CTF_CHARRIGHTBORDERDISTANCE, CTF_CHARRIGHTBORDERWIDTH, CTF_CHARTOPBORDER, CTF_CHARTOPBORDERDISTANCE, CTF_CHARTOPBORDERWIDTH, CTF_FILLBITMAPNAME, CTF_FILLGRADIENTNAME, CTF_FILLHATCHNAME, CTF_FILLTRANSNAME, CTF_FONTCHARSET, CTF_FONTCHARSET_CJK, CTF_FONTCHARSET_CTL, CTF_FONTFAMILY, CTF_FONTFAMILY_CJK, CTF_FONTFAMILY_CTL, CTF_FONTFAMILYNAME, CTF_FONTFAMILYNAME_CJK, CTF_FONTFAMILYNAME_CTL, CTF_FONTNAME, CTF_FONTNAME_CJK, CTF_FONTNAME_CTL, CTF_FONTPITCH, CTF_FONTPITCH_CJK, CTF_FONTPITCH_CTL, CTF_FONTSTYLENAME, CTF_FONTSTYLENAME_CJK, CTF_FONTSTYLENAME_CTL, CTF_FRAMEHEIGHT_ABS, CTF_FRAMEHEIGHT_MIN_ABS, CTF_FRAMEHEIGHT_MIN_REL, CTF_FRAMEHEIGHT_REL, CTF_FRAMEWIDTH_ABS, CTF_FRAMEWIDTH_MIN_ABS, CTF_FRAMEWIDTH_MIN_REL, CTF_FRAMEWIDTH_REL, CTF_FRAMEWIDTH_TYPE, CTF_HORIZONTALMIRROR, CTF_HORIZONTALPOS, CTF_HORIZONTALPOS_MIRRORED, CTF_HORIZONTALREL, CTF_HORIZONTALREL_FRAME, CTF_LEFTBORDER, CTF_LEFTBORDERDISTANCE, CTF_LEFTBORDERWIDTH, CTF_MARGINALL, CTF_NUMBERINGSTYLENAME, CTF_PARABOTTOMMARGIN, CTF_PARABOTTOMMARGIN_REL, CTF_PARAFIRSTLINE, CTF_PARAFIRSTLINE_REL, CTF_PARALEFTMARGIN, CTF_PARALEFTMARGIN_REL, CTF_PARAMARGINALL, CTF_PARAMARGINALL_REL, CTF_PARARIGHTMARGIN, CTF_PARARIGHTMARGIN_REL, CTF_PARATOPMARGIN, CTF_PARATOPMARGIN_REL, CTF_RELHEIGHTREL, CTF_RELWIDTHREL, CTF_REPEAT_OFFSET_X, CTF_REPEAT_OFFSET_Y, CTF_RIGHTBORDER, CTF_RIGHTBORDERDISTANCE, CTF_RIGHTBORDERWIDTH, CTF_SHAPE_HORIZONTALMIRROR, CTF_SHAPE_HORIZONTALPOS, CTF_SHAPE_HORIZONTALPOS_MIRRORED, CTF_SHAPE_HORIZONTALREL, CTF_SHAPE_HORIZONTALREL_FRAME, CTF_SHAPE_VERTICALPOS, CTF_SHAPE_VERTICALPOS_ATCHAR, CTF_SHAPE_VERTICALREL, CTF_SHAPE_VERTICALREL_FRAME, CTF_SHAPE_VERTICALREL_PAGE, CTF_SIZETYPE, CTF_TEXT_CLIP, CTF_TEXT_CLIP11, CTF_TOPBORDER, CTF_TOPBORDERDISTANCE, CTF_TOPBORDERWIDTH, CTF_UNDERLINE, CTF_UNDERLINE_COLOR, CTF_UNDERLINE_HASCOLOR, CTF_VERTICALPOS, CTF_VERTICALPOS_ATCHAR, CTF_VERTICALREL, CTF_VERTICALREL_ASCHAR, CTF_VERTICALREL_FRAME, CTF_VERTICALREL_PAGE, CTF_WRAP, CTF_WRAP_CONTOUR, CTF_WRAP_CONTOUR_MODE, CTF_WRAP_PARAGRAPH_ONLY, GetExport(), SvXMLExportPropertyMapper::getPropertySetMapper(), maValue, XMLPropertyState::maValue, XMLPropertyState::mnIndex, and OASIS.

◆ ContextFontFilter()

void XMLTextExportPropertySetMapper::ContextFontFilter ( bool  bEnableFoFontFamily,
XMLPropertyState pFontNameState,
XMLPropertyState pFontFamilyNameState,
XMLPropertyState pFontStyleNameState,
XMLPropertyState pFontFamilyState,
XMLPropertyState pFontPitchState,
XMLPropertyState pFontCharsetState 
) const
private

◆ ContextFontHeightFilter()

void XMLTextExportPropertySetMapper::ContextFontHeightFilter ( XMLPropertyState pCharHeightState,
XMLPropertyState pCharPropHeightState,
XMLPropertyState pCharDiffHeightState 
)
staticprivate

Definition at line 318 of file txtexppr.cxx.

References XMLPropertyState::maValue, and XMLPropertyState::mnIndex.

Referenced by ContextFilter().

◆ GetExport()

const SvXMLExport & XMLTextExportPropertySetMapper::GetExport ( ) const
inlineprivate

Definition at line 64 of file txtexppr.hxx.

References rExport.

Referenced by ContextFilter(), ContextFontFilter(), and handleSpecialItem().

◆ handleElementItem()

void XMLTextExportPropertySetMapper::handleElementItem ( SvXMLExport rExport,
const XMLPropertyState rProperty,
SvXmlExportFlags  nFlags,
const ::std::vector< XMLPropertyState > *  pProperties,
sal_uInt32  nIdx 
) const
overridevirtual

◆ handleSpecialItem()

void XMLTextExportPropertySetMapper::handleSpecialItem ( comphelper::AttributeList rAttrList,
const XMLPropertyState rProperty,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
const ::std::vector< XMLPropertyState > *  pProperties,
sal_uInt32  nIdx 
) const
overridevirtual

Member Data Documentation

◆ bDropWholeWord

bool XMLTextExportPropertySetMapper::bDropWholeWord
private

Definition at line 35 of file txtexppr.hxx.

Referenced by handleElementItem(), and handleSpecialItem().

◆ maBackgroundImageExport

XMLBackgroundImageExport XMLTextExportPropertySetMapper::maBackgroundImageExport
private

Definition at line 57 of file txtexppr.hxx.

Referenced by handleElementItem().

◆ maComplexColorExport

XMLComplexColorExport XMLTextExportPropertySetMapper::maComplexColorExport
private

Definition at line 56 of file txtexppr.hxx.

Referenced by handleElementItem().

◆ maDropCapExport

XMLTextDropCapExport XMLTextExportPropertySetMapper::maDropCapExport
private

Definition at line 53 of file txtexppr.hxx.

Referenced by handleElementItem().

◆ maTabStopExport

SvxXMLTabStopExport XMLTextExportPropertySetMapper::maTabStopExport
private

Definition at line 54 of file txtexppr.hxx.

Referenced by handleElementItem().

◆ maTextColumnsExport

XMLTextColumnsExport XMLTextExportPropertySetMapper::maTextColumnsExport
private

Definition at line 55 of file txtexppr.hxx.

Referenced by handleElementItem().

◆ rExport

SvXMLExport& XMLTextExportPropertySetMapper::rExport
private

Definition at line 32 of file txtexppr.hxx.

Referenced by GetExport().

◆ sDropCharStyle

OUString XMLTextExportPropertySetMapper::sDropCharStyle
private

Definition at line 34 of file txtexppr.hxx.

Referenced by handleElementItem(), and handleSpecialItem().


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