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... | |
![]() | |
SwContact (SwFrameFormat *pToRegisterIn) | |
For reader. Only the connection is created. More... | |
virtual | ~SwContact () override |
SwFrameFormat * | GetFormat () |
const SwFrameFormat * | GetFormat () const |
bool | IsInDTOR () const |
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 SwPosition & | GetContentAnchor () 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... | |
![]() | |
virtual | ~SdrObjUserCall () |
virtual void | Changed (const SdrObject &rObj, SdrUserCallType eType, const tools::Rectangle &rOldBoundRect) |
![]() | |
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 |
![]() | |
bool | IsLast () const |
virtual const SwCellFrame * | DynCastCellFrame () const |
virtual const SwTabFrame * | DynCastTabFrame () const |
virtual const SwRowFrame * | DynCastRowFrame () const |
Static Public Member Functions | |
static SwVirtFlyDrawObj * | CreateNewRef (SwFlyFrame *pFly, SwFlyFrameFormat *pFormat, SwFrame const &rAnchorFrame) |
Private Types | |
typedef std::unique_ptr< SwFlyDrawObj, SdrObjectFreeOp > | SwFlyDrawObjPtr |
Private Member Functions | |
void | SwClientNotify (const SwModify &, const SfxHint &rHint) override |
sal_uInt32 | GetOrdNumForNewRef (const SwFlyFrame *pFly, SwFrame const &rAnchorFrame) |
Private Attributes | |
SwFlyDrawObjPtr | mpMasterObj |
Additional Inherited Members | |
![]() | |
void | SetInDTOR () |
![]() | |
SwClient (SwModify *pToRegisterIn) | |
SwModify * | GetRegisteredInNonConst () const |
![]() | |
WriterListener () | |
virtual | ~WriterListener () COVERITY_NOEXCEPT_FALSE |
ContactObject for connection between frames (or their formats respectively) in SwClient and the drawobjects of Drawing (SdrObjUserCall).
Definition at line 175 of file dcontact.hxx.
|
private |
Definition at line 178 of file dcontact.hxx.
SwFlyDrawContact::SwFlyDrawContact | ( | SwFlyFrameFormat * | pToRegisterIn, |
SdrModel & | rTargetModel | ||
) |
Creates DrawObject and registers it with the Model.
Definition at line 460 of file dcontact.cxx.
References mpMasterObj.
|
overridevirtual |
Definition at line 472 of file dcontact.cxx.
References mpMasterObj.
|
static |
Definition at line 525 of file dcontact.cxx.
References IDocumentDrawModelAccess::GetDrawModel(), SwFormat::getIDocumentDrawModelAccess(), GetMaster(), SwFlyFrameFormat::GetOrCreateContact(), SdrObject::GetOrdNum(), GetOrdNumForNewRef(), SdrModel::GetPage(), SdrObject::getSdrModelFromSdrObject(), SdrObject::getSdrPageFromSdrObject(), SdrObjList::InsertObject(), MoveObjToVisibleLayer(), SdrObjList::ReplaceObject(), and SdrObject::SetUserCall().
Referenced by SwFlyFrame::InitDrawObj().
|
overridevirtual |
Implements SwContact.
Definition at line 561 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 659 of file dcontact.cxx.
References SwFlyFrame::GetAnchoredObjects(), and SwContact::GetFormat().
|
inlineoverridevirtual |
Implements SwContact.
Definition at line 194 of file dcontact.hxx.
References SwContact::GetMaster().
Referenced by SwWW8ImplReader::CreateContactObject(), CreateNewRef(), GetOrdNumForNewRef(), and SwClientNotify().
|
overridevirtual |
|
private |
Definition at line 482 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().
Reimplemented from SwContact.
Definition at line 629 of file dcontact.cxx.
References SwFlyFrame::DeleteCnt(), SwFrame::GetDrawObjs(), SwContact::GetFormat(), SdrObject::GetLayer(), SdrObject::GetUserCall(), i, SwContact::MoveObjToInvisibleLayer(), and SwFlyFrame::Unchain().
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 589 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 664 of file dcontact.cxx.
References GetMaster(), SdrObject::GetOrdNum(), RES_FLYFRMFMT(), and SwContact::SwClientNotify().
|
private |
Definition at line 180 of file dcontact.hxx.
Referenced by GetMaster(), SwFlyDrawContact(), and ~SwFlyDrawContact().