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

#include <RelationControl.hxx>

Collaboration diagram for dbaui::OTableListBoxControl:
[legend]

Public Member Functions

 OTableListBoxControl (weld::Builder *_pParent, const OJoinTableView::OTableWindowMap *_pTableMap, IRelationControlInterface *_pParentDialog)
 
 ~OTableListBoxControl ()
 
void fillListBoxes ()
 fillListBoxes fills the list boxes with the table windows More...
 
void fillAndDisable (const TTableConnectionData::value_type &_pConnectionData)
 fillAndDisable fill the listboxes only with one entry and then disable them More...
 
void enableRelation (bool _bEnable)
 enables the relation control More...
 
void NotifyCellChange ()
 NotifyCellChange notifies the browse control that the connection data has changed. More...
 
void Init (const TTableConnectionData::value_type &_pConnData)
 Init is a call through to the control inside this one. More...
 
void lateUIInit ()
 
void lateInit ()
 
void Disable ()
 
void Invalidate ()
 
void SaveModified ()
 
TTableWindowData::value_type const & getReferencingTable () const
 
IRelationControlInterfacegetContainer () const
 getContainer returns the container interface More...
 

Private Member Functions

 DECL_LINK (OnTableChanged, weld::ComboBox &, void)
 

Private Attributes

std::unique_ptr< weld::ComboBoxm_xLeftTable
 
std::unique_ptr< weld::ComboBoxm_xRightTable
 
std::unique_ptr< weld::Containerm_xTable
 
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
 
VclPtr< ORelationControlm_xRC_Tables
 
const OJoinTableView::OTableWindowMapm_pTableMap
 
IRelationControlInterfacem_pParentDialog
 
OUString m_strCurrentLeft
 
OUString m_strCurrentRight
 

Detailed Description

Definition at line 30 of file RelationControl.hxx.

Constructor & Destructor Documentation

◆ OTableListBoxControl()

dbaui::OTableListBoxControl::OTableListBoxControl ( weld::Builder _pParent,
const OJoinTableView::OTableWindowMap _pTableMap,
IRelationControlInterface _pParentDialog 
)

◆ ~OTableListBoxControl()

dbaui::OTableListBoxControl::~OTableListBoxControl ( )

Definition at line 461 of file RelationControl.cxx.

References m_xRC_Tables, and m_xTableCtrlParent.

Member Function Documentation

◆ DECL_LINK()

dbaui::OTableListBoxControl::DECL_LINK ( OnTableChanged  ,
weld::ComboBox ,
void   
)
private

◆ Disable()

void dbaui::OTableListBoxControl::Disable ( )

Definition at line 665 of file RelationControl.cxx.

References m_xLeftTable, m_xRC_Tables, and m_xRightTable.

◆ enableRelation()

void dbaui::OTableListBoxControl::enableRelation ( bool  _bEnable)

enables the relation control

Parameters
_bEnablewhen sal_True enables it, otherwise disable it.

Definition at line 687 of file RelationControl.cxx.

References LINK, and m_xRC_Tables.

◆ fillAndDisable()

void dbaui::OTableListBoxControl::fillAndDisable ( const TTableConnectionData::value_type &  _pConnectionData)

fillAndDisable fill the listboxes only with one entry and then disable them

Parameters
_pConnectionDatacontains the data which should be filled into the listboxes

Definition at line 643 of file RelationControl.cxx.

References dbaui::fillEntryAndDisable(), m_xLeftTable, and m_xRightTable.

◆ fillListBoxes()

void dbaui::OTableListBoxControl::fillListBoxes ( )

fillListBoxes fills the list boxes with the table windows

Definition at line 468 of file RelationControl.cxx.

References m_pTableMap, m_strCurrentLeft, m_strCurrentRight, m_xLeftTable, m_xRC_Tables, and m_xRightTable.

◆ getContainer()

IRelationControlInterface * dbaui::OTableListBoxControl::getContainer ( ) const
inline

getContainer returns the container interface

Returns
the interface of the container

Definition at line 87 of file RelationControl.hxx.

References m_pParentDialog.

Referenced by dbaui::ORelationControl::setWindowTables().

◆ getReferencingTable()

TTableWindowData::value_type const & dbaui::OTableListBoxControl::getReferencingTable ( ) const

Definition at line 682 of file RelationControl.cxx.

References m_xRC_Tables.

Referenced by dbaui::ORelationControl::getColumnIdent().

◆ Init()

void dbaui::OTableListBoxControl::Init ( const TTableConnectionData::value_type &  _pConnData)

Init is a call through to the control inside this one.

Parameters
_pConnDatathe connection data which is used to init the control

Definition at line 649 of file RelationControl.cxx.

References m_xRC_Tables.

◆ Invalidate()

void dbaui::OTableListBoxControl::Invalidate ( )

Definition at line 672 of file RelationControl.cxx.

References m_xRC_Tables.

◆ lateInit()

void dbaui::OTableListBoxControl::lateInit ( )

Definition at line 660 of file RelationControl.cxx.

References m_xRC_Tables.

Referenced by lateUIInit().

◆ lateUIInit()

void dbaui::OTableListBoxControl::lateUIInit ( )

Definition at line 654 of file RelationControl.cxx.

References lateInit(), and m_xRC_Tables.

Referenced by OTableListBoxControl().

◆ NotifyCellChange()

void dbaui::OTableListBoxControl::NotifyCellChange ( )

NotifyCellChange notifies the browse control that the connection data has changed.

Definition at line 598 of file RelationControl.cxx.

References dbaui::ORelationControl::DELETE, dbaui::ORelationControl::INSERT, line, m_pParentDialog, m_xRC_Tables, dbaui::ORelationControl::MODIFY, and dbaui::IRelationControlInterface::setValid().

Referenced by dbaui::ORelationControl::CellModified().

◆ SaveModified()

void dbaui::OTableListBoxControl::SaveModified ( )

Definition at line 677 of file RelationControl.cxx.

References m_xRC_Tables.

Member Data Documentation

◆ m_pParentDialog

IRelationControlInterface* dbaui::OTableListBoxControl::m_pParentDialog
private

Definition at line 39 of file RelationControl.hxx.

Referenced by getContainer(), and NotifyCellChange().

◆ m_pTableMap

const OJoinTableView::OTableWindowMap* dbaui::OTableListBoxControl::m_pTableMap
private

Definition at line 38 of file RelationControl.hxx.

Referenced by fillListBoxes().

◆ m_strCurrentLeft

OUString dbaui::OTableListBoxControl::m_strCurrentLeft
private

Definition at line 40 of file RelationControl.hxx.

Referenced by fillListBoxes().

◆ m_strCurrentRight

OUString dbaui::OTableListBoxControl::m_strCurrentRight
private

Definition at line 41 of file RelationControl.hxx.

Referenced by fillListBoxes().

◆ m_xLeftTable

std::unique_ptr<weld::ComboBox> dbaui::OTableListBoxControl::m_xLeftTable
private

Definition at line 32 of file RelationControl.hxx.

Referenced by Disable(), fillAndDisable(), fillListBoxes(), and OTableListBoxControl().

◆ m_xRC_Tables

VclPtr<ORelationControl> dbaui::OTableListBoxControl::m_xRC_Tables
private

◆ m_xRightTable

std::unique_ptr<weld::ComboBox> dbaui::OTableListBoxControl::m_xRightTable
private

Definition at line 33 of file RelationControl.hxx.

Referenced by Disable(), fillAndDisable(), fillListBoxes(), and OTableListBoxControl().

◆ m_xTable

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

Definition at line 34 of file RelationControl.hxx.

Referenced by OTableListBoxControl().

◆ m_xTableCtrlParent

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

Definition at line 35 of file RelationControl.hxx.

Referenced by ~OTableListBoxControl().


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