36 ,m_pParent( _pContainer )
57 for (
auto const& elem : rLineData)
84 const std::vector<std::unique_ptr<OConnectionLine>>& rLine = rConn.
GetConnLineList();
86 for (
auto const& elem : rLine)
108 TTableWindowData::value_type pRef =
GetData()->getReferencingTable();
112 pRet =
m_pParent->GetTabWindow( pRef->GetComposedName() );
118 TTableWindowData::value_type pRef =
GetData()->getReferencedTable();
122 pRet =
m_pParent->GetTabWindow( pRef->GetComposedName() );
145 (
const std::unique_ptr<OConnectionLine> & pLine )
146 { return pLine->CheckHit( rMousePos ); } );
158 m_pParent->Invalidate( rcBounding, InvalidateFlags::NoChildren );
168 aTempRect = elem->GetBoundingRect();
174 aBoundingRect = aTempRect;
176 aBoundingRect.
Union( aTempRect );
180 return aBoundingRect;
187 pLine->Draw( &rRenderContext );
std::vector< std::unique_ptr< OConnectionLine > > m_vConnLine
const TTableConnectionData::value_type & GetData() const
TTableConnectionData::value_type m_pData
void InvalidateConnection()
OTableWindow * GetDestWin() const
OTableWindow * GetSourceWin() const
OTableConnection & operator=(const OTableConnection &rConn)
tools::Rectangle GetBoundingRect() const
void clearLineData()
loops through the vector and deletes all lines
VclPtr< OJoinTableView > m_pParent
const std::vector< std::unique_ptr< OConnectionLine > > & GetConnLineList() const
bool CheckHit(const Point &rMousePos) const
OTableConnection(OJoinTableView *pContainer, TTableConnectionData::value_type aTabConnData)
virtual void Draw(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
ControllerFrame_Data * m_pData
std::vector< OConnectionLineDataRef > OConnectionLineDataVec
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)