LibreOffice Module sw (master) 1
|
Base class for the following contact objects (frame + draw objects). More...
#include <dcontact.hxx>
Public Member Functions | |
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 |
Protected Member Functions | |
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 |
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... | |
Base class for the following contact objects (frame + draw objects).
Definition at line 66 of file dcontact.hxx.
SwContact::SwContact | ( | SwFrameFormat * | pToRegisterIn | ) |
For reader. Only the connection is created.
Definition at line 193 of file dcontact.cxx.
|
overridevirtual |
Definition at line 198 of file dcontact.cxx.
References SetInDTOR().
|
pure virtual |
Implemented in SwFlyDrawContact, and SwDrawContact.
Referenced by SwDrawView::AddCustomHdl(), SwFEShell::FindAnchorPos(), GetBoundRectOfAnchoredObj(), sw::access::SwAccessibleChild::GetBox(), objectpositioning::SwAnchoredObjectPosition::GetInfoAboutObj(), SwFEShell::IsFrameVertical(), lcl_AdjustPositioningAttr(), SwFEShell::MoveAnchor(), MoveObjToInvisibleLayer(), MoveObjToVisibleLayer(), Notify_Background(), SwDrawView::ObjOrderChanged(), SwFEShell::ShouldObjectBeSelected(), and SwObjPositioningInProgress::SwObjPositioningInProgress().
|
pure virtual |
Implemented in SwFlyDrawContact, and SwDrawContact.
|
pure virtual |
get data collection of anchored objects, handled by with contact
Implemented in SwFlyDrawContact, and SwDrawContact.
Referenced by GetMaxOrdNum(), GetMinOrdNum(), SwDrawView::MoveRepeatedObjs(), and SwClientNotify().
|
inline |
some virtual helper methods for information about the object (Writer fly frame resp.
drawing object)
Definition at line 138 of file dcontact.hxx.
References GetFormat().
Referenced by SwDoc::ChgAnchor(), and SwTextFrame::HideAndShowObjects().
|
inline |
Definition at line 145 of file dcontact.hxx.
Referenced by SwDoc::ChgAnchor(), SwTextFrame::HideAndShowObjects(), and SwAnchoredDrawObject::MakeObjPos().
|
inline |
Definition at line 152 of file dcontact.hxx.
Referenced by SwFEShell::ShouldObjectBeSelected().
|
inline |
Definition at line 112 of file dcontact.hxx.
References SwClient::GetRegisteredIn().
Referenced by SwDrawVirtObj::AddToDrawingPage(), CalcClipRect(), SwDrawContact::Changed(), SwDrawContact::Changed_(), SwDoc::ChgAnchor(), SwDrawContact::ConnectToLayout(), SwFEShell::Copy(), SwFEShell::CopyDrawSel(), SwFmDrawPage::CreateShape(), SwDrawView::DeleteMarked(), SwDoc::DeleteSelection(), SwDrawContact::DisconnectFromLayout(), FindFrameFormat(), SwFlyDrawContact::GetAnchoredObjs(), SwFEShell::GetAnchorId(), SwFEShell::GetObjAttr(), SwFEShell::GetObjCntType(), SwFlyDrawContact::GetOrdNumForNewRef(), sw::access::SwAccessibleChild::GetParent(), SwDoc::GroupSelection(), SwFrameNotify::ImplDestroy(), SwDoc::InsertDrawLabel(), SwDrawContact::InsertMasterIntoDrawPage(), SwEditWin::MouseButtonUp(), MoveObjToInvisibleLayer(), SwFlyDrawContact::MoveObjToInvisibleLayer(), MoveObjToVisibleLayer(), SwFlyDrawContact::MoveObjToVisibleLayer(), SwViewShellImp::NotifySizeChg(), SwUndoDrawDelete::RedoImpl(), SwFEShell::SelectObj(), SwFEShell::SetObjAttr(), SwDrawContact::SwClientNotify(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), and SwDoc::UnGroupSelection().
|
inline |
Definition at line 113 of file dcontact.hxx.
References SwClient::GetRegisteredIn().
|
pure virtual |
Implemented in SwFlyDrawContact, and SwDrawContact.
Referenced by SwFEShell::ChangeOpaque(), SwFlyDrawContact::GetMaster(), and SwClientNotify().
|
pure virtual |
Implemented in SwFlyDrawContact, and SwDrawContact.
sal_uInt32 SwContact::GetMaxOrdNum | ( | ) | const |
get maximum order number of anchored objects handled by with contact
Definition at line 374 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 349 of file dcontact.cxx.
References GetAnchoredObjs(), and SAL_MAX_UINT32.
Referenced by SwDrawView::ObjOrderChanged().
|
inline |
Definition at line 116 of file dcontact.hxx.
|
virtual |
method to move drawing object to corresponding invisible layer
method to move drawing object to corresponding invisible layer - #i18447#
uses method <MoveObjToLayer(..)>
_pDrawObj | drawing object, which will be moved to the visible layer |
Reimplemented in SwFlyDrawContact.
Definition at line 237 of file dcontact.cxx.
References FlyFrameLeave, GetAnchoredObj(), GetFormat(), SdrObject::GetLayer(), SwAnchoredObject::GetObjRect(), SwAnchoredObject::GetPageFrame(), MoveObjToLayer(), and Notify_Background().
Referenced by SwDrawContact::DisconnectFromLayout(), SwTextFrame::HideAndShowObjects(), and SwFlyDrawContact::MoveObjToInvisibleLayer().
|
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 invisible respectively visible layer, it's 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.
_bToVisible | input parameter - boolean indicating, if object has to be moved to visible (== true) or invisible (== false) layer. |
_pDrawObj | input parameter, which will be changed - drawing object, which will change its layer. |
implementation for the public method <MoveObjToVisibleLayer(..)> and <MoveObjToInvisibleLayer(..)>
Definition at line 264 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, MoveObjToLayer(), and SdrObject::SetLayer().
Referenced by MoveObjToInvisibleLayer(), MoveObjToLayer(), and MoveObjToVisibleLayer().
|
virtual |
method to move drawing object to corresponding visible layer
uses method <MoveObjToLayer(..)>
_pDrawObj | drawing object, which will be moved to the visible layer |
Reimplemented in SwFlyDrawContact.
Definition at line 210 of file dcontact.cxx.
References FlyFrameArrive, GetAnchoredObj(), SwAnchoredObject::GetAnchorFrameContainingAnchPos(), GetFormat(), SdrObject::GetLayer(), SwAnchoredObject::GetObjRect(), SwAnchoredObject::GetPageFrame(), SwAnchoredObject::InvalidateObjPos(), MoveObjToLayer(), Notify_Background(), and setContextWritingMode().
Referenced by SwFEShell::CheckUnboundObjects(), SwDoc::GroupSelection(), SwTextFrame::HideAndShowObjects(), SwFEShell::ImpEndCreate(), sw::DocumentContentOperationsManager::InsertDrawObj(), SwFEShell::InsertDrawObj(), SwAnchoredDrawObject::MakeObjPos(), SwFlyDrawContact::MoveObjToVisibleLayer(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroupConnectToLayout::RedoImpl(), SwDrawContact::SwClientNotify(), SwUndoDrawGroup::UndoImpl(), SwUndoDrawUnGroup::UndoImpl(), SwUndoDrawDelete::UndoImpl(), and SwDoc::UnGroupSelection().
|
inline |
Definition at line 150 of file dcontact.hxx.
Referenced by SwDrawContact::Changed_(), SwFrameNotify::ImplDestroy(), SwAnchoredDrawObject::MakeObjPos(), and SwAnchoredDrawObject::SetPositioningAttr().
|
inline |
Definition at line 149 of file dcontact.hxx.
Referenced by objectpositioning::SwAnchoredObjectPosition::CalcRelPosX().
|
inline |
Definition at line 147 of file dcontact.hxx.
Referenced by SwFrameNotify::ImplDestroy().
|
inline |
Definition at line 146 of file dcontact.hxx.
Referenced by SwFrameNotify::ImplDestroy(), and SwFEShell::ShouldObjectBeSelected().
|
inline |
Definition at line 148 of file dcontact.hxx.
Referenced by objectpositioning::SwAnchoredObjectPosition::CalcRelPosX().
|
protected |
Definition at line 204 of file dcontact.cxx.
References mbInDTOR.
Referenced by ~SwContact(), and SwDrawContact::~SwDrawContact().
|
overrideprotectedvirtual |
Reimplemented from SwClient.
Reimplemented in SwFlyDrawContact, and SwDrawContact.
Definition at line 421 of file dcontact.cxx.
References GetAnchoredObjs(), SwAnchoredObject::GetAnchorFrame(), SfxHint::GetId(), GetMaster(), sw::WW8AnchorConvResult::m_aPos, sw::WW8AnchorConvResult::m_bConverted, sw::WW8AnchorConvResult::m_eHoriConv, sw::WW8AnchorConvResult::m_eVertConv, sw::FindSdrObjectHint::m_rpObject, Point::setX(), and Point::setY().
Referenced by SwFlyDrawContact::SwClientNotify(), and SwDrawContact::SwClientNotify().
|
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().