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

#include <unoedprx.hxx>

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

Public Member Functions

 SvxAccessibleTextEditViewAdapter ()
 
virtual ~SvxAccessibleTextEditViewAdapter () 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...
 
void SetForwarder (SvxEditViewForwarder &, SvxAccessibleTextAdapter &)
 
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 Attributes

SvxEditViewForwardermpViewForwarder
 
SvxAccessibleTextAdaptermpTextForwarder
 

Detailed Description

Definition at line 115 of file unoedprx.hxx.

Constructor & Destructor Documentation

◆ SvxAccessibleTextEditViewAdapter()

SvxAccessibleTextEditViewAdapter::SvxAccessibleTextEditViewAdapter ( )

Definition at line 1109 of file unoedprx.cxx.

◆ ~SvxAccessibleTextEditViewAdapter()

SvxAccessibleTextEditViewAdapter::~SvxAccessibleTextEditViewAdapter ( )
overridevirtual

Definition at line 1115 of file unoedprx.cxx.

Member Function Documentation

◆ Copy()

bool SvxAccessibleTextEditViewAdapter::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 1181 of file unoedprx.cxx.

References SvxEditViewForwarder::Copy(), DBG_ASSERT, and mpViewForwarder.

◆ Cut()

bool SvxAccessibleTextEditViewAdapter::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 1188 of file unoedprx.cxx.

References SvxEditViewForwarder::Cut(), DBG_ASSERT, and mpViewForwarder.

◆ GetSelection()

bool SvxAccessibleTextEditViewAdapter::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 1143 of file unoedprx.cxx.

References DBG_ASSERT, SvxEditViewForwarder::GetSelection(), mpTextForwarder, mpViewForwarder, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, and ESelection::nStartPos.

◆ IsValid()

bool SvxAccessibleTextEditViewAdapter::IsValid ( ) const
overridevirtual

Query state of forwarder.

Returns
sal_False, if no longer valid

Implements SvxViewForwarder.

Definition at line 1119 of file unoedprx.cxx.

References DBG_ASSERT, SvxViewForwarder::IsValid(), and mpViewForwarder.

◆ LogicToPixel()

Point SvxAccessibleTextEditViewAdapter::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 1129 of file unoedprx.cxx.

References DBG_ASSERT, SvxViewForwarder::LogicToPixel(), and mpViewForwarder.

◆ Paste()

bool SvxAccessibleTextEditViewAdapter::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 1195 of file unoedprx.cxx.

References DBG_ASSERT, mpViewForwarder, and SvxEditViewForwarder::Paste().

◆ PixelToLogic()

Point SvxAccessibleTextEditViewAdapter::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 1136 of file unoedprx.cxx.

References DBG_ASSERT, mpViewForwarder, and SvxViewForwarder::PixelToLogic().

◆ SetForwarder()

void SvxAccessibleTextEditViewAdapter::SetForwarder ( SvxEditViewForwarder rForwarder,
SvxAccessibleTextAdapter rTextForwarder 
)

Definition at line 1202 of file unoedprx.cxx.

References mpTextForwarder, and mpViewForwarder.

◆ SetSelection()

bool SvxAccessibleTextEditViewAdapter::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 1168 of file unoedprx.cxx.

References DBG_ASSERT, MakeEESelection(), mpTextForwarder, mpViewForwarder, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, and SvxEditViewForwarder::SetSelection().

Member Data Documentation

◆ mpTextForwarder

SvxAccessibleTextAdapter* SvxAccessibleTextEditViewAdapter::mpTextForwarder
private

Definition at line 138 of file unoedprx.hxx.

Referenced by GetSelection(), SetForwarder(), and SetSelection().

◆ mpViewForwarder

SvxEditViewForwarder* SvxAccessibleTextEditViewAdapter::mpViewForwarder
private

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