LibreOffice Module xmloff (master) 1
|
#include <txtexppr.hxx>
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< 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 | |
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 SvXMLExport & | GetExport () const |
Static Private Member Functions | |
static void | ContextFontHeightFilter (XMLPropertyState *pCharHeightState, XMLPropertyState *pCharPropHeightState, XMLPropertyState *pCharDiffHeightState) |
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 30 of file txtexppr.hxx.
XMLTextExportPropertySetMapper::XMLTextExportPropertySetMapper | ( | const rtl::Reference< XMLPropertySetMapper > & | rMapper, |
SvXMLExport & | rExt | ||
) |
Definition at line 210 of file txtexppr.cxx.
|
overridevirtual |
Definition at line 224 of file txtexppr.cxx.
|
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.
|
private |
Definition at line 228 of file txtexppr.cxx.
References FAMILY_DONTKNOW, GetExport(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, PITCH_DONTKNOW, and sName.
Referenced by ContextFilter().
|
staticprivate |
Definition at line 318 of file txtexppr.cxx.
References XMLPropertyState::maValue, and XMLPropertyState::mnIndex.
Referenced by ContextFilter().
|
inlineprivate |
Definition at line 64 of file txtexppr.hxx.
References rExport.
Referenced by ContextFilter(), ContextFontFilter(), and handleSpecialItem().
|
overridevirtual |
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 48 of file txtexppr.cxx.
References Any, bDropWholeWord, CTF_BACKGROUND_FILTER, CTF_BACKGROUND_POS, CTF_BACKGROUND_TRANSPARENCY, CTF_BACKGROUND_URL, CTF_COMPLEX_COLOR, CTF_DROPCAPFORMAT, CTF_SECTION_ENDNOTE_END, CTF_SECTION_FOOTNOTE_END, CTF_TABSTOP, CTF_TEXTCOLUMNS, SvxXMLTabStopExport::Export(), XMLTextColumnsExport::exportXML(), XMLTextDropCapExport::exportXML(), XMLComplexColorExport::exportXML(), XMLBackgroundImageExport::exportXML(), XMLSectionFootnoteConfigExport::exportXML(), SvXMLExportPropertyMapper::getPropertySetMapper(), SvXMLExportPropertyMapper::handleElementItem(), maBackgroundImageExport, maComplexColorExport, maDropCapExport, maTabStopExport, maTextColumnsExport, XMLPropertyState::maValue, XMLPropertyState::mnIndex, and sDropCharStyle.
|
overridevirtual |
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 145 of file txtexppr.cxx.
References comphelper::AttributeList::AddAttribute(), bDropWholeWord, CTF_BACKGROUND_FILTER, CTF_BACKGROUND_POS, CTF_BACKGROUND_TRANSPARENCY, CTF_DEFAULT_OUTLINE_LEVEL, CTF_DROPCAPCHARSTYLE, CTF_DROPCAPWHOLEWORD, CTF_NUMBERINGSTYLENAME, CTF_OLD_FLOW_WITH_TEXT, CTF_OLDTEXTBACKGROUND, CTF_PAGEDESCNAME, CTF_PAGENUMBEROFFSET, CTF_SECTION_ENDNOTE_NUM_OWN, CTF_SECTION_ENDNOTE_NUM_PREFIX, CTF_SECTION_ENDNOTE_NUM_RESTART, CTF_SECTION_ENDNOTE_NUM_RESTART_AT, CTF_SECTION_ENDNOTE_NUM_SUFFIX, CTF_SECTION_ENDNOTE_NUM_TYPE, CTF_SECTION_FOOTNOTE_NUM_OWN, CTF_SECTION_FOOTNOTE_NUM_PREFIX, CTF_SECTION_FOOTNOTE_NUM_RESTART, CTF_SECTION_FOOTNOTE_NUM_RESTART_AT, CTF_SECTION_FOOTNOTE_NUM_SUFFIX, CTF_SECTION_FOOTNOTE_NUM_TYPE, XMLNumberWithAutoForVoidPropHdl::exportXML(), GetExport(), SvXMLExportPropertyMapper::getPropertySetMapper(), SvXMLNamespaceMap::GetQNameByKey(), SvXMLExport::getSaneDefaultVersion(), SvXMLExportPropertyMapper::handleSpecialItem(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, name, SvtSaveOptions::ODFSVER_013, SAL_WARN_IF, sDropCharStyle, and value.
|
private |
Definition at line 35 of file txtexppr.hxx.
Referenced by handleElementItem(), and handleSpecialItem().
|
private |
Definition at line 57 of file txtexppr.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 56 of file txtexppr.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 53 of file txtexppr.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 54 of file txtexppr.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 55 of file txtexppr.hxx.
Referenced by handleElementItem().
|
private |
Definition at line 32 of file txtexppr.hxx.
Referenced by GetExport().
|
private |
Definition at line 34 of file txtexppr.hxx.
Referenced by handleElementItem(), and handleSpecialItem().