LibreOffice Module dbaccess (master) 1
|
#include <queryfilter.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::XPropertySet > | getMatchingColumn (const weld::Entry &_rValueInput) const |
css::uno::Reference< css::beans::XPropertySet > | getColumn (const OUString &_rFieldName) const |
css::uno::Reference< css::beans::XPropertySet > | getQueryColumn (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::ComboBox > | m_xLB_WHEREFIELD1 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHERECOMP1 |
std::unique_ptr< weld::Entry > | m_xET_WHEREVALUE1 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHERECOND2 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHEREFIELD2 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHERECOMP2 |
std::unique_ptr< weld::Entry > | m_xET_WHEREVALUE2 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHERECOND3 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHEREFIELD3 |
std::unique_ptr< weld::ComboBox > | m_xLB_WHERECOMP3 |
std::unique_ptr< weld::Entry > | m_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 OSystemParseContext * | getParseContext () const |
Protected Attributes inherited from weld::GenericDialogController | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 51 of file queryfilter.hxx.
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 | ||
) |
Definition at line 57 of file queryfilter.cxx.
References DBG_UNHANDLED_EXCEPTION, EnableLines(), Exception, fillLines(), dbtools::getSearchColumnFlag(), i, LINK, m_aSTR_COMPARE_OPERATORS, m_xColumns, m_xConnection, m_xET_WHEREVALUE1, m_xET_WHEREVALUE2, m_xET_WHEREVALUE3, m_xLB_WHERECOMP1, m_xLB_WHERECOMP2, m_xLB_WHERECOMP3, m_xLB_WHEREFIELD1, m_xLB_WHEREFIELD2, m_xLB_WHEREFIELD3, m_xQueryComposer, nDataType, PROPERTY_ISSEARCHABLE(), PROPERTY_TYPE(), Size::Width(), and xColumn.
|
overridevirtual |
Definition at line 179 of file queryfilter.cxx.
void DlgFilterCrit::BuildWherePart | ( | ) |
Definition at line 673 of file queryfilter.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getCondition(), getLength(), m_xET_WHEREVALUE1, m_xET_WHEREVALUE2, m_xET_WHEREVALUE3, m_xLB_WHERECOMP1, m_xLB_WHERECOMP2, m_xLB_WHERECOMP3, m_xLB_WHERECOND2, m_xLB_WHERECOND3, m_xLB_WHEREFIELD1, m_xLB_WHEREFIELD2, m_xLB_WHEREFIELD3, m_xQueryComposer, nPos, and pValues.
Referenced by dbaui::SbaXDataBrowserController::ExecuteFilterSortCrit().
|
private |
|
private |
|
private |
|
private |
Definition at line 509 of file queryfilter.cxx.
References m_xET_WHEREVALUE1, m_xET_WHEREVALUE2, m_xET_WHEREVALUE3, m_xLB_WHERECOMP1, m_xLB_WHERECOMP2, m_xLB_WHERECOMP3, m_xLB_WHERECOND2, m_xLB_WHERECOND3, m_xLB_WHEREFIELD1, m_xLB_WHEREFIELD2, and m_xLB_WHEREFIELD3.
Referenced by DlgFilterCrit().
|
private |
Definition at line 730 of file queryfilter.cxx.
Referenced by DlgFilterCrit().
|
private |
Definition at line 340 of file queryfilter.cxx.
References aSeq, DBG_UNHANDLED_EXCEPTION, Exception, m_xColumns, m_xQueryComposer, PROPERTY_REALNAME(), and xColumn.
Referenced by getMatchingColumn(), and SetLine().
|
private |
Definition at line 277 of file queryfilter.cxx.
References Exception, weld::ComboBox::get_active_text(), weld::Entry::get_text(), getMatchingColumn(), GetOSQLPredicateType(), dbtools::OPredicateInputController::getPredicateValue(), getQueryColumn(), m_aPredicateInput, m_xMetaData, PROPERTY_REALNAME(), PROPERTY_TABLENAME(), Replace_OS_PlaceHolder(), u, and xColumn.
Referenced by BuildWherePart().
|
private |
Definition at line 396 of file queryfilter.cxx.
References getColumn(), m_xET_WHEREVALUE1, m_xET_WHEREVALUE2, m_xET_WHEREVALUE3, m_xLB_WHEREFIELD1, m_xLB_WHEREFIELD2, and m_xLB_WHEREFIELD3.
Referenced by getCondition().
|
private |
Definition at line 183 of file queryfilter.cxx.
References i, and m_aSTR_COMPARE_OPERATORS.
Referenced by getCondition().
|
private |
Definition at line 379 of file queryfilter.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_xQueryComposer, and xColumn.
Referenced by getCondition().
|
staticprivate |
Definition at line 234 of file queryfilter.cxx.
References eType, weld::ComboBox::get_count(), and nPos.
Referenced by SetLine().
|
staticprivate |
Definition at line 493 of file queryfilter.cxx.
References weld::ComboBox::get_count(), weld::ComboBox::get_text(), i, and weld::ComboBox::set_active().
Referenced by SetLine().
|
private |
Definition at line 434 of file queryfilter.cxx.
References aStr, getColumn(), GetSelectionPos(), m_aPredicateInput, m_xET_WHEREVALUE1, m_xET_WHEREVALUE2, m_xET_WHEREVALUE3, m_xLB_WHERECOMP1, m_xLB_WHERECOMP2, m_xLB_WHERECOMP3, m_xLB_WHERECOND2, m_xLB_WHERECOND3, m_xLB_WHEREFIELD1, m_xLB_WHEREFIELD2, m_xLB_WHEREFIELD3, dbtools::OPredicateInputController::normalizePredicateString(), PROPERTY_NAME(), Replace_SQL_PlaceHolder(), SelectField(), weld::ComboBox::set_active(), weld::Entry::set_text(), sName, comphelper::string::stripEnd(), and xColumn.
Referenced by fillLines().
|
private |
Definition at line 62 of file queryfilter.hxx.
Referenced by getCondition(), and SetLine().
|
private |
Definition at line 55 of file queryfilter.hxx.
Referenced by DlgFilterCrit(), and GetOSQLPredicateType().
|
private |
Definition at line 58 of file queryfilter.hxx.
Referenced by DlgFilterCrit(), and getColumn().
|
private |
Definition at line 59 of file queryfilter.hxx.
Referenced by DlgFilterCrit().
|
private |
Definition at line 66 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 71 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 76 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 65 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().
|
private |
Definition at line 70 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().
|
private |
Definition at line 75 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), and SetLine().
|
private |
Definition at line 68 of file queryfilter.hxx.
Referenced by BuildWherePart(), EnableLines(), and SetLine().
|
private |
Definition at line 73 of file queryfilter.hxx.
Referenced by BuildWherePart(), EnableLines(), and SetLine().
|
private |
Definition at line 64 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 69 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 74 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), EnableLines(), getMatchingColumn(), and SetLine().
|
private |
Definition at line 60 of file queryfilter.hxx.
Referenced by getCondition().
|
private |
Definition at line 57 of file queryfilter.hxx.
Referenced by BuildWherePart(), DlgFilterCrit(), getColumn(), and getQueryColumn().