|
LibreOffice Module dbaccess (master) 1
|
Contains all connection data which exists between two windows. More...
#include <TableConnectionData.hxx>
Public Member Functions | |
| OTableConnectionData () | |
| OTableConnectionData (TTableWindowData::value_type _aReferencingTable, TTableWindowData::value_type _aReferencedTable) | |
| OTableConnectionData (const OTableConnectionData &rConnData) | |
| virtual | ~OTableConnectionData () |
| virtual void | CopyFrom (const OTableConnectionData &rSource) |
| initialise from a source (more comfortable than a virtual assignment operator) More... | |
| virtual std::shared_ptr< OTableConnectionData > | NewInstance () const |
| deliver a new instance of my own type More... | |
| void | SetConnLine (sal_uInt16 nIndex, const OUString &rSourceFieldName, const OUString &rDestFieldName) |
| bool | AppendConnLine (const OUString &rSourceFieldName, const OUString &rDestFieldName) |
| void | ResetConnLines () |
| Deletes list of ConnLines. More... | |
| OConnectionLineDataVec::size_type | normalizeLines () |
| moves the empty lines to the back removes duplicated empty lines More... | |
| const OConnectionLineDataVec & | GetConnLineDataList () const |
| OConnectionLineDataVec & | GetConnLineDataList () |
| const TTableWindowData::value_type & | getReferencingTable () const |
| const TTableWindowData::value_type & | getReferencedTable () const |
| void | setReferencingTable (const TTableWindowData::value_type &_pTable) |
| void | setReferencedTable (const TTableWindowData::value_type &_pTable) |
| virtual bool | Update () |
| Update create a new connection. More... | |
Protected Member Functions | |
| void | Init () |
| OTableConnectionData & | operator= (const OTableConnectionData &rConnData) |
Protected Attributes | |
| TTableWindowData::value_type | m_pReferencingTable |
| TTableWindowData::value_type | m_pReferencedTable |
| OUString | m_aConnName |
| OConnectionLineDataVec | m_vConnLineData |
Contains all connection data which exists between two windows.
Definition at line 36 of file TableConnectionData.hxx.
| OTableConnectionData::OTableConnectionData | ( | ) |
Definition at line 26 of file TableConnectionData.cxx.
References Init().
| OTableConnectionData::OTableConnectionData | ( | TTableWindowData::value_type | _aReferencingTable, |
| TTableWindowData::value_type | _aReferencedTable | ||
| ) |
Definition at line 31 of file TableConnectionData.cxx.
References Init().
| OTableConnectionData::OTableConnectionData | ( | const OTableConnectionData & | rConnData | ) |
Definition at line 47 of file TableConnectionData.cxx.
|
virtual |
Definition at line 58 of file TableConnectionData.cxx.
References m_vConnLineData.
| bool OTableConnectionData::AppendConnLine | ( | const OUString & | rSourceFieldName, |
| const OUString & | rDestFieldName | ||
| ) |
Definition at line 103 of file TableConnectionData.cxx.
References m_vConnLineData.
Referenced by dbaui::OQueryTableConnectionData::InitFromDrag(), and SetConnLine().
|
virtual |
initialise from a source (more comfortable than a virtual assignment operator)
Reimplemented in dbaui::ORelationTableConnectionData, and dbaui::OQueryTableConnectionData.
Definition at line 52 of file TableConnectionData.cxx.
|
inline |
Definition at line 82 of file TableConnectionData.hxx.
References m_vConnLineData.
|
inline |
Definition at line 81 of file TableConnectionData.hxx.
References m_vConnLineData.
Referenced by operator=().
|
inline |
Definition at line 85 of file TableConnectionData.hxx.
References m_pReferencedTable.
Referenced by dbaui::ORelationTableConnectionData::IsDestPrimKey(), dbaui::OQueryTableConnection::operator==(), dbaui::OQueryTableView::ReSync(), dbaui::ORelationTableView::ReSync(), and dbaui::ORelationTableConnectionData::Update().
|
inline |
Definition at line 84 of file TableConnectionData.hxx.
References m_pReferencingTable.
Referenced by dbaui::ORelationTableConnectionData::DropRelation(), dbaui::ORelationTableConnectionData::IsSourcePrimKey(), dbaui::OQueryTableConnection::operator==(), dbaui::OQueryTableView::ReSync(), dbaui::ORelationTableView::ReSync(), and dbaui::ORelationTableConnectionData::Update().
|
protected |
Definition at line 39 of file TableConnectionData.cxx.
References m_vConnLineData, and ResetConnLines().
Referenced by OTableConnectionData().
|
virtual |
deliver a new instance of my own type
derived classes have to deliver an instance of their own type
Reimplemented in dbaui::ORelationTableConnectionData, and dbaui::OQueryTableConnectionData.
Definition at line 123 of file TableConnectionData.cxx.
| OConnectionLineDataVec::size_type OTableConnectionData::normalizeLines | ( | ) |
moves the empty lines to the back removes duplicated empty lines
caller is responsible for repainting them
Definition at line 128 of file TableConnectionData.cxx.
References i, m_vConnLineData, and nCount.
|
protected |
Definition at line 64 of file TableConnectionData.cxx.
References GetConnLineDataList(), m_aConnName, m_pReferencedTable, m_pReferencingTable, m_vConnLineData, and ResetConnLines().
Referenced by dbaui::OQueryTableConnectionData::operator=(), and dbaui::ORelationTableConnectionData::operator=().
| void OTableConnectionData::ResetConnLines | ( | ) |
Deletes list of ConnLines.
Definition at line 118 of file TableConnectionData.cxx.
References m_vConnLineData.
Referenced by IMPL_LINK_NOARG(), Init(), and operator=().
| void OTableConnectionData::SetConnLine | ( | sal_uInt16 | nIndex, |
| const OUString & | rSourceFieldName, | ||
| const OUString & | rDestFieldName | ||
| ) |
Definition at line 83 of file TableConnectionData.cxx.
References AppendConnLine(), m_vConnLineData, and nIndex.
|
inline |
Definition at line 88 of file TableConnectionData.hxx.
References m_pReferencedTable.
|
inline |
Definition at line 87 of file TableConnectionData.hxx.
References m_pReferencingTable.
|
inlinevirtual |
Update create a new connection.
Reimplemented in dbaui::ORelationTableConnectionData, and dbaui::OQueryTableConnectionData.
Definition at line 94 of file TableConnectionData.hxx.
|
protected |
Definition at line 41 of file TableConnectionData.hxx.
Referenced by dbaui::ORelationTableConnectionData::DropRelation(), operator=(), dbaui::ORelationTableConnectionData::ORelationTableConnectionData(), and dbaui::ORelationTableConnectionData::Update().
|
protected |
Definition at line 40 of file TableConnectionData.hxx.
Referenced by dbaui::ORelationTableConnectionData::ChangeOrientation(), dbaui::OQueryTableConnectionData::GetAliasName(), getReferencedTable(), dbaui::OQueryTableConnectionData::InitFromDrag(), operator=(), and setReferencedTable().
|
protected |
Definition at line 39 of file TableConnectionData.hxx.
Referenced by dbaui::ORelationTableConnectionData::ChangeOrientation(), dbaui::OQueryTableConnectionData::GetAliasName(), getReferencingTable(), dbaui::OQueryTableConnectionData::InitFromDrag(), operator=(), and setReferencingTable().
|
protected |
Definition at line 43 of file TableConnectionData.hxx.
Referenced by AppendConnLine(), dbaui::ORelationTableConnectionData::ChangeOrientation(), dbaui::ORelationTableConnectionData::checkPrimaryKey(), GetConnLineDataList(), Init(), normalizeLines(), operator=(), ResetConnLines(), SetConnLine(), dbaui::ORelationTableConnectionData::Update(), and ~OTableConnectionData().