LibreOffice Module xmloff (master) 1
|
#include <XMLChartPropertySetMapper.hxx>
Public Member Functions | |
XMLChartExportPropertyMapper (const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExport) | |
virtual | ~XMLChartExportPropertyMapper () override |
void | setChartDoc (const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc) |
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... | |
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... | |
Private Attributes | |
SvXMLExport & | mrExport |
css::uno::Reference< css::chart2::XChartDocument > | mxChartDoc |
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 47 of file XMLChartPropertySetMapper.hxx.
XMLChartExportPropertyMapper::XMLChartExportPropertyMapper | ( | const rtl::Reference< XMLPropertySetMapper > & | rMapper, |
SvXMLExport & | rExport | ||
) |
Definition at line 500 of file PropertyMaps.cxx.
References SvXMLExportPropertyMapper::ChainExportMapper(), XMLTextParagraphExport::CreateParaExtPropMapper(), and XMLShapeExport::CreateShapePropMapper().
|
overridevirtual |
Definition at line 512 of file PropertyMaps.cxx.
|
overrideprivatevirtual |
Application-specific filter.
By default do nothing.
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 516 of file PropertyMaps.cxx.
References SvXMLExportPropertyMapper::ContextFilter(), SvXMLExport::getExportFlags(), SvXMLExportPropertyMapper::getPropertySetMapper(), mrExport, OASIS, XML_SCH_CONTEXT_LINES_USED, XML_SCH_CONTEXT_MAX, XML_SCH_CONTEXT_MIN, XML_SCH_CONTEXT_ORIGIN, XML_SCH_CONTEXT_SPECIAL_SYMBOL_IMAGE_NAME, XML_SCH_CONTEXT_STEP_HELP_COUNT, XML_SCH_CONTEXT_STEP_MAIN, and XML_SCH_CONTEXT_STOCK_WITH_VOLUME.
|
overrideprivatevirtual |
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 594 of file PropertyMaps.cxx.
References SvXMLExport::AddAttribute(), SvXMLExport::AddEmbeddedXGraphic(), SvXMLExport::AddEmbeddedXGraphicAsBase64(), SchXMLTools::exportText(), SvXMLExportPropertyMapper::getPropertySetMapper(), SvXMLExportPropertyMapper::handleElementItem(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, mrExport, xmloff::token::XML_HREF, XML_NAMESPACE_XLINK, XML_SCH_CONTEXT_SPECIAL_LABEL_SEPARATOR, and XML_SCH_CONTEXT_SPECIAL_SYMBOL_IMAGE.
|
overrideprivatevirtual |
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set
Reimplemented from SvXMLExportPropertyMapper.
Definition at line 685 of file PropertyMaps.cxx.
References comphelper::AttributeList::AddAttribute(), sax::Converter::convertBool(), sax::Converter::convertDouble(), SvXMLUnitConverter::convertMeasureToXML(), SvXMLExportPropertyMapper::getPropertySetMapper(), SvXMLNamespaceMap::GetQNameByKey(), SvXMLExport::getSaneDefaultVersion(), xmloff::token::GetXMLToken(), SvXMLExportPropertyMapper::handleSpecialItem(), XMLPropertyState::maValue, XMLPropertyState::mnIndex, mrExport, mxChartDoc, nValue, SvtSaveOptions::ODFSVER_012, SvtSaveOptions::ODFSVER_013, xmloff::token::XML_AVERAGED_ABSCISSA, xmloff::token::XML_CENTRAL, xmloff::token::XML_EXPONENTIAL, xmloff::token::XML_LINEAR, xmloff::token::XML_LOGARITHMIC, xmloff::token::XML_MOVING_AVERAGE, xmloff::token::XML_NONE, xmloff::token::XML_PERCENTAGE, xmloff::token::XML_POLYNOMIAL, xmloff::token::XML_POWER, xmloff::token::XML_PRIOR, XML_SCH_CONTEXT_SPECIAL_DATA_LABEL_NUMBER, XML_SCH_CONTEXT_SPECIAL_DATA_LABEL_SERIES, XML_SCH_CONTEXT_SPECIAL_DATA_LABEL_SYMBOL, XML_SCH_CONTEXT_SPECIAL_DATA_LABEL_TEXT, XML_SCH_CONTEXT_SPECIAL_ERRORBAR_RANGE, XML_SCH_CONTEXT_SPECIAL_MOVING_AVERAGE_TYPE, XML_SCH_CONTEXT_SPECIAL_NUMBER_FORMAT, XML_SCH_CONTEXT_SPECIAL_REGRESSION_TYPE, XML_SCH_CONTEXT_SPECIAL_SYMBOL_HEIGHT, XML_SCH_CONTEXT_SPECIAL_SYMBOL_WIDTH, XML_SCH_CONTEXT_SPECIAL_TEXT_ROTATION, XML_SCH_CONTEXT_SPECIAL_TICKS_MAJ_INNER, XML_SCH_CONTEXT_SPECIAL_TICKS_MAJ_OUTER, XML_SCH_CONTEXT_SPECIAL_TICKS_MIN_INNER, XML_SCH_CONTEXT_SPECIAL_TICKS_MIN_OUTER, xmloff::token::XML_VALUE, and xmloff::token::XML_VALUE_AND_PERCENTAGE.
void XMLChartExportPropertyMapper::setChartDoc | ( | const css::uno::Reference< css::chart2::XChartDocument > & | xChartDoc | ) |
Definition at line 852 of file PropertyMaps.cxx.
References mxChartDoc.
|
private |
Definition at line 50 of file XMLChartPropertySetMapper.hxx.
Referenced by ContextFilter(), handleElementItem(), and handleSpecialItem().
|
private |
Definition at line 51 of file XMLChartPropertySetMapper.hxx.
Referenced by handleSpecialItem(), and setChartDoc().