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

#include <dbfindex.hxx>

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

Public Member Functions

 ODbaseIndexDialog (weld::Window *pParent, OUString aDataSrcName)
 
virtual ~ODbaseIndexDialog () override
 
- 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
 

Protected Member Functions

void Init ()
 
void SetCtrls ()
 
OTableIndex RemoveFreeIndex (const OUString &_rName, bool _bMustExist)
 
void InsertFreeIndex (const OTableIndex &_rIndex)
 
OTableIndex RemoveTableIndex (std::u16string_view _rTableName, const OUString &_rIndexName)
 
void InsertTableIndex (std::u16string_view _rTableName, const OTableIndex &_rIndex)
 
void checkButtons ()
 

Static Protected Member Functions

static OTableIndex implRemoveIndex (const OUString &_rName, TableIndexList &_rList, weld::TreeView &_rDisplay, bool _bMustExist)
 
static void implInsertIndex (const OTableIndex &_rIndex, TableIndexList &_rList, weld::TreeView &_rDisplay)
 

Private Member Functions

 DECL_LINK (TableSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (AddClickHdl, weld::Button &, void)
 
 DECL_LINK (RemoveClickHdl, weld::Button &, void)
 
 DECL_LINK (AddAllClickHdl, weld::Button &, void)
 
 DECL_LINK (RemoveAllClickHdl, weld::Button &, void)
 
 DECL_LINK (OKClickHdl, weld::Button &, void)
 
 DECL_LINK (OnListEntrySelected, weld::TreeView &, void)
 

Private Attributes

OUString m_aDSN
 
TableInfoList m_aTableInfoList
 
TableIndexList m_aFreeIndexList
 
std::unique_ptr< weld::Buttonm_xPB_OK
 
std::unique_ptr< weld::ComboBoxm_xCB_Tables
 
std::unique_ptr< weld::Widgetm_xIndexes
 
std::unique_ptr< weld::TreeViewm_xLB_TableIndexes
 
std::unique_ptr< weld::TreeViewm_xLB_FreeIndexes
 
std::unique_ptr< weld::Buttonm_xAdd
 
std::unique_ptr< weld::Buttonm_xRemove
 
std::unique_ptr< weld::Buttonm_xAddAll
 
std::unique_ptr< weld::Buttonm_xRemoveAll
 

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 65 of file dbfindex.hxx.

Constructor & Destructor Documentation

◆ ODbaseIndexDialog()

dbaui::ODbaseIndexDialog::ODbaseIndexDialog ( weld::Window pParent,
OUString  aDataSrcName 
)

◆ ~ODbaseIndexDialog()

dbaui::ODbaseIndexDialog::~ODbaseIndexDialog ( )
overridevirtual

Definition at line 75 of file dbfindex.cxx.

Member Function Documentation

◆ checkButtons()

void dbaui::ODbaseIndexDialog::checkButtons ( )
protected

Definition at line 79 of file dbfindex.cxx.

References m_xAdd, m_xAddAll, m_xLB_FreeIndexes, m_xLB_TableIndexes, m_xRemove, and m_xRemoveAll.

Referenced by Init(), and SetCtrls().

◆ DECL_LINK() [1/7]

dbaui::ODbaseIndexDialog::DECL_LINK ( AddAllClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/7]

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

◆ DECL_LINK() [3/7]

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

◆ DECL_LINK() [4/7]

dbaui::ODbaseIndexDialog::DECL_LINK ( OnListEntrySelected  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [5/7]

dbaui::ODbaseIndexDialog::DECL_LINK ( RemoveAllClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/7]

dbaui::ODbaseIndexDialog::DECL_LINK ( RemoveClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [7/7]

dbaui::ODbaseIndexDialog::DECL_LINK ( TableSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ implInsertIndex()

void dbaui::ODbaseIndexDialog::implInsertIndex ( const OTableIndex _rIndex,
TableIndexList _rList,
weld::TreeView _rDisplay 
)
staticprotected

◆ implRemoveIndex()

OTableIndex dbaui::ODbaseIndexDialog::implRemoveIndex ( const OUString &  _rName,
TableIndexList _rList,
weld::TreeView _rDisplay,
bool  _bMustExist 
)
staticprotected

◆ Init()

void dbaui::ODbaseIndexDialog::Init ( void  )
protected

◆ InsertFreeIndex()

void dbaui::ODbaseIndexDialog::InsertFreeIndex ( const OTableIndex _rIndex)
inlineprotected

Definition at line 98 of file dbfindex.hxx.

References implInsertIndex(), m_aFreeIndexList, and m_xLB_FreeIndexes.

◆ InsertTableIndex()

void dbaui::ODbaseIndexDialog::InsertTableIndex ( std::u16string_view  _rTableName,
const OTableIndex _rIndex 
)
protected

Definition at line 134 of file dbfindex.cxx.

References implInsertIndex(), m_aTableInfoList, and m_xLB_TableIndexes.

◆ RemoveFreeIndex()

OTableIndex dbaui::ODbaseIndexDialog::RemoveFreeIndex ( const OUString &  _rName,
bool  _bMustExist 
)
inlineprotected

Definition at line 97 of file dbfindex.hxx.

References implRemoveIndex(), m_aFreeIndexList, and m_xLB_FreeIndexes.

Referenced by Init().

◆ RemoveTableIndex()

OTableIndex dbaui::ODbaseIndexDialog::RemoveTableIndex ( std::u16string_view  _rTableName,
const OUString &  _rIndexName 
)
protected

Definition at line 120 of file dbfindex.cxx.

References implRemoveIndex(), m_aTableInfoList, and m_xLB_TableIndexes.

◆ SetCtrls()

void dbaui::ODbaseIndexDialog::SetCtrls ( )
protected

Member Data Documentation

◆ m_aDSN

OUString dbaui::ODbaseIndexDialog::m_aDSN
private

Definition at line 67 of file dbfindex.hxx.

Referenced by Init().

◆ m_aFreeIndexList

TableIndexList dbaui::ODbaseIndexDialog::m_aFreeIndexList
private

Definition at line 69 of file dbfindex.hxx.

Referenced by Init(), InsertFreeIndex(), RemoveFreeIndex(), and SetCtrls().

◆ m_aTableInfoList

TableInfoList dbaui::ODbaseIndexDialog::m_aTableInfoList
private

Definition at line 68 of file dbfindex.hxx.

Referenced by Init(), InsertTableIndex(), RemoveTableIndex(), and SetCtrls().

◆ m_xAdd

std::unique_ptr<weld::Button> dbaui::ODbaseIndexDialog::m_xAdd
private

Definition at line 77 of file dbfindex.hxx.

Referenced by checkButtons(), and ODbaseIndexDialog().

◆ m_xAddAll

std::unique_ptr<weld::Button> dbaui::ODbaseIndexDialog::m_xAddAll
private

Definition at line 79 of file dbfindex.hxx.

Referenced by checkButtons(), and ODbaseIndexDialog().

◆ m_xCB_Tables

std::unique_ptr<weld::ComboBox> dbaui::ODbaseIndexDialog::m_xCB_Tables
private

Definition at line 72 of file dbfindex.hxx.

Referenced by ODbaseIndexDialog(), and SetCtrls().

◆ m_xIndexes

std::unique_ptr<weld::Widget> dbaui::ODbaseIndexDialog::m_xIndexes
private

Definition at line 73 of file dbfindex.hxx.

Referenced by Init().

◆ m_xLB_FreeIndexes

std::unique_ptr<weld::TreeView> dbaui::ODbaseIndexDialog::m_xLB_FreeIndexes
private

◆ m_xLB_TableIndexes

std::unique_ptr<weld::TreeView> dbaui::ODbaseIndexDialog::m_xLB_TableIndexes
private

◆ m_xPB_OK

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

Definition at line 71 of file dbfindex.hxx.

Referenced by Init(), and ODbaseIndexDialog().

◆ m_xRemove

std::unique_ptr<weld::Button> dbaui::ODbaseIndexDialog::m_xRemove
private

Definition at line 78 of file dbfindex.hxx.

Referenced by checkButtons(), and ODbaseIndexDialog().

◆ m_xRemoveAll

std::unique_ptr<weld::Button> dbaui::ODbaseIndexDialog::m_xRemoveAll
private

Definition at line 80 of file dbfindex.hxx.

Referenced by checkButtons(), and ODbaseIndexDialog().


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