LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Private Types | 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 (DsrObjUserCall). 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
 
SwFrameFormatGetFormat ()
 
const SwFrameFormatGetFormat () const
 
bool IsInDTOR () const
 
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
 
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
 

Static Public Member Functions

static SwVirtFlyDrawObjCreateNewRef (SwFlyFrame *pFly, SwFlyFrameFormat *pFormat)
 

Private Types

typedef std::unique_ptr< SwFlyDrawObj, SdrObjectFreeOpSwFlyDrawObjPtr
 

Private Member Functions

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

Private Attributes

SwFlyDrawObjPtr mpMasterObj
 

Additional Inherited Members

- Protected Member Functions inherited from SwContact
void SetInDTOR ()
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

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

Definition at line 175 of file dcontact.hxx.

Member Typedef Documentation

typedef std::unique_ptr< SwFlyDrawObj, SdrObjectFreeOp > SwFlyDrawContact::SwFlyDrawObjPtr
private

Definition at line 178 of file dcontact.hxx.

Constructor & Destructor Documentation

SwFlyDrawContact::SwFlyDrawContact ( SwFlyFrameFormat pToRegisterIn,
SdrModel rTargetModel 
)

Creates DrawObject and registers it with the Model.

Definition at line 457 of file dcontact.cxx.

References mpMasterObj.

SwFlyDrawContact::~SwFlyDrawContact ( )
overridevirtual

Definition at line 469 of file dcontact.cxx.

References mpMasterObj.

Member Function Documentation

SwVirtFlyDrawObj * SwFlyDrawContact::CreateNewRef ( SwFlyFrame pFly,
SwFlyFrameFormat pFormat 
)
static
const SwAnchoredObject * SwFlyDrawContact::GetAnchoredObj ( const SdrObject _pSdrObj) const
overridevirtual

Implements SwContact.

Definition at line 537 of file dcontact.cxx.

References GetUserCall().

Referenced by GetAnchoredObj().

SwAnchoredObject * SwFlyDrawContact::GetAnchoredObj ( SdrObject _pSdrObj)
overridevirtual

Implements SwContact.

Definition at line 550 of file dcontact.cxx.

References GetAnchoredObj().

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 635 of file dcontact.cxx.

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

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

Implements SwContact.

Definition at line 555 of file dcontact.cxx.

References mpMasterObj.

sal_uInt32 SwFlyDrawContact::GetOrdNumForNewRef ( const SwFlyFrame pFly)
private
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 605 of file dcontact.cxx.

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

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 565 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().

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

Reimplemented from SwContact.

Definition at line 640 of file dcontact.cxx.

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

Member Data Documentation

SwFlyDrawObjPtr SwFlyDrawContact::mpMasterObj
private

Definition at line 180 of file dcontact.hxx.

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


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