LibreOffice Module editeng (master) 1
|
Wrapper class for unified EditEngine/Outliner access. More...
#include <unoedsrc.hxx>
Public Member Functions | |
SvxEditSource ()=default | |
SvxEditSource (SvxEditSource const &)=default | |
SvxEditSource (SvxEditSource &&)=default | |
SvxEditSource & | operator= (SvxEditSource const &)=default |
SvxEditSource & | operator= (SvxEditSource &&)=default |
virtual | ~SvxEditSource () |
virtual std::unique_ptr< SvxEditSource > | Clone () const =0 |
Returns a new reference to the same object. This is a shallow copy. More... | |
virtual SvxTextForwarder * | GetTextForwarder ()=0 |
Query the text forwarder. More... | |
virtual SvxViewForwarder * | GetViewForwarder () |
Query the view forwarder. More... | |
virtual SvxEditViewForwarder * | GetEditViewForwarder (bool bCreate=false) |
Query the edit view forwarder. More... | |
virtual void | UpdateData ()=0 |
Write back data to model. More... | |
virtual SfxBroadcaster & | GetBroadcaster () const |
Returns broadcaster the underlying edit engine's events are sent from. More... | |
virtual void | addRange (SvxUnoTextRangeBase *pNewRange) |
adds the given SvxUnoTextRangeBase to the text object capsulated by this SvxEditSource. More... | |
virtual void | removeRange (SvxUnoTextRangeBase *pOldRange) |
removes the given SvxUnoTextRangeBase from the text object capsulated by this SvxEditSource. More... | |
virtual const SvxUnoTextRangeBaseVec & | getRanges () const |
returns a const list of all text ranges that are registered for the underlying text object. More... | |
Wrapper class for unified EditEngine/Outliner access.
This class wraps a textual object, which might or might not contain an EditEngine/Outliner. Is used e.g. for filling an EditEngine with the content of a cell, note page or page template.
Definition at line 55 of file unoedsrc.hxx.
|
default |
|
default |
|
default |
|
virtual |
Definition at line 54 of file unoedsrc.cxx.
|
virtual |
adds the given SvxUnoTextRangeBase to the text object capsulated by this SvxEditSource.
This allows the text object to inform all created text ranges about changes and also allows to re use already created instances. All SvxUnoTextRangeBase must remove itself with removeRange() before they are deleted.
Definition at line 27 of file unoedsrc.cxx.
|
pure virtual |
Returns a new reference to the same object. This is a shallow copy.
Implemented in SvxEditEngineSource, and SvxDummyTextSource.
|
virtual |
Returns broadcaster the underlying edit engine's events are sent from.
Definition at line 68 of file unoedsrc.cxx.
|
virtual |
Query the edit view forwarder.
bCreate | Determines whether an EditView should be created, if there is none active. If set to sal_True, and the underlying object is not in EditMode, the text forwarder changes and the object is set to EditMode. |
Definition at line 63 of file unoedsrc.cxx.
|
virtual |
returns a const list of all text ranges that are registered for the underlying text object.
Definition at line 37 of file unoedsrc.cxx.
|
pure virtual |
Query the text forwarder.
Implemented in SvxEditEngineSource, and SvxDummyTextSource.
Referenced by SvxUnoTextBase::appendTextPortion(), SvxUnoTextBase::copyText(), SvxUnoTextBase::finishParagraph(), accessibility::AccessibleImageBullet::GetTextForwarder(), and SvxUnoTextBase::insertTextPortion().
|
virtual |
Query the view forwarder.
Definition at line 58 of file unoedsrc.cxx.
Referenced by accessibility::AccessibleImageBullet::GetViewForwarder().
|
default |
|
default |
|
virtual |
removes the given SvxUnoTextRangeBase from the text object capsulated by this SvxEditSource.
This text range will not be informed any longer of changes on the underlying text and will also not re used anymore.
Definition at line 32 of file unoedsrc.cxx.
|
pure virtual |
Write back data to model.
Implemented in SvxEditEngineSource, and SvxDummyTextSource.
Referenced by SvxUnoTextBase::appendTextPortion(), SvxUnoTextBase::copyText(), SvxUnoTextBase::finishParagraph(), and SvxUnoTextBase::insertTextPortion().