LibreOffice Module sw (master) 1
|
ContactObject for connection between frames (or their formats respectively) in SwClient and the drawobjects of Drawing (SdrObjUserCall). More...
#include <dcontact.hxx>
Public Member Functions | |
SwFlyDrawContact (SwFlyFrameFormat *pToRegisterIn, SdrModel &rTargetModel) | |
Creates DrawObject and registers it with the Model. More... | |
virtual | ~SwFlyDrawContact () override |
virtual const SwAnchoredObject * | GetAnchoredObj (const SdrObject *_pSdrObj) const override |
virtual SwAnchoredObject * | GetAnchoredObj (SdrObject *_pSdrObj) override |
virtual const SdrObject * | GetMaster () const override |
virtual SdrObject * | GetMaster () 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 SwAnchoredObject * | GetAnchoredObj (const SdrObject *_pSdrObj) const =0 |
virtual SwAnchoredObject * | GetAnchoredObj (SdrObject *_pSdrObj)=0 |
virtual const SdrObject * | GetMaster () const =0 |
virtual SdrObject * | GetMaster ()=0 |
SwFrameFormat * | GetFormat () |
const SwFrameFormat * | GetFormat () 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 SwFormatAnchor & | GetAnchorFormat () 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 SwNode & | GetAnchorNode () 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::ModifyChangedHint > | CheckRegistration (const SfxPoolItem *pOldValue) |
void | CheckRegistrationFormat (SwFormat &rOld) |
const SwModify * | GetRegisteredIn () const |
SwModify * | GetRegisteredIn () |
void | EndListeningAll () |
void | StartListeningToSameModifyAs (const SwClient &) |
virtual bool | GetInfo (SfxPoolItem &) const |
Public Member Functions inherited from sw::WriterListener | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
virtual const SwTable * | DynCastTable () const |
Static Public Member Functions | |
static SwVirtFlyDrawObj * | CreateNewRef (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< SwFlyDrawObj > | mpMasterObj |
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) | |
SwModify * | GetRegisteredInNonConst () 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 |
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.
SwFlyDrawContact::SwFlyDrawContact | ( | SwFlyFrameFormat * | pToRegisterIn, |
SdrModel & | rTargetModel | ||
) |
Creates DrawObject and registers it with the Model.
Definition at line 462 of file dcontact.cxx.
References mpMasterObj.
|
overridevirtual |
Definition at line 474 of file dcontact.cxx.
References mpMasterObj.
|
static |
Definition at line 527 of file dcontact.cxx.
References IDocumentDrawModelAccess::GetDrawModel(), SwFormat::getIDocumentDrawModelAccess(), GetMaster(), SwFlyFrameFormat::GetOrCreateContact(), SdrObject::GetOrdNum(), GetOrdNumForNewRef(), SdrModel::GetPage(), SdrObject::getSdrModelFromSdrObject(), SdrObject::getSdrPageFromSdrObject(), SdrObjList::InsertObject(), MoveObjToVisibleLayer(), and SdrObjList::ReplaceObject().
Referenced by SwFlyFrame::InitDrawObj().
|
overridevirtual |
Implements SwContact.
Definition at line 563 of file dcontact.cxx.
References GetUserCall().
Referenced by GetAnchoredObj().
|
overridevirtual |
|
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().
|
inlineoverridevirtual |
Implements SwContact.
Definition at line 193 of file dcontact.hxx.
References SwContact::GetMaster().
Referenced by SwWW8ImplReader::CreateContactObject(), CreateNewRef(), GetOrdNumForNewRef(), and SwClientNotify().
|
overridevirtual |
|
private |
Definition at line 484 of file dcontact.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwAnchoredObject::GetDrawObj(), SwFrame::GetDrawObjs(), SwContact::GetFormat(), SwAnchoredObject::GetFrameFormat(), GetMaster(), SdrObject::GetOrdNum(), SdrObject::GetOrdNumDirect(), SwTextBoxHelper::getOtherTextBoxFormat(), SwFlyFrame::GetVirtDrawObj(), SwIterator< TElementType, TSource, eMode >::Next(), RES_FLYFRMFMT(), and SAL_INFO.
Referenced by CreateNewRef().
|
overridevirtual |
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().
|
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.
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().
|
overrideprivatevirtual |
Reimplemented from SwContact.
Definition at line 666 of file dcontact.cxx.
References SfxHint::GetId(), GetMaster(), SdrObject::GetOrdNum(), RES_FLYFRMFMT(), and SwContact::SwClientNotify().
|
private |
Definition at line 179 of file dcontact.hxx.
Referenced by GetMaster(), SwFlyDrawContact(), and ~SwFlyDrawContact().