LibreOffice Module svx (master) 1
svdmrkv.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <svx/svdmark.hxx>
23#include <svx/svdhdl.hxx>
24#include <svx/svdsnpv.hxx>
25#include <svx/svdtypes.hxx>
26#include <svx/svxdllapi.h>
29#include <unotools/resmgr.hxx>
30
31class SfxViewShell;
32
33// The following is not yet implemented, or just partially:
35{
36 NONE = 0x0000,
37 DEEP = 0x0001, /* recursive into group objects */
38 ALSOONMASTER = 0x0002, /* MasterPages are also scanned */
39 WHOLEPAGE = 0x0004, /* Not just the ObjList of PageView */
40 TESTMARKABLE = 0x0008, /* just markable objects/points/handles/... */
41 TESTMACRO = 0x0010, /* Just objects with macro */
42 TESTTEXTEDIT = 0x0020, /* Just TextEdit-enabled objects */
43 MARKED = 0x0040, /* Just marked objects/points/... */
44 PASS2BOUND = 0x0080, /* In case of empty search results, then 2nd. try with BoundRectHit */
45 BEFOREMARK = 0x0100, /* if one marked one found, ignore all behind that */
46
47 IMPISMASTER = 0x0200, /* MasterPage is being searched right now */
51};
52namespace o3tl
53{
54 template<> struct typed_flags<SdrSearchOptions> : is_typed_flags<SdrSearchOptions, 0x03ff> {};
55}
56
57enum class SdrHitKind
58{
59 NONE, // No hit
60 Object, // Hit
61 Handle, // Marking handle
62 HelpLine, // Reference line
63 Gluepoint, // Gluepoint
64 TextEdit, // Open OutlinerView was hit
65 TextEditObj, // Object for SdrBeginTextEdit (Textbereich)
66 UrlField, // Field in TextObj was hit (while it is currently not edited)
67 Macro, // Object for BegMacroObj
68 MarkedObject, // Marked object (e.g. for dragging)
69 UnmarkedObject, // non-marked Object (e.g. for marking)
70 Cell // hit on a cell inside a table shape (outside of the cells text area)
71};
72
73enum class SdrViewEditMode {
74 Edit, // Also known as arrow or pointer mode
75 Create, // Tool for object creation
76 GluePointEdit // Gluepoint editing mode
77};
78
81{
82 NONE = 0,
83 POINTS = 1,
84 GLUEPOINTS = 2,
85};
86
89
91{
92 friend class SdrPageView;
93
94 // #114409#-3 Migrate selections
95 std::unique_ptr<ImplMarkingOverlay> mpMarkObjOverlay;
96 std::unique_ptr<ImplMarkingOverlay> mpMarkPointsOverlay;
97 std::unique_ptr<ImplMarkingOverlay> mpMarkGluePointsOverlay;
98
99 std::unique_ptr<MarkingSubSelectionOverlay> mpMarkingSubSelectionOverlay;
100
101protected:
102 SdrObject* mpMarkedObj; // If not just one object ( i.e. More than one object ) is marked.
103 SdrPageView* mpMarkedPV; // If all marked objects are situated on the same PageView.
104
105 Point maRef1; // Persistent - Rotation center / axis of reflection
106 Point maRef2; // Persistent
108
109 sdr::ViewSelection maSdrViewSelection;
110
111 std::vector<basegfx::B2DRectangle> maSubSelectionList;
115
116 static constexpr sal_uInt16 mnFrameHandlesLimit = 50;
117
118 SdrDragMode meDragMode; // Persistent
121
122 bool mbDesignMode : 1; // DesignMode for SdrUnoObj
123 bool mbForceFrameHandles : 1; // Persistent - FrameDrag also for single objects
124 bool mbPlusHdlAlways : 1; // Persistent
125 bool mbInsPolyPoint : 1; // at this time InsPolyPointDragging
129
130 // flag to completely disable handles at the view
132
133 // flag indicating whether all x coordinates are negated or not
134 bool mbNegativeX : 1;
135
136 // Helper to get a possible GridOffset from SdrObject
137 bool getPossibleGridOffsetForSdrObject(
138 basegfx::B2DVector& rOffset,
139 const SdrObject* pObj,
140 const SdrPageView* pPV) const;
141
142 // Helper to get a possible GridOffset from Position
143 bool getPossibleGridOffsetForPosition(
144 basegfx::B2DVector& rOffset,
145 const basegfx::B2DPoint& rPoint,
146 const SdrPageView* pPV) const;
147
148private:
149 SVX_DLLPRIVATE void ImpSetPointsRects() const;
150 void UndirtyMrkPnt() const;
151
152 void SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const SfxViewShell* pOtherShell);
153 bool dumpGluePointsToJSON(boost::property_tree::ptree& rTree);
154
155protected:
156 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
157 virtual void ModelHasChanged() override; // Is called by the PaintView
158 virtual void SetMarkHandles(SfxViewShell* pOtherShell); // maHdlList - fill (List of handles)
159 void modelHasChangedLOKit();
160 void SetMarkRects(); // Rects at the PageViews
161 void CheckMarked(); // Scan MarkList after Del and Lock Layer ...
162 void AddDragModeHdl(SdrDragMode eMode);
163 virtual bool MouseMove(const MouseEvent& rMEvt, OutputDevice* pWin) override;
164 virtual bool RequestHelp(const HelpEvent& rHEvt) override;
165
166 // add custom handles (used by other apps, e.g. AnchorPos)
167 virtual void AddCustomHdl();
168
169 void ForceRefToMarked();
170 void ForceUndirtyMrkPnt() const { if (mbMrkPntDirty) UndirtyMrkPnt(); }
171
172 virtual SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObject* pObj, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay) const;
173 SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList const * pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj) const;
174 SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList const * pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj,const SdrMarkList * pMarkList) const;
175 bool ImpIsFrameHandles() const;
176 OUString ImpGetDescriptionString(TranslateId pStrCacheID, ImpGetDescriptionOptions nOpt=ImpGetDescriptionOptions::NONE) const;
177
178 // Generates a string including degrees symbol, from an angel specification in 1/100deg
179 bool ImpMarkPoint(SdrHdl* pHdl, SdrMark* pMark, bool bUnmark);
180 virtual bool MarkPoints(const tools::Rectangle* pRect, bool bUnmark);
181 bool MarkGluePoints(const tools::Rectangle* pRect, bool bUnmark);
182
183 void SetMoveOutside(bool bOn);
184 bool MarkableObjectsExceed( int n ) const;
185
186protected:
187 // #i71538# make constructors of SdrView sub-components protected to avoid incomplete incarnations which may get casted to SdrView
189 SdrModel& rSdrModel,
190 OutputDevice* pOut);
191
192 virtual ~SdrMarkView() override;
193
194public:
195 virtual bool IsAction() const override;
196 virtual void MovAction(const Point& rPnt) override;
197 virtual void EndAction() override;
198 virtual void BckAction() override;
199 virtual void BrkAction() override;
200 virtual void TakeActionRect(tools::Rectangle& rRect) const override;
201
202 virtual void ClearPageView() override;
203 virtual void HideSdrPage() override;
204 bool IsObjMarkable(SdrObject const * pObj, SdrPageView const * pPV) const;
205
206 // Returns sal_True if objects, points or gluepoints are selected by drawing a frame
207 // (as long as the frame is drawn).
208 bool IsMarking() const { return IsMarkObj() || IsMarkPoints() || IsMarkGluePoints(); }
209
210 // Marking objects by drawing of a selection frame
211 void BegMarkObj(const Point& rPnt, bool bUnmark = false);
212 void MovMarkObj(const Point& rPnt);
213 bool EndMarkObj();
214 void BrkMarkObj();
215 bool IsMarkObj() const { return (nullptr != mpMarkObjOverlay); }
216
217 // DragModes: SDRDRAG_CREATE,SdrDragMode::Move,SdrDragMode::Resize,SdrDragMode::Rotate,SdrDragMode::Mirror,SdrDragMode::Shear,SdrDragMode::Crook
218 // Move==Resize
219 // The interface might maybe be changed in the future because of Ortho-Drag
220 void SetDragMode(SdrDragMode eMode);
221 SdrDragMode GetDragMode() const { return meDragMode; }
222 void SetFrameHandles(bool bOn);
223 bool IsFrameHandles() const { return mbForceFrameHandles; }
224
225 // returns true if number of markable objects is greater than 1
226 bool HasMultipleMarkableObjects() const { return MarkableObjectsExceed(1); };
227
228 void SetEditMode(SdrViewEditMode eMode);
229 SdrViewEditMode GetEditMode() const { return meEditMode; }
230
232 bool IsEditMode() const { return meEditMode==SdrViewEditMode::Edit; }
234 bool IsCreateMode() const { return meEditMode==SdrViewEditMode::Create; }
235 void SetGluePointEditMode(bool bOn) { SetEditMode(bOn?SdrViewEditMode::GluePointEdit:meEditMode0); }
236 bool IsGluePointEditMode() const { return meEditMode==SdrViewEditMode::GluePointEdit; }
237
238 void SetDesignMode(bool bOn = true);
239 bool IsDesignMode() const { return mbDesignMode; }
240
241 void SetFrameDragSingles(bool bOn=true) { SetFrameHandles(bOn); }
242 bool IsFrameDragSingles() const { return IsFrameHandles(); }
243
244 bool HasMarkableObj() const { return MarkableObjectsExceed(0); };
245
247 void SetNegativeX(bool bOn) { mbNegativeX = bOn; }
248 bool IsNegativeX() const { return mbNegativeX; }
249
250// migrate selections
251
252protected:
253 // all available changing methods
254 SdrMarkList& GetMarkedObjectListWriteAccess() { return maSdrViewSelection.GetMarkedObjectListWriteAccess(); }
255
256public:
257 // all available const methods for read access to selection
258 const SdrMarkList& GetMarkedObjectList() const { return maSdrViewSelection.GetMarkedObjectList(); }
259 // returns SAL_MAX_SIZE if not found
260 size_t TryToFindMarkedObject(const SdrObject* pObj) const { return GetMarkedObjectList().FindObject(pObj); }
261 SdrPageView* GetSdrPageViewOfMarkedByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum)->GetPageView(); }
262 SdrMark* GetSdrMarkByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum); }
263 SdrObject* GetMarkedObjectByIndex(size_t nNum) const { return GetMarkedObjectList().GetMark(nNum)->GetMarkedSdrObj(); }
264 size_t GetMarkedObjectCount() const { return GetMarkedObjectList().GetMarkCount(); }
265 void SortMarkedObjects() const { GetMarkedObjectList().ForceSort(); }
266 bool AreObjectsMarked() const { return 0 != GetMarkedObjectList().GetMarkCount(); }
267 OUString const & GetDescriptionOfMarkedObjects() const { return GetMarkedObjectList().GetMarkDescription(); }
268 OUString const & GetDescriptionOfMarkedPoints() const { return GetMarkedObjectList().GetPointMarkDescription(); }
269 OUString const & GetDescriptionOfMarkedGluePoints() const { return GetMarkedObjectList().GetGluePointMarkDescription(); }
270
271 // Get a list of all those links which are connected to marked nodes,
272 // but which are not marked themselves.
273 const SdrMarkList& GetEdgesOfMarkedNodes() const { return maSdrViewSelection.GetEdgesOfMarkedNodes(); }
274 const SdrMarkList& GetMarkedEdgesOfMarkedNodes() const { return maSdrViewSelection.GetMarkedEdgesOfMarkedNodes(); }
275 const std::vector<SdrObject*>& GetTransitiveHullOfMarkedObjects() const { return maSdrViewSelection.GetAllMarkedObjects(); }
276
277
278 // mechanism to complete disable handles at the view. Handles will be hidden and deleted
279 // when set, no new ones created, no interaction allowed. Handles will be recreated and shown
280 // when reset. Default is false.
281 void hideMarkHandles();
282 void showMarkHandles();
283 bool areMarkHandlesHidden() const { return mbMarkHandlesHidden; }
284
285 bool IsMarkedHit(const Point& rPnt, short nTol=-2) const { return IsMarkedObjHit(rPnt,nTol); }
286 bool IsMarkedObjHit(const Point& rPnt, short nTol=-2) const;
287
288 SdrHdl* PickHandle(const Point& rPnt) const;
289
290 // Pick: Supported options for nOptions are:
291 // SdrSearchOptions::DEEP SdrSearchOptions::ALSOONMASTER SdrSearchOptions::TESTMARKABLE SdrSearchOptions::TESTTEXTEDIT
292 // SdrSearchOptions::MARKED
293 // SdrSearchOptions::WHOLEPAGE
294 SdrObject* PickObj(const Point& rPnt, short nTol, SdrPageView*& rpPV, SdrSearchOptions nOptions, SdrObject** ppRootObj, bool* pbHitPassDirect=nullptr) const;
295 SdrObject* PickObj(const Point& rPnt, short nTol, SdrPageView*& rpPV, SdrSearchOptions nOptions=SdrSearchOptions::NONE) const;
296 bool MarkObj(const Point& rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false);
297
298 // Pick: Supported options for nOptions are SdrSearchOptions::PASS2BOUND
299 bool PickMarkedObj(const Point& rPnt, SdrObject*& rpObj, SdrPageView*& rpPV, SdrSearchOptions nOptions) const;
300
301 // Selects the most upper of the marked objects (O1) and scans from there
302 // towards bottom direction, selecting the first non-marked object (O2).
303 // In case of success the marking of O1 is deleted, a marking is created at
304 // O2 and TRUE is returned. With the parameter bPrev=sal_True the scan
305 // direction is turned to the other direction.
306 bool MarkNextObj(bool bPrev=false);
307
308 // Selects the most upper of the marked objects which is hit by rPnt/nTol
309 // and scans from there to bottom direction, selecting the first non-marked
310 // object (O2). In case of success the marking of O1 is deleted, a marking
311 // is created at O2 and sal_True is returned. With the parameter
312 // bPrev=sal_True the scan direction is turned to the other direction.
313 bool MarkNextObj(const Point& rPnt, short nTol, bool bPrev);
314
315 // Mark all objects within a rectangular area
316 // Just objects are marked which are inclosed completely
317 void MarkObj(const tools::Rectangle& rRect, bool bUnmark);
318 void MarkObj(SdrObject* pObj, SdrPageView* pPV, bool bUnmark = false, bool bDoNoSetMarkHdl = false,
319 std::vector<basegfx::B2DRectangle> && rSubSelections = std::vector<basegfx::B2DRectangle>());
320 void MarkAllObj(SdrPageView* pPV=nullptr); // pPage=NULL => all displayed pages
321 void UnmarkAllObj(SdrPageView const * pPV=nullptr); // pPage=NULL => all displayed pages
322
323 // This function is time-consuming intensive, as the MarkList has to be scanned.
324 bool IsObjMarked(SdrObject const * pObj) const;
325 void UnMarkAll(SdrPageView const * pPV=nullptr) { UnmarkAllObj(pPV); }
326
327 // Request/set the size of the marking handles. Declaration in Pixel.
328 // The value is meant to be the edge length ( link length ).
329 // Pair values are round up to impair values: 3->3, 4->5, 5->5, 6->7, 7->7, ...
330 // Default value is 7, minimum value is 3 Pixels.
331 sal_uInt16 GetMarkHdlSizePixel() const;
332 void SetMarkHdlSizePixel(sal_uInt16 nSiz);
333
334 virtual bool HasMarkablePoints() const;
335 virtual sal_Int32 GetMarkablePointCount() const;
336 virtual bool HasMarkedPoints() const;
337
338 // There might be points which can't be marked:
339 bool IsPointMarkable(const SdrHdl& rHdl) const;
340 virtual bool MarkPoint(SdrHdl& rHdl, bool bUnmark=false);
341
343 bool MarkPointHelper(SdrHdl* pHdl, SdrMark* pMark, bool bUnmark);
344
345 bool UnmarkPoint(SdrHdl& rHdl) { return MarkPoint(rHdl,true); }
346 bool IsPointMarked(const SdrHdl& rHdl) const { ForceUndirtyMrkPnt(); return rHdl.IsSelected(); }
347 bool MarkAllPoints() { return MarkPoints(nullptr,false); }
348 bool UnmarkAllPoints() { return MarkPoints(nullptr,true); }
349
350 // Selects the first marked point (P1) which is hit by rPnt
351 // and from there it searches the first non-marked point(P2).
352 // In case of success the marking of
353 // P1 is deleted, a mark is set at P2.
354 void MarkNextPoint();
355
356 // Search for the number of the suitable handle. In case of empty search result,
357 // SAL_MAX_SIZE is returned.
358 size_t GetHdlNum(SdrHdl const * pHdl) const { return maHdlList.GetHdlNum(pHdl); }
359 SdrHdl* GetHdl(size_t nHdlNum) const { return maHdlList.GetHdl(nHdlNum); }
360 const SdrHdlList& GetHdlList() const { return maHdlList; }
361
362 // Draw a selection frame for marking of points.
363 // This routine will just be started in case that HasMarkablePoints() returns sal_True.
364 bool BegMarkPoints(const Point& rPnt, bool bUnmark = false);
365 void MovMarkPoints(const Point& rPnt);
366 bool EndMarkPoints();
367 void BrkMarkPoints();
368 bool IsMarkPoints() const { return (nullptr != mpMarkPointsOverlay); }
369
370 // Select that additional handles are displayed permanently.
371 void SetPlusHandlesAlwaysVisible(bool bOn);
372 bool IsPlusHandlesAlwaysVisible() const { return mbPlusHdlAlways; }
373
374 bool HasMarkableGluePoints() const;
375 bool HasMarkedGluePoints() const;
376
377 // A gluepoint is clearly identified by the SdrObject
378 // (to which it belongs) as well as by a sal_uInt16 nId (as each SdrObject may consist of
379 // several gluepoints. Here at the View there is an additional
380 // SdrPageView, which should be defined correctly always.
381 // Alternatively a gluepoint may be characterized by a SdrHdl.
382 // In this case the SdrHdl instance consists of all required information.
383 // And in this case, the gluepoint are always is marked by enforcement
384 // (Handlers are just situated at marked gluepoints )
385 // Attention: With each change of the gluepoint status the handle list is re-calculated.
386 // All previously saved SdrHdl* became invalid by this, the same with the point IDs!
387 bool PickGluePoint(const Point& rPnt, SdrObject*& rpObj, sal_uInt16& rnId, SdrPageView*& rpPV) const;
388 bool MarkGluePoint(const SdrObject* pObj, sal_uInt16 nId, bool bUnmark);
389 void UnmarkGluePoint(const SdrObject* pObj, sal_uInt16 nId) { MarkGluePoint(pObj,nId,true); }
390 bool IsGluePointMarked(const SdrObject* pObj, sal_uInt16 nId) const;
391
392 // Get the Hdl (handle) of a marked GluePoint. Non-marked
393 // GluePoints don`t have handles
394 SdrHdl* GetGluePointHdl(const SdrObject* pObj, sal_uInt16 nId) const;
395
396 // Mark all points within this rectangular (View coordinates)
397 bool MarkAllGluePoints() { return MarkGluePoints(nullptr,false); }
398 bool UnmarkAllGluePoints() { return MarkGluePoints(nullptr,true); }
399
400 // Selects the first marked point (P1) which is hit by rPnt
401 // and from there it searches the first non-marked point(P2).
402 // In case of success the marking of
403 // P1 is deleted, a mark is set at P2.
404 void MarkNextGluePoint();
405
406 // Draw a selection frame for gluepoint marking.
407 // This routine will just be started in case that HasMarkablePoints() returns sal_True.
408 // The GlueEditMode sal_True is disregarded.
409 // bool BegMarkGluePoints(const Point& rPnt, OutputDevice* pOut);
410 bool BegMarkGluePoints(const Point& rPnt, bool bUnmark = false);
411 void MovMarkGluePoints(const Point& rPnt);
412 void EndMarkGluePoints();
413 void BrkMarkGluePoints();
414 bool IsMarkGluePoints() const { return (nullptr != mpMarkGluePointsOverlay); }
415
416 // bRestraintPaint=sal_False causes the handles not to be drawn immediately.
417 // AdjustMarkHdl is just called in case of changes; usually this causes an Invalidate
418 // At the end of a redraw the handles are drawn automatically.
419 // The purpose is to avoid unnecessary flickering. -> This does not yet work, that's why sal_True!
420 void AdjustMarkHdl(SfxViewShell* pOtherShell = nullptr); //HMHBOOL bRestraintPaint=sal_True);
421
422 const tools::Rectangle& GetMarkedObjRect() const; // SnapRects of Objects, without line width
423 tools::Rectangle GetMarkedObjBoundRect() const; // incl. line width, overlapping rags, ...
424 const tools::Rectangle& GetMarkedPointsRect() const; // Enclosing rectangle of all marked points
425 const tools::Rectangle& GetMarkedGluePointsRect() const; // Enclosing rectangle of all marked gluepoints
426 const tools::Rectangle& GetAllMarkedRect() const { return GetMarkedObjRect(); }
427 tools::Rectangle GetAllMarkedBoundRect() const { return GetMarkedObjBoundRect(); }
428
429 // Will be always called, if the list of marked objects might be changed.
430 // If you override this method, be sure that you call the
431 // methods of the base class!
432 virtual void MarkListHasChanged();
433
434 // Entering (Editing) of a maybe marked object group. If there are several
435 // object groups marked, the most upper group is selected. After that
436 // all member objects of the group are directly accessible. All other
437 // objects may not be processed in the meantime (until the next
438 // LeaveGroup()). With markings which overlaps pages, every page is processed
439 // separately. The method returns sal_True, if at least one group was entered.
440 void EnterMarkedGroup();
441
442 // Rotation center point and start point of the axis of reflection, respectively
443 const Point& GetRef1() const { return maRef1; }
444 void SetRef1(const Point& rPt);
445
446 // End point of the axis of reflection
447 const Point& GetRef2() const { return maRef2; }
448 void SetRef2(const Point& rPt);
450 virtual SfxViewShell* GetSfxViewShell() const;
451};
452
453
454// - Hit tolerances:
455// It has to be declared in logical coordinates. So please translate the
456// wanted pixel value with PixelToLogic in Logical values.
457// Taking as example a logical value of 100:
458// - For a horizontal hairline (Object with height 0), the generated data is +/-100, i.e.
459// a vertical area of 200 logical units is sensitive.
460// - For a polygon, a rectangular of the size (200,200) is generated and a
461// touch test between Poly and this Rect is processed.
462// - Objects which respond SdrObject::HasEdit()==TRUE ( e.g. a text frame ),
463// are specially treated: An additional sensitive area with a width of
464// 2*Tol (200 units for this example) is created around the object.
465// When an object is directly hit, the Edit method is called.
466// In opposite, a hit in the surrounding sensitive area enables Dragging.
467
468
469/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
size_t GetHdlNum(const SdrHdl *pHdl) const
Definition: svdhdl.cxx:2279
SdrHdl * GetHdl(size_t nNum) const
Definition: svdhdl.hxx:460
bool IsSelected() const
Definition: svdhdl.hxx:206
void SetGluePointEditMode(bool bOn)
Definition: svdmrkv.hxx:235
void SetFrameDragSingles(bool bOn=true)
Definition: svdmrkv.hxx:241
bool MarkAllGluePoints()
Definition: svdmrkv.hxx:397
std::unique_ptr< ImplMarkingOverlay > mpMarkGluePointsOverlay
Definition: svdmrkv.hxx:97
bool IsFrameDragSingles() const
Definition: svdmrkv.hxx:242
bool mbInsPolyPoint
Definition: svdmrkv.hxx:125
const Point & GetRef2() const
Definition: svdmrkv.hxx:447
const SdrMarkList & GetMarkedEdgesOfMarkedNodes() const
Definition: svdmrkv.hxx:274
const SdrMarkList & GetEdgesOfMarkedNodes() const
Definition: svdmrkv.hxx:273
bool MarkAllPoints()
Definition: svdmrkv.hxx:347
bool HasMarkableObj() const
Definition: svdmrkv.hxx:244
void UnmarkGluePoint(const SdrObject *pObj, sal_uInt16 nId)
Definition: svdmrkv.hxx:389
SdrPageView * mpMarkedPV
Definition: svdmrkv.hxx:103
const Point & GetRef1() const
Definition: svdmrkv.hxx:443
bool IsMarkPoints() const
Definition: svdmrkv.hxx:368
bool mbMarkHandlesHidden
Definition: svdmrkv.hxx:131
const SdrMarkList & GetMarkedObjectList() const
Definition: svdmrkv.hxx:258
tools::Rectangle maMarkedPointsRect
Definition: svdmrkv.hxx:113
bool IsNegativeX() const
Definition: svdmrkv.hxx:248
bool AreObjectsMarked() const
Definition: svdmrkv.hxx:266
void SortMarkedObjects() const
Definition: svdmrkv.hxx:265
bool mbForceFrameHandles
Definition: svdmrkv.hxx:123
std::unique_ptr< ImplMarkingOverlay > mpMarkPointsOverlay
Definition: svdmrkv.hxx:96
OUString const & GetDescriptionOfMarkedPoints() const
Definition: svdmrkv.hxx:268
std::unique_ptr< MarkingSubSelectionOverlay > mpMarkingSubSelectionOverlay
Definition: svdmrkv.hxx:99
bool IsEditMode() const
Definition: svdmrkv.hxx:232
SdrObject * GetMarkedObjectByIndex(size_t nNum) const
Definition: svdmrkv.hxx:263
const SdrHdlList & GetHdlList() const
Definition: svdmrkv.hxx:360
void UnMarkAll(SdrPageView const *pPV=nullptr)
Definition: svdmrkv.hxx:325
bool IsDesignMode() const
Definition: svdmrkv.hxx:239
bool mbPlusHdlAlways
Definition: svdmrkv.hxx:124
bool mbMarkedPointsRectsDirty
Definition: svdmrkv.hxx:128
size_t GetHdlNum(SdrHdl const *pHdl) const
Definition: svdmrkv.hxx:358
SdrHdlList maHdlList
Definition: svdmrkv.hxx:107
SdrMarkList & GetMarkedObjectListWriteAccess()
Definition: svdmrkv.hxx:254
tools::Rectangle GetAllMarkedBoundRect() const
Definition: svdmrkv.hxx:427
bool IsMarkGluePoints() const
Definition: svdmrkv.hxx:414
size_t GetMarkedObjectCount() const
Definition: svdmrkv.hxx:264
void ForceUndirtyMrkPnt() const
Definition: svdmrkv.hxx:170
void SetNegativeX(bool bOn)
whether all x coordinates in use are negated or not
Definition: svdmrkv.hxx:247
Point maRef1
Definition: svdmrkv.hxx:105
std::unique_ptr< ImplMarkingOverlay > mpMarkObjOverlay
Definition: svdmrkv.hxx:95
bool mbNegativeX
Definition: svdmrkv.hxx:134
bool IsMarkObj() const
Definition: svdmrkv.hxx:215
bool mbDesignMode
Definition: svdmrkv.hxx:122
SdrDragMode meDragMode
Definition: svdmrkv.hxx:118
tools::Rectangle maMarkedObjRect
Definition: svdmrkv.hxx:112
SdrViewEditMode GetEditMode() const
Definition: svdmrkv.hxx:229
SdrMark * GetSdrMarkByIndex(size_t nNum) const
Definition: svdmrkv.hxx:262
SdrDragMode GetDragMode() const
Definition: svdmrkv.hxx:221
SdrObject * mpMarkedObj
Definition: svdmrkv.hxx:102
bool UnmarkAllPoints()
Definition: svdmrkv.hxx:348
OUString const & GetDescriptionOfMarkedObjects() const
Definition: svdmrkv.hxx:267
tools::Rectangle maMarkedGluePointsRect
Definition: svdmrkv.hxx:114
Point maRef2
Definition: svdmrkv.hxx:106
bool HasMultipleMarkableObjects() const
Definition: svdmrkv.hxx:226
SdrViewEditMode meEditMode
Definition: svdmrkv.hxx:119
void SetEditMode(bool bOn)
Definition: svdmrkv.hxx:231
std::vector< basegfx::B2DRectangle > maSubSelectionList
Definition: svdmrkv.hxx:111
SdrPageView * GetSdrPageViewOfMarkedByIndex(size_t nNum) const
Definition: svdmrkv.hxx:261
size_t TryToFindMarkedObject(const SdrObject *pObj) const
Definition: svdmrkv.hxx:260
bool mbMrkPntDirty
Definition: svdmrkv.hxx:127
bool UnmarkAllGluePoints()
Definition: svdmrkv.hxx:398
SdrViewEditMode meEditMode0
Definition: svdmrkv.hxx:120
bool IsCreateMode() const
Definition: svdmrkv.hxx:234
const std::vector< SdrObject * > & GetTransitiveHullOfMarkedObjects() const
Definition: svdmrkv.hxx:275
bool IsMarking() const
Definition: svdmrkv.hxx:208
SdrHdl * GetHdl(size_t nHdlNum) const
Definition: svdmrkv.hxx:359
bool mbMarkedObjRectDirty
Definition: svdmrkv.hxx:126
bool IsMarkedHit(const Point &rPnt, short nTol=-2) const
Definition: svdmrkv.hxx:285
bool IsFrameHandles() const
Definition: svdmrkv.hxx:223
bool areMarkHandlesHidden() const
Definition: svdmrkv.hxx:283
bool IsGluePointEditMode() const
Definition: svdmrkv.hxx:236
const tools::Rectangle & GetAllMarkedRect() const
Definition: svdmrkv.hxx:426
sdr::ViewSelection maSdrViewSelection
Definition: svdmrkv.hxx:109
void SetCreateMode(bool bOn)
Definition: svdmrkv.hxx:233
bool UnmarkPoint(SdrHdl &rHdl)
Definition: svdmrkv.hxx:345
OUString const & GetDescriptionOfMarkedGluePoints() const
Definition: svdmrkv.hxx:269
bool IsPointMarked(const SdrHdl &rHdl) const
Definition: svdmrkv.hxx:346
bool IsPlusHandlesAlwaysVisible() const
Definition: svdmrkv.hxx:372
Everything a View needs to know about a selected object.
Definition: svdmark.hxx:45
Abstract DrawObject.
Definition: svdobj.hxx:257
void SetDesignMode(bool _bDesignMode) const
Sets all elements in the view which support a design and an alive mode into the given mode.
Definition: svdpagv.cxx:340
bool IsObjMarkable(SdrObject const *pObj) const
At least one member must be visible for the Group object and it must not be locked.
Definition: svdpagv.cxx:591
virtual void ClearPageView()
Definition: svdpntv.cxx:348
virtual bool RequestHelp(const HelpEvent &)
Definition: svdpntv.hxx:452
virtual bool MouseMove(const MouseEvent &, OutputDevice *)
Definition: svdpntv.hxx:451
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
Definition: svdpntv.cxx:197
virtual void HideSdrPage()
Definition: svdpntv.cxx:379
virtual void ModelHasChanged()
Definition: svdpntv.cxx:257
virtual bool IsAction() const override
Definition: svdsnpv.cxx:203
virtual void TakeActionRect(tools::Rectangle &rRect) const override
Definition: svdsnpv.cxx:244
virtual void EndAction() override
Definition: svdsnpv.cxx:219
virtual void BrkAction() override
Definition: svdsnpv.cxx:237
virtual void BckAction() override
Definition: svdsnpv.cxx:230
virtual void MovAction(const Point &rPnt) override
Definition: svdsnpv.cxx:208
NONE
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
sal_Int16 nId
SdrSearchOptions
Definition: svdmrkv.hxx:35
SdrViewEditMode
Definition: svdmrkv.hxx:73
SdrHitKind
Definition: svdmrkv.hxx:58
ImpGetDescriptionOptions
options for ImpGetDescriptionString()
Definition: svdmrkv.hxx:81
SdrDragMode
Definition: svdtypes.hxx:34
#define SVX_DLLPRIVATE
Definition: svxdllapi.h:30
#define SVXCORE_DLLPUBLIC
Definition: svxdllapi.h:35