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

Specialization for Draw/Impress. More...

#include <unoviwou.hxx>

Inheritance diagram for SvxDrawOutlinerViewForwarder:
[legend]
Collaboration diagram for SvxDrawOutlinerViewForwarder:
[legend]

Public Member Functions

 SvxDrawOutlinerViewForwarder (OutlinerView &rOutl)
 
 SvxDrawOutlinerViewForwarder (OutlinerView &rOutl, const Point &rShapePosTopLeft)
 
virtual ~SvxDrawOutlinerViewForwarder () override
 
virtual bool IsValid () const override
 Query state of forwarder. More...
 
virtual Point LogicToPixel (const Point &rPoint, const MapMode &rMapMode) const override
 Convert from logical, EditEngine-relative coordinates to screen coordinates. More...
 
virtual Point PixelToLogic (const Point &rPoint, const MapMode &rMapMode) const override
 Convert from screen to logical, EditEngine-relative coordinates. More...
 
virtual bool GetSelection (ESelection &rSelection) const override
 Query current selection. More...
 
virtual bool SetSelection (const ESelection &rSelection) override
 Set selection in view. More...
 
virtual bool Copy () override
 Copy current selection to clipboard. More...
 
virtual bool Cut () override
 Cut current selection to clipboard. More...
 
virtual bool Paste () override
 Paste clipboard into current selection. More...
 
virtual bool GetSelection (ESelection &rSelection) const =0
 Query current selection. More...
 
virtual bool SetSelection (const ESelection &rSelection)=0
 Set selection in view. More...
 
virtual bool Copy ()=0
 Copy current selection to clipboard. More...
 
virtual bool Cut ()=0
 Cut current selection to clipboard. More...
 
virtual bool Paste ()=0
 Paste clipboard into current selection. More...
 
- Public Member Functions inherited from SvxViewForwarder
virtual ~SvxViewForwarder ()
 
virtual bool IsValid () const =0
 Query state of forwarder. More...
 
virtual Point LogicToPixel (const Point &rPoint, const MapMode &rMapMode) const =0
 Convert from logical, EditEngine-relative coordinates to screen coordinates. More...
 
virtual Point PixelToLogic (const Point &rPoint, const MapMode &rMapMode) const =0
 Convert from screen to logical, EditEngine-relative coordinates. More...
 

Private Member Functions

EDITENG_DLLPRIVATE Point GetTextOffset () const
 

Private Attributes

OutlinerViewmrOutlinerView
 
Point maTextShapeTopLeft
 

Detailed Description

Specialization for Draw/Impress.

Definition at line 29 of file unoviwou.hxx.

Constructor & Destructor Documentation

◆ SvxDrawOutlinerViewForwarder() [1/2]

SvxDrawOutlinerViewForwarder::SvxDrawOutlinerViewForwarder ( OutlinerView rOutl)
explicit

Definition at line 26 of file unoviwou.cxx.

◆ SvxDrawOutlinerViewForwarder() [2/2]

SvxDrawOutlinerViewForwarder::SvxDrawOutlinerViewForwarder ( OutlinerView rOutl,
const Point rShapePosTopLeft 
)

Definition at line 31 of file unoviwou.cxx.

◆ ~SvxDrawOutlinerViewForwarder()

SvxDrawOutlinerViewForwarder::~SvxDrawOutlinerViewForwarder ( )
overridevirtual

Definition at line 36 of file unoviwou.cxx.

Member Function Documentation

◆ Copy()

bool SvxDrawOutlinerViewForwarder::Copy ( )
overridevirtual

Copy current selection to clipboard.

Returns
false if no selection or no view (the empty selection is a selection)

Implements SvxEditViewForwarder.

Definition at line 110 of file unoviwou.cxx.

References OutlinerView::Copy(), and mrOutlinerView.

◆ Cut()

bool SvxDrawOutlinerViewForwarder::Cut ( )
overridevirtual

Cut current selection to clipboard.

Returns
false if no selection or no view (the empty selection is a selection)

Implements SvxEditViewForwarder.

Definition at line 116 of file unoviwou.cxx.

References OutlinerView::Cut(), and mrOutlinerView.

◆ GetSelection()

bool SvxDrawOutlinerViewForwarder::GetSelection ( ESelection rSelection) const
overridevirtual

Query current selection.

Parameters
rSelectionContains the current selection after method call
Returns
false, if there is no view or no selection (the empty selection is a selection)

Implements SvxEditViewForwarder.

Definition at line 98 of file unoviwou.cxx.

References OutlinerView::GetSelection(), and mrOutlinerView.

◆ GetTextOffset()

Point SvxDrawOutlinerViewForwarder::GetTextOffset ( ) const
private

◆ IsValid()

bool SvxDrawOutlinerViewForwarder::IsValid ( ) const
overridevirtual

Query state of forwarder.

Returns
sal_False, if no longer valid

Implements SvxViewForwarder.

Definition at line 48 of file unoviwou.cxx.

◆ LogicToPixel()

Point SvxDrawOutlinerViewForwarder::LogicToPixel ( const Point rPoint,
const MapMode rMapMode 
) const
overridevirtual

Convert from logical, EditEngine-relative coordinates to screen coordinates.

Parameters
rPointPoint in logical, EditEngine-relative coordinates.
rMapModeThe map mode to interpret the coordinates in.
Returns
the point in screen coordinates

Implements SvxViewForwarder.

Definition at line 53 of file unoviwou.cxx.

References Point::AdjustX(), Point::AdjustY(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), vcl::Window::GetOutDev(), GetTextOffset(), OutlinerView::GetWindow(), OutputDevice::LogicToLogic(), OutputDevice::LogicToPixel(), mrOutlinerView, MapMode::SetOrigin(), Point::X(), and Point::Y().

◆ Paste()

bool SvxDrawOutlinerViewForwarder::Paste ( )
overridevirtual

Paste clipboard into current selection.

Returns
false if no view or no selection (the empty selection is a selection)

Implements SvxEditViewForwarder.

Definition at line 122 of file unoviwou.cxx.

References mrOutlinerView, and OutlinerView::PasteSpecial().

◆ PixelToLogic()

Point SvxDrawOutlinerViewForwarder::PixelToLogic ( const Point rPoint,
const MapMode rMapMode 
) const
overridevirtual

Convert from screen to logical, EditEngine-relative coordinates.

Parameters
rPointPoint in screen coordinates
rMapModeThe map mode to interpret the coordinates in.
Returns
the point in logical coordinates.

Implements SvxViewForwarder.

Definition at line 75 of file unoviwou.cxx.

References Point::AdjustX(), Point::AdjustY(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), vcl::Window::GetOutDev(), GetTextOffset(), OutlinerView::GetWindow(), OutputDevice::LogicToLogic(), mrOutlinerView, OutputDevice::PixelToLogic(), MapMode::SetOrigin(), Point::X(), and Point::Y().

◆ SetSelection()

bool SvxDrawOutlinerViewForwarder::SetSelection ( const ESelection rSelection)
overridevirtual

Set selection in view.

Parameters
rSelectionThe selection to set
Returns
false, if there is no view or selection is invalid

Implements SvxEditViewForwarder.

Definition at line 104 of file unoviwou.cxx.

References mrOutlinerView, and OutlinerView::SetSelection().

Member Data Documentation

◆ maTextShapeTopLeft

Point SvxDrawOutlinerViewForwarder::maTextShapeTopLeft
private

Definition at line 33 of file unoviwou.hxx.

Referenced by GetTextOffset().

◆ mrOutlinerView

OutlinerView& SvxDrawOutlinerViewForwarder::mrOutlinerView
private

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