LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ScQueryParamBase Struct Reference

#include <queryparam.hxx>

Inheritance diagram for ScQueryParamBase:
[legend]

Public Types

typedef EntriesType::const_iterator const_iterator
 

Public Member Functions

virtual ~ScQueryParamBase ()
 
virtual bool IsValidFieldIndex () const
 
SC_DLLPUBLIC SCSIZE GetEntryCount () const
 
SC_DLLPUBLIC const ScQueryEntryGetEntry (SCSIZE n) const
 
SC_DLLPUBLIC ScQueryEntryGetEntry (SCSIZE n)
 
SC_DLLPUBLIC ScQueryEntryAppendEntry ()
 
ScQueryEntryFindEntryByField (SCCOLROW nField, bool bNew)
 
std::vector< ScQueryEntry * > FindAllEntriesByField (SCCOLROW nField)
 
SC_DLLPUBLIC bool RemoveEntryByField (SCCOLROW nField)
 
SC_DLLPUBLIC void RemoveAllEntriesByField (SCCOLROW nField)
 
void Resize (size_t nNew)
 
void FillInExcelSyntax (svl::SharedStringPool &rPool, const OUString &aCellStr, SCSIZE nIndex, SvNumberFormatter *pFormatter)
 
const_iterator begin () const
 
const_iterator end () const
 

Public Attributes

utl::SearchParam::SearchType eSearchType
 
bool bHasHeader
 
bool bByRow
 
bool bInplace
 
bool bCaseSens
 
bool bDuplicate
 
bool mbRangeLookup
 for spreadsheet functions like MATCH, LOOKUP, HLOOKUP, VLOOKUP More...
 

Protected Types

typedef std::vector< ScQueryEntryEntriesType
 

Protected Member Functions

 ScQueryParamBase ()
 
 ScQueryParamBase (const ScQueryParamBase &r)
 
ScQueryParamBaseoperator= (const ScQueryParamBase &r)
 

Protected Attributes

EntriesType m_Entries
 

Detailed Description

Definition at line 41 of file queryparam.hxx.

Member Typedef Documentation

◆ const_iterator

typedef EntriesType::const_iterator ScQueryParamBase::const_iterator

Definition at line 71 of file queryparam.hxx.

◆ EntriesType

typedef std::vector<ScQueryEntry> ScQueryParamBase::EntriesType
protected

Definition at line 68 of file queryparam.hxx.

Constructor & Destructor Documentation

◆ ~ScQueryParamBase()

ScQueryParamBase::~ScQueryParamBase ( )
virtual

Definition at line 102 of file queryparam.cxx.

◆ ScQueryParamBase() [1/2]

ScQueryParamBase::ScQueryParamBase ( )
protected

Definition at line 67 of file queryparam.cxx.

References m_Entries, and Normal.

◆ ScQueryParamBase() [2/2]

ScQueryParamBase::ScQueryParamBase ( const ScQueryParamBase r)
protected

Definition at line 79 of file queryparam.cxx.

Member Function Documentation

◆ AppendEntry()

ScQueryEntry & ScQueryParamBase::AppendEntry ( )

◆ begin()

ScQueryParamBase::const_iterator ScQueryParamBase::begin ( ) const

Definition at line 57 of file queryparam.cxx.

References m_Entries.

Referenced by ScQueryEvaluator::ValidQuery().

◆ end()

ScQueryParamBase::const_iterator ScQueryParamBase::end ( ) const

Definition at line 62 of file queryparam.cxx.

References m_Entries.

Referenced by ScQueryEvaluator::ValidQuery().

◆ FillInExcelSyntax()

void ScQueryParamBase::FillInExcelSyntax ( svl::SharedStringPool rPool,
const OUString &  aCellStr,
SCSIZE  nIndex,
SvNumberFormatter pFormatter 
)

◆ FindAllEntriesByField()

std::vector< ScQueryEntry * > ScQueryParamBase::FindAllEntriesByField ( SCCOLROW  nField)

Definition at line 159 of file queryparam.cxx.

References aEntries, and m_Entries.

Referenced by ScGridWindow::LaunchAutoFilterMenu().

◆ FindEntryByField()

ScQueryEntry * ScQueryParamBase::FindEntryByField ( SCCOLROW  nField,
bool  bNew 
)

Definition at line 141 of file queryparam.cxx.

References AppendEntry(), and m_Entries.

Referenced by ScGridWindow::UpdateAutoFilterFromMenu().

◆ GetEntry() [1/2]

ScQueryEntry & ScQueryParamBase::GetEntry ( SCSIZE  n)

Definition at line 121 of file queryparam.cxx.

References m_Entries, and n.

◆ GetEntry() [2/2]

const ScQueryEntry & ScQueryParamBase::GetEntry ( SCSIZE  n) const

Definition at line 116 of file queryparam.cxx.

References m_Entries, and n.

Referenced by ScXMLDPFilterContext::AddFilterField(), ScVbaRange::AutoFilter(), ScInterpreter::CalculateLookup(), ScTable::CreateExcelQuery(), ScCellRangeObj::createFilterDescriptor(), ScCellRangeObj::createFilterDescriptorByObject(), ScTable::CreateQueryParam(), ScTable::CreateStarQuery(), ScDBQueryDataIterator::DataAccessInternal::DataAccessInternal(), ExcAutoFilterRecs::ExcAutoFilterRecs(), ScCellShell::ExecuteDB(), FillInExcelSyntax(), ScCellRangeObj::filter(), ScCellShell::GetDBState(), ScDocument::GetFilterEntries(), ScFilterDescriptorBase::getFilterFields(), ScFilterDescriptorBase::getFilterFields2(), ScFilterDescriptorBase::getFilterFields3(), ScPivotFilterDlg::GetOutputItem(), ScDatabaseRangeObj::GetQueryParam(), ScFilterDlg::Init(), ScPivotFilterDlg::Init(), ScGridWindow::IsAutoFilterActive(), ScInterpreter::IterateParametersIf(), ScInterpreter::IterateParametersIfs(), lcl_getPrevRowWithEmptyValueLookup(), ScInterpreter::LookupQueryWithCache(), ScSortedRangeCache::makeHashKey(), ScDBDocFunc::Query(), ScFilterDlg::RefreshEditRow(), ScDBFunc::RepeatDB(), ScDBDocFunc::RepeatDB(), ScInterpreter::ScCountIf(), ScInterpreter::ScLookup(), ScInterpreter::ScMatch(), ScSheetDPData::ScSheetDPData(), ScSortedRangeCache::ScSortedRangeCache(), ScFilterDescriptorBase::setFilterFields(), ScDatabaseRangeObj::SetQueryParam(), ScDBDocFunc::Sort(), ScDBFunc::ToggleAutoFilter(), ScTable::TopTenQuery(), toValueType(), ScFilterDlg::UpdateColorList(), ScDPObject::UpdateReference(), ScDPCache::ValidQuery(), ScQueryEvaluator::ValidQuery(), and ScXMLExportDataPilot::WriteDPFilter().

◆ GetEntryCount()

SCSIZE ScQueryParamBase::GetEntryCount ( ) const

◆ IsValidFieldIndex()

bool ScQueryParamBase::IsValidFieldIndex ( ) const
virtual

Reimplemented in ScDBQueryParamInternal, and ScDBQueryParamMatrix.

Definition at line 106 of file queryparam.cxx.

◆ operator=()

ScQueryParamBase & ScQueryParamBase::operator= ( const ScQueryParamBase r)
protected

Definition at line 86 of file queryparam.cxx.

References bByRow, bCaseSens, bDuplicate, bHasHeader, bInplace, eSearchType, m_Entries, and mbRangeLookup.

◆ RemoveAllEntriesByField()

void ScQueryParamBase::RemoveAllEntriesByField ( SCCOLROW  nField)

Definition at line 191 of file queryparam.cxx.

References RemoveEntryByField().

Referenced by ScGridWindow::UpdateAutoFilterFromMenu().

◆ RemoveEntryByField()

bool ScQueryParamBase::RemoveEntryByField ( SCCOLROW  nField)

◆ Resize()

void ScQueryParamBase::Resize ( size_t  nNew)

Member Data Documentation

◆ bByRow

bool ScQueryParamBase::bByRow

◆ bCaseSens

bool ScQueryParamBase::bCaseSens

◆ bDuplicate

bool ScQueryParamBase::bDuplicate

◆ bHasHeader

bool ScQueryParamBase::bHasHeader

◆ bInplace

bool ScQueryParamBase::bInplace

◆ eSearchType

utl::SearchParam::SearchType ScQueryParamBase::eSearchType

◆ m_Entries

EntriesType ScQueryParamBase::m_Entries
protected

◆ mbRangeLookup

bool ScQueryParamBase::mbRangeLookup

for spreadsheet functions like MATCH, LOOKUP, HLOOKUP, VLOOKUP

Definition at line 49 of file queryparam.hxx.

Referenced by operator=(), and ScQueryEvaluator::processEntry().


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