LibreOffice Module sc (master) 1
|
#include <xmldrani.hxx>
Public Member Functions | |
ScXMLDatabaseRangeContext (ScXMLImport &rImport, const rtl::Reference< sax_fastparser::FastAttributeList > &rAttrList) | |
virtual | ~ScXMLDatabaseRangeContext () 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 | SetDatabaseName (const OUString &sTempDatabaseName) |
void | SetConnectionResource (const OUString &sTempConRes) |
void | SetSourceObject (const OUString &sTempSourceObject) |
void | SetSourceType (const css::sheet::DataImportMode nTempSourceType) |
void | SetNative (const bool bTempNative) |
void | SetSubTotalsBindFormatsToContent (const bool bTemp) |
void | SetSubTotalsIsCaseSensitive (const bool bTemp) |
void | SetSubTotalsInsertPageBreaks (const bool bTemp) |
void | SetSubTotalsEnabledUserList (const bool bTemp) |
void | SetSubTotalsUserListIndex (const sal_Int16 nTemp) |
void | SetSubTotalsAscending (const bool bTemp) |
void | SetSubTotalsSortGroups (const bool bTemp) |
void | AddSubTotalRule (const ScSubTotalRule &rRule) |
void | SetSortSequence (const css::uno::Sequence< css::beans::PropertyValue > &aTempSortSequence) |
void | SetFilterConditionSourceRangeAddress (const ScRange &aRange) |
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 | |
std::unique_ptr< ScDBData > | ConvertToDBData (const OUString &rName) |
Private Attributes | |
std::unique_ptr< ScQueryParam > | mpQueryParam |
ScRange | maRange |
OUString | sDatabaseRangeName |
OUString | sConnectionResource |
OUString | sDatabaseName |
OUString | sSourceObject |
css::uno::Sequence< css::beans::PropertyValue > | aSortSequence |
std::vector< ScSubTotalRule > | aSubTotalRules |
ScRange | aFilterConditionSourceRangeAddress |
css::sheet::DataImportMode | nSourceType |
sal_Int32 | nRefresh |
sal_Int16 | nSubTotalsUserListIndex |
bool | mbValidRange |
bool | bContainsSort |
bool | bContainsSubTotal |
bool | bNative |
bool | bIsSelection |
bool | bKeepFormats |
bool | bMoveCells |
bool | bStripData |
bool | bAutoFilter |
bool | bSubTotalsBindFormatsToContent |
bool | bSubTotalsIsCaseSensitive |
bool | bSubTotalsInsertPageBreaks |
bool | bSubTotalsSortGroups |
bool | bSubTotalsEnabledUserList |
bool | bSubTotalsAscending |
bool | bFilterConditionSourceRange |
bool | bHasHeader |
bool | bByRow |
ScDBCollection::RangeType | meRangeType |
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 53 of file xmldrani.hxx.
ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext | ( | ScXMLImport & | rImport, |
const rtl::Reference< sax_fastparser::FastAttributeList > & | rAttrList | ||
) |
Definition at line 82 of file xmldrani.cxx.
References ScRange::aEnd, ScRange::aStart, bAutoFilter, bByRow, bHasHeader, bIsSelection, bKeepFormats, bMoveCells, bStripData, ScAddress::Col(), formula::FormulaGrammar::CONV_OOO, sax::Converter::convertDuration(), ScXMLImport::GetDocument(), ScRangeStringConverter::GetRangeFromString(), ScXMLImportContext::GetScImport(), ScDBCollection::GlobalAnonymous, IsXMLToken(), maRange, mbValidRange, meRangeType, mpQueryParam, nRefresh, ScAddress::Row(), sDatabaseRangeName, ScDBCollection::SheetAnonymous, STR_DB_GLOBAL_NONAME, STR_DB_LOCAL_NONAME, ScAddress::Tab(), TABLE, XML_COLUMN, XML_CONTAINS_HEADER, XML_DISPLAY_FILTER_BUTTONS, XML_ELEMENT, XML_HAS_PERSISTENT_DATA, XML_IS_SELECTION, XML_NAME, XML_ON_UPDATE_KEEP_SIZE, XML_ON_UPDATE_KEEP_STYLES, XML_ORIENTATION, XML_REFRESH_DELAY, XML_TARGET_RANGE_ADDRESS, and XML_TRUE.
|
overridevirtual |
Definition at line 191 of file xmldrani.cxx.
|
inline |
Definition at line 113 of file xmldrani.hxx.
References aSubTotalRules.
Referenced by ScXMLSubTotalRuleContext::endFastElement().
|
private |
Definition at line 242 of file xmldrani.cxx.
References ScImportParam::aDBName, ScRange::aEnd, aFilterConditionSourceRangeAddress, aSortSequence, ScRange::aStart, ScImportParam::aStatement, aSubTotalRules, ScSubTotalParam::bAscending, bAutoFilter, ScSortParam::bByRow, bByRow, ScSubTotalParam::bCaseSens, bContainsSort, bContainsSubTotal, ScSubTotalParam::bDoSort, bFilterConditionSourceRange, ScSubTotalParam::bGroupActive, bHasHeader, ScImportParam::bImport, ScSubTotalParam::bIncludePattern, bKeepFormats, bMoveCells, ScImportParam::bNative, bNative, ScSubTotalParam::bPagebreak, ScImportParam::bSql, bStripData, bSubTotalsAscending, bSubTotalsBindFormatsToContent, bSubTotalsEnabledUserList, bSubTotalsInsertPageBreaks, bSubTotalsIsCaseSensitive, bSubTotalsSortGroups, ScSubTotalParam::bUserDef, ScAddress::Col(), ScSortDescriptor::FillSortParam(), Function, ScDocument::GetDBCollection(), ScXMLImport::GetDocument(), ScDBCollection::GetRefreshHandler(), ScDocument::GetRefreshTimerControlAddress(), ScXMLImportContext::GetScImport(), ScSortParam::GetSortKeyCount(), i, ScSortParam::maKeyState, maRange, MAXSUBTOTAL, mbValidRange, mpQueryParam, nCount, ScSubTotalParam::nField, nPos, nRefresh, nSourceType, ScSubTotalParam::nSubTotals, nSubTotalsUserListIndex, ScImportParam::nType, ScSubTotalParam::nUserIndex, pData, ScSubTotalParam::pFunctions, ScDocument::PrepareQuery(), ScSubTotalParam::pSubTotals, ScAddress::Row(), SC_UNONAME_ORIENT, ScDbQuery, ScDbTable, sConnectionResource, sDatabaseName, sSourceObject, ScAddress::Tab(), and ScDPUtil::toSubTotalFunc().
Referenced by endFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 195 of file xmldrani.cxx.
References bContainsSort, bContainsSubTotal, sax_fastparser::castToFastAttributeList(), ScXMLImportContext::GetScImport(), mpQueryParam, TABLE, XML_DATABASE_SOURCE_QUERY, XML_DATABASE_SOURCE_SQL, XML_DATABASE_SOURCE_TABLE, XML_ELEMENT, XML_FILTER, XML_SORT, and XML_SUBTOTAL_RULES.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 396 of file xmldrani.cxx.
References ScRange::aStart, ConvertToDBData(), ScDBCollection::getAnonDBs(), ScDocument::GetDBCollection(), ScXMLImport::GetDocument(), ScDBCollection::getNamedDBs(), ScXMLImportContext::GetScImport(), ScDBCollection::GlobalAnonymous, ScDBCollection::GlobalNamed, ScDBCollection::AnonDBs::insert(), ScDBCollection::NamedDBs::insert(), meRangeType, pData, sDatabaseRangeName, ScDocument::SetAnonymousDBData(), ScDBCollection::SheetAnonymous, STR_DB_GLOBAL_NONAME, STR_DB_LOCAL_NONAME, and ScAddress::Tab().
|
inline |
Definition at line 102 of file xmldrani.hxx.
References sConnectionResource.
Referenced by ScXMLConResContext::ScXMLConResContext().
|
inline |
Definition at line 101 of file xmldrani.hxx.
References sDatabaseName.
Referenced by ScXMLSourceSQLContext::endFastElement(), ScXMLSourceTableContext::endFastElement(), and ScXMLSourceQueryContext::endFastElement().
|
inline |
Definition at line 115 of file xmldrani.hxx.
References aFilterConditionSourceRangeAddress, and bFilterConditionSourceRange.
Referenced by ScXMLFilterContext::endFastElement().
|
inline |
Definition at line 105 of file xmldrani.hxx.
References bNative.
Referenced by ScXMLSourceSQLContext::ScXMLSourceSQLContext().
|
inline |
Definition at line 114 of file xmldrani.hxx.
References aSortSequence.
Referenced by ScXMLSortContext::endFastElement().
|
inline |
Definition at line 103 of file xmldrani.hxx.
References sSourceObject.
Referenced by ScXMLSourceQueryContext::ScXMLSourceQueryContext(), ScXMLSourceSQLContext::ScXMLSourceSQLContext(), and ScXMLSourceTableContext::ScXMLSourceTableContext().
|
inline |
Definition at line 104 of file xmldrani.hxx.
References nSourceType.
Referenced by ScXMLSourceQueryContext::ScXMLSourceQueryContext(), ScXMLSourceSQLContext::ScXMLSourceSQLContext(), and ScXMLSourceTableContext::ScXMLSourceTableContext().
|
inline |
Definition at line 111 of file xmldrani.hxx.
References bSubTotalsAscending.
Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().
|
inline |
Definition at line 106 of file xmldrani.hxx.
References bSubTotalsBindFormatsToContent.
Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().
|
inline |
Definition at line 109 of file xmldrani.hxx.
References bSubTotalsEnabledUserList.
Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().
|
inline |
Definition at line 108 of file xmldrani.hxx.
References bSubTotalsInsertPageBreaks.
Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().
|
inline |
Definition at line 107 of file xmldrani.hxx.
References bSubTotalsIsCaseSensitive.
Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().
|
inline |
Definition at line 112 of file xmldrani.hxx.
References bSubTotalsSortGroups.
Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().
|
inline |
Definition at line 110 of file xmldrani.hxx.
References nSubTotalsUserListIndex.
Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().
|
private |
Definition at line 63 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetFilterConditionSourceRangeAddress().
|
private |
Definition at line 61 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSortSequence().
|
private |
Definition at line 62 of file xmldrani.hxx.
Referenced by AddSubTotalRule(), and ConvertToDBData().
|
private |
Definition at line 75 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 84 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 68 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and createFastChildContext().
|
private |
Definition at line 69 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and createFastChildContext().
|
private |
Definition at line 82 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetFilterConditionSourceRangeAddress().
|
private |
Definition at line 83 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 71 of file xmldrani.hxx.
Referenced by ScXMLDatabaseRangeContext().
|
private |
Definition at line 72 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 73 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 70 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetNative().
|
private |
Definition at line 74 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 81 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsAscending().
|
private |
Definition at line 76 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsBindFormatsToContent().
|
private |
Definition at line 80 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsEnabledUserList().
|
private |
Definition at line 78 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsInsertPageBreaks().
|
private |
Definition at line 77 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsIsCaseSensitive().
|
private |
Definition at line 79 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsSortGroups().
|
private |
Definition at line 56 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 67 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 85 of file xmldrani.hxx.
Referenced by endFastElement(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 55 of file xmldrani.hxx.
Referenced by ConvertToDBData(), createFastChildContext(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 65 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 64 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSourceType().
|
private |
Definition at line 66 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSubTotalsUserListIndex().
|
private |
Definition at line 58 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetConnectionResource().
|
private |
Definition at line 59 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetDatabaseName().
|
private |
Definition at line 57 of file xmldrani.hxx.
Referenced by endFastElement(), and ScXMLDatabaseRangeContext().
|
private |
Definition at line 60 of file xmldrani.hxx.
Referenced by ConvertToDBData(), and SetSourceObject().