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

Contains all connection data which exists between two windows. More...

#include <TableConnectionData.hxx>

Inheritance diagram for dbaui::OTableConnectionData:
[legend]

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< OTableConnectionDataNewInstance () 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 OConnectionLineDataVecGetConnLineDataList () const
 
OConnectionLineDataVecGetConnLineDataList ()
 
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 ()
 
OTableConnectionDataoperator= (const OTableConnectionData &rConnData)
 

Protected Attributes

TTableWindowData::value_type m_pReferencingTable
 
TTableWindowData::value_type m_pReferencedTable
 
OUString m_aConnName
 
OConnectionLineDataVec m_vConnLineData
 

Detailed Description

Contains all connection data which exists between two windows.

Definition at line 36 of file TableConnectionData.hxx.

Constructor & Destructor Documentation

◆ OTableConnectionData() [1/3]

OTableConnectionData::OTableConnectionData ( )

Definition at line 26 of file TableConnectionData.cxx.

References Init().

◆ OTableConnectionData() [2/3]

OTableConnectionData::OTableConnectionData ( TTableWindowData::value_type  _aReferencingTable,
TTableWindowData::value_type  _aReferencedTable 
)

Definition at line 31 of file TableConnectionData.cxx.

References Init().

◆ OTableConnectionData() [3/3]

OTableConnectionData::OTableConnectionData ( const OTableConnectionData rConnData)

Definition at line 47 of file TableConnectionData.cxx.

◆ ~OTableConnectionData()

OTableConnectionData::~OTableConnectionData ( )
virtual

Definition at line 58 of file TableConnectionData.cxx.

References m_vConnLineData.

Member Function Documentation

◆ AppendConnLine()

bool OTableConnectionData::AppendConnLine ( const OUString &  rSourceFieldName,
const OUString &  rDestFieldName 
)

◆ CopyFrom()

void OTableConnectionData::CopyFrom ( const OTableConnectionData rSource)
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.

◆ GetConnLineDataList() [1/2]

OConnectionLineDataVec & dbaui::OTableConnectionData::GetConnLineDataList ( )
inline

Definition at line 82 of file TableConnectionData.hxx.

References m_vConnLineData.

◆ GetConnLineDataList() [2/2]

const OConnectionLineDataVec & dbaui::OTableConnectionData::GetConnLineDataList ( ) const
inline

Definition at line 81 of file TableConnectionData.hxx.

References m_vConnLineData.

Referenced by operator=().

◆ getReferencedTable()

const TTableWindowData::value_type & dbaui::OTableConnectionData::getReferencedTable ( ) const
inline

◆ getReferencingTable()

const TTableWindowData::value_type & dbaui::OTableConnectionData::getReferencingTable ( ) const
inline

◆ Init()

void OTableConnectionData::Init ( void  )
protected

Definition at line 39 of file TableConnectionData.cxx.

References m_vConnLineData, and ResetConnLines().

Referenced by OTableConnectionData().

◆ NewInstance()

std::shared_ptr< OTableConnectionData > OTableConnectionData::NewInstance ( ) const
virtual

deliver a new instance of my own type

derived classes have to deliver an instance of their own type

Note
does NOT have to be initialised

Reimplemented in dbaui::ORelationTableConnectionData, and dbaui::OQueryTableConnectionData.

Definition at line 123 of file TableConnectionData.cxx.

◆ normalizeLines()

OConnectionLineDataVec::size_type OTableConnectionData::normalizeLines ( )

moves the empty lines to the back removes duplicated empty lines

caller is responsible for repainting them

Returns
index of first changed line, or one-past-the-end if no change

Definition at line 128 of file TableConnectionData.cxx.

References i, m_vConnLineData, and nCount.

◆ operator=()

OTableConnectionData & OTableConnectionData::operator= ( const OTableConnectionData rConnData)
protected

◆ ResetConnLines()

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=().

◆ SetConnLine()

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.

◆ setReferencedTable()

void dbaui::OTableConnectionData::setReferencedTable ( const TTableWindowData::value_type &  _pTable)
inline

Definition at line 88 of file TableConnectionData.hxx.

References m_pReferencedTable.

◆ setReferencingTable()

void dbaui::OTableConnectionData::setReferencingTable ( const TTableWindowData::value_type &  _pTable)
inline

Definition at line 87 of file TableConnectionData.hxx.

References m_pReferencingTable.

◆ Update()

virtual bool dbaui::OTableConnectionData::Update ( )
inlinevirtual

Update create a new connection.

Returns
true if successful

Reimplemented in dbaui::ORelationTableConnectionData, and dbaui::OQueryTableConnectionData.

Definition at line 94 of file TableConnectionData.hxx.

Member Data Documentation

◆ m_aConnName

OUString dbaui::OTableConnectionData::m_aConnName
protected

◆ m_pReferencedTable

TTableWindowData::value_type dbaui::OTableConnectionData::m_pReferencedTable
protected

◆ m_pReferencingTable

TTableWindowData::value_type dbaui::OTableConnectionData::m_pReferencingTable
protected

◆ m_vConnLineData

OConnectionLineDataVec dbaui::OTableConnectionData::m_vConnLineData
protected

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