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

#include <adtabdlg.hxx>

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

Public Member Functions

 OAddTableDlg (weld::Window *_pParent, IAddTableDialogContext &_rContext)
 
virtual ~OAddTableDlg () override
 
void Update ()
 
void OnClose ()
 
- 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
 

Static Public Member Functions

static OUString getDialogTitleForContext (IAddTableDialogContext const &_rContext)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Private Types

enum  ObjectList {
  Tables ,
  Queries
}
 

Private Member Functions

 DECL_LINK (AddClickHdl, weld::Button &, void)
 
 DECL_LINK (CloseClickHdl, weld::Button &, void)
 
 DECL_LINK (TableListDoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (TableListSelectHdl, weld::TreeView &, void)
 
 DECL_LINK (OnTypeSelected, weld::Toggleable &, void)
 
bool impl_isAddAllowed ()
 
void impl_switchTo (ObjectList _eList)
 

Private Attributes

IAddTableDialogContextm_rContext
 
std::unique_ptr< TableObjectListFacadem_xCurrentList
 
std::unique_ptr< weld::RadioButtonm_xCaseTables
 
std::unique_ptr< weld::RadioButtonm_xCaseQueries
 
std::unique_ptr< OTableTreeListBoxm_xTableList
 
std::unique_ptr< weld::TreeViewm_xQueryList
 
std::unique_ptr< weld::Buttonm_xAddButton
 
std::unique_ptr< weld::Buttonm_xCloseButton
 

Additional Inherited Members

- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 55 of file adtabdlg.hxx.

Member Enumeration Documentation

◆ ObjectList

Enumerator
Tables 
Queries 

Definition at line 89 of file adtabdlg.hxx.

Constructor & Destructor Documentation

◆ OAddTableDlg()

OAddTableDlg::OAddTableDlg ( weld::Window _pParent,
IAddTableDialogContext _rContext 
)

◆ ~OAddTableDlg()

OAddTableDlg::~OAddTableDlg ( )
overridevirtual

Definition at line 372 of file adtabdlg.cxx.

Member Function Documentation

◆ DECL_LINK() [1/5]

dbaui::OAddTableDlg::DECL_LINK ( AddClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/5]

dbaui::OAddTableDlg::DECL_LINK ( CloseClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [3/5]

dbaui::OAddTableDlg::DECL_LINK ( OnTypeSelected  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/5]

dbaui::OAddTableDlg::DECL_LINK ( TableListDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [5/5]

dbaui::OAddTableDlg::DECL_LINK ( TableListSelectHdl  ,
weld::TreeView ,
void   
)
private

◆ getDialogTitleForContext()

OUString OAddTableDlg::getDialogTitleForContext ( IAddTableDialogContext const &  _rContext)
static

◆ impl_isAddAllowed()

bool OAddTableDlg::impl_isAddAllowed ( )
private

Definition at line 450 of file adtabdlg.cxx.

References dbaui::IAddTableDialogContext::allowAddition(), and m_rContext.

◆ impl_switchTo()

void OAddTableDlg::impl_switchTo ( ObjectList  _eList)
private

◆ OnClose()

void OAddTableDlg::OnClose ( )

Definition at line 445 of file adtabdlg.cxx.

References m_rContext, and dbaui::IAddTableDialogContext::onWindowClosing().

◆ Update()

void OAddTableDlg::Update ( )

Member Data Documentation

◆ m_rContext

IAddTableDialogContext& dbaui::OAddTableDlg::m_rContext
private

Definition at line 57 of file adtabdlg.hxx.

Referenced by impl_isAddAllowed(), impl_switchTo(), OAddTableDlg(), OnClose(), and Update().

◆ m_xAddButton

std::unique_ptr<weld::Button> dbaui::OAddTableDlg::m_xAddButton
private

Definition at line 66 of file adtabdlg.hxx.

Referenced by OAddTableDlg().

◆ m_xCaseQueries

std::unique_ptr<weld::RadioButton> dbaui::OAddTableDlg::m_xCaseQueries
private

Definition at line 61 of file adtabdlg.hxx.

Referenced by impl_switchTo(), and OAddTableDlg().

◆ m_xCaseTables

std::unique_ptr<weld::RadioButton> dbaui::OAddTableDlg::m_xCaseTables
private

Definition at line 60 of file adtabdlg.hxx.

Referenced by impl_switchTo(), and OAddTableDlg().

◆ m_xCloseButton

std::unique_ptr<weld::Button> dbaui::OAddTableDlg::m_xCloseButton
private

Definition at line 67 of file adtabdlg.hxx.

Referenced by OAddTableDlg().

◆ m_xCurrentList

std::unique_ptr< TableObjectListFacade > dbaui::OAddTableDlg::m_xCurrentList
private

Definition at line 58 of file adtabdlg.hxx.

Referenced by impl_switchTo(), and Update().

◆ m_xQueryList

std::unique_ptr<weld::TreeView> dbaui::OAddTableDlg::m_xQueryList
private

Definition at line 64 of file adtabdlg.hxx.

Referenced by impl_switchTo(), and OAddTableDlg().

◆ m_xTableList

std::unique_ptr<OTableTreeListBox> dbaui::OAddTableDlg::m_xTableList
private

Definition at line 63 of file adtabdlg.hxx.

Referenced by impl_switchTo(), and OAddTableDlg().


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