LibreOffice Module sc (master)  1
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
ScQueryEntry Struct Reference

Each instance of this struct represents a single filtering criteria. More...

#include <queryentry.hxx>

Classes

struct  Item
 

Public Types

enum  QueryType {
  ByValue,
  ByString,
  ByDate,
  ByEmpty
}
 
typedef std::vector< ItemQueryItemsType
 

Public Member Functions

 ScQueryEntry ()
 
 ScQueryEntry (const ScQueryEntry &r)
 
 ~ScQueryEntry ()
 
utl::TextSearchGetSearchTextPtr (utl::SearchParam::SearchType eSearchType, bool bCaseSens, bool bWildMatchSel) const
 creates pSearchParam and pSearchText if necessary More...
 
QueryItemsTypeGetQueryItems ()
 
const QueryItemsTypeGetQueryItems () const
 
void SetQueryByEmpty ()
 
bool IsQueryByEmpty () const
 
void SetQueryByNonEmpty ()
 
bool IsQueryByNonEmpty () const
 
const ItemGetQueryItem () const
 
ItemGetQueryItem ()
 
void Clear ()
 
ScQueryEntryoperator= (const ScQueryEntry &r)
 
bool operator== (const ScQueryEntry &r) const
 

Public Attributes

bool bDoQuery
 
SCCOLROW nField
 
ScQueryOp eOp
 
ScQueryConnect eConnect
 
std::unique_ptr< utl::SearchParampSearchParam
 if Wildcard or RegExp, not saved More...
 
std::unique_ptr< utl::TextSearchpSearchText
 if Wildcard or RegExp, not saved More...
 

Private Attributes

QueryItemsType maQueryItems
 Stores all query items. More...
 

Detailed Description

Each instance of this struct represents a single filtering criteria.

Definition at line 33 of file queryentry.hxx.

Member Typedef Documentation

typedef std::vector<Item> ScQueryEntry::QueryItemsType

Definition at line 48 of file queryentry.hxx.

Member Enumeration Documentation

Enumerator
ByValue 
ByString 
ByDate 
ByEmpty 

Definition at line 35 of file queryentry.hxx.

Constructor & Destructor Documentation

ScQueryEntry::ScQueryEntry ( )

Definition at line 38 of file queryentry.cxx.

ScQueryEntry::ScQueryEntry ( const ScQueryEntry r)

Definition at line 47 of file queryentry.cxx.

ScQueryEntry::~ScQueryEntry ( )

Definition at line 56 of file queryentry.cxx.

Member Function Documentation

void ScQueryEntry::Clear ( )

Definition at line 134 of file queryentry.cxx.

References bDoQuery, eConnect, eOp, maQueryItems, nField, pSearchParam, pSearchText, SC_AND, and SC_EQUAL.

Referenced by ScTable::CreateQueryParam().

const ScQueryEntry::Item & ScQueryEntry::GetQueryItem ( ) const
ScQueryEntry::Item & ScQueryEntry::GetQueryItem ( )

Definition at line 126 of file queryentry.cxx.

References maQueryItems.

QueryItemsType& ScQueryEntry::GetQueryItems ( )
inline
const QueryItemsType& ScQueryEntry::GetQueryItems ( ) const
inline

Definition at line 66 of file queryentry.hxx.

utl::TextSearch * ScQueryEntry::GetSearchTextPtr ( utl::SearchParam::SearchType  eSearchType,
bool  bCaseSens,
bool  bWildMatchSel 
) const

creates pSearchParam and pSearchText if necessary

Definition at line 157 of file queryentry.cxx.

References aStr, ScGlobal::getCharClassPtr(), maQueryItems, pSearchParam, and pSearchText.

Referenced by sc::CompareFunc(), and ScDPCache::ValidQuery().

bool ScQueryEntry::IsQueryByEmpty ( ) const
bool ScQueryEntry::IsQueryByNonEmpty ( ) const
ScQueryEntry & ScQueryEntry::operator= ( const ScQueryEntry r)

Definition at line 60 of file queryentry.cxx.

References bDoQuery, eConnect, eOp, maQueryItems, nField, pSearchParam, and pSearchText.

bool ScQueryEntry::operator== ( const ScQueryEntry r) const

Definition at line 147 of file queryentry.cxx.

References bDoQuery, eConnect, eOp, maQueryItems, and nField.

void ScQueryEntry::SetQueryByEmpty ( )
void ScQueryEntry::SetQueryByNonEmpty ( )

Member Data Documentation

bool ScQueryEntry::bDoQuery

Definition at line 50 of file queryentry.hxx.

Referenced by ScXMLDPFilterContext::AddFilterField(), ScQueryCellIterator::AdvanceQueryParamEntryField(), ScCountIfCellIterator::AdvanceQueryParamEntryField(), ScVbaRange::AutoFilter(), ScInterpreter::CalculateLookup(), Clear(), ScCellRangeObj::createFilterDescriptor(), ScCellRangeObj::createFilterDescriptorByObject(), ScTable::CreateStarQuery(), ScDBQueryDataIterator::DataAccessInternal::DataAccessInternal(), XclImpAutoFilterData::EnableRemoveFilter(), ScXMLConditionContext::endFastElement(), ExcAutoFilterRecs::ExcAutoFilterRecs(), ScCellShell::ExecuteDB(), ScQueryParamBase::FillInExcelSyntax(), ScCellRangeObj::filter(), ScQueryCellIterator::FindEqualOrSortedLastInRange(), ScInterpreter::GetDBParams(), ScCellShell::GetDBState(), ScDocument::GetFilterEntries(), ScFilterDescriptorBase::getFilterFields(), ScFilterDescriptorBase::getFilterFields2(), ScFilterDescriptorBase::getFilterFields3(), ScDBData::GetOperations(), ScPivotFilterDlg::GetOutputItem(), ScDatabaseRangeObj::GetQueryParam(), IMPL_LINK(), ScPivotFilterDlg::Init(), ScFilterDlg::Init(), ScGridWindow::IsAutoFilterActive(), ScDBQueryDataIterator::DataAccessMatrix::isValidQuery(), ScInterpreter::IterateParametersIf(), ScInterpreter::IterateParametersIfs(), ScDBData::MoveTo(), operator=(), operator==(), ScDBDocFunc::Query(), XclImpAutoFilterData::ReadAutoFilter(), ScFilterDlg::RefreshEditRow(), ScDBFunc::RepeatDB(), ScDBDocFunc::RepeatDB(), ScInterpreter::ScCountIf(), ScInterpreter::ScLookup(), ScInterpreter::ScMatch(), ScQueryCellIterator::ScQueryCellIterator(), ScSheetDPData::ScSheetDPData(), ScFilterDescriptorBase::setFilterFields(), ScDatabaseRangeObj::SetQueryParam(), ScDBDocFunc::Sort(), ScDBFunc::ToggleAutoFilter(), ScTable::TopTenQuery(), ScGridWindow::UpdateAutoFilterFromMenu(), ScDPObject::UpdateReference(), ScDPCache::ValidQuery(), ScTable::ValidQuery(), and ScXMLExportDataPilot::WriteDPFilter().

ScQueryConnect ScQueryEntry::eConnect
ScQueryOp ScQueryEntry::eOp
QueryItemsType ScQueryEntry::maQueryItems
mutableprivate

Stores all query items.

It must contain at least one item at all times (for single equality match queries or comparative queries). It may contain multiple items for multi-equality match queries.

Definition at line 83 of file queryentry.hxx.

Referenced by Clear(), GetQueryItem(), GetSearchTextPtr(), IsQueryByEmpty(), IsQueryByNonEmpty(), operator=(), operator==(), SetQueryByEmpty(), and SetQueryByNonEmpty().

SCCOLROW ScQueryEntry::nField
std::unique_ptr<utl::SearchParam> ScQueryEntry::pSearchParam
mutable

if Wildcard or RegExp, not saved

Definition at line 54 of file queryentry.hxx.

Referenced by Clear(), GetSearchTextPtr(), and operator=().

std::unique_ptr<utl::TextSearch> ScQueryEntry::pSearchText
mutable

if Wildcard or RegExp, not saved

Definition at line 55 of file queryentry.hxx.

Referenced by Clear(), GetSearchTextPtr(), and operator=().


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