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

#include <indexdialog.hxx>

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

Public Types

typedef std::pair< const weld::TreeIter &, OUString > IterString
 

Public Member Functions

 DbaIndexDialog (weld::Window *_pParent, const css::uno::Sequence< OUString > &_rFieldNames, const css::uno::Reference< css::container::XNameAccess > &_rxIndexes, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
virtual ~DbaIndexDialog () 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
 

Private Member Functions

void fillIndexList ()
 
void updateToolbox ()
 
void updateControls (const weld::TreeIter *pEntry)
 
void IndexSelected ()
 
 DECL_LINK (OnIndexSelected, weld::TreeView &, void)
 
 DECL_LINK (OnIndexAction, const OUString &, void)
 
 DECL_LINK (OnEntryEditing, const weld::TreeIter &, bool)
 
 DECL_LINK (OnEntryEdited, const IterString &, bool)
 
 DECL_LINK (OnModifiedClick, weld::Toggleable &, void)
 
 DECL_LINK (OnModified, IndexFieldsControl &, void)
 
 DECL_LINK (OnCloseDialog, weld::Button &, void)
 
 DECL_LINK (OnEditIndexAgain, void *, void)
 
void OnNewIndex ()
 
void OnDropIndex (bool _bConfirm=true)
 
void OnRenameIndex ()
 
void OnSaveIndex ()
 
void OnResetIndex ()
 
bool implCommit (const weld::TreeIter *pEntry)
 
bool implSaveModified (bool _bPlausibility=true)
 
bool implCommitPreviouslySelected ()
 
bool implDropIndex (const weld::TreeIter *pEntry, bool _bRemoveFromCollection)
 
bool implCheckPlausibility (const Indexes::const_iterator &_rPos)
 

Private Attributes

css::uno::Reference< css::sdbc::XConnection > m_xConnection
 
std::unique_ptr< OIndexCollectionm_xIndexes
 
std::unique_ptr< weld::TreeIterm_xPreviousSelection
 
bool m_bEditingActive
 
bool m_bEditAgain
 
bool m_bNoHandlerCall
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::unique_ptr< weld::Toolbarm_xActions
 
std::unique_ptr< weld::TreeViewm_xIndexList
 
std::unique_ptr< weld::Labelm_xIndexDetails
 
std::unique_ptr< weld::Labelm_xDescriptionLabel
 
std::unique_ptr< weld::Labelm_xDescription
 
std::unique_ptr< weld::CheckButtonm_xUnique
 
std::unique_ptr< weld::Labelm_xFieldsLabel
 
std::unique_ptr< weld::Buttonm_xClose
 
std::unique_ptr< weld::Containerm_xTable
 
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
 
VclPtr< IndexFieldsControlm_xFields
 

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 34 of file indexdialog.hxx.

Member Typedef Documentation

◆ IterString

typedef std::pair<const weld::TreeIter&, OUString> dbaui::DbaIndexDialog::IterString

Definition at line 68 of file indexdialog.hxx.

Constructor & Destructor Documentation

◆ DbaIndexDialog()

dbaui::DbaIndexDialog::DbaIndexDialog ( weld::Window _pParent,
const css::uno::Sequence< OUString > &  _rFieldNames,
const css::uno::Reference< css::container::XNameAccess > &  _rxIndexes,
const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext 
)

◆ ~DbaIndexDialog()

dbaui::DbaIndexDialog::~DbaIndexDialog ( )
overridevirtual

Definition at line 185 of file indexdialog.cxx.

References m_xFields, m_xIndexes, and m_xTableCtrlParent.

Member Function Documentation

◆ DECL_LINK() [1/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnCloseDialog  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnEditIndexAgain  ,
void *  ,
void   
)
private

◆ DECL_LINK() [3/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnEntryEdited  ,
const IterString ,
bool   
)
private

◆ DECL_LINK() [4/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnEntryEditing  ,
const weld::TreeIter ,
bool   
)
private

◆ DECL_LINK() [5/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnIndexAction  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [6/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnIndexSelected  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [7/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnModified  ,
IndexFieldsControl ,
void   
)
private

◆ DECL_LINK() [8/8]

dbaui::DbaIndexDialog::DECL_LINK ( OnModifiedClick  ,
weld::Toggleable ,
void   
)
private

◆ fillIndexList()

void dbaui::DbaIndexDialog::fillIndexList ( )
private

Definition at line 165 of file indexdialog.cxx.

References IndexSelected(), m_xIndexes, m_xIndexList, and nPos.

Referenced by DbaIndexDialog().

◆ implCheckPlausibility()

bool dbaui::DbaIndexDialog::implCheckPlausibility ( const Indexes::const_iterator &  _rPos)
private

◆ implCommit()

bool dbaui::DbaIndexDialog::implCommit ( const weld::TreeIter pEntry)
private

◆ implCommitPreviouslySelected()

bool dbaui::DbaIndexDialog::implCommitPreviouslySelected ( )
private

◆ implDropIndex()

bool dbaui::DbaIndexDialog::implDropIndex ( const weld::TreeIter pEntry,
bool  _bRemoveFromCollection 
)
private

◆ implSaveModified()

bool dbaui::DbaIndexDialog::implSaveModified ( bool  _bPlausibility = true)
private

◆ IndexSelected()

void dbaui::DbaIndexDialog::IndexSelected ( )
private

◆ OnDropIndex()

void dbaui::DbaIndexDialog::OnDropIndex ( bool  _bConfirm = true)
private

◆ OnNewIndex()

void dbaui::DbaIndexDialog::OnNewIndex ( )
private

◆ OnRenameIndex()

void dbaui::DbaIndexDialog::OnRenameIndex ( )
private

Definition at line 351 of file indexdialog.cxx.

References implSaveModified(), m_xIndexList, and updateToolbox().

◆ OnResetIndex()

void dbaui::DbaIndexDialog::OnResetIndex ( )
private

◆ OnSaveIndex()

void dbaui::DbaIndexDialog::OnSaveIndex ( )
private

Definition at line 368 of file indexdialog.cxx.

References implCommitPreviouslySelected(), and updateToolbox().

◆ updateControls()

void dbaui::DbaIndexDialog::updateControls ( const weld::TreeIter pEntry)
private

Definition at line 632 of file indexdialog.cxx.

References m_xDescription, m_xDescriptionLabel, m_xFields, m_xIndexes, m_xIndexList, and m_xUnique.

Referenced by IndexSelected(), and OnResetIndex().

◆ updateToolbox()

void dbaui::DbaIndexDialog::updateToolbox ( )
private

Member Data Documentation

◆ m_bEditAgain

bool dbaui::DbaIndexDialog::m_bEditAgain
private

Definition at line 41 of file indexdialog.hxx.

◆ m_bEditingActive

bool dbaui::DbaIndexDialog::m_bEditingActive
private

Definition at line 40 of file indexdialog.hxx.

Referenced by IndexSelected(), and updateToolbox().

◆ m_bNoHandlerCall

bool dbaui::DbaIndexDialog::m_bNoHandlerCall
private

Definition at line 42 of file indexdialog.hxx.

Referenced by implDropIndex(), IndexSelected(), and OnNewIndex().

◆ m_xActions

std::unique_ptr<weld::Toolbar> dbaui::DbaIndexDialog::m_xActions
private

Definition at line 47 of file indexdialog.hxx.

Referenced by DbaIndexDialog(), and updateToolbox().

◆ m_xClose

std::unique_ptr<weld::Button> dbaui::DbaIndexDialog::m_xClose
private

Definition at line 54 of file indexdialog.hxx.

Referenced by DbaIndexDialog().

◆ m_xConnection

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

Definition at line 36 of file indexdialog.hxx.

Referenced by DbaIndexDialog().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > dbaui::DbaIndexDialog::m_xContext
private

Definition at line 45 of file indexdialog.hxx.

Referenced by implCommit(), implDropIndex(), and OnResetIndex().

◆ m_xDescription

std::unique_ptr<weld::Label> dbaui::DbaIndexDialog::m_xDescription
private

Definition at line 51 of file indexdialog.hxx.

Referenced by DbaIndexDialog(), and updateControls().

◆ m_xDescriptionLabel

std::unique_ptr<weld::Label> dbaui::DbaIndexDialog::m_xDescriptionLabel
private

Definition at line 50 of file indexdialog.hxx.

Referenced by DbaIndexDialog(), IndexSelected(), and updateControls().

◆ m_xFields

VclPtr<IndexFieldsControl> dbaui::DbaIndexDialog::m_xFields
private

◆ m_xFieldsLabel

std::unique_ptr<weld::Label> dbaui::DbaIndexDialog::m_xFieldsLabel
private

Definition at line 53 of file indexdialog.hxx.

Referenced by IndexSelected().

◆ m_xIndexDetails

std::unique_ptr<weld::Label> dbaui::DbaIndexDialog::m_xIndexDetails
private

Definition at line 49 of file indexdialog.hxx.

Referenced by IndexSelected().

◆ m_xIndexes

std::unique_ptr<OIndexCollection> dbaui::DbaIndexDialog::m_xIndexes
private

◆ m_xIndexList

std::unique_ptr<weld::TreeView> dbaui::DbaIndexDialog::m_xIndexList
private

◆ m_xPreviousSelection

std::unique_ptr<weld::TreeIter> dbaui::DbaIndexDialog::m_xPreviousSelection
private

◆ m_xTable

std::unique_ptr<weld::Container> dbaui::DbaIndexDialog::m_xTable
private

Definition at line 55 of file indexdialog.hxx.

Referenced by DbaIndexDialog().

◆ m_xTableCtrlParent

css::uno::Reference<css::awt::XWindow> dbaui::DbaIndexDialog::m_xTableCtrlParent
private

Definition at line 56 of file indexdialog.hxx.

Referenced by ~DbaIndexDialog().

◆ m_xUnique

std::unique_ptr<weld::CheckButton> dbaui::DbaIndexDialog::m_xUnique
private

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