LibreOffice Module editeng (master) 1
|
#include <unoedprx.hxx>
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 | |
SvxEditViewForwarder * | mpViewForwarder |
SvxAccessibleTextAdapter * | mpTextForwarder |
Definition at line 115 of file unoedprx.hxx.
SvxAccessibleTextEditViewAdapter::SvxAccessibleTextEditViewAdapter | ( | ) |
Definition at line 1109 of file unoedprx.cxx.
|
overridevirtual |
Definition at line 1115 of file unoedprx.cxx.
|
overridevirtual |
Copy current selection to clipboard.
Implements SvxEditViewForwarder.
Definition at line 1181 of file unoedprx.cxx.
References SvxEditViewForwarder::Copy(), DBG_ASSERT, and mpViewForwarder.
|
overridevirtual |
Cut current selection to clipboard.
Implements SvxEditViewForwarder.
Definition at line 1188 of file unoedprx.cxx.
References SvxEditViewForwarder::Cut(), DBG_ASSERT, and mpViewForwarder.
|
overridevirtual |
Query current selection.
rSelection | Contains the current selection after method call |
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.
|
overridevirtual |
Query state of forwarder.
Implements SvxViewForwarder.
Definition at line 1119 of file unoedprx.cxx.
References DBG_ASSERT, SvxViewForwarder::IsValid(), and mpViewForwarder.
|
overridevirtual |
Convert from logical, EditEngine-relative coordinates to screen coordinates.
rPoint | Point in logical, EditEngine-relative coordinates. |
rMapMode | The map mode to interpret the coordinates in. |
Implements SvxViewForwarder.
Definition at line 1129 of file unoedprx.cxx.
References DBG_ASSERT, SvxViewForwarder::LogicToPixel(), and mpViewForwarder.
|
overridevirtual |
Paste clipboard into current selection.
Implements SvxEditViewForwarder.
Definition at line 1195 of file unoedprx.cxx.
References DBG_ASSERT, mpViewForwarder, and SvxEditViewForwarder::Paste().
|
overridevirtual |
Convert from screen to logical, EditEngine-relative coordinates.
rPoint | Point in screen coordinates |
rMapMode | The map mode to interpret the coordinates in. |
Implements SvxViewForwarder.
Definition at line 1136 of file unoedprx.cxx.
References DBG_ASSERT, mpViewForwarder, and SvxViewForwarder::PixelToLogic().
void SvxAccessibleTextEditViewAdapter::SetForwarder | ( | SvxEditViewForwarder & | rForwarder, |
SvxAccessibleTextAdapter & | rTextForwarder | ||
) |
Definition at line 1202 of file unoedprx.cxx.
References mpTextForwarder, and mpViewForwarder.
|
overridevirtual |
Set selection in view.
rSelection | The selection to set |
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().
|
private |
Definition at line 138 of file unoedprx.hxx.
Referenced by GetSelection(), SetForwarder(), and SetSelection().
|
private |
Definition at line 137 of file unoedprx.hxx.
Referenced by Copy(), Cut(), GetSelection(), IsValid(), LogicToPixel(), Paste(), PixelToLogic(), SetForwarder(), and SetSelection().