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

@descr 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
 
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
 
virtual void ObjectInDestruction (const SdrObject &rObject)=0
 

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

@descr

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 76 of file unoshtxt.cxx.

Constructor & Destructor Documentation

◆ SvxTextEditSourceImpl() [1/2]

SvxTextEditSourceImpl::SvxTextEditSourceImpl ( SdrObject pObject,
SdrText pText 
)

◆ SvxTextEditSourceImpl() [2/2]

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

◆ ~SvxTextEditSourceImpl()

SvxTextEditSourceImpl::~SvxTextEditSourceImpl ( )
overridevirtual

Definition at line 218 of file unoshtxt.cxx.

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

Member Function Documentation

◆ acquire()

void SvxTextEditSourceImpl::acquire ( )

Definition at line 243 of file unoshtxt.cxx.

References maRefCount.

◆ addRange()

void SvxTextEditSourceImpl::addRange ( SvxUnoTextRangeBase *  pNewRange)

Definition at line 228 of file unoshtxt.cxx.

References mvTextRanges.

◆ CreateViewForwarder()

std::unique_ptr< SvxDrawOutlinerViewForwarder > SvxTextEditSourceImpl::CreateViewForwarder ( )
private

◆ DECL_LINK()

SvxTextEditSourceImpl::DECL_LINK ( NotifyHdl  ,
EENotify ,
void   
)

◆ dispose()

void SvxTextEditSourceImpl::dispose ( void  )
private

◆ GetBackgroundTextForwarder()

SvxTextForwarder * SvxTextEditSourceImpl::GetBackgroundTextForwarder ( )
private

◆ GetEditModeTextForwarder()

SvxTextForwarder * SvxTextEditSourceImpl::GetEditModeTextForwarder ( )
private

◆ GetEditViewForwarder()

SvxEditViewForwarder * SvxTextEditSourceImpl::GetEditViewForwarder ( bool  bCreate)

◆ getRanges()

const SvxUnoTextRangeBaseVec & SvxTextEditSourceImpl::getRanges ( ) const
inline

Definition at line 135 of file unoshtxt.cxx.

References mvTextRanges.

◆ GetTextForwarder()

SvxTextForwarder * SvxTextEditSourceImpl::GetTextForwarder ( )

◆ HasView()

bool SvxTextEditSourceImpl::HasView ( ) const
inlineprivate

◆ IsEditMode()

bool SvxTextEditSourceImpl::IsEditMode ( ) const
inlineprivate

◆ IsValid()

bool SvxTextEditSourceImpl::IsValid ( ) const

Definition at line 826 of file unoshtxt.cxx.

References mpView, and mpWindow.

Referenced by LogicToPixel(), and PixelToLogic().

◆ lock()

void SvxTextEditSourceImpl::lock ( )

◆ LogicToPixel()

Point SvxTextEditSourceImpl::LogicToPixel ( const Point rPoint,
const MapMode rMapMode 
)

◆ Notify()

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

◆ ObjectInDestruction()

void SvxTextEditSourceImpl::ObjectInDestruction ( const SdrObject rObject)
overridevirtual

Implements sdr::ObjectUser.

Definition at line 384 of file unoshtxt.cxx.

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

◆ PixelToLogic()

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

◆ release()

void SvxTextEditSourceImpl::release ( )

Definition at line 249 of file unoshtxt.cxx.

References maRefCount.

◆ removeRange()

void SvxTextEditSourceImpl::removeRange ( SvxUnoTextRangeBase *  pOldRange)

Definition at line 236 of file unoshtxt.cxx.

References mvTextRanges.

◆ SetupOutliner()

void SvxTextEditSourceImpl::SetupOutliner ( )
private

◆ unlock()

void SvxTextEditSourceImpl::unlock ( )

◆ UpdateData()

void SvxTextEditSourceImpl::UpdateData ( )

◆ UpdateOutliner()

void SvxTextEditSourceImpl::UpdateOutliner ( )

Member Data Documentation

◆ m_xLinguServiceManager

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

Definition at line 89 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder().

◆ maRefCount

oslInterlockedCount SvxTextEditSourceImpl::maRefCount
private

Definition at line 79 of file unoshtxt.cxx.

Referenced by acquire(), and release().

◆ maTextOffset

Point SvxTextEditSourceImpl::maTextOffset
private

Definition at line 90 of file unoshtxt.cxx.

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

◆ mbDataValid

bool SvxTextEditSourceImpl::mbDataValid
private

Definition at line 91 of file unoshtxt.cxx.

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

◆ mbForwarderIsEditMode

bool SvxTextEditSourceImpl::mbForwarderIsEditMode
private

◆ mbIsLocked

bool SvxTextEditSourceImpl::mbIsLocked
private

◆ mbNeedsUpdate

bool SvxTextEditSourceImpl::mbNeedsUpdate
private

Definition at line 93 of file unoshtxt.cxx.

Referenced by unlock(), and UpdateData().

◆ mbNotificationsDisabled

bool SvxTextEditSourceImpl::mbNotificationsDisabled
private

Definition at line 97 of file unoshtxt.cxx.

Referenced by GetBackgroundTextForwarder().

◆ mbNotifyEditOutlinerSet

bool SvxTextEditSourceImpl::mbNotifyEditOutlinerSet
private

Definition at line 98 of file unoshtxt.cxx.

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

◆ mbOldUndoMode

bool SvxTextEditSourceImpl::mbOldUndoMode
private

Definition at line 94 of file unoshtxt.cxx.

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

◆ mbShapeIsEditMode

bool SvxTextEditSourceImpl::mbShapeIsEditMode
private

Definition at line 96 of file unoshtxt.cxx.

Referenced by IsEditMode(), Notify(), and SvxTextEditSourceImpl().

◆ mpModel

SdrModel* SvxTextEditSourceImpl::mpModel
private

◆ mpObject

SdrObject* SvxTextEditSourceImpl::mpObject
private

◆ mpOutliner

std::unique_ptr<SdrOutliner> SvxTextEditSourceImpl::mpOutliner
private

◆ mpText

SdrText* SvxTextEditSourceImpl::mpText
private

◆ mpTextForwarder

std::unique_ptr<SvxOutlinerForwarder> SvxTextEditSourceImpl::mpTextForwarder
private

◆ mpView

SdrView* SvxTextEditSourceImpl::mpView
private

◆ mpViewForwarder

std::unique_ptr<SvxDrawOutlinerViewForwarder> SvxTextEditSourceImpl::mpViewForwarder
private

Definition at line 88 of file unoshtxt.cxx.

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

◆ mpWindow

VclPtr<const OutputDevice> SvxTextEditSourceImpl::mpWindow
private

Definition at line 84 of file unoshtxt.cxx.

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

◆ mvTextRanges

SvxUnoTextRangeBaseVec SvxTextEditSourceImpl::mvTextRanges
private

Definition at line 100 of file unoshtxt.cxx.

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


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