LibreOffice Module svx (master)
1
|
Utility class SdrEdgeObj. More...
#include <svdoedge.hxx>
Public Member Functions | |
void | SetSuppressDefaultConnect (bool bNew) |
bool | GetSuppressDefaultConnect () const |
SdrEdgeObj (SdrModel &rSdrModel) | |
SdrEdgeObj (SdrModel &rSdrModel, SdrEdgeObj const &rSource) | |
virtual void | handlePageChange (SdrPage *pOldPage, SdrPage *pNewPage) override |
SdrObjConnection & | GetConnection (bool bTail1) |
virtual void | TakeObjInfo (SdrObjTransformInfoRec &rInfo) const override |
virtual SdrObjKind | GetObjIdentifier () const override |
virtual const tools::Rectangle & | GetCurrentBoundRect () const override |
virtual const tools::Rectangle & | GetSnapRect () const override |
virtual SdrGluePoint | GetVertexGluePoint (sal_uInt16 nNum) const override |
virtual SdrGluePoint | GetCornerGluePoint (sal_uInt16 nNum) const override |
virtual const SdrGluePointList * | GetGluePointList () const override |
virtual SdrGluePointList * | ForceGluePointList () override |
void | SetEdgeTrackDirty () |
void | ConnectToNode (bool bTail1, SdrObject *pObj) override |
void | DisconnectFromNode (bool bTail1) override |
SdrObject * | GetConnectedNode (bool bTail1) const override |
const SdrObjConnection & | GetConnection (bool bTail1) const |
bool | CheckNodeConnection (bool bTail1) const |
virtual void | RecalcSnapRect () override |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e. More... | |
virtual void | TakeUnrotatedSnapRect (tools::Rectangle &rRect) const override |
virtual SdrEdgeObj * | CloneSdrObject (SdrModel &rTargetModel) const override |
virtual OUString | TakeObjNameSingul () const override |
virtual OUString | TakeObjNamePlural () const override |
void | SetEdgeTrackPath (const basegfx::B2DPolyPolygon &rPoly) |
basegfx::B2DPolyPolygon | GetEdgeTrackPath () const |
virtual basegfx::B2DPolyPolygon | TakeXorPoly () const override |
The Xor-Polygon is required by the View to drag the object. More... | |
virtual sal_uInt32 | GetHdlCount () const override |
Via GetHdlCount the number of Handles can be retrieved. More... | |
virtual void | AddToHdlList (SdrHdlList &rHdlList) const override |
virtual bool | hasSpecialDrag () const override |
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPoly(),...). More... | |
virtual bool | beginSpecialDrag (SdrDragStat &rDrag) const override |
virtual bool | applySpecialDrag (SdrDragStat &rDrag) override |
virtual OUString | getSpecialDragComment (const SdrDragStat &rDrag) const override |
virtual SdrObjectUniquePtr | getFullDragClone () const override |
virtual void | NbcSetSnapRect (const tools::Rectangle &rRect) override |
virtual void | NbcMove (const Size &aSize) override |
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model. More... | |
virtual void | NbcResize (const Point &rRefPnt, const Fraction &aXFact, const Fraction &aYFact) 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 | NbcSetAnchorPos (const Point &rPnt) override |
virtual bool | BegCreate (SdrDragStat &rStat) override |
Every object must be able to create itself interactively. More... | |
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 |
Polygon dragged by the user when creating the object. More... | |
virtual PointerStyle | GetCreatePointer () const override |
get the cursor/pointer that signals creating this object More... | |
virtual SdrObjectUniquePtr | DoConvertToPolyObj (bool bBezier, bool bAddText) const override |
virtual sal_uInt32 | GetSnapPointCount () const override |
snap to special points of an Object (polygon points, center of circle) More... | |
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< SdrObjGeoData > | NewGeoData () const override |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo. More... | |
virtual void | SaveGeoData (SdrObjGeoData &rGeo) const override |
virtual void | RestoreGeoData (const SdrObjGeoData &rGeo) override |
void | Reformat () |
updates edges that are connected to the edges of this object as if the connected objects send a repaint broadcast #103122# More... | |
Point | GetTailPoint (bool bTail) const |
void | SetTailPoint (bool bTail, const Point &rPt) |
void | setGluePointIndex (bool bTail, sal_Int32 nId=-1) |
this method is used by the api to set a glue point for a connection nId == -1 : The best default point is automatically chosen 0 <= nId <= 3 : One of the default points is chosen nId >= 4 : A user defined glue point is chosen More... | |
sal_Int32 | getGluePointIndex (bool bTail) |
this method is used by the api to return a glue point id for a connection. More... | |
virtual bool | TRGetBaseGeometry (basegfx::B2DHomMatrix &rMatrix, basegfx::B2DPolyPolygon &rPolyPolygon) const override |
virtual void | TRSetBaseGeometry (const basegfx::B2DHomMatrix &rMatrix, const basegfx::B2DPolyPolygon &rPolyPolygon) override |
::basegfx::B2DPolygon | getEdgeTrack () const |
basegfx::B2DPolygon | ImplAddConnectorOverlay (SdrDragMethod &rDragMethod, bool bTail1, bool bTail2, bool bDetail) const |
![]() | |
const Point & | GetTextEditOffset () const |
void | SetTextEditOffset (const Point &rNew) |
bool | IsInEditMode () const |
void | SetTextLink (const OUString &rFileName, const OUString &rFilterName) |
void | ReleaseTextLink () |
bool | IsLinkedText () const |
bool | ReloadLinkedText (bool bForceLoad) |
bool | LoadText (const OUString &rFileName, rtl_TextEncoding eCharSet) |
virtual bool | AdjustTextFrameWidthAndHeight (tools::Rectangle &rR, bool bHgt=true, bool bWdt=true) const |
virtual bool | NbcAdjustTextFrameWidthAndHeight (bool bHgt=true, bool bWdt=true) |
virtual bool | AdjustTextFrameWidthAndHeight () |
bool | IsTextFrame () const |
bool | IsOutlText () const |
bool | IsAutoFit () const |
returns true if the PPT autofit of text into shape bounds is enabled. implies IsFitToSize()==false! More... | |
bool | IsFitToSize () const |
returns true if the old feature for fitting shape content should into shape is enabled. implies IsAutoFit()==false! More... | |
SdrTextObj * | GetNextLinkInChain () const |
void | SetNextLinkInChain (SdrTextObj *) |
SdrTextObj * | GetPrevLinkInChain () const |
bool | IsChainable () const |
bool | GetPreventChainable () const |
TextChain * | GetTextChain () const |
SdrObjKind | GetTextKind () const |
virtual bool | HasText () const override |
bool | IsTextEditActive () const |
virtual SdrText * | getActiveText () const |
returns the currently active text. More... | |
virtual SdrText * | getText (sal_Int32 nIndex) const override |
returns the nth available text. More... | |
virtual sal_Int32 | getTextCount () const override |
returns the number of texts available for this object. More... | |
virtual bool | IsReallyEdited () const |
returns true only if we are in edit mode and the user actually changed anything More... | |
virtual void | setActiveText (sal_Int32 nIndex) |
changes the current active text More... | |
virtual sal_Int32 | CheckTextHit (const Point &rPnt) const |
returns the index of the text that contains the given point or -1 More... | |
void | SetDisableAutoWidthOnDragging (bool bOn) |
void | NbcSetText (const OUString &rStr) |
void | SetText (const OUString &rStr) |
void | NbcSetText (SvStream &rInput, const OUString &rBaseURL, EETextFormat eFormat) |
void | SetText (SvStream &rInput, const OUString &rBaseURL, EETextFormat eFormat) |
virtual const Size & | GetTextSize () const |
void | FitFrameToTextSize () |
double | GetFontScaleY () const |
virtual void | TakeTextRect (SdrOutliner &rOutliner, tools::Rectangle &rTextRect, bool bNoEditText, tools::Rectangle *pAnchorRect, bool bLineWidth=true) const |
virtual void | TakeTextAnchorRect (::tools::Rectangle &rAnchorRect) const |
const GeoStat & | GetGeoStat () const |
tools::Long | GetEckenradius () const |
virtual bool | IsAutoGrowHeight () const |
tools::Long | GetMinTextFrameHeight () const |
tools::Long | GetMaxTextFrameHeight () const |
virtual bool | IsAutoGrowWidth () const |
tools::Long | GetMinTextFrameWidth () const |
tools::Long | GetMaxTextFrameWidth () const |
css::drawing::TextFitToSizeType | GetFitToSize () const |
const tools::Rectangle & | GetGeoRect () const |
virtual bool | IsFontwork () const |
bool | IsHideContour () const |
bool | IsContourTextFrame () const |
SdrTextHorzAdjust | GetTextHorizontalAdjust (const SfxItemSet &rSet) const |
SdrTextHorzAdjust | GetTextHorizontalAdjust () const |
SdrTextVertAdjust | GetTextVerticalAdjust (const SfxItemSet &rSet) const |
SdrTextVertAdjust | GetTextVerticalAdjust () const |
tools::Long | GetTextLeftDistance () const |
Left inner spacing to borders. More... | |
tools::Long | GetTextRightDistance () const |
Right inner spacing to borders. More... | |
tools::Long | GetTextUpperDistance () const |
Top inner spacing to borders. More... | |
tools::Long | GetTextLowerDistance () const |
Bottom inner spacing to borders. More... | |
SdrTextAniKind | GetTextAniKind () const |
SdrTextAniDirection | GetTextAniDirection () const |
virtual basegfx::B2DPolyPolygon | TakeContour () const override |
contour for TextToContour More... | |
virtual void | NbcSetLogicRect (const tools::Rectangle &rRect) override |
virtual const tools::Rectangle & | GetLogicRect () const override |
virtual Degree100 | GetRotateAngle () const override |
virtual Degree100 | GetShearAngle (bool bVertical=false) const override |
virtual bool | HasTextEdit () const override |
virtual bool | BegTextEdit (SdrOutliner &rOutl) |
virtual void | TakeTextEditArea (Size *pPaperMin, Size *pPaperMax, tools::Rectangle *pViewInit, tools::Rectangle *pViewMin) const |
virtual void | EndTextEdit (SdrOutliner &rOutl) |
virtual EEAnchorMode | GetOutlinerViewAnchorMode () const |
virtual void | NbcSetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) override |
void | NbcSetOutlinerParaObjectForText (std::unique_ptr< OutlinerParaObject > pTextObject, SdrText *pText) |
virtual OutlinerParaObject * | GetOutlinerParaObject () const override |
bool | CanCreateEditOutlinerParaObject () const |
std::unique_ptr< OutlinerParaObject > | CreateEditOutlinerParaObject () const |
virtual void | NbcReformatText () override |
virtual bool | CalcFieldValue (const SvxFieldItem &rField, sal_Int32 nPara, sal_uInt16 nPos, bool bEdit, std::optional< Color > &rpTxtColor, std::optional< Color > &rpFldColor, OUString &rRet) const |
void | SetTextEditOutliner (SdrOutliner *pOutl) |
void | SetupOutlinerFormatting (SdrOutliner &rOutl, tools::Rectangle &rPaintRect) const |
Setup given Outliner equivalently to SdrTextObj::Paint() More... | |
void | UpdateOutlinerFormatting (SdrOutliner &rOutl, tools::Rectangle &rPaintRect) const |
Update given Outliner equivalently to SdrTextObj::Paint() More... | |
void | ForceOutlinerParaObject () |
virtual bool | IsVerticalWriting () const |
virtual void | SetVerticalWriting (bool bVertical) |
virtual void | onEditOutlinerStatusEvent (EditStatus *pEditStatus) |
called from the SdrObjEditView during text edit when the status of the edit outliner changes More... | |
void | onChainingEvent () |
called from the SdrObjEditView during text edit when a chain of boxes is to be updated More... | |
void | RemoveOutlinerCharacterAttribs (const std::vector< sal_uInt16 > &rCharWhichIds) |
iterates over the paragraphs of a given SdrObject and removes all hard set character attributes with the which ids contained in the given vector More... | |
GDIMetaFile * | GetTextScrollMetaFileAndRectangle (tools::Rectangle &rScrollRectangle, tools::Rectangle &rPaintRectangle) |
void | SetTextAnimationAllowed (bool bNew) |
void | SetObjectItemNoBroadcast (const SfxPoolItem &rItem) |
double | GetCameraZRotation () const |
void | impDecomposeContourTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrContourTextPrimitive2D &rSdrContourTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposePathTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrPathTextPrimitive2D &rSdrPathTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeBlockTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrBlockTextPrimitive2D &rSdrBlockTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeAutoFitTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrAutoFitTextPrimitive2D &rSdrAutofitTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeStretchTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrStretchTextPrimitive2D &rSdrStretchTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impDecomposeChainedTextPrimitive (drawinglayer::primitive2d::Primitive2DContainer &rTarget, const drawinglayer::primitive2d::SdrChainedTextPrimitive2D &rSdrChainedTextPrimitive, const drawinglayer::geometry::ViewInformation2D &aViewInformation) const |
void | impHandleChainingEventsDuringDecomposition (SdrOutliner &rOutliner) const |
void | impGetBlinkTextTiming (drawinglayer::animation::AnimationEntryList &rAnimList) const |
void | impGetScrollTextTiming (drawinglayer::animation::AnimationEntryList &rAnimList, double fFrameLength, double fTextLength) const |
![]() | |
bool | HasFill () const |
bool | HasLine () const |
![]() | |
const SdrObject * | getFillGeometryDefiningShape () const |
SdrObject (SdrModel &rSdrModel) | |
SdrObject (SdrModel &rSdrModel, SdrObject const &rSource) | |
SdrPage * | getSdrPageFromSdrObject () const |
SdrModel & | getSdrModelFromSdrObject () const |
virtual SdrObjList * | getChildrenOfSdrObject () const |
SdrObjList * | getParentSdrObjListFromSdrObject () const |
SdrObject * | getParentSdrObjectFromSdrObject () const |
void | AddObjectUser (sdr::ObjectUser &rNewUser) |
void | RemoveObjectUser (sdr::ObjectUser &rOldUser) |
sdr::contact::ViewContact & | GetViewContact () const |
virtual sdr::properties::BaseProperties & | GetProperties () 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 |
void | SetDiagramData (std::shared_ptr< DiagramDataInterface > pDiagramData) |
const std::shared_ptr< DiagramDataInterface > & | GetDiagramData () const |
virtual void | SetRectsDirty (bool bNotMyself=false, bool bRecursive=true) |
virtual void | SetBoundRectDirty () |
SfxItemPool & | GetObjectItemPool () const |
void | AddListener (SfxListener &rListener) |
void | RemoveListener (SfxListener &rListener) |
void | AddReference (SdrVirtObj &rVrtObj) |
void | DelReference (SdrVirtObj &rVrtObj) |
virtual SdrInventor | GetObjInventor () const |
virtual SdrLayerID | GetLayer () const |
virtual void | NbcSetLayer (SdrLayerID nLayer) |
virtual void | SetLayer (SdrLayerID nLayer) |
void | getMergedHierarchySdrLayerIDSet (SdrLayerIDSet &rSet) const |
void | SendUserCall (SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const |
void | SetName (const OUString &rStr, const bool bSetChanged=true) |
OUString | GetName () const |
void | MakeNameUnique () |
void | MakeNameUnique (std::unordered_set< OUString > &rNameSet) |
void | SetTitle (const OUString &rStr) |
OUString | GetTitle () const |
void | SetDescription (const OUString &rStr) |
OUString | GetDescription () const |
bool | IsGroupObject () const |
virtual SdrObjList * | GetSubList () const |
sal_uInt32 | GetOrdNum () const |
The order number (aka ZOrder, aka z-index) determines whether a SdrObject is located above or below another. More... | |
void | SetOrdNum (sal_uInt32 nNum) |
void | GetGrabBagItem (css::uno::Any &rVal) const |
void | SetGrabBagItem (const css::uno::Any &rVal) |
sal_uInt32 | GetNavigationPosition () const |
virtual const tools::Rectangle & | GetLastBoundRect () const |
virtual void | RecalcBoundRect () |
void | BroadcastObjectChange () const |
const SfxBroadcaster * | GetBroadcaster () const |
virtual void | SetChanged () |
void | SingleObjectPainter (OutputDevice &rOut) const |
bool | LineGeometryUsageIsNecessary () const |
virtual bool | HasLimitedRotation () const |
SdrObject & | operator= (const SdrObject &rObj)=delete |
SdrObject & | operator= (SdrObject &&rObj)=delete |
virtual void | AddToPlusHdlList (SdrHdlList &rHdlList, SdrHdl &rHdl) const |
virtual void | addCropHandles (SdrHdlList &rTarget) const |
virtual basegfx::B2DPolyPolygon | getSpecialDragPoly (const SdrDragStat &rDrag) const |
virtual bool | supportsFullDrag () const |
virtual void | NbcCrop (const basegfx::B2DPoint &rRef, double fxFact, double fyFact) |
void | NbcRotate (const Point &rRef, Degree100 nAngle) |
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) |
The relative position of a SdrObject is the distance of the upper left corner of the logic bounding rectangle (SnapRect) to the anchor. More... | |
virtual void | SetRelativePos (const Point &rPnt) |
virtual Point | GetRelativePos () const |
void | ImpSetAnchorPos (const Point &rPnt) |
virtual void | SetAnchorPos (const Point &rPnt) |
virtual void | SetSnapRect (const tools::Rectangle &rRect) |
virtual void | SetLogicRect (const tools::Rectangle &rRect) |
virtual void | AdjustToMaxRect (const tools::Rectangle &rMaxRect, bool bShrinkOnly=false) |
void | SetPoint (const Point &rPnt, sal_uInt32 i) |
virtual std::unique_ptr< SdrObjGeoData > | GetGeoData () const |
virtual void | SetGeoData (const SdrObjGeoData &rGeo) |
const SfxItemSet & | GetMergedItemSet () const |
void | SetMergedItem (const SfxPoolItem &rItem) |
void | ClearMergedItem (const sal_uInt16 nWhich=0) |
void | SetMergedItemSet (const SfxItemSet &rSet, bool bClearAllItems=false) |
const SfxPoolItem & | GetMergedItem (const sal_uInt16 nWhich) const |
template<class T > | |
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) |
virtual void | NbcSetStyleSheet (SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) |
SfxStyleSheet * | GetStyleSheet () const |
void | SetOutlinerParaObject (std::unique_ptr< OutlinerParaObject > pTextObject) |
void | BurnInStyleSheetAttributes () |
virtual bool | HasMacro () const |
virtual SdrObject * | CheckMacroHit (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 |
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 | SetContextWritingMode (const sal_Int16 _nContextWritingMode) |
SdrObjectUniquePtr | ConvertToPolyObj (bool bBezier, bool bLineToArea) const |
SdrObject * | ConvertToContourObj (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 | shouldKeepAspectRatio () const |
Whether the aspect ratio should be kept by default when resizing. More... | |
sal_uInt16 | GetUserDataCount () const |
SdrObjUserData * | GetUserData (sal_uInt16 nNum) const |
void | AppendUserData (std::unique_ptr< SdrObjUserData > pData) |
void | DeleteUserData (sal_uInt16 nNum) |
virtual css::uno::Reference< css::uno::XInterface > | getUnoShape () |
svx::PropertyChangeNotifier & | getShapePropertyChangeNotifier () |
void | notifyShapePropertyChange (const svx::ShapeProperty _eProperty) const |
bool | IsInDestruction () const |
bool | HasFillStyle () const |
bool | HasLineStyle () const |
const tools::Rectangle & | GetBLIPSizeRectangle () const |
void | SetBLIPSizeRectangle (const tools::Rectangle &aRect) |
bool | Equals (const SdrObject &) const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual bool | IsTextBox () const |
Is this a textbox of a drawinglayer shape? More... | |
void | SetEmptyPresObj (bool bEpt) |
bool | IsEmptyPresObj () const |
void | SetNotVisibleAsMaster (bool bFlg) |
bool | IsNotVisibleAsMaster () const |
void | SetUserCall (SdrObjUserCall *pUser) |
SdrObjUserCall * | GetUserCall () const |
void | SetDoNotInsertIntoPageAutomatically (bool bSet) |
bool | IsDoNotInsertIntoPageAutomatically () const |
sal_uInt32 | GetOrdNumDirect () const |
bool | DoesSupportTextIndentingOnLineWidthChange () const |
const Point & | GetAnchorPos () const |
bool | LineIsOutsideGeometry () const |
void | SetNavigationPosition (const sal_uInt32 nPosition) |
void | setUnoShape (const css::uno::Reference< css::uno::XInterface > &_rxUnoShape) |
const css::uno::WeakReference< css::uno::XInterface > & | getWeakUnoShape () const |
void | setSuitableOutlinerBg (Outliner &rOutliner) const |
const Graphic * | getFillGraphic () const |
![]() | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
![]() | |
WeakBase () | |
virtual | ~WeakBase () |
void | clearWeak () |
Protected Member Functions | |
virtual std::unique_ptr< sdr::contact::ViewContact > | CreateObjectSpecificViewContact () override |
virtual std::unique_ptr< sdr::properties::BaseProperties > | CreateObjectSpecificProperties () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
Detects when a stylesheet is changed. More... | |
void | ImpRecalcEdgeTrack () |
XPolygon | ImpCalcEdgeTrack (const XPolygon &rTrack0, SdrObjConnection &rCon1, SdrObjConnection &rCon2, SdrEdgeInfoRec *pInfo) const |
XPolygon | ImpCalcEdgeTrack (const Point &rPt1, tools::Long nAngle1, const tools::Rectangle &rBoundRect1, const tools::Rectangle &rBewareRect1, const Point &rPt2, tools::Long nAngle2, const tools::Rectangle &rBoundRect2, const tools::Rectangle &rBewareRect2, sal_uIntPtr *pnQuality, SdrEdgeInfoRec *pInfo) const |
void | ImpSetTailPoint (bool bTail1, const Point &rPt) |
void | ImpUndirtyEdgeTrack () |
void | ImpDirtyEdgeTrack () |
void | ImpSetAttrToEdgeInfo () |
void | ImpSetEdgeInfoToAttr () |
virtual | ~SdrEdgeObj () override |
![]() | |
SdrOutliner & | ImpGetDrawOutliner () const |
bool | ImpCanConvTextToCurve () const |
SdrPathObjUniquePtr | ImpConvertMakeObj (const basegfx::B2DPolyPolygon &rPolyPolygon, bool bClosed, bool bBezier) const |
SdrObjectUniquePtr | ImpConvertAddText (SdrObjectUniquePtr pObj, bool bBezier) const |
void | ImpSetTextStyleSheetListeners () |
void | ImpCheckShear () |
tools::Rectangle | ImpDragCalcRect (const SdrDragStat &rDrag) const |
void | ImpSetTextEditParams () const |
void | SetTextSizeDirty () |
void | ImpSetContourPolygon (SdrOutliner &rOutliner, tools::Rectangle const &rAnchorRect, bool bLineWidth) const |
void | NbcSetEckenradius (tools::Long nRad) |
virtual void | AdaptTextMinSize () |
SdrTextObj (SdrModel &rSdrModel) | |
SdrTextObj (SdrModel &rSdrModel, const tools::Rectangle &rNewRect) | |
SdrTextObj (SdrModel &rSdrModel, SdrObjKind eNewTextKind) | |
SdrTextObj (SdrModel &rSdrModel, SdrObjKind eNewTextKind, const tools::Rectangle &rNewRect) | |
SdrTextObj (SdrModel &rSdrModel, SdrTextObj const &rSource) | |
virtual | ~SdrTextObj () override |
![]() | |
sal_Int32 | ImpGetLineWdt () const |
Detects the width of the line. No line ->0. More... | |
SdrAttrObj (SdrModel &rSdrModel) | |
SdrAttrObj (SdrModel &rSdrModel, SdrAttrObj const &) | |
virtual | ~SdrAttrObj () override |
![]() | |
virtual | ~SdrObject () override |
tools::Rectangle | ImpDragCalcRect (const SdrDragStat &rDrag) const |
OUString | ImpGetDescriptionStr (const char *pStrCacheID) const |
void | ImpForcePlusData () |
OUString | GetMetrStr (tools::Long nVal) const |
const SfxItemSet & | GetObjectItemSet () const |
void | SetObjectItem (const SfxPoolItem &rItem) |
void | SetObjectItemSet (const SfxItemSet &rSet) |
const SfxPoolItem & | GetObjectItem (const sal_uInt16 nWhich) const |
template<class T > | |
const T & | GetObjectItem (TypedWhichId< T > nWhich) const |
virtual void | impl_setUnoShape (const css::uno::Reference< css::uno::XInterface > &_rxUnoShape) |
Sets a new UNO shape. More... | |
const SfxItemSet * | getBackgroundFillSet () const |
![]() | |
~ITextProvider () | |
Static Protected Member Functions | |
static XPolygon | ImpCalcObjToCenter (const Point &rStPt, tools::Long nEscAngle, const tools::Rectangle &rRect, const Point &rCenter) |
static bool | ImpFindConnector (const Point &rPt, const SdrPageView &rPV, SdrObjConnection &rCon, const SdrEdgeObj *pThis, OutputDevice *pOut=nullptr, SdrDragStat *pDragStat=nullptr) |
static SdrEscapeDirection | ImpCalcEscAngle (SdrObject const *pObj, const Point &aPt2) |
![]() | |
static void | ImpSetCharStretching (SdrOutliner &rOutliner, const Size &rTextSize, const Size &rShapeSize, Fraction &rFitXCorrection) |
static void | ImpJustifyRect (tools::Rectangle &rRect) |
Friends | |
class | sdr::properties::ConnectorProperties |
class | SdrCreateView |
class | ImpEdgeHdl |
Additional Inherited Members | |
![]() | |
static void | impDecomposeBlockTextPrimitiveDirect (drawinglayer::primitive2d::Primitive2DContainer &rTarget, SdrOutliner &rOutliner, const basegfx::B2DHomMatrix &rNewTransformA, const basegfx::B2DHomMatrix &rNewTransformB, const basegfx::B2DRange &rClipRange) |
static bool | HasTextImpl (SdrOutliner const *pOutliner) |
returns false if the given pointer is NULL or if the given SdrOutliner contains no text. More... | |
![]() | |
static SdrItemPool & | GetGlobalDrawObjectItemPool () |
static void | Free (SdrObject *&_rpObject) |
static SdrObject * | getSdrObjectFromXShape (const css::uno::Reference< css::uno::XInterface > &xInt) |
Utility class SdrEdgeObj.
Definition at line 128 of file svdoedge.hxx.
|
overrideprotectedvirtual |
Definition at line 193 of file svdoedge.cxx.
References DisconnectFromNode().
SdrEdgeObj::SdrEdgeObj | ( | SdrModel & | rSdrModel | ) |
Definition at line 157 of file svdoedge.cxx.
References SdrObject::m_bClosedObj, SdrObject::m_bIsEdge, and pEdgeTrack.
Referenced by CloneSdrObject().
SdrEdgeObj::SdrEdgeObj | ( | SdrModel & | rSdrModel, |
SdrEdgeObj const & | rSource | ||
) |
Definition at line 172 of file svdoedge.cxx.
References aCon1, aCon2, aEdgeInfo, bEdgeTrackDirty, SdrObject::m_bClosedObj, SdrObject::m_bIsEdge, pEdgeTrack, and SdrObjConnection::pObj.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1770 of file svdoedge.cxx.
References aCon1, aCon2, SdrHdlList::AddHdl(), aEdgeInfo, SdrObjConnection::bBestVertex, Bezier, GetConnectedNode(), SdrObject::GetObjectItem(), i, ImpEdgeHdl, MiddleLine, SdrEdgeInfoRec::nMiddleLine, SdrEdgeInfoRec::nObj1Lines, SdrEdgeInfoRec::nObj2Lines, Obj1Line2, Obj1Line3, Obj2Line2, Obj2Line3, OrthoLines, pEdgeTrack, SdrObjConnection::pObj, Point, Poly, SDRATTR_EDGEKIND(), and ThreeLines.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1883 of file svdoedge.cxx.
References aCon1, aCon2, aEdgeInfo, SdrEdgeInfoRec::aMiddleLine, SdrEdgeInfoRec::aObj1Line2, SdrEdgeInfoRec::aObj1Line3, SdrEdgeInfoRec::aObj2Line2, SdrEdgeInfoRec::aObj2Line3, bEdgeTrackDirty, bEdgeTrackUserDefined, ConnectToNode(), DisconnectFromNode(), GetConnection(), SdrDragStat::GetHdl(), ImpEdgeHdl::GetLineCode(), SdrDragStat::GetNow(), SdrHdl::GetObj(), SdrObjConnection::GetObject(), SdrDragStat::GetPageView(), SdrHdl::GetPointNum(), SdrDragStat::GetStart(), SdrDragStat::GetView(), SdrCreateView::HideConnectMarker(), ImpCalcEdgeTrack(), ImpFindConnector(), SdrEdgeInfoRec::ImpGetLineOffset(), ImpSetEdgeInfoToAttr(), SdrEdgeInfoRec::ImpSetLineOffset(), ImpEdgeHdl::IsHorzDrag(), pEdgeTrack, SdrObjConnection::pObj, Point, SdrCreateView::SetConnectMarker(), SdrDragStat::SetEndDragChangesGeoAndAttributes(), and SdrObject::SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2108 of file svdoedge.cxx.
References SdrDragStat::GetView(), and SdrCreateView::HideConnectMarker().
|
overridevirtual |
Every object must be able to create itself interactively.
On MouseDown first an object is created, and its BegCreate() method is called. On every MouseMove, MovCreate() is called. BrkCreate() is called if the user cancels the interactive object creation. EndCreate() is called on the MouseUp event. If EndCreate() returns true, the creation is finished; the object is inserted into the corresponding list. Otherwise it is assumed that further points are necessary to create the object (Polygon, ...). The parameter eCmd contains the number of mouse clicks (if the application provides it). BckCreate() will undo the previous EndCreate(), e.g. to delete the last point of the Polygon. If BckCreate() returns false, creation is cancelled.
Reimplemented from SdrTextObj.
Definition at line 2063 of file svdoedge.cxx.
References aCon1, aCon2, aEdgeInfo, ConnectToNode(), SdrDragStat::GetNow(), SdrDragStat::GetPageView(), SdrDragStat::GetStart(), ImpCalcEdgeTrack(), ImpFindConnector(), pEdgeTrack, SdrObjConnection::pObj, and SdrDragStat::SetNoSnap().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 1868 of file svdoedge.cxx.
References SdrDragStat::GetHdl(), SdrHdl::GetPointNum(), SdrDragStat::SetEndDragChangesAttributes(), and SdrDragStat::SetNoSnap().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2116 of file svdoedge.cxx.
References SdrDragStat::GetView(), and SdrCreateView::HideConnectMarker().
bool SdrEdgeObj::CheckNodeConnection | ( | bool | bTail1 | ) | const |
Definition at line 508 of file svdoedge.cxx.
References SdrGluePoint::GetAbsolutePos(), GetConnection(), SdrObject::GetCornerGluePoint(), SdrGluePointList::GetCount(), SdrObject::GetGluePointList(), SdrObject::getSdrPageFromSdrObject(), SdrObject::GetVertexGluePoint(), i, pEdgeTrack, SdrObjConnection::pObj, and Point.
Referenced by SdrEditView::ImpBroadcastEdgesOfMarkedNodes().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1667 of file svdoedge.cxx.
References SdrEdgeObj().
Referenced by SvxXConnectionPreview::Construct(), and getFullDragClone().
Reimplemented from SdrObject.
Definition at line 471 of file svdoedge.cxx.
References SdrObject::AddListener(), bEdgeTrackUserDefined, DisconnectFromNode(), GetConnection(), ImpDirtyEdgeTrack(), and SdrObjConnection::pObj.
Referenced by applySpecialDrag(), BegCreate(), SvxXConnectionPreview::Construct(), CloneList::CopyConnections(), SdrObjList::CopyObjects(), EndCreate(), getFullDragClone(), MovCreate(), and SvxShape::setPropertyValueImpl().
|
overrideprotectedvirtual |
Reimplemented from SdrTextObj.
Definition at line 143 of file svdoedge.cxx.
|
overrideprotectedvirtual |
Reimplemented from SdrTextObj.
Definition at line 151 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 486 of file svdoedge.cxx.
References GetConnection(), SdrObjConnection::pObj, and SdrObject::RemoveListener().
Referenced by applySpecialDrag(), ConnectToNode(), SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), and ~SdrEdgeObj().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2416 of file svdoedge.cxx.
References basegfx::B2DPolyPolygon::append(), SdrTextObj::ImpConvertAddText(), SdrTextObj::ImpConvertMakeObj(), and pEdgeTrack.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2093 of file svdoedge.cxx.
References aCon1, aCon2, ConnectToNode(), ForceEnd, SdrDragStat::GetPointCount(), SdrDragStat::GetView(), SdrCreateView::HideConnectMarker(), ImpSetEdgeInfoToAttr(), SdrObjConnection::pObj, and SdrObject::SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 466 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 495 of file svdoedge.cxx.
References GetConnection(), SdrObject::getSdrPageFromSdrObject(), and SdrObject::IsInserted().
Referenced by AddToHdlList(), SdrEditView::CheckPossibilities(), SvxXConnectionPreview::Construct(), CloneList::CopyConnections(), SdrObjList::CopyObjects(), ImpEdgeHdl::CreateB2dIAObject(), getFullDragClone(), GetHdlCount(), SvxShape::getPropertyValueImpl(), GetVertexGluePoint(), SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), and SdrObject::TakeContour().
|
inline |
Definition at line 199 of file svdoedge.hxx.
Referenced by applySpecialDrag(), CheckNodeConnection(), ConnectToNode(), SvxXConnectionPreview::Construct(), DisconnectFromNode(), GetConnectedNode(), getGluePointIndex(), handlePageChange(), and setGluePointIndex().
|
inline |
Definition at line 216 of file svdoedge.hxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 456 of file svdoedge.cxx.
References GetVertexGluePoint().
|
overridevirtual |
get the cursor/pointer that signals creating this object
Reimplemented from SdrTextObj.
Definition at line 2130 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 398 of file svdoedge.cxx.
References bEdgeTrackDirty, SdrObject::GetCurrentBoundRect(), and ImpRecalcEdgeTrack().
Referenced by ImpRecalcEdgeTrack(), Notify(), and setGluePointIndex().
basegfx::B2DPolygon SdrEdgeObj::getEdgeTrack | ( | ) | const |
Definition at line 2638 of file svdoedge.cxx.
References bEdgeTrackDirty, ImpRecalcEdgeTrack(), and pEdgeTrack.
basegfx::B2DPolyPolygon SdrEdgeObj::GetEdgeTrackPath | ( | ) | const |
Definition at line 1729 of file svdoedge.cxx.
References basegfx::B2DPolyPolygon::append(), bEdgeTrackDirty, ImpRecalcEdgeTrack(), and pEdgeTrack.
Referenced by SvxShape::getPropertyValueImpl().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1856 of file svdoedge.cxx.
References CloneSdrObject(), ConnectToNode(), GetConnectedNode(), and SdrObject::getSdrModelFromSdrObject().
sal_Int32 SdrEdgeObj::getGluePointIndex | ( | bool | bTail | ) |
this method is used by the api to return a glue point id for a connection.
See setGluePointId for possible return values
Definition at line 2600 of file svdoedge.cxx.
References GetConnection(), SdrObjConnection::GetConnectorId(), SdrObjConnection::IsAutoVertex(), SdrObjConnection::IsBestConnection(), and nId.
Referenced by SvxShape::getPropertyValueImpl().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 461 of file svdoedge.cxx.
|
overridevirtual |
Via GetHdlCount the number of Handles can be retrieved.
Normally 8, if it's a line 2. For Polygon objects (Polygon/Spline/Bezier) the number may be much larger. Polygon objects are also allowed to select a point of a selected object. The handle of that point will then be replaced by a new set of handles (PlusHdl). For a Polygon this would be a simple selection Handle, for a Bezier curve this may be up to 3 Handles (including Weights). GetHdl() and GetPlusHdl() must create Handle instances with new! An object that returns true from HasSpacialDrag() must provide these methods (incl. FillHdlList()).
Reimplemented from SdrTextObj.
Definition at line 1741 of file svdoedge.cxx.
References aEdgeInfo, Bezier, GetConnectedNode(), SdrObject::GetObjectItem(), SdrEdgeInfoRec::nMiddleLine, SdrEdgeInfoRec::nObj1Lines, SdrEdgeInfoRec::nObj2Lines, OrthoLines, pEdgeTrack, SDRATTR_EDGEKIND(), and ThreeLines.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2453 of file svdoedge.cxx.
References ImpUndirtyEdgeTrack(), nCount, pEdgeTrack, and Point.
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2448 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2435 of file svdoedge.cxx.
References ImpUndirtyEdgeTrack(), nCount, pEdgeTrack, and Point.
|
overridevirtual |
snap to special points of an Object (polygon points, center of circle)
Reimplemented from SdrTextObj.
Definition at line 2430 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrAttrObj.
Definition at line 408 of file svdoedge.cxx.
References bEdgeTrackDirty, SdrAttrObj::GetSnapRect(), and ImpRecalcEdgeTrack().
Referenced by GetVertexGluePoint(), NbcSetSnapRect(), and TakeUnrotatedSnapRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1985 of file svdoedge.cxx.
References SdrCreateView::GetCreateObj(), SdrDragStat::GetView(), and SdrObject::ImpGetDescriptionStr().
|
inline |
Definition at line 169 of file svdoedge.hxx.
Referenced by ImpFindConnector().
Point SdrEdgeObj::GetTailPoint | ( | bool | bTail | ) | const |
Definition at line 2530 of file svdoedge.cxx.
References tools::Rectangle::BottomRight(), XPolygon::GetPointCount(), SdrObject::m_aOutRect, pEdgeTrack, Point, and tools::Rectangle::TopLeft().
Referenced by SvxShape::getPropertyValueImpl().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 428 of file svdoedge.cxx.
References tools::Rectangle::Center(), GetConnectedNode(), GetSnapRect(), pEdgeTrack, Point, and SdrGluePoint::SetPercent().
Referenced by GetCornerGluePoint().
Reimplemented from SdrTextObj.
Definition at line 199 of file svdoedge.cxx.
References GetConnection(), and SdrTextObj::handlePageChange().
|
overridevirtual |
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPoly(),...).
Object type specific dragging like corner radius of Rectangle, control points of Splines, weights of Bezier curves, pointer of Label objects must be handled by the object itself. To keep the Model free of state, the state is kept in the View and then passed to the object. EndDrag usually returns true for success, false may be returned if the dragging did not modify the object, where the View already handles the case that the pointer was not moved at all.
Reimplemented from SdrTextObj.
Definition at line 1851 of file svdoedge.cxx.
|
protected |
Definition at line 718 of file svdoedge.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), ALL, SdrObjConnection::aObjOfs, SdrObjConnection::bAutoVertex, SdrObjConnection::bBestVertex, BOTTOM, tools::Rectangle::BottomRight(), SdrObject::GetCurrentBoundRect(), SdrGluePoint::GetEscDir(), SdrObject::GetObjectItemSet(), XPolygon::GetPointCount(), SdrGluePoint::GetPos(), SdrObject::getSdrPageFromSdrObject(), ImpCalcEscAngle(), tools::Rectangle::IsEmpty(), LEFT, SdrObject::m_aOutRect, tools::Rectangle::Move(), SdrObjConnection::nConId, SdrObjConnection::pObj, Point, RIGHT, SDRATTR_EDGENODE1HORZDIST(), SDRATTR_EDGENODE1VERTDIST(), SDRATTR_EDGENODE2HORZDIST(), SDRATTR_EDGENODE2VERTDIST(), SMART, SdrObjConnection::TakeGluePoint(), TOP, and tools::Rectangle::TopLeft().
Referenced by applySpecialDrag(), BegCreate(), ImplAddConnectorOverlay(), ImpRecalcEdgeTrack(), and MovCreate().
|
protected |
Definition at line 861 of file svdoedge.cxx.
References SdrEdgeInfoRec::aMiddleLine, SdrEdgeInfoRec::aObj1Line2, SdrEdgeInfoRec::aObj1Line3, SdrEdgeInfoRec::aObj2Line2, SdrEdgeInfoRec::aObj2Line3, Bezier, BigMulDiv(), tools::Rectangle::Bottom(), tools::Rectangle::Center(), SdrObject::GetObjectItem(), XPolygon::GetPointCount(), i, ImpCalcObjToCenter(), SdrEdgeInfoRec::ImpGetPolyIdx(), SdrEdgeInfoRec::ImpIsHorzLine(), XPolygon::Insert(), tools::Rectangle::Left(), MiddleLine, n1, n2, SdrEdgeInfoRec::nAngle1, SdrEdgeInfoRec::nAngle2, SdrEdgeInfoRec::nMiddleLine, SdrEdgeInfoRec::nObj1Lines, SdrEdgeInfoRec::nObj2Lines, Obj1Line2, Obj1Line3, Obj2Line2, Obj2Line3, OneLine, Point, XPolygon::Remove(), tools::Rectangle::Right(), SDRATTR_EDGEKIND(), XPolygon::SetFlags(), tools::Rectangle::setX(), ThreeLines, tools::Rectangle::Top(), X, XPOLY_APPEND, and Y.
|
staticprotected |
Definition at line 621 of file svdoedge.cxx.
References ALL, BOTTOM, SdrObject::GetSnapRect(), HORZ, tools::Rectangle::Left(), LEFT, RIGHT, SMART, TOP, and VERT.
Referenced by ImpCalcEdgeTrack().
|
staticprotected |
Definition at line 659 of file svdoedge.cxx.
References tools::Rectangle::Bottom(), XPolygon::GetPointCount(), XPolygon::Insert(), tools::Rectangle::Left(), Point, tools::Rectangle::Right(), tools::Rectangle::Top(), and XPOLY_APPEND.
Referenced by ImpCalcEdgeTrack().
|
protected |
Definition at line 552 of file svdoedge.cxx.
References bEdgeTrackDirty, bEdgeTrackUserDefined, and SdrObject::getSdrModelFromSdrObject().
Referenced by ConnectToNode(), ImpSetAttrToEdgeInfo(), NbcMirror(), NbcRotate(), NbcSetAnchorPos(), NbcShear(), and Notify().
|
staticprotected |
Definition at line 2135 of file svdoedge.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), SdrObjConnection::bAutoCorner, SdrObjConnection::bAutoVertex, SdrObjConnection::bBestConn, SdrObjConnection::bBestVertex, SdrGluePoint::GetAbsolutePos(), SdrGluePointList::GetCount(), SdrObject::GetCurrentBoundRect(), SdrPaintView::GetFirstOutputDevice(), SdrDragStat::GetGlueOptions(), SdrObject::GetGluePointList(), SdrGluePoint::GetId(), SdrObject::GetLayer(), OutputDevice::GetMapMode(), MapMode::GetMapUnit(), SdrMarkView::GetMarkHdlSizePixel(), SdrObjList::GetObj(), SdrObjList::GetObjCount(), SdrPageView::GetObjList(), SdrObject::GetOrdNumDirect(), GetSuppressDefaultConnect(), SdrObject::GetVertexGluePoint(), SdrPageView::GetView(), SdrPageView::GetVisibleLayers(), Size::Height(), i, comphelper::LibreOfficeKit::isActive(), tools::Rectangle::IsInside(), SdrLayerIDSet::IsSet(), SdrObject::IsVisible(), SdrObjConnection::nConId, OutputDevice::PixelToLogic(), SdrObjConnection::pObj, Point, SdrObjConnection::ResetVars(), SdrObjectPrimitiveHit(), and Size::Width().
Referenced by applySpecialDrag(), BegCreate(), SdrCreateView::MouseMove(), and MovCreate().
basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay | ( | SdrDragMethod & | rDragMethod, |
bool | bTail1, | ||
bool | bTail2, | ||
bool | bDetail | ||
) | const |
Definition at line 2000 of file svdoedge.cxx.
References aCon1, aCon2, aEdgeInfo, SdrObjConnection::aObjOfs, basegfx::B2DPolygon::append(), SdrObjConnection::bBestConn, SdrObjConnection::bBestVertex, tools::Rectangle::Center(), basegfx::fround(), XPolygon::getB2DPolygon(), SdrDragMethod::getCurrentTransformation(), XPolygon::GetPointCount(), SdrObject::GetSnapRect(), basegfx::B2DTuple::getX(), basegfx::B2DTuple::getY(), ImpCalcEdgeTrack(), pEdgeTrack, SdrObjConnection::pObj, and Point.
Referenced by SdrDragMethod::AddConnectorOverlays().
|
protected |
Definition at line 566 of file svdoedge.cxx.
References aCon1, aCon2, SdrObject::ActionChanged(), aEdgeInfo, bEdgeTrackDirty, bEdgeTrackUserDefined, GetCurrentBoundRect(), SdrObject::getSdrModelFromSdrObject(), ImpCalcEdgeTrack(), ImpSetAttrToEdgeInfo(), ImpSetEdgeInfoToAttr(), SdrObject::m_pUserCall, mbBoundRectCalculationRunning, mbSuppressed, pEdgeTrack, Resize, SdrObject::SendUserCall(), and SdrObject::SetRectsDirty().
Referenced by GetCurrentBoundRect(), getEdgeTrack(), GetEdgeTrackPath(), GetSnapRect(), ImpSetTailPoint(), ImpUndirtyEdgeTrack(), setGluePointIndex(), and TakeXorPoly().
|
protected |
Definition at line 213 of file svdoedge.cxx.
References aEdgeInfo, SdrEdgeInfoRec::aObj1Line2, SdrEdgeInfoRec::aObj2Line2, Bezier, SfxItemSet::Get(), SdrObject::GetObjectItemSet(), ImpDirtyEdgeTrack(), SdrEdgeInfoRec::ImpSetLineOffset(), MiddleLine, n, SdrEdgeInfoRec::nAngle1, SdrEdgeInfoRec::nAngle2, SdrEdgeInfoRec::nMiddleLine, SdrEdgeInfoRec::nObj1Lines, SdrEdgeInfoRec::nObj2Lines, Obj1Line2, Obj1Line3, Obj2Line2, Obj2Line3, OrthoLines, pEdgeTrack, SDRATTR_EDGEKIND(), SDRATTR_EDGELINE1DELTA(), SDRATTR_EDGELINE2DELTA(), SDRATTR_EDGELINE3DELTA(), and ThreeLines.
Referenced by ImpRecalcEdgeTrack(), sdr::properties::ConnectorProperties::ItemSetChanged(), Notify(), and sdr::properties::ConnectorProperties::SetStyleSheet().
|
protected |
Definition at line 283 of file svdoedge.cxx.
References aEdgeInfo, SdrEdgeInfoRec::aObj1Line2, SdrEdgeInfoRec::aObj2Line2, Bezier, sdr::properties::BaseProperties::ClearObjectItemDirect(), SfxItemSet::Get(), SdrObject::GetObjectItemSet(), SdrObject::GetProperties(), SdrEdgeInfoRec::ImpGetLineOffset(), makeSdrEdgeLine1DeltaItem(), makeSdrEdgeLine2DeltaItem(), makeSdrEdgeLine3DeltaItem(), MiddleLine, n, SdrEdgeInfoRec::nAngle1, SdrEdgeInfoRec::nAngle2, SdrEdgeInfoRec::nMiddleLine, SdrEdgeInfoRec::nObj1Lines, SdrEdgeInfoRec::nObj2Lines, Obj1Line2, Obj1Line3, Obj2Line2, Obj2Line3, OrthoLines, pEdgeTrack, SDRATTR_EDGEKIND(), SDRATTR_EDGELINE1DELTA(), SDRATTR_EDGELINE2DELTA(), SDRATTR_EDGELINE3DELTA(), SDRATTR_EDGELINEDELTACOUNT(), sdr::properties::BaseProperties::SetObjectItemDirect(), and ThreeLines.
Referenced by applySpecialDrag(), EndCreate(), and ImpRecalcEdgeTrack().
Definition at line 535 of file svdoedge.cxx.
References ImpRecalcEdgeTrack(), pEdgeTrack, and SdrObject::SetRectsDirty().
Referenced by SetTailPoint().
|
protected |
Definition at line 558 of file svdoedge.cxx.
References bEdgeTrackDirty, SdrObject::getSdrModelFromSdrObject(), and ImpRecalcEdgeTrack().
Referenced by GetPoint(), GetSnapPoint(), and NbcSetPoint().
|
overridevirtual |
Reimplemented from SdrObject.
Definition at line 2443 of file svdoedge.cxx.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2077 of file svdoedge.cxx.
References aCon1, aCon2, aEdgeInfo, bEdgeTrackDirty, ConnectToNode(), SdrDragStat::GetNow(), SdrDragStat::GetPageView(), SdrDragStat::GetView(), ImpCalcEdgeTrack(), ImpFindConnector(), SdrObject::m_bSnapRectDirty, pEdgeTrack, SdrObjConnection::pObj, SdrObject::SetBoundRectDirty(), and SdrCreateView::SetConnectMarker().
Reimplemented from SdrTextObj.
Definition at line 2355 of file svdoedge.cxx.
References aCon1, aCon2, bEdgeTrackUserDefined, SdrObject::getSdrPageFromSdrObject(), ImpDirtyEdgeTrack(), MirrorPoint(), MirrorXPoly(), SdrTextObj::NbcMirror(), pEdgeTrack, and SdrObjConnection::pObj.
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding Nbc-methods, send a Repaint broadcast and set the Modified state on the Model.
Derived classes should usually only override the Nbc methods. Nbc means "no broadcast".
Reimplemented from SdrTextObj.
Definition at line 2301 of file svdoedge.cxx.
References MoveXPoly(), SdrTextObj::NbcMove(), and pEdgeTrack.
Referenced by NbcSetSnapRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2307 of file svdoedge.cxx.
References aEdgeInfo, SdrEdgeInfoRec::aMiddleLine, SdrEdgeInfoRec::aObj1Line2, SdrEdgeInfoRec::aObj1Line3, SdrEdgeInfoRec::aObj2Line2, SdrEdgeInfoRec::aObj2Line3, SdrObject::getSdrModelFromSdrObject(), SdrTextObj::NbcResize(), pEdgeTrack, Point, and ResizeXPoly().
Referenced by NbcSetSnapRect().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2324 of file svdoedge.cxx.
References aCon1, aCon2, bEdgeTrackUserDefined, SdrObject::getSdrPageFromSdrObject(), ImpDirtyEdgeTrack(), SdrTextObj::NbcRotate(), pEdgeTrack, SdrObjConnection::pObj, RotatePoint(), and RotateXPoly().
Reimplemented from SdrObject.
Definition at line 2614 of file svdoedge.cxx.
References ImpDirtyEdgeTrack(), and SdrObject::NbcSetAnchorPos().
Reimplemented from SdrObject.
Definition at line 2463 of file svdoedge.cxx.
References ImpUndirtyEdgeTrack(), nCount, pEdgeTrack, SetEdgeTrackDirty(), and SdrObject::SetRectsDirty().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2272 of file svdoedge.cxx.
References tools::Rectangle::Bottom(), GetSnapRect(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), SdrTextObj::maRect, SdrAttrObj::maSnapRect, NbcMove(), NbcResize(), pEdgeTrack, tools::Rectangle::Right(), tools::Rectangle::Top(), and tools::Rectangle::TopLeft().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2386 of file svdoedge.cxx.
References aCon1, aCon2, bEdgeTrackUserDefined, SdrObject::getSdrPageFromSdrObject(), ImpDirtyEdgeTrack(), SdrTextObj::NbcShear(), pEdgeTrack, SdrObjConnection::pObj, ShearPoint(), and ShearXPoly().
|
overridevirtual |
A derived class must override these 3 methods if it has own geometric data that must be saved for Undo.
NewGeoData() creates an empty instance of a class derived from SdrObjGeoData.
Reimplemented from SdrTextObj.
Definition at line 2487 of file svdoedge.cxx.
|
overrideprotectedvirtual |
Detects when a stylesheet is changed.
Reimplemented from SdrAttrObj.
Definition at line 1604 of file svdoedge.cxx.
References aCon1, aCon2, SdrObject::ActionChanged(), bEdgeTrackUserDefined, SdrObject::GetBroadcaster(), GetCurrentBoundRect(), SfxHint::GetId(), SdrHint::GetKind(), SdrObject::getSdrPageFromSdrObject(), ImpDirtyEdgeTrack(), ImpSetAttrToEdgeInfo(), SdrObject::m_pUserCall, nId, nNotifyingCount, SdrAttrObj::Notify(), ObjectRemoved, SdrObjConnection::pObj, Resize, and SdrObject::SendUserCall().
Referenced by Reformat().
|
overridevirtual |
Snap is not done on the BoundRect but if possible on logic coordinates (i.e.
without considering stroke width, ...) SetSnapRect() tries to size the Object so that it fits into the passed Rect (without stroke width, ...)
Reimplemented from SdrTextObj.
Definition at line 418 of file svdoedge.cxx.
References SdrAttrObj::maSnapRect, and pEdgeTrack.
void SdrEdgeObj::Reformat | ( | ) |
updates edges that are connected to the edges of this object as if the connected objects send a repaint broadcast #103122#
updates edges that are connected to the edges of this object as if the connected objects sent a repaint broadcast
Definition at line 1652 of file svdoedge.cxx.
References aCon1, aCon2, SdrObject::GetBroadcaster(), Notify(), and SdrObjConnection::pObj.
Referenced by SdrObjList::ReformatAllEdgeObjects().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2504 of file svdoedge.cxx.
References SdrEdgeObjGeoData::aCon1, aCon1, SdrEdgeObjGeoData::aCon2, aCon2, SdrObject::AddListener(), SdrEdgeObjGeoData::aEdgeInfo, aEdgeInfo, SdrEdgeObjGeoData::bEdgeTrackDirty, bEdgeTrackDirty, SdrEdgeObjGeoData::bEdgeTrackUserDefined, bEdgeTrackUserDefined, SdrEdgeObjGeoData::pEdgeTrack, pEdgeTrack, SdrObjConnection::pObj, SdrObject::RemoveListener(), and SdrTextObj::RestoreGeoData().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2492 of file svdoedge.cxx.
References SdrEdgeObjGeoData::aCon1, aCon1, SdrEdgeObjGeoData::aCon2, aCon2, SdrEdgeObjGeoData::aEdgeInfo, aEdgeInfo, SdrEdgeObjGeoData::bEdgeTrackDirty, bEdgeTrackDirty, SdrEdgeObjGeoData::bEdgeTrackUserDefined, bEdgeTrackUserDefined, SdrEdgeObjGeoData::pEdgeTrack, pEdgeTrack, and SdrTextObj::SaveGeoData().
|
inline |
Definition at line 212 of file svdoedge.hxx.
Referenced by SdrEditView::ImpBroadcastEdgesOfMarkedNodes(), and NbcSetPoint().
void SdrEdgeObj::SetEdgeTrackPath | ( | const basegfx::B2DPolyPolygon & | rPoly | ) |
Definition at line 1709 of file svdoedge.cxx.
References bEdgeTrackDirty, bEdgeTrackUserDefined, basegfx::B2DPolyPolygon::count(), basegfx::B2DPolyPolygon::getB2DPolygon(), SdrTextObj::maRect, SdrAttrObj::maSnapRect, and pEdgeTrack.
Referenced by SvxShape::setPropertyValueImpl().
void SdrEdgeObj::setGluePointIndex | ( | bool | bTail, |
sal_Int32 | nId = -1 |
||
) |
this method is used by the api to set a glue point for a connection nId == -1 : The best default point is automatically chosen 0 <= nId <= 3 : One of the default points is chosen nId >= 4 : A user defined glue point is chosen
Definition at line 2566 of file svdoedge.cxx.
References SdrGluePointList::FindGluePoint(), GetConnection(), GetCurrentBoundRect(), SdrObject::GetGluePointList(), SdrObjConnection::GetObject(), ImpRecalcEdgeTrack(), SdrObject::m_pUserCall, SDRGLUEPOINT_NOTFOUND, SdrObjConnection::SetAutoVertex(), SdrObjConnection::SetBestConnection(), SdrObjConnection::SetBestVertex(), SdrObject::SetChanged(), SdrObjConnection::SetConnectorId(), and SdrObject::SetRectsDirty().
Referenced by SvxShape::setPropertyValueImpl().
|
inline |
Definition at line 168 of file svdoedge.hxx.
Definition at line 2555 of file svdoedge.cxx.
References ImpSetTailPoint(), and SdrObject::SetChanged().
Referenced by SvxShape::setPropertyValueImpl().
|
overridevirtual |
Polygon dragged by the user when creating the object.
Reimplemented from SdrTextObj.
Definition at line 2123 of file svdoedge.cxx.
References basegfx::B2DPolyPolygon::append(), and pEdgeTrack.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 376 of file svdoedge.cxx.
References SdrObjTransformInfoRec::bCanConvToContour, SdrObjTransformInfoRec::bCanConvToPath, SdrObjTransformInfoRec::bCanConvToPoly, SdrObjTransformInfoRec::bEdgeRadiusAllowed, SdrObjTransformInfoRec::bMirror45Allowed, SdrObjTransformInfoRec::bMirror90Allowed, SdrObjTransformInfoRec::bMirrorFreeAllowed, SdrObjTransformInfoRec::bRotate90Allowed, SdrObjTransformInfoRec::bRotateFreeAllowed, SdrObjTransformInfoRec::bShearAllowed, SdrObjTransformInfoRec::bTransparenceAllowed, SdrTextObj::HasText(), SdrTextObj::ImpCanConvTextToCurve(), and SdrObject::LineGeometryUsageIsNecessary().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 1672 of file svdoedge.cxx.
References aName, SdrObject::GetName(), sName, and SvxResId().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 423 of file svdoedge.cxx.
References GetSnapRect().
|
overridevirtual |
The Xor-Polygon is required by the View to drag the object.
All polygons within the PolyPolygon are interpreted as PolyLine. To get a closed Polygon, close it explicitly.
Reimplemented from SdrTextObj.
Definition at line 1692 of file svdoedge.cxx.
References basegfx::B2DPolyPolygon::append(), bEdgeTrackDirty, ImpRecalcEdgeTrack(), and pEdgeTrack.
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2623 of file svdoedge.cxx.
References SdrObject::TRGetBaseGeometry().
|
overridevirtual |
Reimplemented from SdrTextObj.
Definition at line 2630 of file svdoedge.cxx.
References SdrObject::TRSetBaseGeometry().
|
friend |
Definition at line 135 of file svdoedge.hxx.
Referenced by AddToHdlList().
|
friend |
Definition at line 132 of file svdoedge.hxx.
|
friend |
Definition at line 134 of file svdoedge.hxx.
|
protected |
Definition at line 141 of file svdoedge.hxx.
Referenced by AddToHdlList(), applySpecialDrag(), BegCreate(), EndCreate(), ImplAddConnectorOverlay(), ImpRecalcEdgeTrack(), MovCreate(), NbcMirror(), NbcRotate(), NbcShear(), Notify(), Reformat(), RestoreGeoData(), SaveGeoData(), and SdrEdgeObj().
|
protected |
Definition at line 142 of file svdoedge.hxx.
Referenced by AddToHdlList(), applySpecialDrag(), BegCreate(), EndCreate(), ImplAddConnectorOverlay(), ImpRecalcEdgeTrack(), MovCreate(), NbcMirror(), NbcRotate(), NbcShear(), Notify(), Reformat(), RestoreGeoData(), SaveGeoData(), and SdrEdgeObj().
|
protected |
Definition at line 146 of file svdoedge.hxx.
Referenced by AddToHdlList(), applySpecialDrag(), BegCreate(), GetHdlCount(), ImplAddConnectorOverlay(), ImpRecalcEdgeTrack(), ImpSetAttrToEdgeInfo(), ImpSetEdgeInfoToAttr(), ImpEdgeHdl::IsHorzDrag(), MovCreate(), NbcResize(), RestoreGeoData(), SaveGeoData(), and SdrEdgeObj().
|
protected |
Definition at line 148 of file svdoedge.hxx.
Referenced by applySpecialDrag(), GetCurrentBoundRect(), getEdgeTrack(), GetEdgeTrackPath(), GetSnapRect(), ImpDirtyEdgeTrack(), ImpRecalcEdgeTrack(), ImpUndirtyEdgeTrack(), MovCreate(), RestoreGeoData(), SaveGeoData(), SdrEdgeObj(), SetEdgeTrackPath(), and TakeXorPoly().
|
protected |
Definition at line 149 of file svdoedge.hxx.
Referenced by applySpecialDrag(), ConnectToNode(), ImpDirtyEdgeTrack(), ImpRecalcEdgeTrack(), NbcMirror(), NbcRotate(), NbcShear(), Notify(), RestoreGeoData(), SaveGeoData(), and SetEdgeTrackPath().
|
protected |
Definition at line 160 of file svdoedge.hxx.
Referenced by ImpRecalcEdgeTrack().
|
protected |
Definition at line 153 of file svdoedge.hxx.
|
protected |
Definition at line 164 of file svdoedge.hxx.
Referenced by ImpRecalcEdgeTrack().
|
protected |
Definition at line 145 of file svdoedge.hxx.
Referenced by Notify().
|
protected |
Definition at line 144 of file svdoedge.hxx.
Referenced by AddToHdlList(), applySpecialDrag(), BegCreate(), CheckNodeConnection(), DoConvertToPolyObj(), getEdgeTrack(), GetEdgeTrackPath(), GetHdlCount(), GetPoint(), GetSnapPoint(), GetTailPoint(), GetVertexGluePoint(), ImplAddConnectorOverlay(), ImpRecalcEdgeTrack(), ImpSetAttrToEdgeInfo(), ImpSetEdgeInfoToAttr(), ImpSetTailPoint(), ImpEdgeHdl::IsHorzDrag(), MovCreate(), NbcMirror(), NbcMove(), NbcResize(), NbcRotate(), NbcSetPoint(), NbcSetSnapRect(), NbcShear(), RecalcSnapRect(), RestoreGeoData(), SaveGeoData(), SdrEdgeObj(), SetEdgeTrackPath(), TakeCreatePoly(), and TakeXorPoly().