LibreOffice Module sc (master) 1
|
#include <xmldpimp.hxx>
Classes | |
struct | GrandTotalItem |
Public Member Functions | |
ScXMLDataPilotTableContext (ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList) | |
virtual | ~ScXMLDataPilotTableContext () override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
void | SetGrandTotal (::xmloff::token::XMLTokenEnum eOrientation, bool bVisible, const OUString &rDisplayName) |
void | SetDatabaseName (const OUString &sValue) |
void | SetSourceObject (const OUString &sValue) |
void | SetNative (bool bValue) |
void | SetServiceName (const OUString &sValue) |
void | SetServiceSourceName (const OUString &sValue) |
void | SetServiceSourceObject (const OUString &sValue) |
void | SetServiceUsername (const OUString &sValue) |
void | SetServicePassword (const OUString &sValue) |
void | SetSourceRangeName (const OUString &sValue) |
void | SetSourceCellRangeAddress (const ScRange &aValue) |
void | SetSourceQueryParam (const ScQueryParam &aValue) |
void | AddDimension (ScDPSaveDimension *pDim) |
void | AddGroupDim (const ScDPSaveNumGroupDimension &aNumGroupDim) |
void | AddGroupDim (const ScDPSaveGroupDimension &aGroupDim) |
void | SetButtons (ScDPObject *pDPObject) |
void | SetSelectedPage (const OUString &rDimName, const OUString &rSelected) |
void | SetHasCompactField () |
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 Types | |
typedef std::unordered_map< OUString, OUString > | SelectedPagesType |
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 |
Definition at line 61 of file xmldpimp.hxx.
|
private |
Definition at line 63 of file xmldpimp.hxx.
ScXMLDataPilotTableContext::ScXMLDataPilotTableContext | ( | ScXMLImport & | rImport, |
const rtl::Reference< sax_fastparser::FastAttributeList > & | rAttrList | ||
) |
Definition at line 85 of file xmldpimp.cxx.
References aTargetRangeAddress, bDrillDown, bHeaderGridLayout, bIdentifyCategories, bIgnoreEmptyRows, bShowExpandCollapse, bShowFilter, bTargetRangeAddress, formula::FormulaGrammar::CONV_OOO, ScRangeStringConverter::GetRangeFromString(), IsXMLToken(), maColGrandTotal, maRowGrandTotal, ScXMLDataPilotTableContext::GrandTotalItem::mbVisible, pDoc, sApplicationData, sButtons, sDataPilotTableName, SQL, TABLE, XML_APPLICATION_DATA, XML_BOTH, XML_BUTTONS, XML_COLUMN, XML_DRILL_DOWN_ON_DOUBLE_CLICK, XML_ELEMENT, XML_GRAND_TOTAL, XML_HEADER_GRID_LAYOUT, XML_IDENTIFY_CATEGORIES, XML_IGNORE_EMPTY_ROWS, XML_NAME, XML_ROW, XML_SHOW_DRILL_DOWN_BUTTONS, XML_SHOW_FILTER_BUTTON, XML_TARGET_RANGE_ADDRESS, and XML_TRUE.
|
overridevirtual |
Definition at line 194 of file xmldpimp.cxx.
void ScXMLDataPilotTableContext::AddDimension | ( | ScDPSaveDimension * | pDim | ) |
Definition at line 390 of file xmldpimp.cxx.
References ScDPSaveDimension::GetName(), ScDPSaveDimension::GetOrientation(), ScDPSaveDimension::IsDataLayout(), mnColFieldCount, mnDataFieldCount, mnDataLayoutType, mnPageFieldCount, mnRowFieldCount, pDPSave, and ScDPSaveDimension::SetDupFlag().
Referenced by ScXMLDataPilotFieldContext::endFastElement().
void ScXMLDataPilotTableContext::AddGroupDim | ( | const ScDPSaveGroupDimension & | aGroupDim | ) |
Definition at line 434 of file xmldpimp.cxx.
References pDPDimSaveData.
void ScXMLDataPilotTableContext::AddGroupDim | ( | const ScDPSaveNumGroupDimension & | aNumGroupDim | ) |
Definition at line 427 of file xmldpimp.cxx.
References pDPDimSaveData.
Referenced by ScXMLDataPilotFieldContext::endFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 198 of file xmldpimp.cxx.
References sax_fastparser::castToFastAttributeList(), CELLRANGE, ScXMLImportContext::GetScImport(), nSourceType, QUERY, SERVICE, SQL, TABLE, XML_DATA_PILOT_FIELD, XML_DATA_PILOT_GRAND_TOTAL, XML_DATABASE_SOURCE_QUERY, XML_DATABASE_SOURCE_SQL, XML_DATABASE_SOURCE_TABLE, XML_ELEMENT, XML_SOURCE_CELL_RANGE, and XML_SOURCE_SERVICE.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 441 of file xmldpimp.cxx.
References ScImportSourceDesc::aDBName, ScImportSourceDesc::aObject, sc::PivotTableSources::appendDBSource(), sc::PivotTableSources::appendSelectedPages(), sc::PivotTableSources::appendServiceSource(), sc::PivotTableSources::appendSheetSource(), aSourceCellRangeAddress, aSourceQueryParam, aTargetRangeAddress, bDrillDown, bHeaderGridLayout, bIdentifyCategories, bIgnoreEmptyRows, bIsNative, ScImportSourceDesc::bNative, bShowExpandCollapse, bShowFilter, bSourceCellRange, bTargetRangeAddress, CELLRANGE, ScDPCollection::GetByName(), ScDocument::GetDPCollection(), ScXMLImport::GetPivotTableSources(), ScXMLImportContext::GetScImport(), ScDPCollection::InsertNewTable(), maColGrandTotal, ScXMLDataPilotTableContext::GrandTotalItem::maDisplayName, maRowGrandTotal, maSelectedPages, ScXMLDataPilotTableContext::GrandTotalItem::mbVisible, nSourceType, ScImportSourceDesc::nType, pDoc, pDPDimSaveData, pDPSave, QUERY, sApplicationData, sDatabaseName, sDataPilotTableName, SERVICE, SetButtons(), ScSheetSourceDesc::SetQueryParam(), ScSheetSourceDesc::SetRangeName(), ScSheetSourceDesc::SetSourceRange(), SQL, sServiceName, sServicePassword, sServiceSourceName, sServiceSourceObject, sServiceUsername, sSourceObject, sSourceRangeName, and TABLE.
void ScXMLDataPilotTableContext::SetButtons | ( | ScDPObject * | pDPObject | ) |
Definition at line 314 of file xmldpimp.cxx.
References ScDocument::ApplyFlagsTab(), aTargetRangeAddress, bHasCompactField, bHeaderGridLayout, bShowFilter, Button, ButtonPopup, ButtonPopup2, ScAddress::Col(), formula::FormulaGrammar::CONV_OOO, ScRangeStringConverter::GetAddressFromString(), ScDPOutputGeometry::getFieldButtonType(), ScDPSaveDimension::GetOrientation(), ScRangeStringConverter::GetTokenByOffset(), ScDPSaveDimension::HasInvisibleMember(), HiddenMember, ScDPSaveDimension::IsDataLayout(), mnColFieldCount, mnDataFieldCount, mnDataLayoutType, mnPageFieldCount, mnRowFieldCount, pDoc, pDPSave, ScDPObject::RefreshAfterLoad(), ScAddress::Row(), sButtons, ScDPOutputGeometry::setColumnFieldCount(), ScDPOutputGeometry::setDataFieldCount(), ScDPOutputGeometry::setDataLayoutType(), ScDPOutputGeometry::setHeaderLayout(), ScDPOutputGeometry::setPageFieldCount(), ScDPOutputGeometry::setRowFieldCount(), and ScAddress::Tab().
Referenced by endFastElement().
|
inline |
Definition at line 123 of file xmldpimp.hxx.
References sDatabaseName.
Referenced by ScXMLDPSourceQueryContext::ScXMLDPSourceQueryContext(), ScXMLDPSourceSQLContext::ScXMLDPSourceSQLContext(), and ScXMLDPSourceTableContext::ScXMLDPSourceTableContext().
void ScXMLDataPilotTableContext::SetGrandTotal | ( | ::xmloff::token::XMLTokenEnum | eOrientation, |
bool | bVisible, | ||
const OUString & | rDisplayName | ||
) |
Definition at line 538 of file xmldpimp.cxx.
References bVisible, maColGrandTotal, ScXMLDataPilotTableContext::GrandTotalItem::maDisplayName, maRowGrandTotal, ScXMLDataPilotTableContext::GrandTotalItem::mbVisible, XML_BOTH, XML_COLUMN, and XML_ROW.
Referenced by ScXMLDataPilotGrandTotalContext::endFastElement().
|
inline |
Definition at line 139 of file xmldpimp.hxx.
References bHasCompactField.
Referenced by ScXMLDataPilotFieldContext::SetLayoutInfo().
|
inline |
Definition at line 125 of file xmldpimp.hxx.
References bIsNative.
Referenced by ScXMLDPSourceSQLContext::ScXMLDPSourceSQLContext().
void ScXMLDataPilotTableContext::SetSelectedPage | ( | const OUString & | rDimName, |
const OUString & | rSelected | ||
) |
Definition at line 385 of file xmldpimp.cxx.
References maSelectedPages.
Referenced by ScXMLDataPilotFieldContext::endFastElement().
|
inline |
Definition at line 126 of file xmldpimp.hxx.
References sServiceName.
Referenced by ScXMLSourceServiceContext::ScXMLSourceServiceContext().
|
inline |
Definition at line 130 of file xmldpimp.hxx.
References sServicePassword.
Referenced by ScXMLSourceServiceContext::ScXMLSourceServiceContext().
|
inline |
Definition at line 127 of file xmldpimp.hxx.
References sServiceSourceName.
Referenced by ScXMLSourceServiceContext::ScXMLSourceServiceContext().
|
inline |
Definition at line 128 of file xmldpimp.hxx.
References sServiceSourceObject.
Referenced by ScXMLSourceServiceContext::ScXMLSourceServiceContext().
|
inline |
Definition at line 129 of file xmldpimp.hxx.
References sServiceUsername.
Referenced by ScXMLSourceServiceContext::ScXMLSourceServiceContext().
|
inline |
Definition at line 132 of file xmldpimp.hxx.
References aSourceCellRangeAddress, and bSourceCellRange.
Referenced by ScXMLSourceCellRangeContext::ScXMLSourceCellRangeContext().
|
inline |
Definition at line 124 of file xmldpimp.hxx.
References sSourceObject.
Referenced by ScXMLDPSourceQueryContext::ScXMLDPSourceQueryContext(), ScXMLDPSourceSQLContext::ScXMLDPSourceSQLContext(), and ScXMLDPSourceTableContext::ScXMLDPSourceTableContext().
|
inline |
Definition at line 133 of file xmldpimp.hxx.
References aSourceQueryParam.
Referenced by ScXMLDPFilterContext::endFastElement().
|
inline |
Definition at line 131 of file xmldpimp.hxx.
References bSourceCellRange, and sSourceRangeName.
Referenced by ScXMLSourceCellRangeContext::ScXMLSourceCellRangeContext().
|
private |
Definition at line 87 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetSourceCellRangeAddress().
|
private |
Definition at line 89 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetSourceQueryParam().
|
private |
Definition at line 88 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetButtons().
|
private |
Definition at line 103 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 106 of file xmldpimp.hxx.
Referenced by SetButtons(), and SetHasCompactField().
|
private |
Definition at line 105 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetButtons().
|
private |
Definition at line 99 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 98 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 97 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetNative().
|
private |
Definition at line 104 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 102 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetButtons().
|
private |
Definition at line 101 of file xmldpimp.hxx.
Referenced by endFastElement(), SetSourceCellRangeAddress(), and SetSourceRangeName().
|
private |
Definition at line 100 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 75 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetGrandTotal().
|
private |
Definition at line 74 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetGrandTotal().
|
private |
Definition at line 108 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetSelectedPage().
|
private |
Definition at line 92 of file xmldpimp.hxx.
Referenced by AddDimension(), and SetButtons().
|
private |
Definition at line 94 of file xmldpimp.hxx.
Referenced by AddDimension(), and SetButtons().
|
private |
Definition at line 96 of file xmldpimp.hxx.
Referenced by AddDimension(), and SetButtons().
|
private |
Definition at line 93 of file xmldpimp.hxx.
Referenced by AddDimension(), and SetButtons().
|
private |
Definition at line 91 of file xmldpimp.hxx.
Referenced by AddDimension(), and SetButtons().
|
private |
Definition at line 90 of file xmldpimp.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 71 of file xmldpimp.hxx.
Referenced by endFastElement(), ScXMLDataPilotTableContext(), and SetButtons().
|
private |
Definition at line 73 of file xmldpimp.hxx.
Referenced by AddGroupDim(), and endFastElement().
|
private |
Definition at line 72 of file xmldpimp.hxx.
Referenced by AddDimension(), endFastElement(), and SetButtons().
|
private |
Definition at line 77 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 85 of file xmldpimp.hxx.
Referenced by ScXMLDataPilotTableContext(), and SetButtons().
|
private |
Definition at line 78 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetDatabaseName().
|
private |
Definition at line 76 of file xmldpimp.hxx.
Referenced by endFastElement(), and ScXMLDataPilotTableContext().
|
private |
Definition at line 80 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetServiceName().
|
private |
Definition at line 84 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetServicePassword().
|
private |
Definition at line 81 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetServiceSourceName().
|
private |
Definition at line 82 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetServiceSourceObject().
|
private |
Definition at line 83 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetServiceUsername().
|
private |
Definition at line 79 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetSourceObject().
|
private |
Definition at line 86 of file xmldpimp.hxx.
Referenced by endFastElement(), and SetSourceRangeName().