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 (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< 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 53 of file xmldrani.hxx.

Constructor & Destructor Documentation

◆ ScXMLDatabaseRangeContext()

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

◆ ~ScXMLDatabaseRangeContext()

ScXMLDatabaseRangeContext::~ScXMLDatabaseRangeContext ( )
overridevirtual

Definition at line 191 of file xmldrani.cxx.

Member Function Documentation

◆ AddSubTotalRule()

void ScXMLDatabaseRangeContext::AddSubTotalRule ( const ScSubTotalRule rRule)
inline

Definition at line 113 of file xmldrani.hxx.

References aSubTotalRules.

Referenced by ScXMLSubTotalRuleContext::endFastElement().

◆ ConvertToDBData()

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, 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().

◆ createFastChildContext()

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

◆ endFastElement()

void SAL_CALL ScXMLDatabaseRangeContext::endFastElement ( sal_Int32  nElement)
overridevirtual

◆ SetConnectionResource()

void ScXMLDatabaseRangeContext::SetConnectionResource ( const OUString &  sTempConRes)
inline

Definition at line 102 of file xmldrani.hxx.

References sConnectionResource.

Referenced by ScXMLConResContext::ScXMLConResContext().

◆ SetDatabaseName()

void ScXMLDatabaseRangeContext::SetDatabaseName ( const OUString &  sTempDatabaseName)
inline

◆ SetFilterConditionSourceRangeAddress()

void ScXMLDatabaseRangeContext::SetFilterConditionSourceRangeAddress ( const ScRange aRange)
inline

◆ SetNative()

void ScXMLDatabaseRangeContext::SetNative ( const bool  bTempNative)
inline

Definition at line 105 of file xmldrani.hxx.

References bNative.

Referenced by ScXMLSourceSQLContext::ScXMLSourceSQLContext().

◆ SetSortSequence()

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

Definition at line 114 of file xmldrani.hxx.

References aSortSequence.

Referenced by ScXMLSortContext::endFastElement().

◆ SetSourceObject()

void ScXMLDatabaseRangeContext::SetSourceObject ( const OUString &  sTempSourceObject)
inline

◆ SetSourceType()

void ScXMLDatabaseRangeContext::SetSourceType ( const css::sheet::DataImportMode  nTempSourceType)
inline

◆ SetSubTotalsAscending()

void ScXMLDatabaseRangeContext::SetSubTotalsAscending ( const bool  bTemp)
inline

Definition at line 111 of file xmldrani.hxx.

References bSubTotalsAscending.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

◆ SetSubTotalsBindFormatsToContent()

void ScXMLDatabaseRangeContext::SetSubTotalsBindFormatsToContent ( const bool  bTemp)
inline

◆ SetSubTotalsEnabledUserList()

void ScXMLDatabaseRangeContext::SetSubTotalsEnabledUserList ( const bool  bTemp)
inline

Definition at line 109 of file xmldrani.hxx.

References bSubTotalsEnabledUserList.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

◆ SetSubTotalsInsertPageBreaks()

void ScXMLDatabaseRangeContext::SetSubTotalsInsertPageBreaks ( const bool  bTemp)
inline

◆ SetSubTotalsIsCaseSensitive()

void ScXMLDatabaseRangeContext::SetSubTotalsIsCaseSensitive ( const bool  bTemp)
inline

◆ SetSubTotalsSortGroups()

void ScXMLDatabaseRangeContext::SetSubTotalsSortGroups ( const bool  bTemp)
inline

Definition at line 112 of file xmldrani.hxx.

References bSubTotalsSortGroups.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

◆ SetSubTotalsUserListIndex()

void ScXMLDatabaseRangeContext::SetSubTotalsUserListIndex ( const sal_Int16  nTemp)
inline

Definition at line 110 of file xmldrani.hxx.

References nSubTotalsUserListIndex.

Referenced by ScXMLSortGroupsContext::ScXMLSortGroupsContext().

Member Data Documentation

◆ aFilterConditionSourceRangeAddress

ScRange ScXMLDatabaseRangeContext::aFilterConditionSourceRangeAddress
private

Definition at line 63 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetFilterConditionSourceRangeAddress().

◆ aSortSequence

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

Definition at line 61 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSortSequence().

◆ aSubTotalRules

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

Definition at line 62 of file xmldrani.hxx.

Referenced by AddSubTotalRule(), and ConvertToDBData().

◆ bAutoFilter

bool ScXMLDatabaseRangeContext::bAutoFilter
private

Definition at line 75 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bByRow

bool ScXMLDatabaseRangeContext::bByRow
private

Definition at line 84 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bContainsSort

bool ScXMLDatabaseRangeContext::bContainsSort
private

Definition at line 68 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and createFastChildContext().

◆ bContainsSubTotal

bool ScXMLDatabaseRangeContext::bContainsSubTotal
private

Definition at line 69 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and createFastChildContext().

◆ bFilterConditionSourceRange

bool ScXMLDatabaseRangeContext::bFilterConditionSourceRange
private

Definition at line 82 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetFilterConditionSourceRangeAddress().

◆ bHasHeader

bool ScXMLDatabaseRangeContext::bHasHeader
private

Definition at line 83 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bIsSelection

bool ScXMLDatabaseRangeContext::bIsSelection
private

Definition at line 71 of file xmldrani.hxx.

Referenced by ScXMLDatabaseRangeContext().

◆ bKeepFormats

bool ScXMLDatabaseRangeContext::bKeepFormats
private

Definition at line 72 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bMoveCells

bool ScXMLDatabaseRangeContext::bMoveCells
private

Definition at line 73 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bNative

bool ScXMLDatabaseRangeContext::bNative
private

Definition at line 70 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetNative().

◆ bStripData

bool ScXMLDatabaseRangeContext::bStripData
private

Definition at line 74 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ bSubTotalsAscending

bool ScXMLDatabaseRangeContext::bSubTotalsAscending
private

Definition at line 81 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsAscending().

◆ bSubTotalsBindFormatsToContent

bool ScXMLDatabaseRangeContext::bSubTotalsBindFormatsToContent
private

Definition at line 76 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsBindFormatsToContent().

◆ bSubTotalsEnabledUserList

bool ScXMLDatabaseRangeContext::bSubTotalsEnabledUserList
private

Definition at line 80 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsEnabledUserList().

◆ bSubTotalsInsertPageBreaks

bool ScXMLDatabaseRangeContext::bSubTotalsInsertPageBreaks
private

Definition at line 78 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsInsertPageBreaks().

◆ bSubTotalsIsCaseSensitive

bool ScXMLDatabaseRangeContext::bSubTotalsIsCaseSensitive
private

Definition at line 77 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsIsCaseSensitive().

◆ bSubTotalsSortGroups

bool ScXMLDatabaseRangeContext::bSubTotalsSortGroups
private

Definition at line 79 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsSortGroups().

◆ maRange

ScRange ScXMLDatabaseRangeContext::maRange
private

Definition at line 56 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ mbValidRange

bool ScXMLDatabaseRangeContext::mbValidRange
private

Definition at line 67 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ meRangeType

ScDBCollection::RangeType ScXMLDatabaseRangeContext::meRangeType
private

Definition at line 85 of file xmldrani.hxx.

Referenced by endFastElement(), and ScXMLDatabaseRangeContext().

◆ mpQueryParam

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

Definition at line 55 of file xmldrani.hxx.

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

◆ nRefresh

sal_Int32 ScXMLDatabaseRangeContext::nRefresh
private

Definition at line 65 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and ScXMLDatabaseRangeContext().

◆ nSourceType

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

Definition at line 64 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSourceType().

◆ nSubTotalsUserListIndex

sal_Int16 ScXMLDatabaseRangeContext::nSubTotalsUserListIndex
private

Definition at line 66 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSubTotalsUserListIndex().

◆ sConnectionResource

OUString ScXMLDatabaseRangeContext::sConnectionResource
private

Definition at line 58 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetConnectionResource().

◆ sDatabaseName

OUString ScXMLDatabaseRangeContext::sDatabaseName
private

Definition at line 59 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetDatabaseName().

◆ sDatabaseRangeName

OUString ScXMLDatabaseRangeContext::sDatabaseRangeName
private

Definition at line 57 of file xmldrani.hxx.

Referenced by endFastElement(), and ScXMLDatabaseRangeContext().

◆ sSourceObject

OUString ScXMLDatabaseRangeContext::sSourceObject
private

Definition at line 60 of file xmldrani.hxx.

Referenced by ConvertToDBData(), and SetSourceObject().


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