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 (SvXMLAttributeList &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 (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 (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...
 
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
 
XMLBackgroundImageExport maBackgroundImageExport
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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_ (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...
 
void _exportXML (sal_uInt16 nPropType, sal_uInt16 &rPropTypeFlags, SvXMLAttributeList &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 (SvXMLAttributeList &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 ( const rtl::Reference< XMLPropertySetMapper > &  rMapper,
SvXMLExport rExt 
)

Definition at line 204 of file txtexppr.cxx.

XMLTextExportPropertySetMapper::~XMLTextExportPropertySetMapper ( )
overridevirtual

Definition at line 217 of file txtexppr.cxx.

Member Function Documentation

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 517 of file txtexppr.cxx.

References Any, assert(), 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.

void XMLTextExportPropertySetMapper::ContextFontFilter ( bool  bEnableFoFontFamily,
XMLPropertyState pFontNameState,
XMLPropertyState pFontFamilyNameState,
XMLPropertyState pFontStyleNameState,
XMLPropertyState pFontFamilyState,
XMLPropertyState pFontPitchState,
XMLPropertyState pFontCharsetState 
) const
private
void XMLTextExportPropertySetMapper::ContextFontHeightFilter ( XMLPropertyState pCharHeightState,
XMLPropertyState pCharPropHeightState,
XMLPropertyState pCharDiffHeightState 
)
staticprivate

Definition at line 311 of file txtexppr.cxx.

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

Referenced by ContextFilter().

const SvXMLExport& XMLTextExportPropertySetMapper::GetExport ( ) const
inlineprivate

Definition at line 63 of file txtexppr.hxx.

References rExport.

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

void XMLTextExportPropertySetMapper::handleElementItem ( SvXMLExport rExport,
const XMLPropertyState rProperty,
SvXmlExportFlags  nFlags,
const ::std::vector< XMLPropertyState > *  pProperties,
sal_uInt32  nIdx 
) const
overridevirtual
void XMLTextExportPropertySetMapper::handleSpecialItem ( SvXMLAttributeList rAttrList,
const XMLPropertyState rProperty,
const SvXMLUnitConverter rUnitConverter,
const SvXMLNamespaceMap rNamespaceMap,
const ::std::vector< XMLPropertyState > *  pProperties,
sal_uInt32  nIdx 
) const
overridevirtual

Member Data Documentation

bool XMLTextExportPropertySetMapper::bDropWholeWord
private

Definition at line 35 of file txtexppr.hxx.

Referenced by handleElementItem(), and handleSpecialItem().

XMLBackgroundImageExport XMLTextExportPropertySetMapper::maBackgroundImageExport
private

Definition at line 56 of file txtexppr.hxx.

Referenced by handleElementItem().

XMLTextDropCapExport XMLTextExportPropertySetMapper::maDropCapExport
private

Definition at line 53 of file txtexppr.hxx.

Referenced by handleElementItem().

SvxXMLTabStopExport XMLTextExportPropertySetMapper::maTabStopExport
private

Definition at line 54 of file txtexppr.hxx.

Referenced by handleElementItem().

XMLTextColumnsExport XMLTextExportPropertySetMapper::maTextColumnsExport
private

Definition at line 55 of file txtexppr.hxx.

Referenced by handleElementItem().

SvXMLExport& XMLTextExportPropertySetMapper::rExport
private

Definition at line 32 of file txtexppr.hxx.

Referenced by GetExport().

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: