22#include <osl/diagnose.h>
26OTableConnectionData::OTableConnectionData()
32 ,TTableWindowData::value_type _pReferencedTable )
33 :m_pReferencingTable(
std::move(_pReferencingTable))
34 ,m_pReferencedTable(
std::move(_pReferencedTable))
42 OSL_ENSURE(
m_vConnLineData.empty(),
"OTableConnectionData::Init() : call only with empty line list!");
66 if (&rConnData ==
this)
97 OSL_ENSURE(pConnLineData !=
nullptr,
"OTableConnectionData::SetConnLine : have invalid LineData object");
99 pConnLineData->SetSourceFieldName( rSourceFieldName );
100 pConnLineData->SetDestFieldName( rDestFieldName );
107 if(elem->GetDestFieldName() == rDestFieldName && elem->GetSourceFieldName() == rSourceFieldName)
125 return std::make_shared<OTableConnectionData>();
132 OConnectionLineDataVec::size_type nRet =
nCount;
133 for(OConnectionLineDataVec::size_type
i = 0;
i <
nCount;)
the class OConnectionLineData contains the data of a connection e.g.
Contains all connection data which exists between two windows.
TTableWindowData::value_type m_pReferencedTable
virtual void CopyFrom(const OTableConnectionData &rSource)
initialise from a source (more comfortable than a virtual assignment operator)
virtual std::shared_ptr< OTableConnectionData > NewInstance() const
deliver a new instance of my own type
TTableWindowData::value_type m_pReferencingTable
void ResetConnLines()
Deletes list of ConnLines.
virtual ~OTableConnectionData()
bool AppendConnLine(const OUString &rSourceFieldName, const OUString &rDestFieldName)
const OConnectionLineDataVec & GetConnLineDataList() const
void SetConnLine(sal_uInt16 nIndex, const OUString &rSourceFieldName, const OUString &rDestFieldName)
OConnectionLineDataVec::size_type normalizeLines()
moves the empty lines to the back removes duplicated empty lines
OConnectionLineDataVec m_vConnLineData
OTableConnectionData & operator=(const OTableConnectionData &rConnData)
std::vector< OConnectionLineDataRef > OConnectionLineDataVec