LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaui::DlgFilterCrit Class Referencefinal

#include <queryfilter.hxx>

Inheritance diagram for dbaui::DlgFilterCrit:
[legend]
Collaboration diagram for dbaui::DlgFilterCrit:
[legend]

Public Member Functions

 DlgFilterCrit (weld::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &_rxComposer, const css::uno::Reference< css::container::XNameAccess > &_rxCols)
 
virtual ~DlgFilterCrit () override
 
void BuildWherePart ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (ListSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (ListSelectCompHdl, weld::ComboBox &, void)
 
void SetLine (int nIdx, const css::beans::PropertyValue &_rItem, bool _bOr)
 
void EnableLines ()
 
sal_Int32 GetOSQLPredicateType (std::u16string_view _rSelectedPredicate) const
 
bool getCondition (const weld::ComboBox &_rField, const weld::ComboBox &_rComp, const weld::Entry &_rValue, css::beans::PropertyValue &_rFilter) const
 
void fillLines (int &i, const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &_aValues)
 
css::uno::Reference< css::beans::XPropertySetgetMatchingColumn (const weld::Entry &_rValueInput) const
 
css::uno::Reference< css::beans::XPropertySetgetColumn (const OUString &_rFieldName) const
 
css::uno::Reference< css::beans::XPropertySetgetQueryColumn (const OUString &_rFieldName) const
 
 DECL_LINK (PredicateLoseFocus, weld::Widget &, void)
 

Static Private Member Functions

static void SelectField (weld::ComboBox &rBox, std::u16string_view rField)
 
static sal_Int32 GetSelectionPos (sal_Int32 eType, const weld::ComboBox &rListBox)
 

Private Attributes

std::vector< OUString > m_aSTR_COMPARE_OPERATORS
 
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xQueryComposer
 
css::uno::Reference< css::container::XNameAccess > m_xColumns
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData
 
::dbtools::OPredicateInputController m_aPredicateInput
 
std::unique_ptr< weld::ComboBoxm_xLB_WHEREFIELD1
 
std::unique_ptr< weld::ComboBoxm_xLB_WHERECOMP1
 
std::unique_ptr< weld::Entrym_xET_WHEREVALUE1
 
std::unique_ptr< weld::ComboBoxm_xLB_WHERECOND2
 
std::unique_ptr< weld::ComboBoxm_xLB_WHEREFIELD2
 
std::unique_ptr< weld::ComboBoxm_xLB_WHERECOMP2
 
std::unique_ptr< weld::Entrym_xET_WHEREVALUE2
 
std::unique_ptr< weld::ComboBoxm_xLB_WHERECOND3
 
std::unique_ptr< weld::ComboBoxm_xLB_WHEREFIELD3
 
std::unique_ptr< weld::ComboBoxm_xLB_WHERECOMP3
 
std::unique_ptr< weld::Entrym_xET_WHEREVALUE3
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Member Functions inherited from svxform::OParseContextClient
 OParseContextClient ()
 
virtual ~OParseContextClient ()
 
const OSystemParseContextgetParseContext () const
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 51 of file queryfilter.hxx.

Constructor & Destructor Documentation

◆ DlgFilterCrit()

DlgFilterCrit::DlgFilterCrit ( weld::Window pParent,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection,
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &  _rxComposer,
const css::uno::Reference< css::container::XNameAccess > &  _rxCols 
)

◆ ~DlgFilterCrit()

DlgFilterCrit::~DlgFilterCrit ( )
overridevirtual

Definition at line 179 of file queryfilter.cxx.

Member Function Documentation

◆ BuildWherePart()

void DlgFilterCrit::BuildWherePart ( )

◆ DECL_LINK() [1/3]

dbaui::DlgFilterCrit::DECL_LINK ( ListSelectCompHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/3]

dbaui::DlgFilterCrit::DECL_LINK ( ListSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/3]

dbaui::DlgFilterCrit::DECL_LINK ( PredicateLoseFocus  ,
weld::Widget ,
void   
)
private

◆ EnableLines()

void DlgFilterCrit::EnableLines ( )
private

◆ fillLines()

void DlgFilterCrit::fillLines ( int i,
const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > &  _aValues 
)
private

Definition at line 730 of file queryfilter.cxx.

References i, and SetLine().

Referenced by DlgFilterCrit().

◆ getColumn()

Reference< XPropertySet > DlgFilterCrit::getColumn ( const OUString &  _rFieldName) const
private

◆ getCondition()

bool DlgFilterCrit::getCondition ( const weld::ComboBox _rField,
const weld::ComboBox _rComp,
const weld::Entry _rValue,
css::beans::PropertyValue &  _rFilter 
) const
private

◆ getMatchingColumn()

Reference< XPropertySet > DlgFilterCrit::getMatchingColumn ( const weld::Entry _rValueInput) const
private

◆ GetOSQLPredicateType()

sal_Int32 DlgFilterCrit::GetOSQLPredicateType ( std::u16string_view  _rSelectedPredicate) const
private

Definition at line 183 of file queryfilter.cxx.

References i, and m_aSTR_COMPARE_OPERATORS.

Referenced by getCondition().

◆ getQueryColumn()

Reference< XPropertySet > DlgFilterCrit::getQueryColumn ( const OUString &  _rFieldName) const
private

Definition at line 379 of file queryfilter.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, m_xQueryComposer, and xColumn.

Referenced by getCondition().

◆ GetSelectionPos()

sal_Int32 DlgFilterCrit::GetSelectionPos ( sal_Int32  eType,
const weld::ComboBox rListBox 
)
staticprivate

Definition at line 234 of file queryfilter.cxx.

References eType, weld::ComboBox::get_count(), and nPos.

Referenced by SetLine().

◆ SelectField()

void DlgFilterCrit::SelectField ( weld::ComboBox rBox,
std::u16string_view  rField 
)
staticprivate

◆ SetLine()

void DlgFilterCrit::SetLine ( int  nIdx,
const css::beans::PropertyValue &  _rItem,
bool  _bOr 
)
private

Member Data Documentation

◆ m_aPredicateInput

::dbtools::OPredicateInputController dbaui::DlgFilterCrit::m_aPredicateInput
private

Definition at line 62 of file queryfilter.hxx.

Referenced by getCondition(), and SetLine().

◆ m_aSTR_COMPARE_OPERATORS

std::vector<OUString> dbaui::DlgFilterCrit::m_aSTR_COMPARE_OPERATORS
private

Definition at line 55 of file queryfilter.hxx.

Referenced by DlgFilterCrit(), and GetOSQLPredicateType().

◆ m_xColumns

css::uno::Reference< css::container::XNameAccess> dbaui::DlgFilterCrit::m_xColumns
private

Definition at line 58 of file queryfilter.hxx.

Referenced by DlgFilterCrit(), and getColumn().

◆ m_xConnection

css::uno::Reference< css::sdbc::XConnection> dbaui::DlgFilterCrit::m_xConnection
private

Definition at line 59 of file queryfilter.hxx.

Referenced by DlgFilterCrit().

◆ m_xET_WHEREVALUE1

std::unique_ptr<weld::Entry> dbaui::DlgFilterCrit::m_xET_WHEREVALUE1
private

◆ m_xET_WHEREVALUE2

std::unique_ptr<weld::Entry> dbaui::DlgFilterCrit::m_xET_WHEREVALUE2
private

◆ m_xET_WHEREVALUE3

std::unique_ptr<weld::Entry> dbaui::DlgFilterCrit::m_xET_WHEREVALUE3
private

◆ m_xLB_WHERECOMP1

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHERECOMP1
private

Definition at line 65 of file queryfilter.hxx.

Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().

◆ m_xLB_WHERECOMP2

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHERECOMP2
private

Definition at line 70 of file queryfilter.hxx.

Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().

◆ m_xLB_WHERECOMP3

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHERECOMP3
private

Definition at line 75 of file queryfilter.hxx.

Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().

◆ m_xLB_WHERECOND2

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHERECOND2
private

Definition at line 68 of file queryfilter.hxx.

Referenced by BuildWherePart(), EnableLines(), and SetLine().

◆ m_xLB_WHERECOND3

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHERECOND3
private

Definition at line 73 of file queryfilter.hxx.

Referenced by BuildWherePart(), EnableLines(), and SetLine().

◆ m_xLB_WHEREFIELD1

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHEREFIELD1
private

◆ m_xLB_WHEREFIELD2

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHEREFIELD2
private

◆ m_xLB_WHEREFIELD3

std::unique_ptr<weld::ComboBox> dbaui::DlgFilterCrit::m_xLB_WHEREFIELD3
private

◆ m_xMetaData

css::uno::Reference< css::sdbc::XDatabaseMetaData> dbaui::DlgFilterCrit::m_xMetaData
private

Definition at line 60 of file queryfilter.hxx.

Referenced by getCondition().

◆ m_xQueryComposer

css::uno::Reference< css::sdb::XSingleSelectQueryComposer> dbaui::DlgFilterCrit::m_xQueryComposer
private

Definition at line 57 of file queryfilter.hxx.

Referenced by BuildWherePart(), DlgFilterCrit(), getColumn(), and getQueryColumn().


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