LibreOffice Module xmloff (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SchXMLImportHelper Class Referencefinal

With this class you can import a <chart:chart> element containing its data as <table:table> element or without internal table. More...

#include <SchXMLImportHelper.hxx>

Inheritance diagram for SchXMLImportHelper:
[legend]
Collaboration diagram for SchXMLImportHelper:
[legend]

Public Member Functions

 SchXMLImportHelper ()
 
SvXMLImportContextCreateChartContext (SvXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::frame::XModel > &rChartModel, const css::uno::Reference< css::xml::sax::XAttributeList > &rAttrList)
 get the context for reading the <chart:chart> element with subelements. More...
 
void SetAutoStylesContext (SvXMLStylesContext *pAutoStyles)
 set the auto-style context that will be used to retrieve auto-styles used inside the following <chart:chart> element to parse More...
 
SvXMLStylesContextGetAutoStylesContext () const
 
void FillAutoStyle (const OUString &rAutoStyleName, const css::uno::Reference< css::beans::XPropertySet > &rProp)
 Fill in the autostyle. More...
 
const css::uno::Reference< css::chart::XChartDocument > & GetChartDocument () const
 
const SvXMLTokenMapGetDocElemTokenMap ()
 
const SvXMLTokenMapGetTableElemTokenMap ()
 
const SvXMLTokenMapGetChartElemTokenMap ()
 
const SvXMLTokenMapGetPlotAreaElemTokenMap ()
 
const SvXMLTokenMapGetSeriesElemTokenMap ()
 
const SvXMLTokenMapGetPropMappingAttrTokenMap ()
 
const SvXMLTokenMapGetChartAttrTokenMap ()
 
const SvXMLTokenMapGetPlotAreaAttrTokenMap ()
 
const SvXMLTokenMapGetCellAttrTokenMap ()
 
const SvXMLTokenMapGetSeriesAttrTokenMap ()
 
const SvXMLTokenMapGetRegEquationAttrTokenMap ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Static Public Member Functions

static XmlStyleFamily GetChartFamilyID ()
 
static css::uno::Reference< css::chart2::XDataSeries > GetNewDataSeries (const css::uno::Reference< css::chart2::XChartDocument > &xDoc, sal_Int32 nCoordinateSystemIndex, const OUString &rChartTypeName, bool bPushLastChartType)
 
static void DeleteDataSeries (const css::uno::Reference< css::chart2::XDataSeries > &xSeries, const css::uno::Reference< css::chart2::XChartDocument > &xDoc)
 
- 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)
 

Private Attributes

css::uno::Reference< css::chart::XChartDocument > mxChartDoc
 
SvXMLStylesContextmpAutoStyles
 
std::unique_ptr< SvXMLTokenMapmpChartDocElemTokenMap
 
std::unique_ptr< SvXMLTokenMapmpTableElemTokenMap
 
std::unique_ptr< SvXMLTokenMapmpChartElemTokenMap
 
std::unique_ptr< SvXMLTokenMapmpPlotAreaElemTokenMap
 
std::unique_ptr< SvXMLTokenMapmpSeriesElemTokenMap
 
std::unique_ptr< SvXMLTokenMapmpChartAttrTokenMap
 
std::unique_ptr< SvXMLTokenMapmpPlotAreaAttrTokenMap
 
std::unique_ptr< SvXMLTokenMapmpCellAttrTokenMap
 
std::unique_ptr< SvXMLTokenMapmpSeriesAttrTokenMap
 
std::unique_ptr< SvXMLTokenMapmpPropMappingAttrTokenMap
 
std::unique_ptr< SvXMLTokenMapmpRegEquationAttrTokenMap
 

Additional Inherited Members

- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

With this class you can import a <chart:chart> element containing its data as <table:table> element or without internal table.

In the latter case you have to provide a table address mapper that converts table addresses in XML format to the appropriate application format.

Definition at line 57 of file SchXMLImportHelper.hxx.

Constructor & Destructor Documentation

SchXMLImportHelper::SchXMLImportHelper ( )

Definition at line 81 of file SchXMLImport.cxx.

Member Function Documentation

SvXMLImportContext * SchXMLImportHelper::CreateChartContext ( SvXMLImport rImport,
sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::frame::XModel > &  rChartModel,
const css::uno::Reference< css::xml::sax::XAttributeList > &  rAttrList 
)

get the context for reading the <chart:chart> element with subelements.

The result is stored in the XModel given if it also implements XChartDocument

Definition at line 86 of file SchXMLImport.cxx.

References mxChartDoc, and SAL_WARN.

Referenced by SchXMLBodyContext::CreateChildContext().

void SchXMLImportHelper::DeleteDataSeries ( const css::uno::Reference< css::chart2::XDataSeries > &  xSeries,
const css::uno::Reference< css::chart2::XChartDocument > &  xDoc 
)
static

Definition at line 365 of file SchXMLImport.cxx.

References DBG_UNHANDLED_EXCEPTION.

Referenced by SchXMLSeries2Context::EndElement().

void SchXMLImportHelper::FillAutoStyle ( const OUString &  rAutoStyleName,
const css::uno::Reference< css::beans::XPropertySet > &  rProp 
)
SvXMLStylesContext* SchXMLImportHelper::GetAutoStylesContext ( ) const
inline
const SvXMLTokenMap & SchXMLImportHelper::GetCellAttrTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetChartAttrTokenMap ( )
const css::uno::Reference< css::chart::XChartDocument >& SchXMLImportHelper::GetChartDocument ( ) const
inline
const SvXMLTokenMap & SchXMLImportHelper::GetChartElemTokenMap ( )
static XmlStyleFamily SchXMLImportHelper::GetChartFamilyID ( )
inlinestatic
const SvXMLTokenMap & SchXMLImportHelper::GetDocElemTokenMap ( )
Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries ( const css::uno::Reference< css::chart2::XChartDocument > &  xDoc,
sal_Int32  nCoordinateSystemIndex,
const OUString &  rChartTypeName,
bool  bPushLastChartType 
)
static
Parameters
bPushLastChartTypeIf </sal_False>, in case a new chart type has to be added (because it does not exist yet), it is appended at the end of the chart-type container. When </sal_True>, a new chart type is added at one position before the last one, i.e. the formerly last chart type is pushed back, so that it remains the last one.

This is needed when the global chart type is set to type A, but the first series has type B. Then B should appear before A (done by passing true). Once a series of type A has been read, following new chart types are again be added at the end (by passing false).

Definition at line 403 of file SchXMLImport.cxx.

References DBG_UNHANDLED_EXCEPTION, comphelper::getProcessComponentContext(), and nIndex.

Referenced by SchXMLSeries2Context::StartElement().

const SvXMLTokenMap & SchXMLImportHelper::GetPlotAreaAttrTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetPlotAreaElemTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetPropMappingAttrTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetRegEquationAttrTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetSeriesAttrTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetSeriesElemTokenMap ( )
const SvXMLTokenMap & SchXMLImportHelper::GetTableElemTokenMap ( )
void SchXMLImportHelper::SetAutoStylesContext ( SvXMLStylesContext pAutoStyles)
inline

set the auto-style context that will be used to retrieve auto-styles used inside the following <chart:chart> element to parse

Definition at line 93 of file SchXMLImportHelper.hxx.

Member Data Documentation

SvXMLStylesContext* SchXMLImportHelper::mpAutoStyles
private

Definition at line 61 of file SchXMLImportHelper.hxx.

Referenced by GetAutoStylesContext().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpCellAttrTokenMap
private

Definition at line 71 of file SchXMLImportHelper.hxx.

Referenced by GetCellAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpChartAttrTokenMap
private

Definition at line 69 of file SchXMLImportHelper.hxx.

Referenced by GetChartAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpChartDocElemTokenMap
private

Definition at line 63 of file SchXMLImportHelper.hxx.

Referenced by GetDocElemTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpChartElemTokenMap
private

Definition at line 65 of file SchXMLImportHelper.hxx.

Referenced by GetChartElemTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpPlotAreaAttrTokenMap
private

Definition at line 70 of file SchXMLImportHelper.hxx.

Referenced by GetPlotAreaAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpPlotAreaElemTokenMap
private

Definition at line 66 of file SchXMLImportHelper.hxx.

Referenced by GetPlotAreaElemTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpPropMappingAttrTokenMap
private

Definition at line 73 of file SchXMLImportHelper.hxx.

Referenced by GetPropMappingAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpRegEquationAttrTokenMap
private

Definition at line 74 of file SchXMLImportHelper.hxx.

Referenced by GetRegEquationAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpSeriesAttrTokenMap
private

Definition at line 72 of file SchXMLImportHelper.hxx.

Referenced by GetSeriesAttrTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpSeriesElemTokenMap
private

Definition at line 67 of file SchXMLImportHelper.hxx.

Referenced by GetSeriesElemTokenMap().

std::unique_ptr<SvXMLTokenMap> SchXMLImportHelper::mpTableElemTokenMap
private

Definition at line 64 of file SchXMLImportHelper.hxx.

Referenced by GetTableElemTokenMap().

css::uno::Reference< css::chart::XChartDocument > SchXMLImportHelper::mxChartDoc
private

Definition at line 60 of file SchXMLImportHelper.hxx.

Referenced by CreateChartContext(), and GetChartDocument().


The documentation for this class was generated from the following files: