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

new class for re-direct methods calls at a 'virtual' drawing object to its referenced object. More...

#include <dcontact.hxx>

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

Public Member Functions

 SwDrawVirtObj (SdrModel &rSdrModel, SdrObject &_rNewObj, SwDrawContact &_rDrawContact)
 
 SwDrawVirtObj (SdrModel &rSdrModel, SwDrawVirtObj const &rSource)
 
virtual Point GetOffset () const override
 access to offset More...
 
virtual rtl::Reference< SdrObjectCloneSdrObject (SdrModel &rTargetModel) const override
 
const SwAnchoredObjectGetAnchoredObj () const
 connection to writer layout More...
 
SwAnchoredObjectAnchoredObj ()
 
const SwFrameGetAnchorFrame () const
 
SwFrameAnchorFrame ()
 
void RemoveFromWriterLayout ()
 
void AddToDrawingPage (SwFrame const &rAnchorFrame)
 connection to drawing layer More...
 
void RemoveFromDrawingPage ()
 
bool IsConnected () const
 is 'virtual' drawing object connected to writer layout and / to drawing layer. More...
 
virtual void NbcSetAnchorPos (const Point &rPnt) override
 
virtual void RecalcBoundRect () override
 All overridden methods which need to use the offset. More...
 
virtual ::basegfx::B2DPolyPolygon TakeXorPoly () const override
 
virtual ::basegfx::B2DPolyPolygon TakeContour () const override
 
virtual void AddToHdlList (SdrHdlList &rHdlList) const override
 
virtual void NbcMove (const Size &rSiz) override
 
virtual void NbcResize (const Point &rRef, const Fraction &xFact, const Fraction &yFact) override
 
virtual void NbcRotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override
 
virtual void NbcMirror (const Point &rRef1, const Point &rRef2) override
 
virtual void NbcShear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override
 
virtual void Move (const Size &rSiz) override
 
virtual void Resize (const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true) override
 
virtual void Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override
 
virtual void Mirror (const Point &rRef1, const Point &rRef2) override
 
virtual void Shear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override
 
virtual void RecalcSnapRect () override
 
virtual const tools::RectangleGetSnapRect () const override
 
virtual void SetSnapRect (const tools::Rectangle &rRect) override
 
virtual void NbcSetSnapRect (const tools::Rectangle &rRect) override
 
virtual const tools::RectangleGetLogicRect () const override
 
virtual void SetLogicRect (const tools::Rectangle &rRect) override
 
virtual void NbcSetLogicRect (const tools::Rectangle &rRect) override
 
virtual Point GetSnapPoint (sal_uInt32 i) const override
 
virtual Point GetPoint (sal_uInt32 i) const override
 
virtual void NbcSetPoint (const Point &rPnt, sal_uInt32 i) override
 
virtual bool HasTextEdit () const override
 
virtual SdrLayerID GetLayer () const override
 
virtual void NbcSetLayer (SdrLayerID nLayer) override
 
virtual void SetLayer (SdrLayerID nLayer) override
 
virtual void SetBoundRectDirty () override
 
virtual const tools::RectangleGetCurrentBoundRect () const override
 
virtual const tools::RectangleGetLastBoundRect () const override
 
- Public Member Functions inherited from SdrVirtObj
virtual sdr::properties::BasePropertiesGetProperties () const override
 
 SdrVirtObj (SdrModel &rSdrModel, SdrObject &rNewObj)
 
 SdrVirtObj (SdrModel &rSdrModel, SdrVirtObj const &rSource)
 
SdrObjectReferencedObj ()
 
const SdrObjectGetReferencedObj () const
 
virtual void NbcSetAnchorPos (const Point &rAnchorPos) override
 
virtual void TakeObjInfo (SdrObjTransformInfoRec &rInfo) const override
 
virtual SdrInventor GetObjInventor () const override
 
virtual SdrObjKind GetObjIdentifier () const override
 
virtual SdrObjListGetSubList () const override
 
virtual void SetName (const OUString &rStr, const bool bSetChanged=true) override
 
virtual const OUString & GetName () const override
 
virtual void SetTitle (const OUString &rStr) override
 
virtual OUString GetTitle () const override
 
virtual void SetDescription (const OUString &rStr) override
 
virtual OUString GetDescription () const override
 
virtual void SetDecorative (bool isDecorative) override
 
virtual bool IsDecorative () const override
 
virtual const tools::RectangleGetCurrentBoundRect () const override
 
virtual const tools::RectangleGetLastBoundRect () const override
 
virtual void RecalcBoundRect () override
 
virtual rtl::Reference< SdrObjectCloneSdrObject (SdrModel &rTargetModel) const override
 
virtual OUString TakeObjNameSingul () const override
 
virtual OUString TakeObjNamePlural () const override
 
virtual bool HasLimitedRotation () const override
 
virtual basegfx::B2DPolyPolygon TakeXorPoly () const override
 
virtual sal_uInt32 GetHdlCount () const override
 
virtual void AddToPlusHdlList (SdrHdlList &rHdlList, SdrHdl &rHdl) const override
 
virtual void AddToHdlList (SdrHdlList &rHdlList) const override
 
virtual bool hasSpecialDrag () const override
 
virtual bool beginSpecialDrag (SdrDragStat &rDrag) const override
 
virtual bool applySpecialDrag (SdrDragStat &rDrag) override
 
virtual OUString getSpecialDragComment (const SdrDragStat &rDrag) const override
 
virtual basegfx::B2DPolyPolygon getSpecialDragPoly (const SdrDragStat &rDrag) const override
 
virtual bool supportsFullDrag () const override
 
virtual rtl::Reference< SdrObjectgetFullDragClone () const override
 
virtual bool BegCreate (SdrDragStat &rStat) override
 
virtual bool MovCreate (SdrDragStat &rStat) override
 
virtual bool EndCreate (SdrDragStat &rStat, SdrCreateCmd eCmd) override
 
virtual bool BckCreate (SdrDragStat &rStat) override
 
virtual void BrkCreate (SdrDragStat &rStat) override
 
virtual basegfx::B2DPolyPolygon TakeCreatePoly (const SdrDragStat &rDrag) const override
 
virtual void NbcMove (const Size &rSiz) override
 
virtual void NbcResize (const Point &rRef, const Fraction &xFact, const Fraction &yFact) override
 
virtual void NbcRotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override
 
virtual void NbcMirror (const Point &rRef1, const Point &rRef2) override
 
virtual void NbcShear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override
 
virtual void Move (const Size &rSiz) override
 
virtual void Resize (const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true) override
 
virtual void Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs) override
 
virtual void Mirror (const Point &rRef1, const Point &rRef2) override
 
virtual void Shear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override
 
virtual void RecalcSnapRect () override
 
virtual const tools::RectangleGetSnapRect () const override
 
virtual void SetSnapRect (const tools::Rectangle &rRect) override
 
virtual void NbcSetSnapRect (const tools::Rectangle &rRect) override
 
virtual const tools::RectangleGetLogicRect () const override
 
virtual void SetLogicRect (const tools::Rectangle &rRect) override
 
virtual void NbcSetLogicRect (const tools::Rectangle &rRect) override
 
virtual Degree100 GetRotateAngle () const override
 
virtual Degree100 GetShearAngle (bool bVertical=false) const override
 
virtual sal_uInt32 GetSnapPointCount () const override
 
virtual Point GetSnapPoint (sal_uInt32 i) const override
 
virtual bool IsPolyObj () const override
 
virtual sal_uInt32 GetPointCount () const override
 
virtual Point GetPoint (sal_uInt32 i) const override
 
virtual void NbcSetPoint (const Point &rPnt, sal_uInt32 i) override
 
virtual std::unique_ptr< SdrObjGeoDataGetGeoData () const override
 
virtual void SetGeoData (const SdrObjGeoData &rGeo) override
 
virtual void NbcReformatText () override
 
virtual bool HasMacro () const override
 
virtual SdrObjectCheckMacroHit (const SdrObjMacroHitRec &rRec) const override
 
virtual PointerStyle GetMacroPointer (const SdrObjMacroHitRec &rRec) const override
 
virtual void PaintMacro (OutputDevice &rOut, const tools::Rectangle &rDirtyRect, const SdrObjMacroHitRec &rRec) const override
 
virtual bool DoMacro (const SdrObjMacroHitRec &rRec) override
 
virtual Point GetOffset () const
 
- Public Member Functions inherited from SdrObject
virtual const std::shared_ptr< svx::diagram::IDiagramHelper > & getDiagramHelper () const
 
bool isDiagram () const
 
const SdrObjectgetFillGeometryDefiningShape () const
 
 SdrObject (SdrModel &rSdrModel)
 
 SdrObject (SdrModel &rSdrModel, SdrObject const &rSource)
 
virtual void SAL_CALL acquire () noexcept override final
 
virtual void SAL_CALL release () noexcept override final
 
SdrPagegetSdrPageFromSdrObject () const
 
SdrModelgetSdrModelFromSdrObject () const
 
virtual SdrObjListgetChildrenOfSdrObject () const
 
SdrObjListgetParentSdrObjListFromSdrObject () const
 
SdrObjectgetParentSdrObjectFromSdrObject () const
 
virtual void handlePageChange (SdrPage *pOldPage, SdrPage *pNewPage)
 
void AddObjectUser (sdr::ObjectUser &rNewUser)
 
void RemoveObjectUser (sdr::ObjectUser &rOldUser)
 
sdr::contact::ViewContactGetViewContact () const
 
virtual sdr::properties::BasePropertiesGetProperties () const
 
void ActionChanged () const
 
void SetRelativeWidth (double nValue)
 
void SetRelativeWidthRelation (sal_Int16 eValue)
 
void SetRelativeHeight (double nValue)
 
void SetRelativeHeightRelation (sal_Int16 eValue)
 
const double * GetRelativeWidth () const
 
sal_Int16 GetRelativeWidthRelation () const
 
const double * GetRelativeHeight () const
 
sal_Int16 GetRelativeHeightRelation () const
 
virtual void SetBoundAndSnapRectsDirty (bool bNotMyself=false, bool bRecursive=true)
 
virtual void SetBoundRectDirty ()
 
SfxItemPoolGetObjectItemPool () const
 
void AddListener (SfxListener &rListener)
 
void RemoveListener (SfxListener &rListener)
 
void AddReference (SdrVirtObj &rVrtObj)
 
void DelReference (SdrVirtObj &rVrtObj)
 
virtual SdrInventor GetObjInventor () const
 
virtual SdrObjKind GetObjIdentifier () const
 
virtual void TakeObjInfo (SdrObjTransformInfoRec &rInfo) const
 
virtual SdrLayerID GetLayer () const
 
virtual void NbcSetLayer (SdrLayerID nLayer)
 
virtual void SetLayer (SdrLayerID nLayer)
 
bool isVisibleOnAnyOfTheseLayers (const SdrLayerIDSet &rSet) const
 
void SendUserCall (SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const
 
virtual void SetName (const OUString &rStr, const bool bSetChanged=true)
 
virtual const OUString & GetName () const
 
void MakeNameUnique ()
 
void MakeNameUnique (std::unordered_set< OUString > &rNameSet)
 
virtual void SetTitle (const OUString &rStr)
 
virtual OUString GetTitle () const
 
virtual void SetDescription (const OUString &rStr)
 
virtual OUString GetDescription () const
 
virtual void SetDecorative (bool isDecorative)
 
virtual bool IsDecorative () const
 
bool IsGroupObject () const
 
virtual SdrObjListGetSubList () const
 
sal_uInt32 GetOrdNum () const
 
void SetOrdNum (sal_uInt32 nNum)
 
void GetGrabBagItem (css::uno::Any &rVal) const
 
virtual void SetGrabBagItem (const css::uno::Any &rVal)
 
sal_uInt32 GetNavigationPosition () const
 
virtual const tools::RectangleGetCurrentBoundRect () const
 
virtual const tools::RectangleGetLastBoundRect () const
 
virtual void RecalcBoundRect ()
 
void BroadcastObjectChange () const
 
const SfxBroadcasterGetBroadcaster () const
 
virtual void SetChanged ()
 
void SingleObjectPainter (OutputDevice &rOut) const
 
bool LineGeometryUsageIsNecessary () const
 
virtual bool HasLimitedRotation () const
 
virtual rtl::Reference< SdrObjectCloneSdrObject (SdrModel &rTargetModel) const=0
 
SdrObjectoperator= (const SdrObject &rObj)=delete
 
SdrObjectoperator= (SdrObject &&rObj)=delete
 
virtual OUString TakeObjNameSingul () const
 
virtual OUString TakeObjNamePlural () const
 
virtual basegfx::B2DPolyPolygon TakeXorPoly () const
 
virtual basegfx::B2DPolyPolygon TakeContour () const
 
virtual sal_uInt32 GetHdlCount () const
 
virtual void AddToPlusHdlList (SdrHdlList &rHdlList, SdrHdl &rHdl) const
 
virtual void AddToHdlList (SdrHdlList &rHdlList) const
 
virtual void addCropHandles (SdrHdlList &rTarget) const
 
virtual bool hasSpecialDrag () const
 
virtual bool beginSpecialDrag (SdrDragStat &rDrag) const
 
virtual bool applySpecialDrag (SdrDragStat &rDrag)
 
virtual OUString getSpecialDragComment (const SdrDragStat &rDrag) const
 
virtual basegfx::B2DPolyPolygon getSpecialDragPoly (const SdrDragStat &rDrag) const
 
virtual bool supportsFullDrag () const
 
virtual rtl::Reference< SdrObjectgetFullDragClone () const
 
virtual bool BegCreate (SdrDragStat &rStat)
 
virtual bool MovCreate (SdrDragStat &rStat)
 
virtual bool EndCreate (SdrDragStat &rStat, SdrCreateCmd eCmd)
 
virtual bool BckCreate (SdrDragStat &rStat)
 
virtual void BrkCreate (SdrDragStat &rStat)
 
virtual PointerStyle GetCreatePointer () const
 
virtual basegfx::B2DPolyPolygon TakeCreatePoly (const SdrDragStat &rDrag) const
 
virtual void NbcMove (const Size &rSiz)
 
virtual void NbcResize (const Point &rRef, const Fraction &xFact, const Fraction &yFact)
 
virtual void NbcCrop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact)
 
virtual void NbcRotate (const Point &rRef, Degree100 nAngle, double sn, double cs)=0
 
void NbcRotate (const Point &rRef, Degree100 nAngle)
 
virtual void NbcMirror (const Point &rRef1, const Point &rRef2)
 
virtual void NbcShear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear)
 
virtual void Move (const Size &rSiz)
 
virtual void Resize (const Point &rRef, const Fraction &xFact, const Fraction &yFact, bool bUnsetRelative=true)
 
virtual void Crop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact)
 
virtual void Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs)
 
virtual void Mirror (const Point &rRef1, const Point &rRef2)
 
virtual void Shear (const Point &rRef, Degree100 nAngle, double tn, bool bVShear)
 
virtual void NbcSetRelativePos (const Point &rPnt)
 
virtual void SetRelativePos (const Point &rPnt)
 
virtual Point GetRelativePos () const
 
void ImpSetAnchorPos (const Point &rPnt)
 
virtual void NbcSetAnchorPos (const Point &rPnt)
 
virtual void SetAnchorPos (const Point &rPnt)
 
virtual void RecalcSnapRect ()
 
virtual const tools::RectangleGetSnapRect () const
 
virtual void SetSnapRect (const tools::Rectangle &rRect)
 
virtual void NbcSetSnapRect (const tools::Rectangle &rRect)
 
virtual const tools::RectangleGetLogicRect () const
 
virtual void SetLogicRect (const tools::Rectangle &rRect)
 
virtual void NbcSetLogicRect (const tools::Rectangle &rRect)
 
virtual void AdjustToMaxRect (const tools::Rectangle &rMaxRect, bool bShrinkOnly=false)
 
virtual Degree100 GetRotateAngle () const
 
virtual Degree100 GetShearAngle (bool bVertical=false) const
 
virtual sal_uInt32 GetSnapPointCount () const
 
virtual Point GetSnapPoint (sal_uInt32 i) const
 
virtual bool IsPolyObj () const
 
virtual sal_uInt32 GetPointCount () const
 
virtual Point GetPoint (sal_uInt32 i) const
 
void SetPoint (const Point &rPnt, sal_uInt32 i)
 
virtual void NbcSetPoint (const Point &rPnt, sal_uInt32 i)
 
virtual std::unique_ptr< SdrObjGeoDataGetGeoData () const
 
virtual void SetGeoData (const SdrObjGeoData &rGeo)
 
const SfxItemSetGetMergedItemSet () const
 
void SetMergedItem (const SfxPoolItem &rItem)
 
void ClearMergedItem (const sal_uInt16 nWhich=0)
 
void SetMergedItemSet (const SfxItemSet &rSet, bool bClearAllItems=false)
 
const SfxPoolItemGetMergedItem (const sal_uInt16 nWhich) const
 
const T & GetMergedItem (TypedWhichId< T > nWhich) const
 
void SetMergedItemSetAndBroadcast (const SfxItemSet &rSet, bool bClearAllItems=false)
 
void TakeNotPersistAttr (SfxItemSet &rAttr) const
 
void ApplyNotPersistAttr (const SfxItemSet &rAttr)
 
void NbcApplyNotPersistAttr (const SfxItemSet &rAttr)
 
void SetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
 
void NbcSetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
 
SfxStyleSheetGetStyleSheet () const
 
virtual bool HasTextEdit () const
 
void SetOutlinerParaObject (std::optional< OutlinerParaObject > pTextObject)
 
virtual void NbcSetOutlinerParaObject (std::optional< OutlinerParaObject > pTextObject)
 
virtual OutlinerParaObjectGetOutlinerParaObject () const
 
virtual void NbcReformatText ()
 
void BurnInStyleSheetAttributes ()
 
virtual bool HasMacro () const
 
virtual SdrObjectCheckMacroHit (const SdrObjMacroHitRec &rRec) const
 
virtual PointerStyle GetMacroPointer (const SdrObjMacroHitRec &rRec) const
 
virtual void PaintMacro (OutputDevice &rOut, const tools::Rectangle &rDirtyRect, const SdrObjMacroHitRec &rRec) const
 
virtual bool DoMacro (const SdrObjMacroHitRec &rRec)
 
bool IsMacroHit (const SdrObjMacroHitRec &rRec) const
 
virtual SdrGluePoint GetVertexGluePoint (sal_uInt16 nNum) const
 
virtual SdrGluePoint GetCornerGluePoint (sal_uInt16 nNum) const
 
virtual const SdrGluePointListGetGluePointList () const
 
virtual SdrGluePointListForceGluePointList ()
 
void SetGlueReallyAbsolute (bool bOn)
 
void NbcRotateGluePoints (const Point &rRef, Degree100 nAngle, double sn, double cs)
 
void NbcMirrorGluePoints (const Point &rRef1, const Point &rRef2)
 
void NbcShearGluePoints (const Point &rRef, double tn, bool bVShear)
 
virtual void ConnectToNode (bool bTail1, SdrObject *pObj)
 
virtual void DisconnectFromNode (bool bTail1)
 
virtual SdrObjectGetConnectedNode (bool bTail1) const
 
virtual void SetContextWritingMode (const sal_Int16 _nContextWritingMode)
 
virtual rtl::Reference< SdrObjectDoConvertToPolyObj (bool bBezier, bool bAddText) const
 
rtl::Reference< SdrObjectConvertToPolyObj (bool bBezier, bool bLineToArea) const
 
rtl::Reference< SdrObjectConvertToContourObj (SdrObject *pRet, bool bForceLineDash=false) const
 
bool IsVirtualObj () const
 
bool IsClosedObj () const
 
void InsertedStateChange ()
 
bool IsInserted () const
 
bool IsEdgeObj () const
 
bool Is3DObj () const
 
bool IsUnoObj () const
 
void SetMoveProtect (bool bProt)
 
bool IsMoveProtect () const
 
void SetResizeProtect (bool bProt)
 
bool IsResizeProtect () const
 
void SetPrintable (bool bPrn)
 
bool IsPrintable () const
 
void SetVisible (bool bVisible)
 
bool IsVisible () const
 
void SetMarkProtect (bool bProt)
 
bool IsMarkProtect () const
 
virtual bool IsSdrTextObj () const
 
virtual bool IsTextPath () const
 
virtual bool shouldKeepAspectRatio () const
 
sal_uInt16 GetUserDataCount () const
 
SdrObjUserDataGetUserData (sal_uInt16 nNum) const
 
void AppendUserData (std::unique_ptr< SdrObjUserData > pData)
 
void DeleteUserData (sal_uInt16 nNum)
 
virtual css::uno::Reference< css::drawing::XShape > getUnoShape ()
 
void notifyShapePropertyChange (const svx::ShapePropertyProviderId _eProperty) const
 
void registerProvider (const svx::ShapePropertyProviderId _eProperty, std::unique_ptr< svx::PropertyValueProvider > propProvider)
 
virtual bool TRGetBaseGeometry (basegfx::B2DHomMatrix &rMatrix, basegfx::B2DPolyPolygon &rPolyPolygon) const
 
virtual void TRSetBaseGeometry (const basegfx::B2DHomMatrix &rMatrix, const basegfx::B2DPolyPolygon &rPolyPolygon)
 
bool IsInDestruction () const
 
bool HasFillStyle () const
 
bool HasLineStyle () const
 
const tools::RectangleGetBLIPSizeRectangle () const
 
void SetBLIPSizeRectangle (const tools::Rectangle &aRect)
 
virtual bool HasText () const
 
bool Equals (const SdrObject &) const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual bool IsTextBox () const
 
void SetEmptyPresObj (bool bEpt)
 
bool IsEmptyPresObj () const
 
void SetNotVisibleAsMaster (bool bFlg)
 
bool IsNotVisibleAsMaster () const
 
void SetUserCall (SdrObjUserCall *pUser)
 
SdrObjUserCallGetUserCall () const
 
void SetDoNotInsertIntoPageAutomatically (bool bSet)
 
bool IsDoNotInsertIntoPageAutomatically () const
 
sal_uInt32 GetOrdNumDirect () const
 
bool DoesSupportTextIndentingOnLineWidthChange () const
 
const PointGetAnchorPos () const
 
bool LineIsOutsideGeometry () const
 
void SetNavigationPosition (const sal_uInt32 nPosition)
 
virtual void setUnoShape (const css::uno::Reference< css::drawing::XShape > &_rxUnoShape)
 
const css::uno::WeakReference< css::drawing::XShape > & getWeakUnoShape () const
 
bool setSuitableOutlinerBg (Outliner &rOutliner) const
 
const GraphicgetFillGraphic () const
 
const OUString & getHyperlink () const
 
void setHyperlink (const OUString &sHyperlink)
 
void ForceMetricToItemPoolMetric (basegfx::B2DPolyPolygon &rPolyPolygon) const noexcept
 

Private Member Functions

virtual std::unique_ptr< sdr::contact::ViewContactCreateObjectSpecificViewContact () override
 AW: Need own sdr::contact::ViewContact since AnchorPos from parent is not used but something own (top left of new SnapRect minus top left of original SnapRect) More...
 
virtual ~SwDrawVirtObj () override
 

Private Attributes

SwAnchoredDrawObject maAnchoredDrawObj
 anchored drawing object instance for the 'virtual' drawing object More...
 
SwDrawContactmrDrawContact
 writer-drawing contact object the 'virtual' drawing object is controlled by. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SdrObject
static SdrItemPoolGetGlobalDrawObjectItemPool ()
 
static rtl::Reference< T > Clone (T const &rObj, SdrModel &rTargetModel)
 
static SdrObjectgetSdrObjectFromXShape (const css::uno::Reference< css::uno::XInterface > &xInt)
 
- Protected Member Functions inherited from SdrVirtObj
virtual std::unique_ptr< sdr::contact::ViewContactCreateObjectSpecificViewContact () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
virtual std::unique_ptr< SdrObjGeoDataNewGeoData () const override
 
virtual void SaveGeoData (SdrObjGeoData &rGeo) const override
 
virtual void RestoreGeoData (const SdrObjGeoData &rGeo) override
 
virtual ~SdrVirtObj () override
 
- Protected Member Functions inherited from SdrObject
const tools::RectanglegetOutRectangle () const
 
void setOutRectangleConst (tools::Rectangle const &rRectangle) const
 
void setOutRectangle (tools::Rectangle const &rRectangle)
 
void resetOutRectangle ()
 
void moveOutRectangle (sal_Int32 nXDelta, sal_Int32 nYDelta)
 
virtual ~SdrObject () override
 
virtual std::unique_ptr< sdr::properties::BasePropertiesCreateObjectSpecificProperties ()
 
virtual std::unique_ptr< sdr::contact::ViewContactCreateObjectSpecificViewContact ()
 
tools::Rectangle ImpDragCalcRect (const SdrDragStat &rDrag) const
 
OUString ImpGetDescriptionStr (TranslateId pStrCacheID) const
 
void ImpForcePlusData ()
 
OUString GetMetrStr (tools::Long nVal) const
 
virtual std::unique_ptr< SdrObjGeoDataNewGeoData () const
 
virtual void SaveGeoData (SdrObjGeoData &rGeo) const
 
virtual void RestoreGeoData (const SdrObjGeoData &rGeo)
 
const SfxItemSetGetObjectItemSet () const
 
void SetObjectItem (const SfxPoolItem &rItem)
 
void SetObjectItemSet (const SfxItemSet &rSet)
 
const SfxPoolItemGetObjectItem (const sal_uInt16 nWhich) const
 
const T & GetObjectItem (TypedWhichId< T > nWhich) const
 
const SfxItemSetgetBackgroundFillSet () const
 
virtual void InternalSetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast)
 
- Protected Attributes inherited from SdrVirtObj
rtl::Reference< SdrObjectmxRefObj
 
tools::Rectangle aSnapRect
 
- Protected Attributes inherited from SdrObject
tools::Rectangle m_aOutRect
 
Point m_aAnchor
 
SdrObjUserCallm_pUserCall
 
std::unique_ptr< SdrObjPlusDatam_pPlusData
 
bool m_bVirtObj
 
bool m_bSnapRectDirty
 
bool m_bMovProt
 
bool m_bSizProt
 
bool m_bEmptyPresObj
 
bool m_bNotVisibleAsMaster
 
bool m_bClosedObj
 
bool m_bIsEdge
 
bool m_bIs3DObj
 
bool m_bIsUnoObj
 
bool mbLineIsOutsideGeometry
 
bool mbSupportTextIndentingOnLineWidthChange
 

Detailed Description

new class for re-direct methods calls at a 'virtual' drawing object to its referenced object.

For example, if an SdrObject is anchored in a header, then later pages will have a SwDrawVirtObj in later headers.

Definition at line 211 of file dcontact.hxx.

Constructor & Destructor Documentation

◆ ~SwDrawVirtObj()

SwDrawVirtObj::~SwDrawVirtObj ( )
overrideprivatevirtual

Definition at line 2312 of file dcontact.cxx.

◆ SwDrawVirtObj() [1/2]

SwDrawVirtObj::SwDrawVirtObj ( SdrModel rSdrModel,
SdrObject _rNewObj,
SwDrawContact _rDrawContact 
)

Definition at line 2282 of file dcontact.cxx.

References maAnchoredDrawObj, NbcMove(), and SwAnchoredObject::SetDrawObj().

Referenced by CloneSdrObject().

◆ SwDrawVirtObj() [2/2]

SwDrawVirtObj::SwDrawVirtObj ( SdrModel rSdrModel,
SwDrawVirtObj const &  rSource 
)

Definition at line 2296 of file dcontact.cxx.

References maAnchoredDrawObj, NbcMove(), and SwAnchoredObject::SetDrawObj().

Member Function Documentation

◆ AddToDrawingPage()

void SwDrawVirtObj::AddToDrawingPage ( SwFrame const &  rAnchorFrame)

◆ AddToHdlList()

void SwDrawVirtObj::AddToHdlList ( SdrHdlList rHdlList) const
overridevirtual

◆ AnchoredObj()

SwAnchoredObject & SwDrawVirtObj::AnchoredObj ( )
inline

◆ AnchorFrame()

SwFrame * SwDrawVirtObj::AnchorFrame ( )

◆ CloneSdrObject()

rtl::Reference< SdrObject > SwDrawVirtObj::CloneSdrObject ( SdrModel rTargetModel) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2316 of file dcontact.cxx.

References SwDrawVirtObj().

◆ CreateObjectSpecificViewContact()

std::unique_ptr< sdr::contact::ViewContact > SwDrawVirtObj::CreateObjectSpecificViewContact ( )
overrideprivatevirtual

AW: Need own sdr::contact::ViewContact since AnchorPos from parent is not used but something own (top left of new SnapRect minus top left of original SnapRect)

implementation of class <SwDrawVirtObj>

Reimplemented from SdrVirtObj.

Definition at line 2277 of file dcontact.cxx.

◆ GetAnchoredObj()

const SwAnchoredObject & SwDrawVirtObj::GetAnchoredObj ( ) const
inline

connection to writer layout

Definition at line 246 of file dcontact.hxx.

References maAnchoredDrawObj.

Referenced by SwDrawContact::NotifyBackgroundOfAllVirtObjs().

◆ GetAnchorFrame()

const SwFrame * SwDrawVirtObj::GetAnchorFrame ( ) const

◆ GetCurrentBoundRect()

const tools::Rectangle & SwDrawVirtObj::GetCurrentBoundRect ( ) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2435 of file dcontact.cxx.

References SdrObject::getOutRectangle(), and RecalcBoundRect().

Referenced by RecalcBoundRect().

◆ GetLastBoundRect()

const tools::Rectangle & SwDrawVirtObj::GetLastBoundRect ( ) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2445 of file dcontact.cxx.

References SdrObject::getOutRectangle().

Referenced by Mirror(), Resize(), Rotate(), SetLogicRect(), SetSnapRect(), and Shear().

◆ GetLayer()

SdrLayerID SwDrawVirtObj::GetLayer ( ) const
overridevirtual

Reimplemented from SdrObject.

Definition at line 2671 of file dcontact.cxx.

References SdrObject::GetLayer(), and SdrVirtObj::GetReferencedObj().

Referenced by NbcSetLayer(), and SetLayer().

◆ GetLogicRect()

const tools::Rectangle & SwDrawVirtObj::GetLogicRect ( ) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2617 of file dcontact.cxx.

References SdrVirtObj::aSnapRect, GetOffset(), and SdrVirtObj::mxRefObj.

◆ GetOffset()

Point SwDrawVirtObj::GetOffset ( ) const
overridevirtual

◆ GetPoint()

Point SwDrawVirtObj::GetPoint ( sal_uInt32  i) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2651 of file dcontact.cxx.

References GetOffset(), i, and SdrVirtObj::mxRefObj.

◆ GetSnapPoint()

Point SwDrawVirtObj::GetSnapPoint ( sal_uInt32  i) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2643 of file dcontact.cxx.

References GetOffset(), i, and SdrVirtObj::mxRefObj.

◆ GetSnapRect()

const tools::Rectangle & SwDrawVirtObj::GetSnapRect ( ) const
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2591 of file dcontact.cxx.

References SdrVirtObj::aSnapRect, GetOffset(), and SdrVirtObj::mxRefObj.

◆ HasTextEdit()

bool SwDrawVirtObj::HasTextEdit ( ) const
overridevirtual

Reimplemented from SdrObject.

Definition at line 2664 of file dcontact.cxx.

References SdrVirtObj::mxRefObj.

◆ IsConnected()

bool SwDrawVirtObj::IsConnected ( ) const

is 'virtual' drawing object connected to writer layout and / to drawing layer.

Is 'virtual' drawing object connected to writer layout and to drawing layer?

Definition at line 2419 of file dcontact.cxx.

References GetAnchorFrame(), SdrObject::getSdrPageFromSdrObject(), and SdrObject::GetUserCall().

Referenced by SwDoc::ChgAnchor(), and SwDrawContact::InvalidateObjs_().

◆ Mirror()

void SwDrawVirtObj::Mirror ( const Point rRef1,
const Point rRef2 
)
overridevirtual

◆ Move()

void SwDrawVirtObj::Move ( const Size rSiz)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2539 of file dcontact.cxx.

References SdrObject::Move().

◆ NbcMirror()

void SwDrawVirtObj::NbcMirror ( const Point rRef1,
const Point rRef2 
)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2527 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcMove()

void SwDrawVirtObj::NbcMove ( const Size rSiz)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2510 of file dcontact.cxx.

References SdrObject::NbcMove().

Referenced by SwDrawVirtObj().

◆ NbcResize()

void SwDrawVirtObj::NbcResize ( const Point rRef,
const Fraction xFact,
const Fraction yFact 
)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2515 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcRotate()

void SwDrawVirtObj::NbcRotate ( const Point rRef,
Degree100  nAngle,
double  sn,
double  cs 
)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2521 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcSetAnchorPos()

void SwDrawVirtObj::NbcSetAnchorPos ( const Point rPnt)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2427 of file dcontact.cxx.

References SdrObject::NbcSetAnchorPos().

◆ NbcSetLayer()

void SwDrawVirtObj::NbcSetLayer ( SdrLayerID  nLayer)
overridevirtual

Reimplemented from SdrObject.

Definition at line 2676 of file dcontact.cxx.

References GetLayer(), SdrObject::NbcSetLayer(), and SdrVirtObj::ReferencedObj().

◆ NbcSetLogicRect()

void SwDrawVirtObj::NbcSetLogicRect ( const tools::Rectangle rRect)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2635 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcSetPoint()

void SwDrawVirtObj::NbcSetPoint ( const Point rPnt,
sal_uInt32  i 
)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2656 of file dcontact.cxx.

References GetOffset(), i, SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcSetSnapRect()

void SwDrawVirtObj::NbcSetSnapRect ( const tools::Rectangle rRect)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2609 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ NbcShear()

void SwDrawVirtObj::NbcShear ( const Point rRef,
Degree100  nAngle,
double  tn,
bool  bVShear 
)
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2533 of file dcontact.cxx.

References GetOffset(), SdrVirtObj::mxRefObj, and SdrObject::SetBoundAndSnapRectsDirty().

◆ RecalcBoundRect()

void SwDrawVirtObj::RecalcBoundRect ( )
overridevirtual

All overridden methods which need to use the offset.

Reimplemented from SdrVirtObj.

Definition at line 2469 of file dcontact.cxx.

References GetCurrentBoundRect(), GetOffset(), SdrVirtObj::ReferencedObj(), and SdrObject::setOutRectangle().

Referenced by GetCurrentBoundRect().

◆ RecalcSnapRect()

void SwDrawVirtObj::RecalcSnapRect ( )
overridevirtual

Reimplemented from SdrVirtObj.

Definition at line 2585 of file dcontact.cxx.

References SdrVirtObj::aSnapRect, GetOffset(), and SdrVirtObj::mxRefObj.

◆ RemoveFromDrawingPage()

void SwDrawVirtObj::RemoveFromDrawingPage ( )

◆ RemoveFromWriterLayout()

void SwDrawVirtObj::RemoveFromWriterLayout ( )

◆ Resize()

void SwDrawVirtObj::Resize ( const Point rRef,
const Fraction xFact,
const Fraction yFact,
bool  bUnsetRelative = true 
)
overridevirtual

◆ Rotate()

void SwDrawVirtObj::Rotate ( const Point rRef,
Degree100  nAngle,
double  sn,
double  cs 
)
overridevirtual

◆ SetBoundRectDirty()

void SwDrawVirtObj::SetBoundRectDirty ( )
overridevirtual

Reimplemented from SdrObject.

Definition at line 2464 of file dcontact.cxx.

◆ SetLayer()

void SwDrawVirtObj::SetLayer ( SdrLayerID  nLayer)
overridevirtual

Reimplemented from SdrObject.

Definition at line 2682 of file dcontact.cxx.

References GetLayer(), SdrObject::NbcSetLayer(), SdrVirtObj::ReferencedObj(), and SdrObject::SetLayer().

◆ SetLogicRect()

void SwDrawVirtObj::SetLogicRect ( const tools::Rectangle rRect)
overridevirtual

◆ SetSnapRect()

void SwDrawVirtObj::SetSnapRect ( const tools::Rectangle rRect)
overridevirtual

◆ Shear()

void SwDrawVirtObj::Shear ( const Point rRef,
Degree100  nAngle,
double  tn,
bool  bVShear 
)
overridevirtual

◆ TakeContour()

basegfx::B2DPolyPolygon SwDrawVirtObj::TakeContour ( ) const
overridevirtual

◆ TakeXorPoly()

basegfx::B2DPolyPolygon SwDrawVirtObj::TakeXorPoly ( ) const
overridevirtual

Member Data Documentation

◆ maAnchoredDrawObj

SwAnchoredDrawObject SwDrawVirtObj::maAnchoredDrawObj
private

anchored drawing object instance for the 'virtual' drawing object

Definition at line 217 of file dcontact.hxx.

Referenced by AnchoredObj(), AnchorFrame(), GetAnchoredObj(), GetAnchorFrame(), RemoveFromWriterLayout(), and SwDrawVirtObj().

◆ mrDrawContact

SwDrawContact& SwDrawVirtObj::mrDrawContact
private

writer-drawing contact object the 'virtual' drawing object is controlled by.

This object is also the <UserCall> of the drawing object, if it's inserted into the drawing layer.

Definition at line 222 of file dcontact.hxx.

Referenced by AddToDrawingPage().


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