LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFlyDrawContact Class Referencefinal

ContactObject for connection between frames (or their formats respectively) in SwClient and the drawobjects of Drawing (SdrObjUserCall). More...

#include <dcontact.hxx>

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

Public Member Functions

 SwFlyDrawContact (SwFlyFrameFormat *pToRegisterIn, SdrModel &rTargetModel)
 Creates DrawObject and registers it with the Model. More...
 
virtual ~SwFlyDrawContact () override
 
virtual const SwAnchoredObjectGetAnchoredObj (const SdrObject *_pSdrObj) const override
 
virtual SwAnchoredObjectGetAnchoredObj (SdrObject *_pSdrObj) override
 
virtual const SdrObjectGetMaster () const override
 
virtual SdrObjectGetMaster () override
 
virtual void MoveObjToVisibleLayer (SdrObject *_pDrawObj) override
 override methods to control Writer fly frames, which are linked, and to assure that all objects anchored at/inside the Writer fly frame are also made visible/invisible. More...
 
virtual void MoveObjToInvisibleLayer (SdrObject *_pDrawObj) override
 
virtual void GetAnchoredObjs (std::vector< SwAnchoredObject * > &_roAnchoredObjs) const override
 get data collection of anchored objects handled by with contact More...
 
- Public Member Functions inherited from SwContact
 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 SwNodeGetAnchorNode () 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)
 
virtual void const * GetPDFAnchorStructureElementKey (SdrObject const &rObj)
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
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
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 

Static Public Member Functions

static SwVirtFlyDrawObjCreateNewRef (SwFlyFrame *pFly, SwFlyFrameFormat *pFormat, SwFrame const &rAnchorFrame)
 

Private Member Functions

void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
sal_uInt32 GetOrdNumForNewRef (const SwFlyFrame *pFly, SwFrame const &rAnchorFrame)
 

Private Attributes

rtl::Reference< SwFlyDrawObjmpMasterObj
 

Additional Inherited Members

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

Detailed Description

ContactObject for connection between frames (or their formats respectively) in SwClient and the drawobjects of Drawing (SdrObjUserCall).

Definition at line 176 of file dcontact.hxx.

Constructor & Destructor Documentation

◆ SwFlyDrawContact()

SwFlyDrawContact::SwFlyDrawContact ( SwFlyFrameFormat pToRegisterIn,
SdrModel rTargetModel 
)

Creates DrawObject and registers it with the Model.

Definition at line 462 of file dcontact.cxx.

References mpMasterObj.

◆ ~SwFlyDrawContact()

SwFlyDrawContact::~SwFlyDrawContact ( )
overridevirtual

Definition at line 474 of file dcontact.cxx.

References mpMasterObj.

Member Function Documentation

◆ CreateNewRef()

SwVirtFlyDrawObj * SwFlyDrawContact::CreateNewRef ( SwFlyFrame pFly,
SwFlyFrameFormat pFormat,
SwFrame const &  rAnchorFrame 
)
static

◆ GetAnchoredObj() [1/2]

const SwAnchoredObject * SwFlyDrawContact::GetAnchoredObj ( const SdrObject _pSdrObj) const
overridevirtual

Implements SwContact.

Definition at line 563 of file dcontact.cxx.

References GetUserCall().

Referenced by GetAnchoredObj().

◆ GetAnchoredObj() [2/2]

SwAnchoredObject * SwFlyDrawContact::GetAnchoredObj ( SdrObject _pSdrObj)
overridevirtual

Implements SwContact.

Definition at line 576 of file dcontact.cxx.

References GetAnchoredObj().

◆ GetAnchoredObjs()

void SwFlyDrawContact::GetAnchoredObjs ( std::vector< SwAnchoredObject * > &  _roAnchoredObjs) const
overridevirtual

get data collection of anchored objects handled by with contact

get data collection of anchored objects, handled by with contact

Implements SwContact.

Definition at line 661 of file dcontact.cxx.

References SwFlyFrame::GetAnchoredObjects(), and SwContact::GetFormat().

◆ GetMaster() [1/2]

virtual const SdrObject * SwFlyDrawContact::GetMaster ( ) const
inlineoverridevirtual

◆ GetMaster() [2/2]

SdrObject * SwFlyDrawContact::GetMaster ( )
overridevirtual

Implements SwContact.

Definition at line 581 of file dcontact.cxx.

References mpMasterObj.

◆ GetOrdNumForNewRef()

sal_uInt32 SwFlyDrawContact::GetOrdNumForNewRef ( const SwFlyFrame pFly,
SwFrame const &  rAnchorFrame 
)
private

◆ MoveObjToInvisibleLayer()

void SwFlyDrawContact::MoveObjToInvisibleLayer ( SdrObject _pDrawObj)
overridevirtual
Note
Override method to control Writer fly frames, which are linked, and to assure that all objects anchored at/inside the Writer fly frame are also made invisible.

Reimplemented from SwContact.

Definition at line 631 of file dcontact.cxx.

References SwFlyFrame::DeleteCnt(), SwFrame::GetDrawObjs(), SwContact::GetFormat(), SdrObject::GetLayer(), SdrObject::GetUserCall(), i, SwContact::MoveObjToInvisibleLayer(), and SwFlyFrame::Unchain().

◆ MoveObjToVisibleLayer()

void SwFlyDrawContact::MoveObjToVisibleLayer ( SdrObject _pDrawObj)
overridevirtual

override methods to control Writer fly frames, which are linked, and to assure that all objects anchored at/inside the Writer fly frame are also made visible/invisible.

Note
Overriding method to control Writer fly frames, which are linked, and to assure that all objects anchored at/inside the Writer fly frame are also made visible.

Reimplemented from SwContact.

Definition at line 591 of file dcontact.cxx.

References SwAnchoredObject::AnchorFrame(), SwFlyFrame::Chain(), SwFrame::GetDrawObjs(), SwContact::GetFormat(), SdrObject::GetLayer(), SdrObject::GetUserCall(), i, SwFlyFrame::InsertCnt(), SwFlyFrame::InsertColumns(), SwLayoutFrame::Lower(), and SwContact::MoveObjToVisibleLayer().

Referenced by CreateNewRef().

◆ SwClientNotify()

void SwFlyDrawContact::SwClientNotify ( const SwModify rMod,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SwContact.

Definition at line 666 of file dcontact.cxx.

References SfxHint::GetId(), GetMaster(), SdrObject::GetOrdNum(), RES_FLYFRMFMT(), and SwContact::SwClientNotify().

Member Data Documentation

◆ mpMasterObj

rtl::Reference<SwFlyDrawObj> SwFlyDrawContact::mpMasterObj
private

Definition at line 179 of file dcontact.hxx.

Referenced by GetMaster(), SwFlyDrawContact(), and ~SwFlyDrawContact().


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