LibreOffice Module xmloff (master)  1
Typedefs | Enumerations | Functions | Variables
SchXMLTools Namespace Reference

Typedefs

typedef std::map< OUString, OUString > tMakeStringStringMap
 

Enumerations

enum  SchXMLChartTypeEnum {
  XML_CHART_CLASS_LINE,
  XML_CHART_CLASS_AREA,
  XML_CHART_CLASS_CIRCLE,
  XML_CHART_CLASS_RING,
  XML_CHART_CLASS_SCATTER,
  XML_CHART_CLASS_RADAR,
  XML_CHART_CLASS_FILLED_RADAR,
  XML_CHART_CLASS_BAR,
  XML_CHART_CLASS_STOCK,
  XML_CHART_CLASS_BUBBLE,
  XML_CHART_CLASS_ADDIN,
  XML_CHART_CLASS_UNKNOWN
}
 

Functions

SchXMLChartTypeEnum GetChartTypeEnum (std::u16string_view rClassName)
 
static const tMakeStringStringMaplcl_getChartTypeNameMap ()
 
OUString GetNewChartTypeName (const OUString &rOldChartTypeName)
 
OUString GetChartTypeByClassName (std::u16string_view rClassName, bool bUseOldNames)
 
XMLTokenEnum getTokenByChartType (const OUString &rChartTypeService, bool bUseOldNames)
 
Reference< chart2::data::XLabeledDataSequence2 > GetNewLabeledDataSequence ()
 
Reference< chart2::data::XDataSequence > CreateDataSequence (const OUString &rRange, const Reference< chart2::XChartDocument > &xChartDoc)
 
Reference< chart2::data::XDataSequence > CreateDataSequenceWithoutConvert (const OUString &rRange, const Reference< chart2::XChartDocument > &xChartDoc)
 
void CreateCategories (const uno::Reference< chart2::data::XDataProvider > &xDataProvider, const uno::Reference< chart2::XChartDocument > &xNewDoc, const OUString &rRangeAddress, sal_Int32 nCooSysIndex, sal_Int32 nDimensionIndex, tSchXMLLSequencesPerIndex *pLSequencesPerIndex)
 
uno::Any getPropertyFromContext (std::u16string_view rPropertyName, const XMLPropStyleContext *pPropStyleContext, const SvXMLStylesContext *pStylesCtxt)
 
void exportText (SvXMLExport &rExport, const OUString &rText, bool bConvertTabsLFs)
 
void exportRangeToSomewhere (SvXMLExport &rExport, const OUString &rValue)
 
void setXMLRangePropertyAtDataSequence (const Reference< chart2::data::XDataSequence > &xDataSequence, const OUString &rXMLRange)
 
bool getXMLRangePropertyFromDataSequence (const Reference< chart2::data::XDataSequence > &xDataSequence, OUString &rOutXMLRange, bool bClearProp)
 
void copyProperties (const Reference< beans::XPropertySet > &xSource, const Reference< beans::XPropertySet > &xDestination)
 
bool switchBackToDataProviderFromParent (const Reference< chart2::XChartDocument > &xChartDoc, const tSchXMLLSequencesPerIndex &rLSequencesPerIndex)
 
void setBuildIDAtImportInfo (const uno::Reference< frame::XModel > &xModel, const Reference< beans::XPropertySet > &xImportInfo)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan3_3 (const uno::Reference< frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan3_0 (const uno::Reference< frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan2_4 (const uno::Reference< frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan2_3 (const uno::Reference< frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan2_0 (const css::uno::Reference< css::frame::XModel > &xChartModel)
 
Reference< chart2::data::XDataProvider > getDataProviderFromParent (const Reference< chart2::XChartDocument > &xChartDoc)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan2_3 (const css::uno::Reference< css::frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan2_4 (const css::uno::Reference< css::frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan3_0 (const css::uno::Reference< css::frame::XModel > &xChartModel)
 
bool isDocumentGeneratedWithOpenOfficeOlderThan3_3 (const css::uno::Reference< css::frame::XModel > &xChartModel)
 
void setBuildIDAtImportInfo (const css::uno::Reference< css::frame::XModel > &xModel, const css::uno::Reference< css::beans::XPropertySet > &xImportInfo)
 
css::uno::Reference< css::chart2::data::XDataSequence > CreateDataSequence (const OUString &rRange, const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc)
 
css::uno::Reference< css::chart2::data::XDataSequence > CreateDataSequenceWithoutConvert (const OUString &rRange, const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc)
 
void CreateCategories (const css::uno::Reference< css::chart2::data::XDataProvider > &xDataProvider, const css::uno::Reference< css::chart2::XChartDocument > &xNewDoc, const OUString &rRangeAddress, sal_Int32 nCooSysIndex, sal_Int32 nDimensionIndex, tSchXMLLSequencesPerIndex *pLSequencesPerIndex=nullptr)
 
void setXMLRangePropertyAtDataSequence (const css::uno::Reference< css::chart2::data::XDataSequence > &xDataSequence, const OUString &rXMLRange)
 checks if the data sequence has the property "CachedXMLRange" (true for internal data sequences), and if so sets this property to the range given in rXMLRange More...
 
bool getXMLRangePropertyFromDataSequence (const css::uno::Reference< css::chart2::data::XDataSequence > &xDataSequence, OUString &rOutXMLRange, bool bClearProp)
 checks if the data sequence has the property "CachedXMLRange" (true for internal data sequences), and if so retrieves this property and applies it to the range given in rOutXMLRange. More...
 
css::uno::Reference< css::chart2::data::XDataProvider > getDataProviderFromParent (const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc)
 
bool switchBackToDataProviderFromParent (const css::uno::Reference< css::chart2::XChartDocument > &xChartDoc, const tSchXMLLSequencesPerIndex &rLSequencesPerIndex)
 
void copyProperties (const css::uno::Reference< css::beans::XPropertySet > &xSource, const css::uno::Reference< css::beans::XPropertySet > &xDestination)
 

Variables

const SvXMLEnumMapEntry< SchXMLChartTypeEnumaXMLChartClassMap []
 

Typedef Documentation

typedef std::map< OUString, OUString > SchXMLTools::tMakeStringStringMap

Definition at line 155 of file SchXMLTools.cxx.

Enumeration Type Documentation

Enumerator
XML_CHART_CLASS_LINE 
XML_CHART_CLASS_AREA 
XML_CHART_CLASS_CIRCLE 
XML_CHART_CLASS_RING 
XML_CHART_CLASS_SCATTER 
XML_CHART_CLASS_RADAR 
XML_CHART_CLASS_FILLED_RADAR 
XML_CHART_CLASS_BAR 
XML_CHART_CLASS_STOCK 
XML_CHART_CLASS_BUBBLE 
XML_CHART_CLASS_ADDIN 
XML_CHART_CLASS_UNKNOWN 

Definition at line 54 of file SchXMLTools.hxx.

Function Documentation

void SchXMLTools::copyProperties ( const css::uno::Reference< css::beans::XPropertySet > &  xSource,
const css::uno::Reference< css::beans::XPropertySet > &  xDestination 
)
void SchXMLTools::copyProperties ( const Reference< beans::XPropertySet > &  xSource,
const Reference< beans::XPropertySet > &  xDestination 
)
void SchXMLTools::CreateCategories ( const css::uno::Reference< css::chart2::data::XDataProvider > &  xDataProvider,
const css::uno::Reference< css::chart2::XChartDocument > &  xNewDoc,
const OUString &  rRangeAddress,
sal_Int32  nCooSysIndex,
sal_Int32  nDimensionIndex,
tSchXMLLSequencesPerIndex pLSequencesPerIndex = nullptr 
)
void SchXMLTools::CreateCategories ( const uno::Reference< chart2::data::XDataProvider > &  xDataProvider,
const uno::Reference< chart2::XChartDocument > &  xNewDoc,
const OUString &  rRangeAddress,
sal_Int32  nCooSysIndex,
sal_Int32  nDimensionIndex,
tSchXMLLSequencesPerIndex pLSequencesPerIndex 
)
css::uno::Reference< css::chart2::data::XDataSequence > SchXMLTools::CreateDataSequence ( const OUString &  rRange,
const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc 
)
Reference< chart2::data::XDataSequence > SchXMLTools::CreateDataSequence ( const OUString &  rRange,
const Reference< chart2::XChartDocument > &  xChartDoc 
)
css::uno::Reference< css::chart2::data::XDataSequence > SchXMLTools::CreateDataSequenceWithoutConvert ( const OUString &  rRange,
const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc 
)
Reference< chart2::data::XDataSequence > SchXMLTools::CreateDataSequenceWithoutConvert ( const OUString &  rRange,
const Reference< chart2::XChartDocument > &  xChartDoc 
)
void SchXMLTools::exportRangeToSomewhere ( SvXMLExport rExport,
const OUString &  rValue 
)
void SchXMLTools::exportText ( SvXMLExport rExport,
const OUString &  rText,
bool  bConvertTabsLFs 
)
OUString SchXMLTools::GetChartTypeByClassName ( std::u16string_view  rClassName,
bool  bUseOldNames 
)
SchXMLChartTypeEnum SchXMLTools::GetChartTypeEnum ( std::u16string_view  rClassName)
css::uno::Reference< css::chart2::data::XDataProvider > SchXMLTools::getDataProviderFromParent ( const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc)
Reference< chart2::data::XDataProvider > SchXMLTools::getDataProviderFromParent ( const Reference< chart2::XChartDocument > &  xChartDoc)

Definition at line 832 of file SchXMLTools.cxx.

References aServiceNames.

Referenced by switchBackToDataProviderFromParent().

OUString SchXMLTools::GetNewChartTypeName ( const OUString &  rOldChartTypeName)

Definition at line 184 of file SchXMLTools.cxx.

References lcl_getChartTypeNameMap().

Referenced by SchXMLChartContext::startFastElement().

css::uno::Reference< css::chart2::data::XLabeledDataSequence2 > SchXMLTools::GetNewLabeledDataSequence ( )
css::uno::Any SchXMLTools::getPropertyFromContext ( std::u16string_view  rPropertyName,
const XMLPropStyleContext pPropStyleContext,
const SvXMLStylesContext pStylesCtxt 
)
xmloff::token::XMLTokenEnum SchXMLTools::getTokenByChartType ( const OUString &  rChartTypeService,
bool  bUseOldNames 
)
bool SchXMLTools::getXMLRangePropertyFromDataSequence ( const css::uno::Reference< css::chart2::data::XDataSequence > &  xDataSequence,
OUString &  rOutXMLRange,
bool  bClearProp 
)

checks if the data sequence has the property "CachedXMLRange" (true for internal data sequences), and if so retrieves this property and applies it to the range given in rOutXMLRange.

Parameters
bClearPropIf true, the property is reset to its default after it was assigned to rOutXMLRange
Returns
true, if the property was found, assigned and is non-empty
bool SchXMLTools::getXMLRangePropertyFromDataSequence ( const Reference< chart2::data::XDataSequence > &  xDataSequence,
OUString &  rOutXMLRange,
bool  bClearProp 
)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_0 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

Definition at line 818 of file SchXMLTools.cxx.

Referenced by isDocumentGeneratedWithOpenOfficeOlderThan2_3().

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3 ( const uno::Reference< frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_4 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_4 ( const uno::Reference< frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0 ( const uno::Reference< frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_3 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)
bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_3 ( const uno::Reference< frame::XModel > &  xChartModel)
static const tMakeStringStringMap& SchXMLTools::lcl_getChartTypeNameMap ( )
static

Definition at line 157 of file SchXMLTools.cxx.

Referenced by GetNewChartTypeName().

void SchXMLTools::setBuildIDAtImportInfo ( const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::beans::XPropertySet > &  xImportInfo 
)
void SchXMLTools::setBuildIDAtImportInfo ( const uno::Reference< frame::XModel > &  xModel,
const Reference< beans::XPropertySet > &  xImportInfo 
)
void SchXMLTools::setXMLRangePropertyAtDataSequence ( const css::uno::Reference< css::chart2::data::XDataSequence > &  xDataSequence,
const OUString &  rXMLRange 
)

checks if the data sequence has the property "CachedXMLRange" (true for internal data sequences), and if so sets this property to the range given in rXMLRange

void SchXMLTools::setXMLRangePropertyAtDataSequence ( const Reference< chart2::data::XDataSequence > &  xDataSequence,
const OUString &  rXMLRange 
)
bool SchXMLTools::switchBackToDataProviderFromParent ( const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc,
const tSchXMLLSequencesPerIndex rLSequencesPerIndex 
)
bool SchXMLTools::switchBackToDataProviderFromParent ( const Reference< chart2::XChartDocument > &  xChartDoc,
const tSchXMLLSequencesPerIndex rLSequencesPerIndex 
)

Definition at line 704 of file SchXMLTools.cxx.

References getDataProviderFromParent().

Referenced by SchXMLChartContext::endFastElement().

Variable Documentation

const SvXMLEnumMapEntry<SchXMLChartTypeEnum> SchXMLTools::aXMLChartClassMap[]
Initial value:
=
{
}

Definition at line 131 of file SchXMLTools.cxx.