LibreOffice Module svx (master) 1
|
Proxy edit source for shapes without text. More...
#include <AccessibleEmptyEditSource.hxx>
Public Member Functions | |
AccessibleEmptyEditSource (SdrObject &rObj, SdrView &rView, const OutputDevice &rViewWindow) | |
Create proxy edit source for shapes without text. More... | |
virtual | ~AccessibleEmptyEditSource () override |
SvxTextForwarder * | GetTextForwarder () override |
SvxViewForwarder * | GetViewForwarder () override |
std::unique_ptr< SvxEditSource > | Clone () const override |
SvxEditViewForwarder * | GetEditViewForwarder (bool bCreate=false) override |
void | UpdateData () override |
SfxBroadcaster & | GetBroadcaster () const override |
void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Public Member Functions inherited from SvxEditSource | |
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 |
virtual SvxTextForwarder * | GetTextForwarder ()=0 |
virtual SvxViewForwarder * | GetViewForwarder () |
virtual SvxEditViewForwarder * | GetEditViewForwarder (bool bCreate=false) |
virtual void | UpdateData ()=0 |
virtual SfxBroadcaster & | GetBroadcaster () const |
virtual void | addRange (SvxUnoTextRangeBase *pNewRange) |
virtual void | removeRange (SvxUnoTextRangeBase *pOldRange) |
virtual const SvxUnoTextRangeBaseVec & | getRanges () const |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Private Member Functions | |
void | Switch2ProxyEditSource () |
Private Attributes | |
std::unique_ptr< SvxEditSource > | mpEditSource |
Pointer to edit source implementation. More... | |
SdrObject & | mrObj |
SdrView & | mrView |
const OutputDevice & | mrViewWindow |
bool | mbEditSourceEmpty |
Additional Inherited Members | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Proxy edit source for shapes without text.
Extracted from old SvxDummyEditSource
Definition at line 39 of file AccessibleEmptyEditSource.hxx.
accessibility::AccessibleEmptyEditSource::AccessibleEmptyEditSource | ( | SdrObject & | rObj, |
SdrView & | rView, | ||
const OutputDevice & | rViewWindow | ||
) |
Create proxy edit source for shapes without text.
Since the views don't broadcast their dying, make sure that this object gets destroyed if the view becomes invalid
The window is necessary, since our views can display on multiple windows
Make sure you only create such an object if the shape really does not contain text.
Definition at line 216 of file AccessibleEmptyEditSource.cxx.
References SdrObject::getSdrModelFromSdrObject(), mrObj, mrView, and SfxListener::StartListening().
|
overridevirtual |
Definition at line 228 of file AccessibleEmptyEditSource.cxx.
References SfxListener::EndListening(), SdrObject::getSdrModelFromSdrObject(), mbEditSourceEmpty, mpEditSource, and mrObj.
|
overridevirtual |
Implements SvxEditSource.
Definition at line 285 of file AccessibleEmptyEditSource.cxx.
References mpEditSource.
|
overridevirtual |
Reimplemented from SvxEditSource.
Definition at line 299 of file AccessibleEmptyEditSource.cxx.
|
overridevirtual |
Reimplemented from SvxEditSource.
Definition at line 273 of file AccessibleEmptyEditSource.cxx.
References mbEditSourceEmpty, mpEditSource, and Switch2ProxyEditSource().
|
overridevirtual |
Implements SvxEditSource.
Definition at line 242 of file AccessibleEmptyEditSource.cxx.
References mpEditSource.
|
overridevirtual |
Reimplemented from SvxEditSource.
Definition at line 250 of file AccessibleEmptyEditSource.cxx.
References mpEditSource.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 304 of file AccessibleEmptyEditSource.cxx.
References BeginEdit, SfxBroadcaster::Broadcast(), SfxHint::GetId(), SdrHint::GetKind(), SdrHint::GetObject(), SdrObject::GetOutlinerParaObject(), mbEditSourceEmpty, mpEditSource, mrObj, and Switch2ProxyEditSource().
|
private |
Definition at line 258 of file AccessibleEmptyEditSource.cxx.
References SfxListener::EndListening(), SdrObject::getSdrModelFromSdrObject(), mbEditSourceEmpty, mpEditSource, mrObj, mrView, mrViewWindow, and SfxListener::StartListening().
Referenced by GetEditViewForwarder(), and Notify().
|
overridevirtual |
Implements SvxEditSource.
Definition at line 293 of file AccessibleEmptyEditSource.cxx.
References mpEditSource.
|
private |
Definition at line 86 of file AccessibleEmptyEditSource.hxx.
Referenced by GetEditViewForwarder(), Notify(), Switch2ProxyEditSource(), and ~AccessibleEmptyEditSource().
|
private |
Pointer to edit source implementation.
This is switched on a GetEditViewForwarder( true ) call, to actually create a SvxTextEditSource.
@dyn
Definition at line 80 of file AccessibleEmptyEditSource.hxx.
Referenced by Clone(), GetEditViewForwarder(), GetTextForwarder(), GetViewForwarder(), Notify(), Switch2ProxyEditSource(), UpdateData(), and ~AccessibleEmptyEditSource().
|
private |
Definition at line 82 of file AccessibleEmptyEditSource.hxx.
Referenced by AccessibleEmptyEditSource(), Notify(), Switch2ProxyEditSource(), and ~AccessibleEmptyEditSource().
|
private |
Definition at line 83 of file AccessibleEmptyEditSource.hxx.
Referenced by Switch2ProxyEditSource().
|
private |
Definition at line 84 of file AccessibleEmptyEditSource.hxx.
Referenced by Switch2ProxyEditSource().