LibreOffice Module sd (master) 1
|
#include <AccessibleViewForwarder.hxx>
Public Member Functions | |
AccessibleViewForwarder (SdrPaintView *pView, const OutputDevice &rDevice) | |
For the time being, the implementation of this class will not use the member mrDevice. More... | |
virtual | ~AccessibleViewForwarder () override |
virtual ::tools::Rectangle | GetVisibleArea () const override |
Returns the area of the underlying document that is visible in the corresponding window. More... | |
virtual Point | LogicToPixel (const Point &rPoint) const override |
Transform the specified point from internal coordinates to an absolute screen position. More... | |
virtual Size | LogicToPixel (const Size &rSize) const override |
Transform the specified size from internal coordinates to a screen position. More... | |
![]() | |
IAccessibleViewForwarder ()=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder const &)=default | |
IAccessibleViewForwarder (IAccessibleViewForwarder &&)=default | |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder const &)=default |
IAccessibleViewForwarder & | operator= (IAccessibleViewForwarder &&)=default |
virtual | ~IAccessibleViewForwarder () |
virtual tools::Rectangle | GetVisibleArea () const=0 |
virtual Point | LogicToPixel (const Point &rPoint) const=0 |
virtual Size | LogicToPixel (const Size &rSize) const=0 |
Private Member Functions | |
AccessibleViewForwarder (AccessibleViewForwarder const &)=delete | |
AccessibleViewForwarder & | operator= (AccessibleViewForwarder const &)=delete |
Private Attributes | |
SdrPaintView * | mpView |
sal_uInt16 | mnWindowId |
This class provides the means to transform between internal coordinates and screen coordinates without giving direct access to the underlying view. It represents a certain window. A call to <method>GetVisArea</method> returns the corresponding visible rectangle.
Definition at line 40 of file AccessibleViewForwarder.hxx.
accessibility::AccessibleViewForwarder::AccessibleViewForwarder | ( | SdrPaintView * | pView, |
const OutputDevice & | rDevice | ||
) |
For the time being, the implementation of this class will not use the member mrDevice.
Instead the device is retrieved from the view every time it is used. This is necessary because the device has to stay up-to-date with the current view and the class has to stay compatible. May change in the future.
Definition at line 35 of file AccessibleViewForwarder.cxx.
References a, SdrPaintWindow::GetOutputDevice(), SdrPaintView::GetPaintWindow(), mnWindowId, mpView, mpView, and SdrPaintView::PaintWindowCount().
|
overridevirtual |
Definition at line 53 of file AccessibleViewForwarder.cxx.
|
privatedelete |
|
overridevirtual |
Returns the area of the underlying document that is visible in the corresponding window.
Implements accessibility::IAccessibleViewForwarder.
Definition at line 58 of file AccessibleViewForwarder.cxx.
References SdrPaintView::GetPaintWindow(), SdrPaintWindow::GetVisibleArea(), mnWindowId, mpView, and SdrPaintView::PaintWindowCount().
|
overridevirtual |
Transform the specified point from internal coordinates to an absolute screen position.
Transform the given point into pixel coordinates.
rPoint | Point in internal coordinates. |
After the pixel coordinates of the window origin are added to make the point coordinates absolute.
Implements accessibility::IAccessibleViewForwarder.
Definition at line 75 of file AccessibleViewForwarder.cxx.
References SdrPaintWindow::GetOutputDevice(), OutputDevice::GetOwnerWindow(), SdrPaintView::GetPaintWindow(), vcl::Window::GetWindowExtentsAbsolute(), OutputDevice::LogicToPixel(), mnWindowId, mpView, SdrPaintView::PaintWindowCount(), and tools::Rectangle::TopLeft().
|
overridevirtual |
Transform the specified size from internal coordinates to a screen position.
rSize | Size in internal coordinates. |
Implements accessibility::IAccessibleViewForwarder.
Definition at line 89 of file AccessibleViewForwarder.cxx.
References SdrPaintWindow::GetOutputDevice(), SdrPaintView::GetPaintWindow(), OutputDevice::LogicToPixel(), mnWindowId, mpView, and SdrPaintView::PaintWindowCount().
|
privatedelete |
|
private |
Definition at line 84 of file AccessibleViewForwarder.hxx.
Referenced by AccessibleViewForwarder(), GetVisibleArea(), and LogicToPixel().
|
private |
Definition at line 83 of file AccessibleViewForwarder.hxx.
Referenced by AccessibleViewForwarder(), GetVisibleArea(), and LogicToPixel().