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 (std::u16string_view 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

◆ tMakeStringStringMap

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

Definition at line 156 of file SchXMLTools.cxx.

Enumeration Type Documentation

◆ SchXMLChartTypeEnum

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 53 of file SchXMLTools.hxx.

Function Documentation

◆ copyProperties() [1/2]

void SchXMLTools::copyProperties ( const css::uno::Reference< css::beans::XPropertySet > &  xSource,
const css::uno::Reference< css::beans::XPropertySet > &  xDestination 
)

◆ copyProperties() [2/2]

void SchXMLTools::copyProperties ( const Reference< beans::XPropertySet > &  xSource,
const Reference< beans::XPropertySet > &  xDestination 
)

◆ CreateCategories() [1/2]

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 
)

◆ CreateCategories() [2/2]

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 
)

◆ CreateDataSequence() [1/2]

css::uno::Reference< css::chart2::data::XDataSequence > SchXMLTools::CreateDataSequence ( const OUString &  rRange,
const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc 
)

◆ CreateDataSequence() [2/2]

Reference< chart2::data::XDataSequence > SchXMLTools::CreateDataSequence ( const OUString &  rRange,
const Reference< chart2::XChartDocument > &  xChartDoc 
)

◆ CreateDataSequenceWithoutConvert() [1/2]

css::uno::Reference< css::chart2::data::XDataSequence > SchXMLTools::CreateDataSequenceWithoutConvert ( const OUString &  rRange,
const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc 
)

◆ CreateDataSequenceWithoutConvert() [2/2]

Reference< chart2::data::XDataSequence > SchXMLTools::CreateDataSequenceWithoutConvert ( const OUString &  rRange,
const Reference< chart2::XChartDocument > &  xChartDoc 
)

◆ exportRangeToSomewhere()

void SchXMLTools::exportRangeToSomewhere ( SvXMLExport rExport,
const OUString &  rValue 
)

◆ exportText()

void SchXMLTools::exportText ( SvXMLExport rExport,
const OUString &  rText,
bool  bConvertTabsLFs 
)

◆ GetChartTypeByClassName()

OUString SchXMLTools::GetChartTypeByClassName ( std::u16string_view  rClassName,
bool  bUseOldNames 
)

◆ GetChartTypeEnum()

SchXMLChartTypeEnum SchXMLTools::GetChartTypeEnum ( std::u16string_view  rClassName)

◆ getDataProviderFromParent() [1/2]

css::uno::Reference< css::chart2::data::XDataProvider > SchXMLTools::getDataProviderFromParent ( const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc)

◆ getDataProviderFromParent() [2/2]

Reference< chart2::data::XDataProvider > SchXMLTools::getDataProviderFromParent ( const Reference< chart2::XChartDocument > &  xChartDoc)

Definition at line 834 of file SchXMLTools.cxx.

References aServiceNames, and u.

Referenced by switchBackToDataProviderFromParent().

◆ GetNewChartTypeName()

OUString SchXMLTools::GetNewChartTypeName ( const OUString &  rOldChartTypeName)

Definition at line 185 of file SchXMLTools.cxx.

References lcl_getChartTypeNameMap().

Referenced by SchXMLChartContext::startFastElement().

◆ GetNewLabeledDataSequence()

css::uno::Reference< css::chart2::data::XLabeledDataSequence2 > SchXMLTools::GetNewLabeledDataSequence ( )

◆ getPropertyFromContext()

css::uno::Any SchXMLTools::getPropertyFromContext ( std::u16string_view  rPropertyName,
const XMLPropStyleContext pPropStyleContext,
const SvXMLStylesContext pStylesCtxt 
)

◆ getTokenByChartType()

xmloff::token::XMLTokenEnum SchXMLTools::getTokenByChartType ( std::u16string_view  rChartTypeService,
bool  bUseOldNames 
)

◆ getXMLRangePropertyFromDataSequence() [1/2]

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

◆ getXMLRangePropertyFromDataSequence() [2/2]

bool SchXMLTools::getXMLRangePropertyFromDataSequence ( const Reference< chart2::data::XDataSequence > &  xDataSequence,
OUString &  rOutXMLRange,
bool  bClearProp 
)

◆ isDocumentGeneratedWithOpenOfficeOlderThan2_0()

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_0 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

Definition at line 820 of file SchXMLTools.cxx.

Referenced by isDocumentGeneratedWithOpenOfficeOlderThan2_3().

◆ isDocumentGeneratedWithOpenOfficeOlderThan2_3() [1/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan2_3() [2/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3 ( const uno::Reference< frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan2_4() [1/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_4 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan2_4() [2/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_4 ( const uno::Reference< frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan3_0() [1/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan3_0() [2/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_0 ( const uno::Reference< frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan3_3() [1/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_3 ( const css::uno::Reference< css::frame::XModel > &  xChartModel)

◆ isDocumentGeneratedWithOpenOfficeOlderThan3_3() [2/2]

bool SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan3_3 ( const uno::Reference< frame::XModel > &  xChartModel)

◆ lcl_getChartTypeNameMap()

static const tMakeStringStringMap & SchXMLTools::lcl_getChartTypeNameMap ( )
static

Definition at line 158 of file SchXMLTools.cxx.

Referenced by GetNewChartTypeName().

◆ setBuildIDAtImportInfo() [1/2]

void SchXMLTools::setBuildIDAtImportInfo ( const css::uno::Reference< css::frame::XModel > &  xModel,
const css::uno::Reference< css::beans::XPropertySet > &  xImportInfo 
)

◆ setBuildIDAtImportInfo() [2/2]

void SchXMLTools::setBuildIDAtImportInfo ( const uno::Reference< frame::XModel > &  xModel,
const Reference< beans::XPropertySet > &  xImportInfo 
)

Definition at line 736 of file SchXMLTools.cxx.

References SvXMLMetaDocumentContext::setBuildId(), and xModel.

Referenced by SchXMLImport::CreateStylesContext().

◆ setXMLRangePropertyAtDataSequence() [1/2]

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

◆ setXMLRangePropertyAtDataSequence() [2/2]

void SchXMLTools::setXMLRangePropertyAtDataSequence ( const Reference< chart2::data::XDataSequence > &  xDataSequence,
const OUString &  rXMLRange 
)

◆ switchBackToDataProviderFromParent() [1/2]

bool SchXMLTools::switchBackToDataProviderFromParent ( const css::uno::Reference< css::chart2::XChartDocument > &  xChartDoc,
const tSchXMLLSequencesPerIndex rLSequencesPerIndex 
)

◆ switchBackToDataProviderFromParent() [2/2]

bool SchXMLTools::switchBackToDataProviderFromParent ( const Reference< chart2::XChartDocument > &  xChartDoc,
const tSchXMLLSequencesPerIndex rLSequencesPerIndex 
)

Definition at line 706 of file SchXMLTools.cxx.

References getDataProviderFromParent().

Referenced by SchXMLChartContext::endFastElement().

Variable Documentation

◆ aXMLChartClassMap

const SvXMLEnumMapEntry<SchXMLChartTypeEnum> SchXMLTools::aXMLChartClassMap[]
Initial value:
=
{
}
@ XML_CHART_CLASS_STOCK
Definition: SchXMLTools.hxx:63
@ XML_CHART_CLASS_SCATTER
Definition: SchXMLTools.hxx:59
@ XML_CHART_CLASS_LINE
Definition: SchXMLTools.hxx:55
@ XML_CHART_CLASS_BUBBLE
Definition: SchXMLTools.hxx:64
@ XML_CHART_CLASS_UNKNOWN
Definition: SchXMLTools.hxx:66
@ XML_CHART_CLASS_CIRCLE
Definition: SchXMLTools.hxx:57
@ XML_CHART_CLASS_RADAR
Definition: SchXMLTools.hxx:60
@ XML_CHART_CLASS_ADDIN
Definition: SchXMLTools.hxx:65
@ XML_CHART_CLASS_AREA
Definition: SchXMLTools.hxx:56
@ XML_CHART_CLASS_FILLED_RADAR
Definition: SchXMLTools.hxx:61
@ XML_CHART_CLASS_RING
Definition: SchXMLTools.hxx:58

Definition at line 132 of file SchXMLTools.cxx.

Referenced by GetChartTypeEnum().