LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
accessibility::AccessibleEmptyEditSource Class Reference

Proxy edit source for shapes without text. More...

#include <AccessibleEmptyEditSource.hxx>

Inheritance diagram for accessibility::AccessibleEmptyEditSource:
[legend]
Collaboration diagram for accessibility::AccessibleEmptyEditSource:
[legend]

Public Member Functions

 AccessibleEmptyEditSource (SdrObject &rObj, SdrView &rView, const OutputDevice &rViewWindow)
 Create proxy edit source for shapes without text. More...
 
virtual ~AccessibleEmptyEditSource () override
 
SvxTextForwarderGetTextForwarder () override
 
SvxViewForwarderGetViewForwarder () override
 
std::unique_ptr< SvxEditSourceClone () const override
 
SvxEditViewForwarderGetEditViewForwarder (bool bCreate=false) override
 
void UpdateData () override
 
SfxBroadcasterGetBroadcaster () 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
 
SvxEditSourceoperator= (SvxEditSource const &)=default
 
SvxEditSourceoperator= (SvxEditSource &&)=default
 
virtual ~SvxEditSource ()
 
virtual std::unique_ptr< SvxEditSourceClone () const=0
 
virtual SvxTextForwarderGetTextForwarder ()=0
 
virtual SvxViewForwarderGetViewForwarder ()
 
virtual SvxEditViewForwarderGetEditViewForwarder (bool bCreate=false)
 
virtual void UpdateData ()=0
 
virtual SfxBroadcasterGetBroadcaster () const
 
virtual void addRange (SvxUnoTextRangeBase *pNewRange)
 
virtual void removeRange (SvxUnoTextRangeBase *pOldRange)
 
virtual const SvxUnoTextRangeBaseVecgetRanges () 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
 
SfxBroadcasterGetBroadcasterJOE (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< SvxEditSourcempEditSource
 Pointer to edit source implementation. More...
 
SdrObjectmrObj
 
SdrViewmrView
 
const OutputDevicemrViewWindow
 
bool mbEditSourceEmpty
 

Additional Inherited Members

- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Detailed Description

Proxy edit source for shapes without text.

Extracted from old SvxDummyEditSource

Definition at line 39 of file AccessibleEmptyEditSource.hxx.

Constructor & Destructor Documentation

◆ AccessibleEmptyEditSource()

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().

◆ ~AccessibleEmptyEditSource()

accessibility::AccessibleEmptyEditSource::~AccessibleEmptyEditSource ( )
overridevirtual

Member Function Documentation

◆ Clone()

std::unique_ptr< SvxEditSource > accessibility::AccessibleEmptyEditSource::Clone ( ) const
overridevirtual

Implements SvxEditSource.

Definition at line 285 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

◆ GetBroadcaster()

SfxBroadcaster & accessibility::AccessibleEmptyEditSource::GetBroadcaster ( ) const
overridevirtual

Reimplemented from SvxEditSource.

Definition at line 299 of file AccessibleEmptyEditSource.cxx.

◆ GetEditViewForwarder()

SvxEditViewForwarder * accessibility::AccessibleEmptyEditSource::GetEditViewForwarder ( bool  bCreate = false)
overridevirtual

Reimplemented from SvxEditSource.

Definition at line 273 of file AccessibleEmptyEditSource.cxx.

References mbEditSourceEmpty, mpEditSource, and Switch2ProxyEditSource().

◆ GetTextForwarder()

SvxTextForwarder * accessibility::AccessibleEmptyEditSource::GetTextForwarder ( )
overridevirtual

Implements SvxEditSource.

Definition at line 242 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

◆ GetViewForwarder()

SvxViewForwarder * accessibility::AccessibleEmptyEditSource::GetViewForwarder ( )
overridevirtual

Reimplemented from SvxEditSource.

Definition at line 250 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

◆ Notify()

void accessibility::AccessibleEmptyEditSource::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

◆ Switch2ProxyEditSource()

void accessibility::AccessibleEmptyEditSource::Switch2ProxyEditSource ( )
private

◆ UpdateData()

void accessibility::AccessibleEmptyEditSource::UpdateData ( )
overridevirtual

Implements SvxEditSource.

Definition at line 293 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

Member Data Documentation

◆ mbEditSourceEmpty

bool accessibility::AccessibleEmptyEditSource::mbEditSourceEmpty
private

◆ mpEditSource

std::unique_ptr< SvxEditSource > accessibility::AccessibleEmptyEditSource::mpEditSource
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().

◆ mrObj

SdrObject& accessibility::AccessibleEmptyEditSource::mrObj
private

◆ mrView

SdrView& accessibility::AccessibleEmptyEditSource::mrView
private

Definition at line 83 of file AccessibleEmptyEditSource.hxx.

Referenced by Switch2ProxyEditSource().

◆ mrViewWindow

const OutputDevice& accessibility::AccessibleEmptyEditSource::mrViewWindow
private

Definition at line 84 of file AccessibleEmptyEditSource.hxx.

Referenced by Switch2ProxyEditSource().


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