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

#include <xmldrani.hxx>

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

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 (ScXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName)
 
 ScXMLImportContext (SvXMLImport &rImport)
 
virtual void SAL_CALL startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 
virtual void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList)
 
virtual void EndElement ()
 
virtual void Characters (const OUString &rChars)
 
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 endUnknownElement (const OUString &Namespace, const OUString &Name) 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 css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override
 
virtual void SAL_CALL release () 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< ScDBDataConvertToDBData (const OUString &rName)
 

Private Attributes

std::unique_ptr< ScQueryParammpQueryParam
 
ScRange maRange
 
OUString sDatabaseRangeName
 
OUString sConnectionResource
 
OUString sDatabaseName
 
OUString sSourceObject
 
css::uno::Sequence< css::beans::PropertyValue > aSortSequence
 
std::vector< ScSubTotalRuleaSubTotalRules
 
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
ScXMLImportGetScImport ()
 
const ScXMLImportGetScImport () const
 
- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 54 of file xmldrani.hxx.

Constructor & Destructor Documentation

ScXMLDatabaseRangeContext::ScXMLDatabaseRangeContext ( ScXMLImport rImport,
const rtl::Reference< sax_fastparser::FastAttributeList > &  rAttrList 
)
ScXMLDatabaseRangeContext::~ScXMLDatabaseRangeContext ( )
overridevirtual

Definition at line 191 of file xmldrani.cxx.

Member Function Documentation

void ScXMLDatabaseRangeContext::AddSubTotalRule ( const ScSubTotalRule rRule)
inline

Definition at line 114 of file xmldrani.hxx.

Referenced by ScXMLSubTotalRuleContext::endFastElement().

std::unique_ptr< ScDBData > ScXMLDatabaseRangeContext::ConvertToDBData ( const OUString &  rName)
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, bNative, ScImportParam::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, nColCount, nCount, ScSubTotalParam::nField, nPos, nRefresh, nSourceType, ScSubTotalParam::nSubTotals, nSubTotalsUserListIndex, ScImportParam::nType, ScSubTotalParam::nUserIndex, pData, ScSubTotalParam::pFunctions, ScSubTotalParam::pSubTotals, ScAddress::Row(), SC_UNONAME_ORIENT, ScDbQuery, ScDbTable, sConnectionResource, sDatabaseName, sSourceObject, ScAddress::Tab(), and ScDPUtil::toSubTotalFunc().

Referenced by endFastElement().

uno::Reference< xml::sax::XFastContextHandler > SAL_CALL ScXMLDatabaseRangeContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overridevirtual
void SAL_CALL ScXMLDatabaseRangeContext::endFastElement ( sal_Int32  nElement)
overridevirtual
void ScXMLDatabaseRangeContext::SetConnectionResource ( const OUString &  sTempConRes)
inline

Definition at line 103 of file xmldrani.hxx.

Referenced by ScXMLConResContext::ScXMLConResContext().

void ScXMLDatabaseRangeContext::SetDatabaseName ( const OUString &  sTempDatabaseName)
inline
void ScXMLDatabaseRangeContext::SetFilterConditionSourceRangeAddress ( const ScRange aRange)
inline

Definition at line 116 of file xmldrani.hxx.

Referenced by ScXMLFilterContext::endFastElement().

void ScXMLDatabaseRangeContext::SetNative ( const bool  bTempNative)
inline

Definition at line 106 of file xmldrani.hxx.

Referenced by ScXMLSourceSQLContext::ScXMLSourceSQLContext().

void ScXMLDatabaseRangeContext::SetSortSequence ( const css::uno::Sequence< css::beans::PropertyValue > &  aTempSortSequence)
inline

Definition at line 115 of file xmldrani.hxx.

Referenced by ScXMLSortContext::endFastElement().

void ScXMLDatabaseRangeContext::SetSourceObject ( const OUString &  sTempSourceObject)
inline
void ScXMLDatabaseRangeContext::SetSourceType ( const css::sheet::DataImportMode  nTempSourceType)
inline
void ScXMLDatabaseRangeContext::SetSubTotalsAscending ( const bool  bTemp)
inline

Definition at line 112 of file xmldrani.hxx.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

void ScXMLDatabaseRangeContext::SetSubTotalsBindFormatsToContent ( const bool  bTemp)
inline

Definition at line 107 of file xmldrani.hxx.

Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().

void ScXMLDatabaseRangeContext::SetSubTotalsEnabledUserList ( const bool  bTemp)
inline

Definition at line 110 of file xmldrani.hxx.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

void ScXMLDatabaseRangeContext::SetSubTotalsInsertPageBreaks ( const bool  bTemp)
inline

Definition at line 109 of file xmldrani.hxx.

Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().

void ScXMLDatabaseRangeContext::SetSubTotalsIsCaseSensitive ( const bool  bTemp)
inline

Definition at line 108 of file xmldrani.hxx.

Referenced by ScXMLSubTotalRulesContext::ScXMLSubTotalRulesContext().

void ScXMLDatabaseRangeContext::SetSubTotalsSortGroups ( const bool  bTemp)
inline

Definition at line 113 of file xmldrani.hxx.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

void ScXMLDatabaseRangeContext::SetSubTotalsUserListIndex ( const sal_Int16  nTemp)
inline

Definition at line 111 of file xmldrani.hxx.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

Member Data Documentation

ScRange ScXMLDatabaseRangeContext::aFilterConditionSourceRangeAddress
private

Definition at line 64 of file xmldrani.hxx.

Referenced by ConvertToDBData().

css::uno::Sequence<css::beans::PropertyValue> ScXMLDatabaseRangeContext::aSortSequence
private

Definition at line 62 of file xmldrani.hxx.

Referenced by ConvertToDBData().

std::vector< ScSubTotalRule > ScXMLDatabaseRangeContext::aSubTotalRules
private

Definition at line 63 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bAutoFilter
private

Definition at line 76 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bByRow
private

Definition at line 85 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bContainsSort
private

Definition at line 69 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and createFastChildContext().

bool ScXMLDatabaseRangeContext::bContainsSubTotal
private

Definition at line 70 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and createFastChildContext().

bool ScXMLDatabaseRangeContext::bFilterConditionSourceRange
private

Definition at line 83 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bHasHeader
private

Definition at line 84 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bIsSelection
private

Definition at line 72 of file xmldrani.hxx.

Referenced by ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bKeepFormats
private

Definition at line 73 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bMoveCells
private

Definition at line 74 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bNative
private

Definition at line 71 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bStripData
private

Definition at line 75 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::bSubTotalsAscending
private

Definition at line 82 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bSubTotalsBindFormatsToContent
private

Definition at line 77 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bSubTotalsEnabledUserList
private

Definition at line 81 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bSubTotalsInsertPageBreaks
private

Definition at line 79 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bSubTotalsIsCaseSensitive
private

Definition at line 78 of file xmldrani.hxx.

Referenced by ConvertToDBData().

bool ScXMLDatabaseRangeContext::bSubTotalsSortGroups
private

Definition at line 80 of file xmldrani.hxx.

Referenced by ConvertToDBData().

ScRange ScXMLDatabaseRangeContext::maRange
private

Definition at line 57 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

bool ScXMLDatabaseRangeContext::mbValidRange
private

Definition at line 68 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

ScDBCollection::RangeType ScXMLDatabaseRangeContext::meRangeType
private

Definition at line 86 of file xmldrani.hxx.

Referenced by endFastElement(), and ScXMLDatabaseRangeContext().

std::unique_ptr<ScQueryParam> ScXMLDatabaseRangeContext::mpQueryParam
private

Definition at line 56 of file xmldrani.hxx.

Referenced by ConvertToDBData(), createFastChildContext(), and ScXMLDatabaseRangeContext().

sal_Int32 ScXMLDatabaseRangeContext::nRefresh
private

Definition at line 66 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

css::sheet::DataImportMode ScXMLDatabaseRangeContext::nSourceType
private

Definition at line 65 of file xmldrani.hxx.

Referenced by ConvertToDBData().

sal_Int16 ScXMLDatabaseRangeContext::nSubTotalsUserListIndex
private

Definition at line 67 of file xmldrani.hxx.

Referenced by ConvertToDBData().

OUString ScXMLDatabaseRangeContext::sConnectionResource
private

Definition at line 59 of file xmldrani.hxx.

Referenced by ConvertToDBData().

OUString ScXMLDatabaseRangeContext::sDatabaseName
private

Definition at line 60 of file xmldrani.hxx.

Referenced by ConvertToDBData().

OUString ScXMLDatabaseRangeContext::sDatabaseRangeName
private

Definition at line 58 of file xmldrani.hxx.

Referenced by endFastElement(), and ScXMLDatabaseRangeContext().

OUString ScXMLDatabaseRangeContext::sSourceObject
private

Definition at line 61 of file xmldrani.hxx.

Referenced by ConvertToDBData().


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