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 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
- 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
 
size_t GetSizeOfVector () const
 
SfxListenerGetListener (size_t nNo) 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

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 211 of file AccessibleEmptyEditSource.cxx.

References SdrObject::getSdrModelFromSdrObject(), mrObj, mrView, and SfxListener::StartListening().

accessibility::AccessibleEmptyEditSource::~AccessibleEmptyEditSource ( )
overridevirtual

Member Function Documentation

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

Implements SvxEditSource.

Definition at line 280 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

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

Reimplemented from SvxEditSource.

Definition at line 294 of file AccessibleEmptyEditSource.cxx.

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

Reimplemented from SvxEditSource.

Definition at line 268 of file AccessibleEmptyEditSource.cxx.

References mbEditSourceEmpty, mpEditSource, and Switch2ProxyEditSource().

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

Implements SvxEditSource.

Definition at line 237 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

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

Reimplemented from SvxEditSource.

Definition at line 245 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

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

Implements SvxEditSource.

Definition at line 288 of file AccessibleEmptyEditSource.cxx.

References mpEditSource.

Member Data Documentation

bool accessibility::AccessibleEmptyEditSource::mbEditSourceEmpty
private
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.

Definition at line 80 of file AccessibleEmptyEditSource.hxx.

Referenced by Clone(), GetEditViewForwarder(), GetTextForwarder(), GetViewForwarder(), Notify(), Switch2ProxyEditSource(), UpdateData(), and ~AccessibleEmptyEditSource().

SdrObject& accessibility::AccessibleEmptyEditSource::mrObj
private
SdrView& accessibility::AccessibleEmptyEditSource::mrView
private

Definition at line 83 of file AccessibleEmptyEditSource.hxx.

Referenced by Switch2ProxyEditSource().

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: