LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::SparklineGroupsImportContext Class Reference

Handle the import of sparkline groups and sparklines. More...

#include <SparklineGroupsImportContext.hxx>

Inheritance diagram for sc::SparklineGroupsImportContext:
[legend]
Collaboration diagram for sc::SparklineGroupsImportContext:
[legend]

Public Member Functions

 SparklineGroupsImportContext (ScXMLImport &rImport)
 
css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList) override
 
void SAL_CALL endFastElement (sal_Int32 nElement) override
 
- Public Member Functions inherited from ScXMLImportContext
 ScXMLImportContext (SvXMLImport &rImport)
 
- Public Member Functions inherited from SvXMLImportContext
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 
virtual void SAL_CALL startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endFastElement (sal_Int32 Element) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) override
 
virtual css::uno::Reference< XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () noexcept final override
 
virtual void SAL_CALL release () noexcept final override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () final override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () final override
 

Private Member Functions

void fillSparklineGroupID (css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList)
 
void fillSparklineGroupAttributes (css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList)
 
void fillSparklineAttributes (SparklineImportData &rImportData, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList)
 
void insertSparklines ()
 

Private Attributes

std::shared_ptr< sc::SparklineGroupm_pCurrentSparklineGroup
 
std::vector< SparklineImportDatam_aCurrentSparklineDataList
 

Additional Inherited Members

- Protected Member Functions inherited from ScXMLImportContext
ScXMLImportGetScImport ()
 
const ScXMLImportGetScImport () const
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Handle the import of sparkline groups and sparklines.

Definition at line 35 of file SparklineGroupsImportContext.hxx.

Constructor & Destructor Documentation

◆ SparklineGroupsImportContext()

sc::SparklineGroupsImportContext::SparklineGroupsImportContext ( ScXMLImport rImport)

Definition at line 28 of file SparklineGroupsImportContext.cxx.

Member Function Documentation

◆ createFastChildContext()

uno::Reference< xml::sax::XFastContextHandler > SAL_CALL sc::SparklineGroupsImportContext::createFastChildContext ( sal_Int32  nElement,
css::uno::Reference< css::xml::sax::XFastAttributeList > const &  xAttrList 
)
overridevirtual

◆ endFastElement()

void SAL_CALL sc::SparklineGroupsImportContext::endFastElement ( sal_Int32  nElement)
overridevirtual

◆ fillSparklineAttributes()

void sc::SparklineGroupsImportContext::fillSparklineAttributes ( SparklineImportData rImportData,
css::uno::Reference< css::xml::sax::XFastAttributeList > const &  xAttrList 
)
private

◆ fillSparklineGroupAttributes()

void sc::SparklineGroupsImportContext::fillSparklineGroupAttributes ( css::uno::Reference< css::xml::sax::XFastAttributeList > const &  xAttrList)
private

Definition at line 81 of file SparklineGroupsImportContext.cxx.

References sax_fastparser::castToFastAttributeList(), sax::Converter::convertColor(), sax::Converter::convertDouble(), sax::Converter::GetUnitFromString(), m_pCurrentSparklineGroup, sc::SparklineAttributes::setColorAxis(), sc::SparklineAttributes::setColorFirst(), sc::SparklineAttributes::setColorHigh(), sc::SparklineAttributes::setColorLast(), sc::SparklineAttributes::setColorLow(), sc::SparklineAttributes::setColorMarkers(), sc::SparklineAttributes::setColorNegative(), sc::SparklineAttributes::setColorSeries(), sc::SparklineAttributes::setDateAxis(), sc::SparklineAttributes::setDisplayEmptyCellsAs(), sc::SparklineAttributes::setDisplayHidden(), sc::SparklineAttributes::setDisplayXAxis(), sc::SparklineAttributes::setFirst(), sc::SparklineAttributes::setHigh(), sc::SparklineAttributes::setLast(), sc::SparklineAttributes::setLineWeight(), sc::SparklineAttributes::setLow(), sc::SparklineAttributes::setManualMax(), sc::SparklineAttributes::setManualMin(), sc::SparklineAttributes::setMarkers(), sc::SparklineAttributes::setMaxAxisType(), sc::SparklineAttributes::setMinAxisType(), sc::SparklineAttributes::setNegative(), sc::SparklineAttributes::setRightToLeft(), sc::SparklineAttributes::setType(), XML_COLOR_AXIS, XML_COLOR_FIRST, XML_COLOR_HIGH, XML_COLOR_LAST, XML_COLOR_LOW, XML_COLOR_MARKERS, XML_COLOR_NEGATIVE, XML_COLOR_SERIES, XML_DATE_AXIS, XML_DISPLAY_EMPTY_CELLS_AS, XML_DISPLAY_HIDDEN, XML_DISPLAY_X_AXIS, XML_ELEMENT, XML_FIRST, XML_HIGH, XML_LAST, XML_LINE_WIDTH, XML_LOW, XML_MANUAL_MAX, XML_MANUAL_MIN, XML_MARKERS, XML_MAX_AXIS_TYPE, XML_MIN_AXIS_TYPE, XML_NEGATIVE, XML_RIGHT_TO_LEFT, and XML_TYPE.

Referenced by createFastChildContext().

◆ fillSparklineGroupID()

void sc::SparklineGroupsImportContext::fillSparklineGroupID ( css::uno::Reference< css::xml::sax::XFastAttributeList > const &  xAttrList)
private

◆ insertSparklines()

void sc::SparklineGroupsImportContext::insertSparklines ( )
private

Member Data Documentation

◆ m_aCurrentSparklineDataList

std::vector<SparklineImportData> sc::SparklineGroupsImportContext::m_aCurrentSparklineDataList
private

◆ m_pCurrentSparklineGroup

std::shared_ptr<sc::SparklineGroup> sc::SparklineGroupsImportContext::m_pCurrentSparklineGroup
private

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