LibreOffice Module dbaccess (master) 1
|
#include <ConnectionLine.hxx>
Public Member Functions | |
OConnectionLine (OTableConnection *pConn, OConnectionLineDataRef pLineData) | |
OConnectionLine (const OConnectionLine &rLine) | |
~OConnectionLine () | |
OConnectionLine & | operator= (const OConnectionLine &rLine) |
tools::Rectangle | GetBoundingRect () const |
bool | RecalcLine () |
void | Draw (OutputDevice *pOutDev) |
bool | CheckHit (const Point &rMousePos) const |
bool | IsValid () const |
tools::Rectangle | GetSourceTextPos () const |
tools::Rectangle | GetDestTextPos () const |
const OConnectionLineDataRef & | GetData () const |
Point | getMidPoint () const |
Private Attributes | |
VclPtr< OTableConnection > | m_pTabConn |
OConnectionLineDataRef | m_pData |
Point | m_aSourceConnPos |
Point | m_aDestConnPos |
Point | m_aSourceDescrLinePos |
Point | m_aDestDescrLinePos |
Definition at line 38 of file ConnectionLine.hxx.
OConnectionLine::OConnectionLine | ( | OTableConnection * | pConn, |
OConnectionLineDataRef | pLineData | ||
) |
Definition at line 125 of file ConnectionLine.cxx.
OConnectionLine::OConnectionLine | ( | const OConnectionLine & | rLine | ) |
Definition at line 131 of file ConnectionLine.cxx.
OConnectionLine::~OConnectionLine | ( | ) |
Definition at line 138 of file ConnectionLine.cxx.
bool OConnectionLine::CheckHit | ( | const Point & | rMousePos | ) | const |
Definition at line 320 of file ConnectionLine.cxx.
References dist_Euklid(), HIT_SENSITIVE_RADIUS, m_aDestConnPos, m_aSourceConnPos, Point::X(), and Point::Y().
void OConnectionLine::Draw | ( | OutputDevice * | pOutDev | ) |
Definition at line 270 of file ConnectionLine.cxx.
References OutputDevice::DrawPolyLine(), OutputDevice::DrawRect(), Application::GetSettings(), tools::Polygon::Insert(), m_aDestConnPos, m_aDestDescrLinePos, m_aSourceConnPos, m_aSourceDescrLinePos, m_pTabConn, RecalcLine(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), and LineInfo::SetWidth().
tools::Rectangle OConnectionLine::GetBoundingRect | ( | ) | const |
Definition at line 160 of file ConnectionLine.cxx.
References Point::AdjustX(), DESCRIPT_LINE_WIDTH, IsValid(), m_aDestConnPos, m_aDestDescrLinePos, m_aSourceConnPos, m_aSourceDescrLinePos, m_pTabConn, Point::setX(), Point::setY(), Point::X(), and Point::Y().
|
inline |
Definition at line 64 of file ConnectionLine.hxx.
References m_pData.
Referenced by OConnectionLine(), operator=(), and RecalcLine().
tools::Rectangle OConnectionLine::GetDestTextPos | ( | ) | const |
Definition at line 343 of file ConnectionLine.cxx.
References m_aDestConnPos, m_aDestDescrLinePos, and m_pTabConn.
Referenced by dbaui::ORelationTableConnection::Draw().
Point OConnectionLine::getMidPoint | ( | ) | const |
Definition at line 348 of file ConnectionLine.cxx.
References m_aDestConnPos, m_aSourceConnPos, Point::setX(), Point::setY(), Point::X(), and Point::Y().
tools::Rectangle OConnectionLine::GetSourceTextPos | ( | ) | const |
Definition at line 338 of file ConnectionLine.cxx.
References m_aSourceConnPos, m_aSourceDescrLinePos, and m_pTabConn.
Referenced by dbaui::ORelationTableConnection::Draw().
bool OConnectionLine::IsValid | ( | ) | const |
Definition at line 302 of file ConnectionLine.cxx.
References m_pData.
Referenced by dbaui::OJoinTableView::Command(), and GetBoundingRect().
OConnectionLine & OConnectionLine::operator= | ( | const OConnectionLine & | rLine | ) |
Definition at line 142 of file ConnectionLine.cxx.
References GetData(), m_aDestConnPos, m_aDestDescrLinePos, m_aSourceConnPos, m_aSourceDescrLinePos, m_pData, and m_pTabConn.
bool OConnectionLine::RecalcLine | ( | ) |
Definition at line 220 of file ConnectionLine.cxx.
References calcPointX1(), calcPointX2(), GetData(), dbaui::OTableWindow::GetListBox(), vcl::Window::GetPosPixel(), vcl::Window::GetSizePixel(), m_aDestConnPos, m_aDestDescrLinePos, m_aSourceConnPos, m_aSourceDescrLinePos, m_pTabConn, Point::setX(), Size::Width(), and Point::X().
Referenced by Draw().
|
private |
Definition at line 44 of file ConnectionLine.hxx.
Referenced by CheckHit(), Draw(), GetBoundingRect(), GetDestTextPos(), getMidPoint(), operator=(), and RecalcLine().
|
private |
Definition at line 46 of file ConnectionLine.hxx.
Referenced by Draw(), GetBoundingRect(), GetDestTextPos(), operator=(), and RecalcLine().
|
private |
Definition at line 43 of file ConnectionLine.hxx.
Referenced by CheckHit(), Draw(), GetBoundingRect(), getMidPoint(), GetSourceTextPos(), operator=(), and RecalcLine().
|
private |
Definition at line 45 of file ConnectionLine.hxx.
Referenced by Draw(), GetBoundingRect(), GetSourceTextPos(), operator=(), and RecalcLine().
|
private |
Definition at line 41 of file ConnectionLine.hxx.
Referenced by GetData(), IsValid(), OConnectionLine(), and operator=().
|
private |
Definition at line 40 of file ConnectionLine.hxx.
Referenced by Draw(), GetBoundingRect(), GetDestTextPos(), GetSourceTextPos(), operator=(), and RecalcLine().