LibreOffice Module sc (master) 1
|
Handle the import of sparkline groups and sparklines. More...
#include <SparklineGroupsImportContext.hxx>
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::SparklineGroup > | m_pCurrentSparklineGroup |
std::vector< SparklineImportData > | m_aCurrentSparklineDataList |
Additional Inherited Members | |
Protected Member Functions inherited from ScXMLImportContext | |
ScXMLImport & | GetScImport () |
const ScXMLImport & | GetScImport () const |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Handle the import of sparkline groups and sparklines.
Definition at line 35 of file SparklineGroupsImportContext.hxx.
sc::SparklineGroupsImportContext::SparklineGroupsImportContext | ( | ScXMLImport & | rImport | ) |
Definition at line 28 of file SparklineGroupsImportContext.cxx.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 275 of file SparklineGroupsImportContext.cxx.
References fillSparklineAttributes(), fillSparklineGroupAttributes(), fillSparklineGroupID(), m_aCurrentSparklineDataList, m_pCurrentSparklineGroup, XML_ELEMENT, XML_SPARKLINE, XML_SPARKLINE_GROUP, and XML_SPARKLINES.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 317 of file SparklineGroupsImportContext.cxx.
References insertSparklines(), m_aCurrentSparklineDataList, m_pCurrentSparklineGroup, XML_ELEMENT, and XML_SPARKLINE_GROUP.
|
private |
Definition at line 244 of file SparklineGroupsImportContext.cxx.
References sax_fastparser::castToFastAttributeList(), formula::FormulaGrammar::CONV_OOO, ScRangeStringConverter::GetAddressFromString(), ScXMLImport::GetDocument(), ScRangeStringConverter::GetRangeListFromString(), ScXMLImportContext::GetScImport(), sc::SparklineImportData::m_aAddress, sc::SparklineImportData::m_aDataRangeList, XML_CELL_ADDRESS, XML_DATA_RANGE, and XML_ELEMENT.
Referenced by createFastChildContext().
|
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().
|
private |
Definition at line 64 of file SparklineGroupsImportContext.cxx.
References sax_fastparser::castToFastAttributeList(), m_pCurrentSparklineGroup, XML_ELEMENT, and XML_ID.
Referenced by createFastChildContext().
|
private |
Definition at line 306 of file SparklineGroupsImportContext.cxx.
References ScDocument::CreateSparkline(), ScXMLImport::GetDocument(), ScXMLImportContext::GetScImport(), m_aCurrentSparklineDataList, m_pCurrentSparklineGroup, and sc::Sparkline::setInputRange().
Referenced by endFastElement().
|
private |
Definition at line 39 of file SparklineGroupsImportContext.hxx.
Referenced by createFastChildContext(), endFastElement(), and insertSparklines().
|
private |
Definition at line 38 of file SparklineGroupsImportContext.hxx.
Referenced by createFastChildContext(), endFastElement(), fillSparklineGroupAttributes(), fillSparklineGroupID(), and insertSparklines().