23#include <osl/diagnose.h>
27OQueryTableConnectionData::OQueryTableConnectionData()
28 : m_nFromEntryIndex(0)
29 , m_nDestEntryIndex(0)
37 , m_nFromEntryIndex(rConnData.m_nFromEntryIndex)
38 , m_nDestEntryIndex(rConnData.m_nDestEntryIndex)
39 , m_eJoinType(rConnData.m_eJoinType)
40 , m_bNatural(rConnData.m_bNatural)
45 const TTableWindowData::value_type& _pReferencedTable)
47 , m_nFromEntryIndex(0)
48 , m_nDestEntryIndex(0)
66 if (&rConnData ==
this)
90 OSL_ENSURE(pSourceWin,
"NO Source window found!");
91 OSL_ENSURE(pDestWin,
"NO Dest window found!");
104 return std::make_shared<OQueryTableConnectionData>();
OQueryTableConnectionData()
void SetFieldIndex(EConnectionSide nWhich, sal_Int32 nVal)
sal_Int32 m_nDestEntryIndex
OQueryTableConnectionData & operator=(const OQueryTableConnectionData &rConnData)
sal_Int32 m_nFromEntryIndex
virtual ~OQueryTableConnectionData() override
virtual void CopyFrom(const OTableConnectionData &rSource) override
initialise from a source (more comfortable than a virtual assignment operator)
virtual std::shared_ptr< OTableConnectionData > NewInstance() const override
deliver a new instance of my own type
virtual bool Update() override
Update create a new connection.
OUString const & GetAliasName(EConnectionSide nWhich) const
void InitFromDrag(const OTableFieldDescRef &rDragLeft, const OTableFieldDescRef &rDragRight)
Contains all connection data which exists between two windows.
TTableWindowData::value_type m_pReferencedTable
TTableWindowData::value_type m_pReferencingTable
bool AppendConnLine(const OUString &rSourceFieldName, const OUString &rDestFieldName)
OTableConnectionData & operator=(const OTableConnectionData &rConnData)
const TTableWindowData::value_type & GetData() const