LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SwContact Class Referenceabstract

Base class for the following contact objects (frame + draw objects). More...

#include <dcontact.hxx>

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

Public Member Functions

 SwContact (SwFrameFormat *pToRegisterIn)
 For reader. Only the connection is created. More...
 
virtual ~SwContact () override
 
virtual const SwAnchoredObjectGetAnchoredObj (const SdrObject *_pSdrObj) const =0
 
virtual SwAnchoredObjectGetAnchoredObj (SdrObject *_pSdrObj)=0
 
virtual const SdrObjectGetMaster () const =0
 
virtual SdrObjectGetMaster ()=0
 
SwFrameFormatGetFormat ()
 
const SwFrameFormatGetFormat () const
 
bool IsInDTOR () const
 
virtual void MoveObjToVisibleLayer (SdrObject *_pDrawObj)
 method to move drawing object to corresponding visible layer More...
 
virtual void MoveObjToInvisibleLayer (SdrObject *_pDrawObj)
 method to move drawing object to corresponding invisible layer More...
 
const SwFormatAnchorGetAnchorFormat () const
 some virtual helper methods for information about the object (Writer fly frame resp. More...
 
RndStdIds GetAnchorId () const
 
bool ObjAnchoredAtPage () const
 
bool ObjAnchoredAtFly () const
 
bool ObjAnchoredAtPara () const
 
bool ObjAnchoredAtChar () const
 
bool ObjAnchoredAsChar () const
 
const SwPositionGetContentAnchor () const
 
virtual void GetAnchoredObjs (std::vector< SwAnchoredObject * > &_roAnchoredObjs) const =0
 get data collection of anchored objects, handled by with contact More...
 
sal_uInt32 GetMinOrdNum () const
 get minimum order number of anchored objects handled by with contact More...
 
sal_uInt32 GetMaxOrdNum () const
 get maximum order number of anchored objects handled by with contact More...
 
- Public Member Functions inherited from SdrObjUserCall
virtual ~SdrObjUserCall ()
 
virtual void Changed (const SdrObject &rObj, SdrUserCallType eType, const tools::Rectangle &rOldBoundRect)
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
virtual void Modify (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 

Protected Member Functions

void SetInDTOR ()
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

void MoveObjToLayer (const bool _bToVisible, SdrObject *_pDrawObj)
 method to move object to visible/invisible layer More...
 

Private Attributes

bool mbInDTOR
 boolean, indicating destruction of contact object important note: boolean has to be set at the beginning of each destructor in the subclasses using method <SetInDTOR()>. More...
 

Detailed Description

Base class for the following contact objects (frame + draw objects).

Definition at line 66 of file dcontact.hxx.

Constructor & Destructor Documentation

SwContact::SwContact ( SwFrameFormat pToRegisterIn)

For reader. Only the connection is created.

Definition at line 196 of file dcontact.cxx.

SwContact::~SwContact ( )
overridevirtual

Definition at line 201 of file dcontact.cxx.

References SetInDTOR().

Member Function Documentation

virtual const SwAnchoredObject* SwContact::GetAnchoredObj ( const SdrObject _pSdrObj) const
pure virtual
virtual SwAnchoredObject* SwContact::GetAnchoredObj ( SdrObject _pSdrObj)
pure virtual

Implemented in SwDrawContact, and SwFlyDrawContact.

virtual void SwContact::GetAnchoredObjs ( std::vector< SwAnchoredObject * > &  _roAnchoredObjs) const
pure virtual

get data collection of anchored objects, handled by with contact

Implemented in SwDrawContact, and SwFlyDrawContact.

Referenced by GetMaxOrdNum(), GetMinOrdNum(), SwDrawView::MoveRepeatedObjs(), and SwClientNotify().

const SwFormatAnchor& SwContact::GetAnchorFormat ( ) const
inline

some virtual helper methods for information about the object (Writer fly frame resp.

drawing object)

Definition at line 138 of file dcontact.hxx.

RndStdIds SwContact::GetAnchorId ( ) const
inline
const SwPosition& SwContact::GetContentAnchor ( ) const
inline
SwFrameFormat* SwContact::GetFormat ( )
inline
const SwFrameFormat* SwContact::GetFormat ( ) const
inline

Definition at line 113 of file dcontact.hxx.

References SwClient::GetRegisteredIn().

virtual const SdrObject* SwContact::GetMaster ( ) const
pure virtual
virtual SdrObject* SwContact::GetMaster ( )
pure virtual

Implemented in SwDrawContact, and SwFlyDrawContact.

sal_uInt32 SwContact::GetMaxOrdNum ( ) const

get maximum order number of anchored objects handled by with contact

Definition at line 377 of file dcontact.cxx.

References GetAnchoredObjs().

Referenced by SwDrawView::ObjOrderChanged().

sal_uInt32 SwContact::GetMinOrdNum ( ) const

get minimum order number of anchored objects handled by with contact

Definition at line 352 of file dcontact.cxx.

References GetAnchoredObjs(), and SAL_MAX_UINT32.

Referenced by SwDrawView::ObjOrderChanged().

bool SwContact::IsInDTOR ( ) const
inline

Definition at line 116 of file dcontact.hxx.

void SwContact::MoveObjToInvisibleLayer ( SdrObject _pDrawObj)
virtual

method to move drawing object to corresponding invisible layer

method to move drawing object to corresponding invisible layer - #i18447#

uses method <MoveObjToLayer(..)>

Parameters
_pDrawObjdrawing object, which will be moved to the visible layer

Reimplemented in SwFlyDrawContact.

Definition at line 240 of file dcontact.cxx.

References GetAnchoredObj(), GetFormat(), SdrObject::GetLayer(), SwAnchoredObject::GetObjRect(), SwAnchoredObject::GetPageFrame(), MoveObjToLayer(), Notify_Background(), and PREP_FLY_LEAVE.

Referenced by SwDrawContact::DisconnectFromLayout(), SwTextFrame::HideAndShowObjects(), and SwFlyDrawContact::MoveObjToInvisibleLayer().

void SwContact::MoveObjToLayer ( const bool  _bToVisible,
SdrObject _pDrawObj 
)
private

method to move object to visible/invisible layer

method to move object to visible/invisible layer - #i18447#

Implementation for the public method <MoveObjToVisibleLayer(..)> and <MoveObjToInvisibleLayer(..)> If object is in invisble respectively visible layer, its moved to the corresponding visible respectively invisible layers. For group object the members are individually moved to the corresponding layer, because <SdrObjGroup::GetLayer()> does return 0, if members aren't on the same layer as the group object, and <SdrObjGroup::SetLayer(..)|NbcSetLayer(..)> sets also the layer of the members.

Parameters
_bToVisibleinput parameter - boolean indicating, if object has to be moved to visible (== true) or invisible (== false) layer.
_pDrawObjinput parameter, which will be changed - drawing object, which will change its layer.

implementation for the public method <MoveObjToVisibleLayer(..)> and <MoveObjToInvisibleLayer(..)>

Definition at line 267 of file dcontact.cxx.

References CheckControlLayer(), IDocumentDrawModelAccess::GetControlsId(), IDocumentDrawModelAccess::GetHeavenId(), IDocumentDrawModelAccess::GetHellId(), IDocumentDrawModelAccess::GetInvisibleControlsId(), IDocumentDrawModelAccess::GetInvisibleHeavenId(), IDocumentDrawModelAccess::GetInvisibleHellId(), SdrObject::GetLayer(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SwClient::GetRegisteredIn(), SwClient::GetRegisteredInNonConst(), i, and SdrObject::SetLayer().

Referenced by MoveObjToInvisibleLayer(), and MoveObjToVisibleLayer().

void SwContact::MoveObjToVisibleLayer ( SdrObject _pDrawObj)
virtual
bool SwContact::ObjAnchoredAsChar ( ) const
inline
bool SwContact::ObjAnchoredAtChar ( ) const
inline
bool SwContact::ObjAnchoredAtFly ( ) const
inline

Definition at line 147 of file dcontact.hxx.

Referenced by SwFrameNotify::~SwFrameNotify().

bool SwContact::ObjAnchoredAtPage ( ) const
inline
bool SwContact::ObjAnchoredAtPara ( ) const
inline
void SwContact::SetInDTOR ( )
protected

Definition at line 207 of file dcontact.cxx.

References mbInDTOR.

Referenced by ~SwContact(), and SwDrawContact::~SwDrawContact().

void SwContact::SwClientNotify ( const SwModify rMod,
const SfxHint rHint 
)
overrideprotectedvirtual

Member Data Documentation

bool SwContact::mbInDTOR
private

boolean, indicating destruction of contact object important note: boolean has to be set at the beginning of each destructor in the subclasses using method <SetInDTOR()>.

Definition at line 71 of file dcontact.hxx.

Referenced by SetInDTOR().


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