LibreOffice Module svx (master) 1
Public Member Functions | List of all members
accessibility::IAccessibleViewForwarder Class Referenceabstract

#include <IAccessibleViewForwarder.hxx>

Inheritance diagram for accessibility::IAccessibleViewForwarder:
[legend]

Public Member Functions

 IAccessibleViewForwarder ()=default
 
 IAccessibleViewForwarder (IAccessibleViewForwarder const &)=default
 
 IAccessibleViewForwarder (IAccessibleViewForwarder &&)=default
 
IAccessibleViewForwarderoperator= (IAccessibleViewForwarder const &)=default
 
IAccessibleViewForwarderoperator= (IAccessibleViewForwarder &&)=default
 
virtual ~IAccessibleViewForwarder ()
 
virtual tools::Rectangle GetVisibleArea () const =0
 Returns the area of the underlying document that is visible in the corresponding window. More...
 
virtual Point LogicToPixel (const Point &rPoint) const =0
 Transform the specified point from internal coordinates in 100th of mm to an absolute screen position. More...
 
virtual Size LogicToPixel (const Size &rSize) const =0
 Transform the specified size from internal coordinates in 100th of mm to a screen oriented pixel size. More...
 

Detailed Description

This interface provides the means to transform between internal coordinates in 100th of mm and screen coordinates without giving direct access to the underlying view. Each view forwarder represents a specific real or virtual window. A call to <method>GetVisibleArea</method> returns the visible rectangle that corresponds to this window.

This interface is similar to the SvxViewForwarder but differs in two important points: Firstly the <member>GetVisArea</member> method returns a rectangle in internal coordinates and secondly the transformation methods do not require explicit mapmodes. These have to be provided implicitly by the classes that implement this interface. A third, less important, difference are the additional transformation methods for sizes. The reasons for their existence are convenience and improved performance.

Attention: \n
Note, that modifications of the underlying view that lead to different transformations between internal and screen coordinates or change the validity of the forwarder have to be signaled separately.

Definition at line 48 of file IAccessibleViewForwarder.hxx.

Constructor & Destructor Documentation

◆ IAccessibleViewForwarder() [1/3]

accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( )
default

◆ IAccessibleViewForwarder() [2/3]

accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( IAccessibleViewForwarder const &  )
default

◆ IAccessibleViewForwarder() [3/3]

accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( IAccessibleViewForwarder &&  )
default

◆ ~IAccessibleViewForwarder()

virtual accessibility::IAccessibleViewForwarder::~IAccessibleViewForwarder ( )
inlinevirtual

Definition at line 57 of file IAccessibleViewForwarder.hxx.

Member Function Documentation

◆ GetVisibleArea()

virtual tools::Rectangle accessibility::IAccessibleViewForwarder::GetVisibleArea ( ) const
pure virtual

Returns the area of the underlying document that is visible in the corresponding window.

Returns
The rectangle of the visible part of the document. The values are, contrary to the base class, in internal coordinates of 100th of mm.

Implemented in SvxGraphCtrlAccessibleContext.

◆ LogicToPixel() [1/2]

virtual Point accessibility::IAccessibleViewForwarder::LogicToPixel ( const Point rPoint) const
pure virtual

Transform the specified point from internal coordinates in 100th of mm to an absolute screen position.

Parameters
rPointPoint in internal coordinates (100th of mm).
Returns
The same point but in screen coordinates relative to the upper left corner of the (current) screen.

Implemented in SvxGraphCtrlAccessibleContext.

Referenced by accessibility::AccessibleShape::getBounds(), and accessibility::AccessibleCell::getBounds().

◆ LogicToPixel() [2/2]

virtual Size accessibility::IAccessibleViewForwarder::LogicToPixel ( const Size rSize) const
pure virtual

Transform the specified size from internal coordinates in 100th of mm to a screen oriented pixel size.

Parameters
rSizeSize in internal coordinates (100th of mm).
Returns
The same size but in screen coordinates.

Implemented in SvxGraphCtrlAccessibleContext.

◆ operator=() [1/2]

IAccessibleViewForwarder & accessibility::IAccessibleViewForwarder::operator= ( IAccessibleViewForwarder &&  )
default

◆ operator=() [2/2]

IAccessibleViewForwarder & accessibility::IAccessibleViewForwarder::operator= ( IAccessibleViewForwarder const &  )
default

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