LibreOffice Module dbaccess (master) 1
|
#include <RelationControl.hxx>
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 |
IRelationControlInterface * | getContainer () const |
getContainer returns the container interface More... | |
Private Member Functions | |
DECL_LINK (OnTableChanged, weld::ComboBox &, void) | |
Private Attributes | |
std::unique_ptr< weld::ComboBox > | m_xLeftTable |
std::unique_ptr< weld::ComboBox > | m_xRightTable |
std::unique_ptr< weld::Container > | m_xTable |
css::uno::Reference< css::awt::XWindow > | m_xTableCtrlParent |
VclPtr< ORelationControl > | m_xRC_Tables |
const OJoinTableView::OTableWindowMap * | m_pTableMap |
IRelationControlInterface * | m_pParentDialog |
OUString | m_strCurrentLeft |
OUString | m_strCurrentRight |
Definition at line 30 of file RelationControl.hxx.
dbaui::OTableListBoxControl::OTableListBoxControl | ( | weld::Builder * | _pParent, |
const OJoinTableView::OTableWindowMap * | _pTableMap, | ||
IRelationControlInterface * | _pParentDialog | ||
) |
Definition at line 437 of file RelationControl.cxx.
References Create(), Size::Height(), lateUIInit(), LINK, m_xLeftTable, m_xRC_Tables, m_xRightTable, m_xTable, and Size::Width().
dbaui::OTableListBoxControl::~OTableListBoxControl | ( | ) |
Definition at line 461 of file RelationControl.cxx.
References m_xRC_Tables, and m_xTableCtrlParent.
|
private |
void dbaui::OTableListBoxControl::Disable | ( | ) |
Definition at line 665 of file RelationControl.cxx.
References m_xLeftTable, m_xRC_Tables, and m_xRightTable.
void dbaui::OTableListBoxControl::enableRelation | ( | bool | _bEnable | ) |
enables the relation control
_bEnable | when sal_True enables it, otherwise disable it. |
Definition at line 687 of file RelationControl.cxx.
References LINK, and m_xRC_Tables.
void dbaui::OTableListBoxControl::fillAndDisable | ( | const TTableConnectionData::value_type & | _pConnectionData | ) |
fillAndDisable fill the listboxes only with one entry and then disable them
_pConnectionData | contains 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.
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.
|
inline |
getContainer returns the container interface
Definition at line 87 of file RelationControl.hxx.
References m_pParentDialog.
Referenced by dbaui::ORelationControl::setWindowTables().
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().
void dbaui::OTableListBoxControl::Init | ( | const TTableConnectionData::value_type & | _pConnData | ) |
Init is a call through to the control inside this one.
_pConnData | the connection data which is used to init the control |
Definition at line 649 of file RelationControl.cxx.
References m_xRC_Tables.
void dbaui::OTableListBoxControl::Invalidate | ( | ) |
Definition at line 672 of file RelationControl.cxx.
References m_xRC_Tables.
void dbaui::OTableListBoxControl::lateInit | ( | ) |
Definition at line 660 of file RelationControl.cxx.
References m_xRC_Tables.
Referenced by lateUIInit().
void dbaui::OTableListBoxControl::lateUIInit | ( | ) |
Definition at line 654 of file RelationControl.cxx.
References lateInit(), and m_xRC_Tables.
Referenced by OTableListBoxControl().
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().
void dbaui::OTableListBoxControl::SaveModified | ( | ) |
Definition at line 677 of file RelationControl.cxx.
References m_xRC_Tables.
|
private |
Definition at line 39 of file RelationControl.hxx.
Referenced by getContainer(), and NotifyCellChange().
|
private |
Definition at line 38 of file RelationControl.hxx.
Referenced by fillListBoxes().
|
private |
Definition at line 40 of file RelationControl.hxx.
Referenced by fillListBoxes().
|
private |
Definition at line 41 of file RelationControl.hxx.
Referenced by fillListBoxes().
|
private |
Definition at line 32 of file RelationControl.hxx.
Referenced by Disable(), fillAndDisable(), fillListBoxes(), and OTableListBoxControl().
|
private |
Definition at line 36 of file RelationControl.hxx.
Referenced by Disable(), enableRelation(), fillListBoxes(), getReferencingTable(), Init(), Invalidate(), lateInit(), lateUIInit(), NotifyCellChange(), OTableListBoxControl(), SaveModified(), and ~OTableListBoxControl().
|
private |
Definition at line 33 of file RelationControl.hxx.
Referenced by Disable(), fillAndDisable(), fillListBoxes(), and OTableListBoxControl().
|
private |
Definition at line 34 of file RelationControl.hxx.
Referenced by OTableListBoxControl().
|
private |
Definition at line 35 of file RelationControl.hxx.
Referenced by ~OTableListBoxControl().