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

More...

Inheritance diagram for SvxTextEditSourceImpl:
[legend]
Collaboration diagram for SvxTextEditSourceImpl:
[legend]

Public Member Functions

 SvxTextEditSourceImpl (SdrObject *pObject, SdrText *pText)
 
 SvxTextEditSourceImpl (SdrObject &rObject, SdrText *pText, SdrView &rView, const OutputDevice &rWindow)
 
virtual ~SvxTextEditSourceImpl () override
 
void acquire ()
 
void release ()
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
SvxTextForwarderGetTextForwarder ()
 
SvxEditViewForwarderGetEditViewForwarder (bool)
 
void UpdateData ()
 
void addRange (SvxUnoTextRangeBase *pNewRange)
 
void removeRange (SvxUnoTextRangeBase *pOldRange)
 
const SvxUnoTextRangeBaseVecgetRanges () const
 
void lock ()
 
void unlock ()
 
bool IsValid () const
 
Point LogicToPixel (const Point &, const MapMode &rMapMode)
 
Point PixelToLogic (const Point &, const MapMode &rMapMode)
 
 DECL_LINK (NotifyHdl, EENotify &, void)
 
virtual void ObjectInDestruction (const SdrObject &rObject) override
 
void UpdateOutliner ()
 
- 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

SvxTextForwarderGetBackgroundTextForwarder ()
 
SvxTextForwarderGetEditModeTextForwarder ()
 
std::unique_ptr< SvxDrawOutlinerViewForwarderCreateViewForwarder ()
 
void SetupOutliner ()
 
bool HasView () const
 
bool IsEditMode () const
 
void dispose ()
 

Private Attributes

oslInterlockedCount maRefCount
 
SdrObjectmpObject
 
SdrTextmpText
 
SdrViewmpView
 
VclPtr< const OutputDevicempWindow
 
SdrModelmpModel
 
std::unique_ptr< SdrOutlinermpOutliner
 
std::unique_ptr< SvxOutlinerForwardermpTextForwarder
 
std::unique_ptr< SvxDrawOutlinerViewForwardermpViewForwarder
 
css::uno::Reference< css::linguistic2::XLinguServiceManager2 > m_xLinguServiceManager
 
Point maTextOffset
 
bool mbDataValid
 
bool mbIsLocked
 
bool mbNeedsUpdate
 
bool mbOldUndoMode
 
bool mbForwarderIsEditMode
 
bool mbShapeIsEditMode
 
bool mbNotificationsDisabled
 
bool mbNotifyEditOutlinerSet
 
SvxUnoTextRangeBaseVec mvTextRanges
 

Additional Inherited Members

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

Detailed Description

This class essentially provides the text and view forwarders. If no SdrView is given, this class handles the UNO objects, which are currently not concerned with view issues. In this case, GetViewForwarder() always returns NULL and the underlying EditEngine of the SvxTextForwarder is a background one (i.e. not the official DrawOutliner, but one created exclusively for this object, with no relation to a view).

If a SdrView is given at construction time, the caller is responsible for destroying this object when the view becomes invalid (the views cannot notify). If GetViewForwarder(sal_True) is called, the underlying shape is put into edit mode, the view forwarder returned encapsulates the OutlinerView and the next call to GetTextForwarder() yields a forwarder encapsulating the actual DrawOutliner. Thus, changes on that Outliner are immediately reflected on the screen. If the object leaves edit mode, the old behaviour is restored.

Definition at line 79 of file unoshtxt.cxx.

Constructor & Destructor Documentation

SvxTextEditSourceImpl::SvxTextEditSourceImpl ( SdrObject pObject,
SdrText pText 
)
SvxTextEditSourceImpl::SvxTextEditSourceImpl ( SdrObject rObject,
SdrText pText,
SdrView rView,
const OutputDevice rWindow 
)
SvxTextEditSourceImpl::~SvxTextEditSourceImpl ( )
overridevirtual

Definition at line 219 of file unoshtxt.cxx.

References DBG_ASSERT, dispose(), mbIsLocked, mpObject, and SdrObject::RemoveObjectUser().

Member Function Documentation

void SvxTextEditSourceImpl::acquire ( )

Definition at line 244 of file unoshtxt.cxx.

References maRefCount.

void SvxTextEditSourceImpl::addRange ( SvxUnoTextRangeBase pNewRange)

Definition at line 229 of file unoshtxt.cxx.

References mvTextRanges.

std::unique_ptr< SvxDrawOutlinerViewForwarder > SvxTextEditSourceImpl::CreateViewForwarder ( )
private
SvxTextEditSourceImpl::DECL_LINK ( NotifyHdl  ,
EENotify ,
void   
)
void SvxTextEditSourceImpl::dispose ( void  )
private
SvxTextForwarder * SvxTextEditSourceImpl::GetBackgroundTextForwarder ( )
private
SvxTextForwarder * SvxTextEditSourceImpl::GetEditModeTextForwarder ( )
private
SvxEditViewForwarder * SvxTextEditSourceImpl::GetEditViewForwarder ( bool  bCreate)
const SvxUnoTextRangeBaseVec& SvxTextEditSourceImpl::getRanges ( ) const
inline

Definition at line 136 of file unoshtxt.cxx.

References mvTextRanges.

SvxTextForwarder * SvxTextEditSourceImpl::GetTextForwarder ( )
bool SvxTextEditSourceImpl::HasView ( ) const
inlineprivate
bool SvxTextEditSourceImpl::IsEditMode ( ) const
inlineprivate
bool SvxTextEditSourceImpl::IsValid ( ) const

Definition at line 834 of file unoshtxt.cxx.

References mpView, and mpWindow.

Referenced by LogicToPixel(), and PixelToLogic().

void SvxTextEditSourceImpl::lock ( )
Point SvxTextEditSourceImpl::LogicToPixel ( const Point rPoint,
const MapMode rMapMode 
)
void SvxTextEditSourceImpl::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual
void SvxTextEditSourceImpl::ObjectInDestruction ( const SdrObject rObject)
overridevirtual

Implements sdr::ObjectUser.

Definition at line 384 of file unoshtxt.cxx.

References SfxBroadcaster::Broadcast(), dispose(), and mpObject.

Point SvxTextEditSourceImpl::PixelToLogic ( const Point rPoint,
const MapMode rMapMode 
)
void SvxTextEditSourceImpl::release ( )

Definition at line 250 of file unoshtxt.cxx.

References maRefCount.

void SvxTextEditSourceImpl::removeRange ( SvxUnoTextRangeBase pOldRange)

Definition at line 237 of file unoshtxt.cxx.

References mvTextRanges.

void SvxTextEditSourceImpl::SetupOutliner ( )
private
void SvxTextEditSourceImpl::unlock ( )
void SvxTextEditSourceImpl::UpdateData ( )
void SvxTextEditSourceImpl::UpdateOutliner ( )

Member Data Documentation

css::uno::Reference< css::linguistic2::XLinguServiceManager2 > SvxTextEditSourceImpl::m_xLinguServiceManager
private

Definition at line 92 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder().

oslInterlockedCount SvxTextEditSourceImpl::maRefCount
private

Definition at line 82 of file unoshtxt.cxx.

Referenced by acquire(), and release().

Point SvxTextEditSourceImpl::maTextOffset
private

Definition at line 93 of file unoshtxt.cxx.

Referenced by LogicToPixel(), PixelToLogic(), SetupOutliner(), and UpdateOutliner().

bool SvxTextEditSourceImpl::mbDataValid
private

Definition at line 94 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder(), GetTextForwarder(), and Notify().

bool SvxTextEditSourceImpl::mbForwarderIsEditMode
private
bool SvxTextEditSourceImpl::mbIsLocked
private
bool SvxTextEditSourceImpl::mbNeedsUpdate
private

Definition at line 96 of file unoshtxt.cxx.

Referenced by unlock(), and UpdateData().

bool SvxTextEditSourceImpl::mbNotificationsDisabled
private

Definition at line 100 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder().

bool SvxTextEditSourceImpl::mbNotifyEditOutlinerSet
private

Definition at line 101 of file unoshtxt.cxx.

Referenced by CreateViewForwarder(), dispose(), and Notify().

bool SvxTextEditSourceImpl::mbOldUndoMode
private

Definition at line 97 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder(), lock(), and unlock().

bool SvxTextEditSourceImpl::mbShapeIsEditMode
private

Definition at line 99 of file unoshtxt.cxx.

Referenced by Notify(), and SvxTextEditSourceImpl().

SdrModel* SvxTextEditSourceImpl::mpModel
private
SdrObject* SvxTextEditSourceImpl::mpObject
private
std::unique_ptr<SdrOutliner> SvxTextEditSourceImpl::mpOutliner
private
SdrText* SvxTextEditSourceImpl::mpText
private
std::unique_ptr<SvxOutlinerForwarder> SvxTextEditSourceImpl::mpTextForwarder
private
SdrView* SvxTextEditSourceImpl::mpView
private
std::unique_ptr<SvxDrawOutlinerViewForwarder> SvxTextEditSourceImpl::mpViewForwarder
private

Definition at line 91 of file unoshtxt.cxx.

Referenced by dispose(), GetEditViewForwarder(), and Notify().

VclPtr<const OutputDevice> SvxTextEditSourceImpl::mpWindow
private

Definition at line 87 of file unoshtxt.cxx.

Referenced by dispose(), IsValid(), LogicToPixel(), and PixelToLogic().

SvxUnoTextRangeBaseVec SvxTextEditSourceImpl::mvTextRanges
private

Definition at line 103 of file unoshtxt.cxx.

Referenced by addRange(), getRanges(), and removeRange().


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