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

#include <querydlg.hxx>

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

Public Member Functions

 DlgQryJoin (const OQueryTableView *pParent, const TTableConnectionData::value_type &pData, const OJoinTableView::OTableWindowMap *_pTableMap, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, bool _bAllowTableSelect)
 
virtual ~DlgQryJoin () override
 
EJoinType GetJoinType () const
 
virtual void setValid (bool _bValid) override
 setValid set the valid inside, can be used for OK buttons More...
 
virtual void notifyConnectionChange () override
 notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists More...
 
- 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
 
- Public Member Functions inherited from dbaui::IRelationControlInterface
virtual ~IRelationControlInterface ()
 
virtual void setValid (bool _bValid)=0
 setValid set the valid inside, can be used for OK buttons More...
 
virtual void notifyConnectionChange ()=0
 notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists More...
 

Private Member Functions

 DECL_LINK (OKClickHdl, weld::Button &, void)
 
 DECL_LINK (LBChangeHdl, weld::ComboBox &, void)
 
 DECL_LINK (NaturalToggleHdl, weld::Toggleable &, void)
 
void setJoinType (EJoinType _eNewJoinType)
 setJoinType enables and set the new join type More...
 

Private Attributes

EJoinType eJoinType
 
TTableConnectionData::value_type m_pConnData
 
TTableConnectionData::value_type m_pOrigConnData
 
css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
std::unique_ptr< weld::Labelm_xML_HelpText
 
std::unique_ptr< weld::Buttonm_xPB_OK
 
std::unique_ptr< weld::ComboBoxm_xLB_JoinType
 
std::unique_ptr< weld::CheckButtonm_xCBNatural
 
std::unique_ptr< OTableListBoxControlm_xTableControl
 

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 Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 33 of file querydlg.hxx.

Constructor & Destructor Documentation

◆ DlgQryJoin()

DlgQryJoin::DlgQryJoin ( const OQueryTableView pParent,
const TTableConnectionData::value_type &  pData,
const OJoinTableView::OTableWindowMap _pTableMap,
const css::uno::Reference< css::sdbc::XConnection > &  _xConnection,
bool  _bAllowTableSelect 
)

◆ ~DlgQryJoin()

DlgQryJoin::~DlgQryJoin ( )
overridevirtual

Definition at line 136 of file querydlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/3]

dbaui::DlgQryJoin::DECL_LINK ( LBChangeHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/3]

dbaui::DlgQryJoin::DECL_LINK ( NaturalToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/3]

dbaui::DlgQryJoin::DECL_LINK ( OKClickHdl  ,
weld::Button ,
void   
)
private

◆ GetJoinType()

EJoinType dbaui::DlgQryJoin::GetJoinType ( ) const
inline

Definition at line 62 of file querydlg.hxx.

References eJoinType.

◆ notifyConnectionChange()

void DlgQryJoin::notifyConnectionChange ( )
overridevirtual

notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists

Parameters
_pConnectionDatathe connection which exists between the new tables

Implements dbaui::IRelationControlInterface.

Definition at line 263 of file querydlg.cxx.

References dbaui::OQueryTableConnectionData::GetJoinType(), dbaui::OQueryTableConnectionData::isNatural(), m_pConnData, m_xCBNatural, and setJoinType().

◆ setJoinType()

void DlgQryJoin::setJoinType ( EJoinType  _eNewJoinType)
private

setJoinType enables and set the new join type

Parameters
_eNewJoinTypethe new jointype

Definition at line 270 of file querydlg.cxx.

References dbaui::CROSS_JOIN, eJoinType, dbaui::FULL_JOIN, i, ID_CROSS_JOIN, ID_FULL_JOIN, ID_INNER_JOIN, ID_LEFT_JOIN, ID_RIGHT_JOIN, dbaui::INNER_JOIN, dbaui::LEFT_JOIN, m_xCBNatural, m_xLB_JoinType, nCount, and dbaui::RIGHT_JOIN.

Referenced by DlgQryJoin(), and notifyConnectionChange().

◆ setValid()

void DlgQryJoin::setValid ( bool  _bValid)
overridevirtual

setValid set the valid inside, can be used for OK buttons

Parameters
_bValidtrue when the using control allows an update

Implements dbaui::IRelationControlInterface.

Definition at line 258 of file querydlg.cxx.

References dbaui::CROSS_JOIN, eJoinType, and m_xPB_OK.

Member Data Documentation

◆ eJoinType

EJoinType dbaui::DlgQryJoin::eJoinType
private

Definition at line 36 of file querydlg.hxx.

Referenced by DlgQryJoin(), GetJoinType(), setJoinType(), and setValid().

◆ m_pConnData

TTableConnectionData::value_type dbaui::DlgQryJoin::m_pConnData
private

Definition at line 37 of file querydlg.hxx.

Referenced by DlgQryJoin(), and notifyConnectionChange().

◆ m_pOrigConnData

TTableConnectionData::value_type dbaui::DlgQryJoin::m_pOrigConnData
private

Definition at line 38 of file querydlg.hxx.

◆ m_xCBNatural

std::unique_ptr<weld::CheckButton> dbaui::DlgQryJoin::m_xCBNatural
private

Definition at line 44 of file querydlg.hxx.

Referenced by DlgQryJoin(), notifyConnectionChange(), and setJoinType().

◆ m_xConnection

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

Definition at line 39 of file querydlg.hxx.

Referenced by DlgQryJoin().

◆ m_xLB_JoinType

std::unique_ptr<weld::ComboBox> dbaui::DlgQryJoin::m_xLB_JoinType
private

Definition at line 43 of file querydlg.hxx.

Referenced by DlgQryJoin(), and setJoinType().

◆ m_xML_HelpText

std::unique_ptr<weld::Label> dbaui::DlgQryJoin::m_xML_HelpText
private

Definition at line 41 of file querydlg.hxx.

Referenced by DlgQryJoin().

◆ m_xPB_OK

std::unique_ptr<weld::Button> dbaui::DlgQryJoin::m_xPB_OK
private

Definition at line 42 of file querydlg.hxx.

Referenced by DlgQryJoin(), and setValid().

◆ m_xTableControl

std::unique_ptr<OTableListBoxControl> dbaui::DlgQryJoin::m_xTableControl
private

Definition at line 45 of file querydlg.hxx.

Referenced by DlgQryJoin().


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