LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LOKSpecialPositioning Class Reference

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>

Collaboration diagram for LOKSpecialPositioning:
[legend]

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::RectangleGetOutputArea () 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 ImpEditViewmrImpEditView
 
tools::Rectangle maOutArea
 
Point maVisDocStartPos
 
MapUnit meUnit
 
LOKSpecialFlags meFlags
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LOKSpecialPositioning()

LOKSpecialPositioning::LOKSpecialPositioning ( const ImpEditView rImpEditView,
MapUnit  eUnit,
const tools::Rectangle rOutputArea,
const Point rVisDocStartPos 
)

Definition at line 67 of file impedit.cxx.

References NONE.

Member Function Documentation

◆ convertUnit() [1/2]

Point LOKSpecialPositioning::convertUnit ( const Point rPos,
MapUnit  ePosUnit 
) const
private

Definition at line 160 of file impedit.cxx.

References OutputDevice::LogicToLogic(), and meUnit.

Referenced by GetWindowPos().

◆ convertUnit() [2/2]

tools::Rectangle LOKSpecialPositioning::convertUnit ( const tools::Rectangle rRect,
MapUnit  eRectUnit 
) const
private

Definition at line 168 of file impedit.cxx.

References OutputDevice::LogicToLogic(), and meUnit.

◆ GetOutputArea()

const tools::Rectangle & LOKSpecialPositioning::GetOutputArea ( ) const

Definition at line 90 of file impedit.cxx.

References maOutArea.

◆ GetRefPoint()

Point LOKSpecialPositioning::GetRefPoint ( ) const

Definition at line 176 of file impedit.cxx.

References maOutArea, and tools::Rectangle::TopLeft().

◆ GetVisDocArea()

tools::Rectangle LOKSpecialPositioning::GetVisDocArea ( ) const

Definition at line 100 of file impedit.cxx.

References GetVisDocBottom(), GetVisDocLeft(), GetVisDocRight(), and GetVisDocTop().

◆ GetVisDocBottom()

tools::Long LOKSpecialPositioning::GetVisDocBottom ( ) const
inline

◆ GetVisDocLeft()

tools::Long LOKSpecialPositioning::GetVisDocLeft ( ) const
inline

Definition at line 227 of file impedit.hxx.

References maVisDocStartPos, and Point::X().

Referenced by GetVisDocArea(), and GetWindowPos().

◆ GetVisDocRight()

tools::Long LOKSpecialPositioning::GetVisDocRight ( ) const
inline

◆ GetVisDocTop()

tools::Long LOKSpecialPositioning::GetVisDocTop ( ) const
inline

Definition at line 228 of file impedit.hxx.

References maVisDocStartPos, and Point::Y().

Referenced by GetVisDocArea(), and GetWindowPos().

◆ GetWindowPos() [1/2]

Point LOKSpecialPositioning::GetWindowPos ( const Point rDocPos,
MapUnit  eDocPosUnit 
) const

◆ GetWindowPos() [2/2]

tools::Rectangle LOKSpecialPositioning::GetWindowPos ( const tools::Rectangle rDocRect,
MapUnit  eDocRectUnit 
) const

◆ IsLayoutRTL()

bool LOKSpecialPositioning::IsLayoutRTL ( )
inline

Definition at line 237 of file impedit.hxx.

References LayoutRTL, and meFlags.

◆ IsTopToBottom()

bool LOKSpecialPositioning::IsTopToBottom ( ) const

Definition at line 110 of file impedit.cxx.

References ImpEditView::IsTopToBottom(), and mrImpEditView.

Referenced by GetWindowPos().

◆ IsVertical()

bool LOKSpecialPositioning::IsVertical ( ) const

Definition at line 105 of file impedit.cxx.

References ImpEditView::IsVertical(), and mrImpEditView.

Referenced by GetVisDocBottom(), GetVisDocRight(), and GetWindowPos().

◆ ReInit()

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.

◆ SetFlags()

void LOKSpecialPositioning::SetFlags ( LOKSpecialFlags  eFlags)
inline

Definition at line 236 of file impedit.hxx.

References meFlags.

◆ SetOutputArea()

void LOKSpecialPositioning::SetOutputArea ( const tools::Rectangle rOutputArea)

Definition at line 85 of file impedit.cxx.

References maOutArea.

◆ SetVisDocStartPos()

void LOKSpecialPositioning::SetVisDocStartPos ( const Point rVisDocStartPos)

Definition at line 95 of file impedit.cxx.

References maVisDocStartPos.

Member Data Documentation

◆ maOutArea

tools::Rectangle LOKSpecialPositioning::maOutArea
private

◆ maVisDocStartPos

Point LOKSpecialPositioning::maVisDocStartPos
private

◆ meFlags

LOKSpecialFlags LOKSpecialPositioning::meFlags
private

Definition at line 249 of file impedit.hxx.

Referenced by IsLayoutRTL(), and SetFlags().

◆ meUnit

MapUnit LOKSpecialPositioning::meUnit
private

Definition at line 248 of file impedit.hxx.

Referenced by convertUnit(), GetWindowPos(), and ReInit().

◆ mrImpEditView

const ImpEditView& LOKSpecialPositioning::mrImpEditView
private

Definition at line 245 of file impedit.hxx.

Referenced by IsTopToBottom(), and IsVertical().


The documentation for this class was generated from the following files: