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:
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 50 of file IAccessibleViewForwarder.hxx.

Constructor & Destructor Documentation

accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( )
default
accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( IAccessibleViewForwarder const &  )
default
accessibility::IAccessibleViewForwarder::IAccessibleViewForwarder ( IAccessibleViewForwarder &&  )
default
virtual accessibility::IAccessibleViewForwarder::~IAccessibleViewForwarder ( )
inlinevirtual

Definition at line 59 of file IAccessibleViewForwarder.hxx.

Member Function Documentation

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.

Referenced by accessibility::ChildrenManagerImpl::AddShape(), accessibility::ChildrenManagerImpl::CreateListOfVisibleShapes(), and accessibility::ChildrenManagerImpl::Update().

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::AccessibleCell::getBounds(), and accessibility::AccessibleShape::getBounds().

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.

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

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