LibreOffice Module editeng (master) 1
|
This is meant just for Calc, where all positions in logical units (twips for LOK) are computed by doing independent pixel-alignment for each cell's size. More...
#include <impedit.hxx>
Public Member Functions | |
LOKSpecialPositioning (const ImpEditView &rImpEditView, MapUnit eUnit, const tools::Rectangle &rOutputArea, const Point &rVisDocStartPos) | |
void | ReInit (MapUnit eUnit, const tools::Rectangle &rOutputArea, const Point &rVisDocStartPos) |
void | SetOutputArea (const tools::Rectangle &rOutputArea) |
const tools::Rectangle & | GetOutputArea () const |
void | SetVisDocStartPos (const Point &rVisDocStartPos) |
bool | IsVertical () const |
bool | IsTopToBottom () const |
tools::Long | GetVisDocLeft () const |
tools::Long | GetVisDocTop () const |
tools::Long | GetVisDocRight () const |
tools::Long | GetVisDocBottom () const |
tools::Rectangle | GetVisDocArea () const |
Point | GetWindowPos (const Point &rDocPos, MapUnit eDocPosUnit) const |
tools::Rectangle | GetWindowPos (const tools::Rectangle &rDocRect, MapUnit eDocRectUnit) const |
void | SetFlags (LOKSpecialFlags eFlags) |
bool | IsLayoutRTL () |
Point | GetRefPoint () const |
Private Member Functions | |
Point | convertUnit (const Point &rPos, MapUnit ePosUnit) const |
tools::Rectangle | convertUnit (const tools::Rectangle &rRect, MapUnit eRectUnit) const |
Private Attributes | |
const ImpEditView & | mrImpEditView |
tools::Rectangle | maOutArea |
Point | maVisDocStartPos |
MapUnit | meUnit |
LOKSpecialFlags | meFlags |
This is meant just for Calc, where all positions in logical units (twips for LOK) are computed by doing independent pixel-alignment for each cell's size.
LOKSpecialPositioning stores both 'output-area' and 'visible-doc-position' in pure logical unit (twips for LOK). This allows the cursor/selection messages to be in regular(print) twips unit like in Writer.
Definition at line 212 of file impedit.hxx.
LOKSpecialPositioning::LOKSpecialPositioning | ( | const ImpEditView & | rImpEditView, |
MapUnit | eUnit, | ||
const tools::Rectangle & | rOutputArea, | ||
const Point & | rVisDocStartPos | ||
) |
Definition at line 67 of file impedit.cxx.
References NONE.
Definition at line 160 of file impedit.cxx.
References OutputDevice::LogicToLogic(), and meUnit.
Referenced by GetWindowPos().
|
private |
Definition at line 168 of file impedit.cxx.
References OutputDevice::LogicToLogic(), and meUnit.
const tools::Rectangle & LOKSpecialPositioning::GetOutputArea | ( | ) | const |
Definition at line 90 of file impedit.cxx.
References maOutArea.
Point LOKSpecialPositioning::GetRefPoint | ( | ) | const |
Definition at line 176 of file impedit.cxx.
References maOutArea, and tools::Rectangle::TopLeft().
tools::Rectangle LOKSpecialPositioning::GetVisDocArea | ( | ) | const |
Definition at line 100 of file impedit.cxx.
References GetVisDocBottom(), GetVisDocLeft(), GetVisDocRight(), and GetVisDocTop().
|
inline |
Definition at line 230 of file impedit.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), IsVertical(), maOutArea, maVisDocStartPos, and Point::Y().
Referenced by GetVisDocArea().
|
inline |
Definition at line 227 of file impedit.hxx.
References maVisDocStartPos, and Point::X().
Referenced by GetVisDocArea(), and GetWindowPos().
|
inline |
Definition at line 229 of file impedit.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), IsVertical(), maOutArea, maVisDocStartPos, and Point::X().
Referenced by GetVisDocArea().
|
inline |
Definition at line 228 of file impedit.hxx.
References maVisDocStartPos, and Point::Y().
Referenced by GetVisDocArea(), and GetWindowPos().
Definition at line 115 of file impedit.cxx.
References tools::Rectangle::Bottom(), convertUnit(), GetVisDocLeft(), GetVisDocTop(), IsTopToBottom(), IsVertical(), tools::Rectangle::Left(), maOutArea, tools::Rectangle::Right(), Point::setX(), Point::setY(), tools::Rectangle::Top(), Point::X(), and Point::Y().
Referenced by GetWindowPos().
tools::Rectangle LOKSpecialPositioning::GetWindowPos | ( | const tools::Rectangle & | rDocRect, |
MapUnit | eDocRectUnit | ||
) | const |
Definition at line 141 of file impedit.cxx.
References convertUnit(), tools::Rectangle::GetSize(), GetWindowPos(), Size::Height(), IsVertical(), meUnit, tools::Rectangle::TopLeft(), Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 237 of file impedit.hxx.
bool LOKSpecialPositioning::IsTopToBottom | ( | ) | const |
Definition at line 110 of file impedit.cxx.
References ImpEditView::IsTopToBottom(), and mrImpEditView.
Referenced by GetWindowPos().
bool LOKSpecialPositioning::IsVertical | ( | ) | const |
Definition at line 105 of file impedit.cxx.
References ImpEditView::IsVertical(), and mrImpEditView.
Referenced by GetVisDocBottom(), GetVisDocRight(), and GetWindowPos().
void LOKSpecialPositioning::ReInit | ( | MapUnit | eUnit, |
const tools::Rectangle & | rOutputArea, | ||
const Point & | rVisDocStartPos | ||
) |
Definition at line 78 of file impedit.cxx.
References maOutArea, maVisDocStartPos, and meUnit.
|
inline |
Definition at line 236 of file impedit.hxx.
References meFlags.
void LOKSpecialPositioning::SetOutputArea | ( | const tools::Rectangle & | rOutputArea | ) |
Definition at line 85 of file impedit.cxx.
References maOutArea.
void LOKSpecialPositioning::SetVisDocStartPos | ( | const Point & | rVisDocStartPos | ) |
Definition at line 95 of file impedit.cxx.
References maVisDocStartPos.
|
private |
Definition at line 246 of file impedit.hxx.
Referenced by GetOutputArea(), GetRefPoint(), GetVisDocBottom(), GetVisDocRight(), GetWindowPos(), ReInit(), and SetOutputArea().
|
private |
Definition at line 247 of file impedit.hxx.
Referenced by GetVisDocBottom(), GetVisDocLeft(), GetVisDocRight(), GetVisDocTop(), ReInit(), and SetVisDocStartPos().
|
private |
Definition at line 249 of file impedit.hxx.
Referenced by IsLayoutRTL(), and SetFlags().
|
private |
Definition at line 248 of file impedit.hxx.
Referenced by convertUnit(), GetWindowPos(), and ReInit().
|
private |
Definition at line 245 of file impedit.hxx.
Referenced by IsTopToBottom(), and IsVertical().