Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
676a7e99
Kaydet (Commit)
676a7e99
authored
Haz 05, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svx: prefix remaining members of SdrDragView
Change-Id: Iac5d80ef4e433c95277237692bda02fa75a24c61
üst
374d53f5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
164 additions
and
164 deletions
+164
-164
svddrgmt.hxx
include/svx/svddrgmt.hxx
+6
-6
svddrgv.hxx
include/svx/svddrgv.hxx
+66
-66
view3d.cxx
svx/source/engine3d/view3d.cxx
+3
-3
svddrgmt.cxx
svx/source/svdraw/svddrgmt.cxx
+2
-2
svddrgv.cxx
svx/source/svdraw/svddrgv.cxx
+85
-85
svdview.cxx
svx/source/svdraw/svdview.cxx
+2
-2
No files found.
include/svx/svddrgmt.hxx
Dosyayı görüntüle @
676a7e99
...
@@ -157,16 +157,16 @@ protected:
...
@@ -157,16 +157,16 @@ protected:
// old call forwarders to the SdrDragView
// old call forwarders to the SdrDragView
void
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
=
0
)
const
;
void
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
=
0
)
const
;
SdrHdl
*
GetDragHdl
()
const
{
return
getSdrDragView
().
pDragHdl
;
}
SdrHdl
*
GetDragHdl
()
const
{
return
getSdrDragView
().
m
pDragHdl
;
}
SdrHdlKind
GetDragHdlKind
()
const
{
return
getSdrDragView
().
eDragHdl
;
}
SdrHdlKind
GetDragHdlKind
()
const
{
return
getSdrDragView
().
m
eDragHdl
;
}
SdrDragStat
&
DragStat
()
{
return
getSdrDragView
().
aDragStat
;
}
SdrDragStat
&
DragStat
()
{
return
getSdrDragView
().
aDragStat
;
}
const
SdrDragStat
&
DragStat
()
const
{
return
getSdrDragView
().
aDragStat
;
}
const
SdrDragStat
&
DragStat
()
const
{
return
getSdrDragView
().
aDragStat
;
}
Point
&
Ref1
()
const
{
return
mrSdrDragView
.
aRef1
;
}
Point
&
Ref1
()
const
{
return
mrSdrDragView
.
aRef1
;
}
Point
&
Ref2
()
const
{
return
mrSdrDragView
.
aRef2
;
}
Point
&
Ref2
()
const
{
return
mrSdrDragView
.
aRef2
;
}
const
SdrHdlList
&
GetHdlList
()
const
{
return
getSdrDragView
().
GetHdlList
();
}
const
SdrHdlList
&
GetHdlList
()
const
{
return
getSdrDragView
().
GetHdlList
();
}
void
AddUndo
(
SdrUndoAction
*
pUndo
)
{
getSdrDragView
().
AddUndo
(
pUndo
);
}
void
AddUndo
(
SdrUndoAction
*
pUndo
)
{
getSdrDragView
().
AddUndo
(
pUndo
);
}
bool
IsDragLimit
()
{
return
getSdrDragView
().
bDragLimit
;
}
bool
IsDragLimit
()
{
return
getSdrDragView
().
m
bDragLimit
;
}
const
Rectangle
&
GetDragLimitRect
()
{
return
getSdrDragView
().
aDragLimit
;
}
const
Rectangle
&
GetDragLimitRect
()
{
return
getSdrDragView
().
m
aDragLimit
;
}
const
SdrMarkList
&
GetMarkedObjectList
()
{
return
getSdrDragView
().
GetMarkedObjectList
();
}
const
SdrMarkList
&
GetMarkedObjectList
()
{
return
getSdrDragView
().
GetMarkedObjectList
();
}
Point
GetSnapPos
(
const
Point
&
rPt
)
const
{
return
getSdrDragView
().
GetSnapPos
(
rPt
,
getSdrDragView
().
pMarkedPV
);
}
Point
GetSnapPos
(
const
Point
&
rPt
)
const
{
return
getSdrDragView
().
GetSnapPos
(
rPt
,
getSdrDragView
().
pMarkedPV
);
}
SdrSnap
SnapPos
(
Point
&
rPt
)
const
{
return
getSdrDragView
().
SnapPos
(
rPt
,
getSdrDragView
().
pMarkedPV
);
}
SdrSnap
SnapPos
(
Point
&
rPt
)
const
{
return
getSdrDragView
().
SnapPos
(
rPt
,
getSdrDragView
().
pMarkedPV
);
}
...
@@ -217,8 +217,8 @@ public:
...
@@ -217,8 +217,8 @@ public:
inline
const
Rectangle
&
SdrDragMethod
::
GetMarkedRect
()
const
inline
const
Rectangle
&
SdrDragMethod
::
GetMarkedRect
()
const
{
{
return
getSdrDragView
().
eDragHdl
==
HDL_POLY
?
getSdrDragView
().
GetMarkedPointsRect
()
:
return
getSdrDragView
().
m
eDragHdl
==
HDL_POLY
?
getSdrDragView
().
GetMarkedPointsRect
()
:
getSdrDragView
().
eDragHdl
==
HDL_GLUE
?
getSdrDragView
().
GetMarkedGluePointsRect
()
:
getSdrDragView
().
m
eDragHdl
==
HDL_GLUE
?
getSdrDragView
().
GetMarkedGluePointsRect
()
:
getSdrDragView
().
GetMarkedObjRect
();
getSdrDragView
().
GetMarkedObjRect
();
}
}
...
...
include/svx/svddrgv.hxx
Dosyayı görüntüle @
676a7e99
...
@@ -31,38 +31,38 @@ class SVX_DLLPUBLIC SdrDragView: public SdrExchangeView
...
@@ -31,38 +31,38 @@ class SVX_DLLPUBLIC SdrDragView: public SdrExchangeView
friend
class
SdrDragMethod
;
friend
class
SdrDragMethod
;
protected
:
protected
:
SdrHdl
*
pDragHdl
;
SdrHdl
*
m
pDragHdl
;
SdrDragMethod
*
mpCurrentSdrDragMethod
;
SdrDragMethod
*
mpCurrentSdrDragMethod
;
SdrUndoGeoObj
*
pInsPointUndo
;
SdrUndoGeoObj
*
m
pInsPointUndo
;
Rectangle
aDragLimit
;
Rectangle
m
aDragLimit
;
OUString
aInsPointUndoStr
;
OUString
m
aInsPointUndoStr
;
SdrMarkList
aFollowingEdges
;
// If nodes are dragged, all edges should follow as Xor
SdrMarkList
m
aFollowingEdges
;
// If nodes are dragged, all edges should follow as Xor
SdrHdlKind
eDragHdl
;
SdrHdlKind
m
eDragHdl
;
sal_uIntPtr
nDragXorPolyLimit
;
sal_uIntPtr
m
nDragXorPolyLimit
;
sal_uIntPtr
nDragXorPointLimit
;
sal_uIntPtr
m
nDragXorPointLimit
;
sal_uInt16
nDetailedEdgeDraggingLimit
;
sal_uInt16
m
nDetailedEdgeDraggingLimit
;
bool
bFramDrag
:
1
;
// currently frame dragging
bool
m
bFramDrag
:
1
;
// currently frame dragging
bool
bDragSpecial
:
1
;
// currently Special Obj-dragging
bool
m
bDragSpecial
:
1
;
// currently Special Obj-dragging
bool
bMarkedHitMovesAlways
:
1
;
// Persistent
bool
m
bMarkedHitMovesAlways
:
1
;
// Persistent
bool
bDragLimit
:
1
;
// Limit on SnapRect instead of BoundRect
bool
m
bDragLimit
:
1
;
// Limit on SnapRect instead of BoundRect
bool
bDragHdl
:
1
;
// TRUE: RefPt is slid
bool
m
bDragHdl
:
1
;
// TRUE: RefPt is slid
bool
bDragStripes
:
1
;
// Persistent
bool
m
bDragStripes
:
1
;
// Persistent
bool
bMirrRefDragObj
:
1
;
// Persistent - During the drag, show the mirror axis of the mirrored objects as Xor
bool
m
bMirrRefDragObj
:
1
;
// Persistent - During the drag, show the mirror axis of the mirrored objects as Xor
bool
mbSolidDragging
:
1
;
// allow solid create/drag of objects
bool
mbSolidDragging
:
1
;
// allow solid create/drag of objects
bool
bMouseHideWhileDraggingPoints
:
1
;
bool
m
bMouseHideWhileDraggingPoints
:
1
;
bool
bResizeAtCenter
:
1
;
bool
m
bResizeAtCenter
:
1
;
bool
bCrookAtCenter
:
1
;
bool
m
bCrookAtCenter
:
1
;
bool
bDragWithCopy
:
1
;
bool
m
bDragWithCopy
:
1
;
bool
bInsGluePoint
:
1
;
bool
m
bInsGluePoint
:
1
;
bool
bInsObjPointMode
:
1
;
bool
m
bInsObjPointMode
:
1
;
bool
bInsGluePointMode
:
1
;
bool
m
bInsGluePointMode
:
1
;
bool
bNoDragXorPolys
:
1
;
bool
m
bNoDragXorPolys
:
1
;
bool
bAutoVertexCon
:
1
;
// automatic generation of connectors at the vertices
bool
m
bAutoVertexCon
:
1
;
// automatic generation of connectors at the vertices
bool
bAutoCornerCon
:
1
;
// automatic geneartion of connectors at the corners
bool
m
bAutoCornerCon
:
1
;
// automatic geneartion of connectors at the corners
bool
bRubberEdgeDragging
:
1
;
bool
m
bRubberEdgeDragging
:
1
;
bool
bDetailedEdgeDragging
:
1
;
bool
m
bDetailedEdgeDragging
:
1
;
private
:
private
:
SVX_DLLPRIVATE
void
ImpClearVars
();
SVX_DLLPRIVATE
void
ImpClearVars
();
...
@@ -105,20 +105,20 @@ public:
...
@@ -105,20 +105,20 @@ public:
void
MovDragObj
(
const
Point
&
rPnt
);
void
MovDragObj
(
const
Point
&
rPnt
);
bool
EndDragObj
(
bool
bCopy
=
false
);
bool
EndDragObj
(
bool
bCopy
=
false
);
void
BrkDragObj
();
void
BrkDragObj
();
bool
IsDragObj
()
const
{
return
mpCurrentSdrDragMethod
&&
!
bInsPolyPoint
&&
!
bInsGluePoint
;
}
bool
IsDragObj
()
const
{
return
mpCurrentSdrDragMethod
&&
!
bInsPolyPoint
&&
!
m
bInsGluePoint
;
}
SdrHdl
*
GetDragHdl
()
const
{
return
pDragHdl
;
}
SdrHdl
*
GetDragHdl
()
const
{
return
m
pDragHdl
;
}
SdrDragMethod
*
GetDragMethod
()
const
{
return
mpCurrentSdrDragMethod
;
}
SdrDragMethod
*
GetDragMethod
()
const
{
return
mpCurrentSdrDragMethod
;
}
bool
IsDraggingPoints
()
const
{
return
eDragHdl
==
HDL_POLY
;
}
bool
IsDraggingPoints
()
const
{
return
m
eDragHdl
==
HDL_POLY
;
}
bool
IsDraggingGluePoints
()
const
{
return
eDragHdl
==
HDL_GLUE
;
}
bool
IsDraggingGluePoints
()
const
{
return
m
eDragHdl
==
HDL_GLUE
;
}
// If you want to define that already during BegDrag
// If you want to define that already during BegDrag
// or in the middle.
// or in the middle.
// (Is reset to 'false' on each BegDrag, so set it after BegDrag.)
// (Is reset to 'false' on each BegDrag, so set it after BegDrag.)
void
SetDragWithCopy
(
bool
bOn
)
{
bDragWithCopy
=
bOn
;
}
void
SetDragWithCopy
(
bool
bOn
)
{
m
bDragWithCopy
=
bOn
;
}
bool
IsDragWithCopy
()
const
{
return
bDragWithCopy
;
}
bool
IsDragWithCopy
()
const
{
return
m
bDragWithCopy
;
}
void
SetInsertGluePoint
(
bool
bOn
)
{
bInsGluePoint
=
bOn
;
}
void
SetInsertGluePoint
(
bool
bOn
)
{
m
bInsGluePoint
=
bOn
;
}
bool
IsInsertGluePoint
()
const
{
return
bInsGluePoint
;
}
bool
IsInsertGluePoint
()
const
{
return
m
bInsGluePoint
;
}
// Interactive insertion of a new point. nIdx=0 => in front of the first point
// Interactive insertion of a new point. nIdx=0 => in front of the first point
bool
IsInsObjPointPossible
()
const
;
bool
IsInsObjPointPossible
()
const
;
...
@@ -130,25 +130,25 @@ public:
...
@@ -130,25 +130,25 @@ public:
// For the app to manage the status. GetPreferredPointer() is
// For the app to manage the status. GetPreferredPointer() is
// possibly going to deliver a matching pointer for it.
// possibly going to deliver a matching pointer for it.
void
SetInsObjPointMode
(
bool
bOn
)
{
bInsObjPointMode
=
bOn
;
}
void
SetInsObjPointMode
(
bool
bOn
)
{
m
bInsObjPointMode
=
bOn
;
}
bool
IsInsObjPointMode
()
const
{
return
bInsObjPointMode
;
}
bool
IsInsObjPointMode
()
const
{
return
m
bInsObjPointMode
;
}
bool
IsInsGluePointPossible
()
const
;
bool
IsInsGluePointPossible
()
const
;
bool
BegInsGluePoint
(
const
Point
&
rPnt
);
bool
BegInsGluePoint
(
const
Point
&
rPnt
);
void
MovInsGluePoint
(
const
Point
&
rPnt
)
{
MovDragObj
(
rPnt
);
}
void
MovInsGluePoint
(
const
Point
&
rPnt
)
{
MovDragObj
(
rPnt
);
}
bool
EndInsGluePoint
()
{
return
EndDragObj
();
}
bool
EndInsGluePoint
()
{
return
EndDragObj
();
}
void
BrkInsGluePoint
()
{
BrkDragObj
();
}
void
BrkInsGluePoint
()
{
BrkDragObj
();
}
bool
IsInsGluePoint
()
const
{
return
mpCurrentSdrDragMethod
&&
bInsGluePoint
;
}
bool
IsInsGluePoint
()
const
{
return
mpCurrentSdrDragMethod
&&
m
bInsGluePoint
;
}
// For the app to manage the status. GetPreferredPointer() is
// For the app to manage the status. GetPreferredPointer() is
// possibly going to deliver a matching pointer for it.
// possibly going to deliver a matching pointer for it.
void
SetInsGluePointMode
(
bool
bOn
)
{
bInsGluePointMode
=
bOn
;
}
void
SetInsGluePointMode
(
bool
bOn
)
{
m
bInsGluePointMode
=
bOn
;
}
bool
IsInsGluePointMode
()
const
{
return
bInsGluePointMode
;
}
bool
IsInsGluePointMode
()
const
{
return
m
bInsGluePointMode
;
}
// border lines over the whole win persistent during the
// border lines over the whole win persistent during the
// whole dragging. Default=FALSE.
// whole dragging. Default=FALSE.
void
SetDragStripes
(
bool
bOn
);
void
SetDragStripes
(
bool
bOn
);
bool
IsDragStripes
()
const
{
return
bDragStripes
;
}
bool
IsDragStripes
()
const
{
return
m
bDragStripes
;
}
// hide handles during dragging
// hide handles during dragging
//HMHvoid SetDragHdlHide(bool bOn);
//HMHvoid SetDragHdlHide(bool bOn);
...
@@ -156,8 +156,8 @@ public:
...
@@ -156,8 +156,8 @@ public:
// Hide the mouse when dragging polygon points or glue points.
// Hide the mouse when dragging polygon points or glue points.
// Default=false
// Default=false
void
SetMouseHideWhileDraggingPoints
(
bool
bOn
)
{
bMouseHideWhileDraggingPoints
=
bOn
;
}
void
SetMouseHideWhileDraggingPoints
(
bool
bOn
)
{
m
bMouseHideWhileDraggingPoints
=
bOn
;
}
bool
IsMouseHideWhileDraggingPoints
()
const
{
return
bMouseHideWhileDraggingPoints
;
}
bool
IsMouseHideWhileDraggingPoints
()
const
{
return
m
bMouseHideWhileDraggingPoints
;
}
// As a general rule, the contours of the selected objects
// As a general rule, the contours of the selected objects
// are displayed as Xor-polygons. If this flag is set, only one
// are displayed as Xor-polygons. If this flag is set, only one
...
@@ -167,21 +167,21 @@ public:
...
@@ -167,21 +167,21 @@ public:
// Also changeable during the dragging.
// Also changeable during the dragging.
// Default=Off
// Default=Off
void
SetNoDragXorPolys
(
bool
bOn
);
void
SetNoDragXorPolys
(
bool
bOn
);
bool
IsNoDragXorPolys
()
const
{
return
bNoDragXorPolys
;
}
bool
IsNoDragXorPolys
()
const
{
return
m
bNoDragXorPolys
;
}
// If the number of selected objects exceeds te value set here,
// If the number of selected objects exceeds te value set here,
// NoDragPolys is (temporarily) activated implicitely.
// NoDragPolys is (temporarily) activated implicitely.
// PolyPolygons etc. are regarded as multiple objects respectively.
// PolyPolygons etc. are regarded as multiple objects respectively.
// Default=100
// Default=100
void
SetDragXorPolyLimit
(
sal_uIntPtr
nLimit
)
{
nDragXorPolyLimit
=
nLimit
;
}
void
SetDragXorPolyLimit
(
sal_uIntPtr
nLimit
)
{
m
nDragXorPolyLimit
=
nLimit
;
}
sal_uIntPtr
GetDragXorPolyLimit
()
const
{
return
nDragXorPolyLimit
;
}
sal_uIntPtr
GetDragXorPolyLimit
()
const
{
return
m
nDragXorPolyLimit
;
}
// Like DragXorPolyLimit, but in respect to the total number of
// Like DragXorPolyLimit, but in respect to the total number of
// all polygons. Default=500.
// all polygons. Default=500.
// NoDragPolys is (temporarily) activated, if one of the limits
// NoDragPolys is (temporarily) activated, if one of the limits
// is exceeded.
// is exceeded.
void
SetDragXorPointLimit
(
sal_uIntPtr
nPointCount
)
{
nDragXorPointLimit
=
nPointCount
;
}
void
SetDragXorPointLimit
(
sal_uIntPtr
nPointCount
)
{
m
nDragXorPointLimit
=
nPointCount
;
}
sal_uIntPtr
GetDragXorPointLimit
()
const
{
return
nDragXorPointLimit
;
}
sal_uIntPtr
GetDragXorPointLimit
()
const
{
return
m
nDragXorPointLimit
;
}
void
SetSolidDragging
(
bool
bOn
);
void
SetSolidDragging
(
bool
bOn
);
bool
IsSolidDragging
()
const
;
bool
IsSolidDragging
()
const
;
...
@@ -190,13 +190,13 @@ public:
...
@@ -190,13 +190,13 @@ public:
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Stick Connectors to vertices
// Stick Connectors to vertices
// Default=true=Yes
// Default=true=Yes
void
SetAutoVertexConnectors
(
bool
bOn
)
{
bAutoVertexCon
=
bOn
;
}
void
SetAutoVertexConnectors
(
bool
bOn
)
{
m
bAutoVertexCon
=
bOn
;
}
bool
IsAutoVertexConnectors
()
const
{
return
bAutoVertexCon
;
}
bool
IsAutoVertexConnectors
()
const
{
return
m
bAutoVertexCon
;
}
// Stick Connectors to Corners
// Stick Connectors to Corners
// Default=false=No
// Default=false=No
void
SetAutoCornerConnectors
(
bool
bOn
)
{
bAutoCornerCon
=
bOn
;
}
void
SetAutoCornerConnectors
(
bool
bOn
)
{
m
bAutoCornerCon
=
bOn
;
}
bool
IsAutoCornerConnectors
()
const
{
return
bAutoCornerCon
;
}
bool
IsAutoCornerConnectors
()
const
{
return
m
bAutoCornerCon
;
}
// Dragging of connected objects (Nodes):
// Dragging of connected objects (Nodes):
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
@@ -205,16 +205,16 @@ public:
...
@@ -205,16 +205,16 @@ public:
// only rubber bands but total recalculations are visible while
// only rubber bands but total recalculations are visible while
// dragging. This detailed depiction is only possible in MoveDrag.
// dragging. This detailed depiction is only possible in MoveDrag.
// Default value: 10
// Default value: 10
bool
IsDetailedEdgeDragging
()
const
{
return
bDetailedEdgeDragging
;
}
bool
IsDetailedEdgeDragging
()
const
{
return
m
bDetailedEdgeDragging
;
}
sal_uInt16
GetDetailedEdgeDraggingLimit
()
const
{
return
nDetailedEdgeDraggingLimit
;
}
sal_uInt16
GetDetailedEdgeDraggingLimit
()
const
{
return
m
nDetailedEdgeDraggingLimit
;
}
// EdgeDraggingLimit: If more than nEdgeObjCount edges are affected,
// EdgeDraggingLimit: If more than nEdgeObjCount edges are affected,
// they are not shown in the interactive dragging.
// they are not shown in the interactive dragging.
// This here talks about the "rubber bands", which take less computing time
// This here talks about the "rubber bands", which take less computing time
// than the complete recalculations in the DetailedEdgeDragging.
// than the complete recalculations in the DetailedEdgeDragging.
// default value: 100
// default value: 100
bool
IsRubberEdgeDragging
()
const
{
return
bRubberEdgeDragging
;
}
bool
IsRubberEdgeDragging
()
const
{
return
m
bRubberEdgeDragging
;
}
// Connector handling is thus as follows (when using default settings):
// Connector handling is thus as follows (when using default settings):
// - If at most 10 Connectors are affected, they are recalculated
// - If at most 10 Connectors are affected, they are recalculated
...
@@ -230,25 +230,25 @@ public:
...
@@ -230,25 +230,25 @@ public:
// object always triggers a Move, independent of the DragMode that is
// object always triggers a Move, independent of the DragMode that is
// set. This flag is persistent and should be configurable in the app
// set. This flag is persistent and should be configurable in the app
// by the user!
// by the user!
void
SetMarkedHitMovesAlways
(
bool
bOn
)
{
bMarkedHitMovesAlways
=
bOn
;
}
void
SetMarkedHitMovesAlways
(
bool
bOn
)
{
m
bMarkedHitMovesAlways
=
bOn
;
}
bool
IsMarkedHitMovesAlways
()
const
{
return
bMarkedHitMovesAlways
;
}
bool
IsMarkedHitMovesAlways
()
const
{
return
m
bMarkedHitMovesAlways
;
}
// Show the mirror image of the selected objects as Xor while dragging
// Show the mirror image of the selected objects as Xor while dragging
// the mirror axis? Persistent. Not yet implemented. Default: true
// the mirror axis? Persistent. Not yet implemented. Default: true
void
SetMirrRefDragObj
(
bool
bOn
)
{
bMirrRefDragObj
=
bOn
;
}
void
SetMirrRefDragObj
(
bool
bOn
)
{
m
bMirrRefDragObj
=
bOn
;
}
bool
IsMirrRefDragObj
()
const
{
return
bMirrRefDragObj
;
}
bool
IsMirrRefDragObj
()
const
{
return
m
bMirrRefDragObj
;
}
bool
IsOrthoDesired
()
const
;
bool
IsOrthoDesired
()
const
;
// center as reference on Resize
// center as reference on Resize
// Default=FALSE.
// Default=FALSE.
bool
IsResizeAtCenter
()
const
{
return
bResizeAtCenter
;
}
bool
IsResizeAtCenter
()
const
{
return
m
bResizeAtCenter
;
}
void
SetResizeAtCenter
(
bool
bOn
)
{
bResizeAtCenter
=
bOn
;
}
void
SetResizeAtCenter
(
bool
bOn
)
{
m
bResizeAtCenter
=
bOn
;
}
// symmetric Crook
// symmetric Crook
// Default=FALSE.
// Default=FALSE.
bool
IsCrookAtCenter
()
const
{
return
bCrookAtCenter
;
}
bool
IsCrookAtCenter
()
const
{
return
m
bCrookAtCenter
;
}
void
SetCrookAtCenter
(
bool
bOn
)
{
bCrookAtCenter
=
bOn
;
}
void
SetCrookAtCenter
(
bool
bOn
)
{
m
bCrookAtCenter
=
bOn
;
}
// Limitation of the working area. The limitation refers to the View,
// Limitation of the working area. The limitation refers to the View,
// not to the single PageViews. This limitation is only evaluated by
// not to the single PageViews. This limitation is only evaluated by
...
...
svx/source/engine3d/view3d.cxx
Dosyayı görüntüle @
676a7e99
...
@@ -1229,13 +1229,13 @@ bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
...
@@ -1229,13 +1229,13 @@ bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
}
}
if
(
bThereAre3DObjects
)
if
(
bThereAre3DObjects
)
{
{
eDragHdl
=
(
pHdl
==
NULL
?
HDL_MOVE
:
pHdl
->
GetKind
()
);
m
eDragHdl
=
(
pHdl
==
NULL
?
HDL_MOVE
:
pHdl
->
GetKind
()
);
switch
(
eDragMode
)
switch
(
eDragMode
)
{
{
case
SDRDRAG_ROTATE
:
case
SDRDRAG_ROTATE
:
case
SDRDRAG_SHEAR
:
case
SDRDRAG_SHEAR
:
{
{
switch
(
eDragHdl
)
switch
(
m
eDragHdl
)
{
{
case
HDL_LEFT
:
case
HDL_LEFT
:
case
HDL_RIGHT
:
case
HDL_RIGHT
:
...
@@ -1272,7 +1272,7 @@ bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
...
@@ -1272,7 +1272,7 @@ bool E3dView::BegDragObj(const Point& rPnt, OutputDevice* pOut,
{
{
if
(
!
bThereAreRootScenes
)
if
(
!
bThereAreRootScenes
)
{
{
pForcedMeth
=
new
E3dDragMove
(
*
this
,
GetMarkedObjectList
(),
eDragHdl
,
eConstraint
,
IsSolidDragging
());
pForcedMeth
=
new
E3dDragMove
(
*
this
,
GetMarkedObjectList
(),
m
eDragHdl
,
eConstraint
,
IsSolidDragging
());
}
}
}
}
break
;
break
;
...
...
svx/source/svdraw/svddrgmt.cxx
Dosyayı görüntüle @
676a7e99
...
@@ -575,7 +575,7 @@ void SdrDragMethod::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr
...
@@ -575,7 +575,7 @@ void SdrDragMethod::ImpTakeDescriptionStr(sal_uInt16 nStrCacheID, OUString& rStr
SdrObject
*
SdrDragMethod
::
GetDragObj
()
const
SdrObject
*
SdrDragMethod
::
GetDragObj
()
const
{
{
SdrObject
*
pObj
=
NULL
;
SdrObject
*
pObj
=
NULL
;
if
(
getSdrDragView
().
pDragHdl
!=
NULL
)
pObj
=
getSdrDragView
().
pDragHdl
->
GetObj
();
if
(
getSdrDragView
().
mpDragHdl
!=
NULL
)
pObj
=
getSdrDragView
().
m
pDragHdl
->
GetObj
();
if
(
pObj
==
NULL
)
pObj
=
getSdrDragView
().
pMarkedObj
;
if
(
pObj
==
NULL
)
pObj
=
getSdrDragView
().
pMarkedObj
;
return
pObj
;
return
pObj
;
}
}
...
@@ -583,7 +583,7 @@ SdrObject* SdrDragMethod::GetDragObj() const
...
@@ -583,7 +583,7 @@ SdrObject* SdrDragMethod::GetDragObj() const
SdrPageView
*
SdrDragMethod
::
GetDragPV
()
const
SdrPageView
*
SdrDragMethod
::
GetDragPV
()
const
{
{
SdrPageView
*
pPV
=
NULL
;
SdrPageView
*
pPV
=
NULL
;
if
(
getSdrDragView
().
pDragHdl
!=
NULL
)
pPV
=
getSdrDragView
().
pDragHdl
->
GetPageView
();
if
(
getSdrDragView
().
mpDragHdl
!=
NULL
)
pPV
=
getSdrDragView
().
m
pDragHdl
->
GetPageView
();
if
(
pPV
==
NULL
)
pPV
=
getSdrDragView
().
pMarkedPV
;
if
(
pPV
==
NULL
)
pPV
=
getSdrDragView
().
pMarkedPV
;
return
pPV
;
return
pPV
;
}
}
...
...
svx/source/svdraw/svddrgv.cxx
Dosyayı görüntüle @
676a7e99
...
@@ -51,33 +51,33 @@ using namespace sdr;
...
@@ -51,33 +51,33 @@ using namespace sdr;
void
SdrDragView
::
ImpClearVars
()
void
SdrDragView
::
ImpClearVars
()
{
{
bFramDrag
=
false
;
m
bFramDrag
=
false
;
eDragMode
=
SDRDRAG_MOVE
;
eDragMode
=
SDRDRAG_MOVE
;
bDragLimit
=
false
;
m
bDragLimit
=
false
;
bMarkedHitMovesAlways
=
false
;
m
bMarkedHitMovesAlways
=
false
;
eDragHdl
=
HDL_MOVE
;
m
eDragHdl
=
HDL_MOVE
;
pDragHdl
=
NULL
;
m
pDragHdl
=
NULL
;
bDragHdl
=
false
;
m
bDragHdl
=
false
;
bDragSpecial
=
false
;
m
bDragSpecial
=
false
;
mpCurrentSdrDragMethod
=
NULL
;
mpCurrentSdrDragMethod
=
NULL
;
bDragStripes
=
false
;
m
bDragStripes
=
false
;
bMirrRefDragObj
=
true
;
m
bMirrRefDragObj
=
true
;
bDragWithCopy
=
false
;
m
bDragWithCopy
=
false
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
bInsGluePoint
=
false
;
m
bInsGluePoint
=
false
;
bInsObjPointMode
=
false
;
m
bInsObjPointMode
=
false
;
bInsGluePointMode
=
false
;
m
bInsGluePointMode
=
false
;
nDragXorPolyLimit
=
100
;
m
nDragXorPolyLimit
=
100
;
nDragXorPointLimit
=
500
;
m
nDragXorPointLimit
=
500
;
bNoDragXorPolys
=
false
;
m
bNoDragXorPolys
=
false
;
bAutoVertexCon
=
true
;
m
bAutoVertexCon
=
true
;
bAutoCornerCon
=
false
;
m
bAutoCornerCon
=
false
;
bRubberEdgeDragging
=
true
;
m
bRubberEdgeDragging
=
true
;
bDetailedEdgeDragging
=
true
;
m
bDetailedEdgeDragging
=
true
;
nDetailedEdgeDraggingLimit
=
10
;
m
nDetailedEdgeDraggingLimit
=
10
;
bResizeAtCenter
=
false
;
m
bResizeAtCenter
=
false
;
bCrookAtCenter
=
false
;
m
bCrookAtCenter
=
false
;
bMouseHideWhileDraggingPoints
=
false
;
m
bMouseHideWhileDraggingPoints
=
false
;
// init using default
// init using default
mbSolidDragging
=
getOptionsDrawinglayer
().
IsSolidDragCreate
();
mbSolidDragging
=
getOptionsDrawinglayer
().
IsSolidDragCreate
();
...
@@ -177,7 +177,7 @@ bool SdrDragView::TakeDragObjAnchorPos(Point& rPos, bool bTR ) const
...
@@ -177,7 +177,7 @@ bool SdrDragView::TakeDragObjAnchorPos(Point& rPos, bool bTR ) const
if
(
pObj
->
ISA
(
SdrCaptionObj
))
if
(
pObj
->
ISA
(
SdrCaptionObj
))
{
{
Point
aPt
(
static_cast
<
SdrCaptionObj
*>
(
pObj
)
->
GetTailPos
());
Point
aPt
(
static_cast
<
SdrCaptionObj
*>
(
pObj
)
->
GetTailPos
());
bool
bTail
=
eDragHdl
==
HDL_POLY
;
// drag tail
bool
bTail
=
m
eDragHdl
==
HDL_POLY
;
// drag tail
bool
bOwn
=
mpCurrentSdrDragMethod
->
ISA
(
SdrDragObjOwn
);
// specific to object
bool
bOwn
=
mpCurrentSdrDragMethod
->
ISA
(
SdrDragObjOwn
);
// specific to object
if
(
!
bTail
)
if
(
!
bTail
)
{
// for bTail, TakeActionRect already does the right thing
{
// for bTail, TakeActionRect already does the right thing
...
@@ -215,18 +215,18 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -215,18 +215,18 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
SetDragWithCopy
(
false
);
SetDragWithCopy
(
false
);
//TODO: aAni.Reset();
//TODO: aAni.Reset();
mpCurrentSdrDragMethod
=
NULL
;
mpCurrentSdrDragMethod
=
NULL
;
bDragSpecial
=
false
;
m
bDragSpecial
=
false
;
bDragLimit
=
false
;
m
bDragLimit
=
false
;
SdrDragMode
eTmpMode
=
eDragMode
;
SdrDragMode
eTmpMode
=
eDragMode
;
if
(
eTmpMode
==
SDRDRAG_MOVE
&&
pHdl
!=
NULL
&&
pHdl
->
GetKind
()
!=
HDL_MOVE
)
{
if
(
eTmpMode
==
SDRDRAG_MOVE
&&
pHdl
!=
NULL
&&
pHdl
->
GetKind
()
!=
HDL_MOVE
)
{
eTmpMode
=
SDRDRAG_RESIZE
;
eTmpMode
=
SDRDRAG_RESIZE
;
}
}
bDragLimit
=
TakeDragLimit
(
eTmpMode
,
aDragLimit
);
mbDragLimit
=
TakeDragLimit
(
eTmpMode
,
m
aDragLimit
);
bFramDrag
=
ImpIsFrameHandles
();
m
bFramDrag
=
ImpIsFrameHandles
();
if
(
!
bFramDrag
&&
if
(
!
m
bFramDrag
&&
(
pMarkedObj
==
NULL
||
!
pMarkedObj
->
hasSpecialDrag
())
&&
(
pMarkedObj
==
NULL
||
!
pMarkedObj
->
hasSpecialDrag
())
&&
(
pHdl
==
NULL
||
pHdl
->
GetObj
()
==
NULL
))
{
(
pHdl
==
NULL
||
pHdl
->
GetObj
()
==
NULL
))
{
bFramDrag
=
true
;
m
bFramDrag
=
true
;
}
}
Point
aPnt
(
rPnt
);
Point
aPnt
(
rPnt
);
...
@@ -249,18 +249,18 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -249,18 +249,18 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
aDragStat
.
SetHdl
(
pHdl
);
aDragStat
.
SetHdl
(
pHdl
);
aDragStat
.
NextPoint
();
aDragStat
.
NextPoint
();
pDragWin
=
pOut
;
pDragWin
=
pOut
;
pDragHdl
=
pHdl
;
m
pDragHdl
=
pHdl
;
eDragHdl
=
pHdl
==
NULL
?
HDL_MOVE
:
pHdl
->
GetKind
();
m
eDragHdl
=
pHdl
==
NULL
?
HDL_MOVE
:
pHdl
->
GetKind
();
bDragHdl
=
eDragHdl
==
HDL_REF1
||
eDragHdl
==
HDL_REF2
||
eDragHdl
==
HDL_MIRX
;
mbDragHdl
=
meDragHdl
==
HDL_REF1
||
meDragHdl
==
HDL_REF2
||
m
eDragHdl
==
HDL_MIRX
;
// Expand test for HDL_ANCHOR_TR
// Expand test for HDL_ANCHOR_TR
bool
bNotDraggable
=
(
HDL_ANCHOR
==
eDragHdl
||
HDL_ANCHOR_TR
==
eDragHdl
);
bool
bNotDraggable
=
(
HDL_ANCHOR
==
meDragHdl
||
HDL_ANCHOR_TR
==
m
eDragHdl
);
if
(
pHdl
&&
(
pHdl
->
GetKind
()
==
HDL_SMARTTAG
)
&&
pForcedMeth
)
if
(
pHdl
&&
(
pHdl
->
GetKind
()
==
HDL_SMARTTAG
)
&&
pForcedMeth
)
{
{
// just use the forced method for smart tags
// just use the forced method for smart tags
}
}
else
if
(
bDragHdl
)
else
if
(
m
bDragHdl
)
{
{
mpCurrentSdrDragMethod
=
new
SdrDragMovHdl
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMovHdl
(
*
this
);
}
}
...
@@ -270,7 +270,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -270,7 +270,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
{
{
case
SDRDRAG_ROTATE
:
case
SDRDRAG_SHEAR
:
case
SDRDRAG_DISTORT
:
case
SDRDRAG_ROTATE
:
case
SDRDRAG_SHEAR
:
case
SDRDRAG_DISTORT
:
{
{
switch
(
eDragHdl
)
switch
(
m
eDragHdl
)
{
{
case
HDL_LEFT
:
case
HDL_RIGHT
:
case
HDL_LEFT
:
case
HDL_RIGHT
:
case
HDL_UPPER
:
case
HDL_LOWER
:
case
HDL_UPPER
:
case
HDL_LOWER
:
...
@@ -305,7 +305,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -305,7 +305,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
}
break
;
}
break
;
default
:
default
:
{
{
if
(
IsMarkedHitMovesAlways
()
&&
eDragHdl
==
HDL_MOVE
)
if
(
IsMarkedHitMovesAlways
()
&&
m
eDragHdl
==
HDL_MOVE
)
{
// HDL_MOVE is true, even if Obj is hit directly
{
// HDL_MOVE is true, even if Obj is hit directly
if
(
!
IsMoveAllowed
())
return
false
;
if
(
!
IsMoveAllowed
())
return
false
;
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
...
@@ -320,7 +320,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -320,7 +320,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
}
break
;
}
break
;
case
SDRDRAG_MIRROR
:
case
SDRDRAG_MIRROR
:
{
{
if
(
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
if
(
m
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
{
{
if
(
!
IsMoveAllowed
())
return
false
;
if
(
!
IsMoveAllowed
())
return
false
;
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
...
@@ -334,7 +334,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -334,7 +334,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
case
SDRDRAG_CROP
:
case
SDRDRAG_CROP
:
{
{
if
(
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
if
(
m
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
{
{
if
(
!
IsMoveAllowed
())
if
(
!
IsMoveAllowed
())
return
false
;
return
false
;
...
@@ -351,7 +351,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -351,7 +351,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
case
SDRDRAG_TRANSPARENCE
:
case
SDRDRAG_TRANSPARENCE
:
{
{
if
(
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
if
(
m
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
{
{
if
(
!
IsMoveAllowed
())
if
(
!
IsMoveAllowed
())
return
false
;
return
false
;
...
@@ -368,7 +368,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -368,7 +368,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
}
}
case
SDRDRAG_GRADIENT
:
case
SDRDRAG_GRADIENT
:
{
{
if
(
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
if
(
m
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
{
{
if
(
!
IsMoveAllowed
())
if
(
!
IsMoveAllowed
())
return
false
;
return
false
;
...
@@ -386,7 +386,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -386,7 +386,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
case
SDRDRAG_CROOK
:
case
SDRDRAG_CROOK
:
{
{
if
(
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
if
(
m
eDragHdl
==
HDL_MOVE
&&
IsMarkedHitMovesAlways
())
{
{
if
(
!
IsMoveAllowed
())
return
false
;
if
(
!
IsMoveAllowed
())
return
false
;
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
...
@@ -401,19 +401,19 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -401,19 +401,19 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
default
:
default
:
{
{
// SDRDRAG_MOVE
// SDRDRAG_MOVE
if
((
eDragHdl
==
HDL_MOVE
)
&&
!
IsMoveAllowed
())
if
((
m
eDragHdl
==
HDL_MOVE
)
&&
!
IsMoveAllowed
())
{
{
return
false
;
return
false
;
}
}
else
if
(
eDragHdl
==
HDL_GLUE
)
else
if
(
m
eDragHdl
==
HDL_GLUE
)
{
{
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
}
}
else
else
{
{
if
(
bFramDrag
)
if
(
m
bFramDrag
)
{
{
if
(
eDragHdl
==
HDL_MOVE
)
if
(
m
eDragHdl
==
HDL_MOVE
)
{
{
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
}
}
...
@@ -441,7 +441,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -441,7 +441,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
}
}
else
else
{
{
if
(
HDL_MOVE
==
eDragHdl
)
if
(
HDL_MOVE
==
m
eDragHdl
)
{
{
const
bool
bCustomShapeSelected
(
1
==
GetMarkedObjectCount
()
&&
GetMarkedObjectByIndex
(
0
)
->
ISA
(
SdrObjCustomShape
));
const
bool
bCustomShapeSelected
(
1
==
GetMarkedObjectCount
()
&&
GetMarkedObjectByIndex
(
0
)
->
ISA
(
SdrObjCustomShape
));
...
@@ -450,7 +450,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -450,7 +450,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
}
}
}
}
else
if
(
HDL_POLY
==
eDragHdl
)
else
if
(
HDL_POLY
==
m
eDragHdl
)
{
{
const
bool
bConnectorSelected
(
1
==
GetMarkedObjectCount
()
&&
GetMarkedObjectByIndex
(
0
)
->
ISA
(
SdrEdgeObj
));
const
bool
bConnectorSelected
(
1
==
GetMarkedObjectCount
()
&&
GetMarkedObjectByIndex
(
0
)
->
ISA
(
SdrEdgeObj
));
...
@@ -471,7 +471,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -471,7 +471,7 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
if
(
!
mpCurrentSdrDragMethod
)
if
(
!
mpCurrentSdrDragMethod
)
{
{
// fallback to DragSpecial if no interaction defined
// fallback to DragSpecial if no interaction defined
bDragSpecial
=
true
;
m
bDragSpecial
=
true
;
mpCurrentSdrDragMethod
=
new
SdrDragObjOwn
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragObjOwn
(
*
this
);
}
}
}
}
...
@@ -495,12 +495,12 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
...
@@ -495,12 +495,12 @@ bool SdrDragView::BegDragObj(const Point& rPnt, OutputDevice* pOut, SdrHdl* pHdl
// Obj may not Move SpecialDrag, so try with MoveFrameDrag
// Obj may not Move SpecialDrag, so try with MoveFrameDrag
delete
mpCurrentSdrDragMethod
;
delete
mpCurrentSdrDragMethod
;
mpCurrentSdrDragMethod
=
0
;
mpCurrentSdrDragMethod
=
0
;
bDragSpecial
=
false
;
m
bDragSpecial
=
false
;
if
(
!
IsMoveAllowed
())
if
(
!
IsMoveAllowed
())
return
false
;
return
false
;
bFramDrag
=
true
;
m
bFramDrag
=
true
;
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
mpCurrentSdrDragMethod
=
new
SdrDragMove
(
*
this
);
aDragStat
.
SetDragMethod
(
mpCurrentSdrDragMethod
);
aDragStat
.
SetDragMethod
(
mpCurrentSdrDragMethod
);
bRet
=
mpCurrentSdrDragMethod
->
BeginSdrDrag
();
bRet
=
mpCurrentSdrDragMethod
->
BeginSdrDrag
();
...
@@ -545,8 +545,8 @@ bool SdrDragView::EndDragObj(bool bCopy)
...
@@ -545,8 +545,8 @@ bool SdrDragView::EndDragObj(bool bCopy)
const
bool
bUndo
=
IsUndoEnabled
();
const
bool
bUndo
=
IsUndoEnabled
();
if
(
IsInsertGluePoint
()
&&
bUndo
)
if
(
IsInsertGluePoint
()
&&
bUndo
)
{
{
BegUndo
(
aInsPointUndoStr
);
BegUndo
(
m
aInsPointUndoStr
);
AddUndo
(
pInsPointUndo
);
AddUndo
(
m
pInsPointUndo
);
}
}
bRet
=
mpCurrentSdrDragMethod
->
EndSdrDrag
(
bCopy
);
bRet
=
mpCurrentSdrDragMethod
->
EndSdrDrag
(
bCopy
);
...
@@ -571,19 +571,19 @@ bool SdrDragView::EndDragObj(bool bCopy)
...
@@ -571,19 +571,19 @@ bool SdrDragView::EndDragObj(bool bCopy)
bInsPolyPoint
=
false
;
bInsPolyPoint
=
false
;
if
(
bUndo
)
if
(
bUndo
)
{
{
BegUndo
(
aInsPointUndoStr
);
BegUndo
(
m
aInsPointUndoStr
);
AddUndo
(
pInsPointUndo
);
AddUndo
(
m
pInsPointUndo
);
EndUndo
();
EndUndo
();
}
}
}
}
eDragHdl
=
HDL_MOVE
;
m
eDragHdl
=
HDL_MOVE
;
pDragHdl
=
NULL
;
m
pDragHdl
=
NULL
;
if
(
!
bSomeObjChgdFlag
)
if
(
!
bSomeObjChgdFlag
)
{
{
// Obj did not broadcast (e. g. Writer FlyFrames)
// Obj did not broadcast (e. g. Writer FlyFrames)
if
(
!
bDragHdl
)
if
(
!
m
bDragHdl
)
{
{
AdjustMarkHdl
();
AdjustMarkHdl
();
}
}
...
@@ -611,23 +611,23 @@ void SdrDragView::BrkDragObj()
...
@@ -611,23 +611,23 @@ void SdrDragView::BrkDragObj()
if
(
bInsPolyPoint
)
if
(
bInsPolyPoint
)
{
{
pInsPointUndo
->
Undo
();
// delete inserted point again
m
pInsPointUndo
->
Undo
();
// delete inserted point again
delete
pInsPointUndo
;
delete
m
pInsPointUndo
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
SetMarkHandles
();
SetMarkHandles
();
bInsPolyPoint
=
false
;
bInsPolyPoint
=
false
;
}
}
if
(
IsInsertGluePoint
())
if
(
IsInsertGluePoint
())
{
{
pInsPointUndo
->
Undo
();
// delete inserted glue point again
m
pInsPointUndo
->
Undo
();
// delete inserted glue point again
delete
pInsPointUndo
;
delete
m
pInsPointUndo
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
SetInsertGluePoint
(
false
);
SetInsertGluePoint
(
false
);
}
}
eDragHdl
=
HDL_MOVE
;
m
eDragHdl
=
HDL_MOVE
;
pDragHdl
=
NULL
;
m
pDragHdl
=
NULL
;
}
}
}
}
...
@@ -644,12 +644,12 @@ bool SdrDragView::ImpBegInsObjPoint(bool bIdxZwang, sal_uInt32 nIdx, const Point
...
@@ -644,12 +644,12 @@ bool SdrDragView::ImpBegInsObjPoint(bool bIdxZwang, sal_uInt32 nIdx, const Point
{
{
SdrPathObj
*
pMarkedPath
=
static_cast
<
SdrPathObj
*>
(
pMarkedObj
);
SdrPathObj
*
pMarkedPath
=
static_cast
<
SdrPathObj
*>
(
pMarkedObj
);
BrkAction
();
BrkAction
();
pInsPointUndo
=
dynamic_cast
<
SdrUndoGeoObj
*
>
(
GetModel
()
->
GetSdrUndoFactory
().
CreateUndoGeoObject
(
*
pMarkedObj
)
);
m
pInsPointUndo
=
dynamic_cast
<
SdrUndoGeoObj
*
>
(
GetModel
()
->
GetSdrUndoFactory
().
CreateUndoGeoObject
(
*
pMarkedObj
)
);
DBG_ASSERT
(
pInsPointUndo
,
"svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!"
);
DBG_ASSERT
(
m
pInsPointUndo
,
"svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!"
);
OUString
aStr
(
ImpGetResStr
(
STR_DragInsertPoint
));
OUString
aStr
(
ImpGetResStr
(
STR_DragInsertPoint
));
aInsPointUndoStr
=
aStr
.
replaceFirst
(
"%1"
,
pMarkedObj
->
TakeObjNameSingul
()
);
m
aInsPointUndoStr
=
aStr
.
replaceFirst
(
"%1"
,
pMarkedObj
->
TakeObjNameSingul
()
);
Point
aPt
(
rPnt
);
Point
aPt
(
rPnt
);
...
@@ -691,8 +691,8 @@ bool SdrDragView::ImpBegInsObjPoint(bool bIdxZwang, sal_uInt32 nIdx, const Point
...
@@ -691,8 +691,8 @@ bool SdrDragView::ImpBegInsObjPoint(bool bIdxZwang, sal_uInt32 nIdx, const Point
}
}
else
else
{
{
delete
pInsPointUndo
;
delete
m
pInsPointUndo
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
}
}
}
}
...
@@ -747,11 +747,11 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
...
@@ -747,11 +747,11 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
{
{
BrkAction
();
BrkAction
();
UnmarkAllGluePoints
();
UnmarkAllGluePoints
();
pInsPointUndo
=
dynamic_cast
<
SdrUndoGeoObj
*
>
(
GetModel
()
->
GetSdrUndoFactory
().
CreateUndoGeoObject
(
*
pObj
)
);
m
pInsPointUndo
=
dynamic_cast
<
SdrUndoGeoObj
*
>
(
GetModel
()
->
GetSdrUndoFactory
().
CreateUndoGeoObject
(
*
pObj
)
);
DBG_ASSERT
(
pInsPointUndo
,
"svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!"
);
DBG_ASSERT
(
m
pInsPointUndo
,
"svx::SdrDragView::BegInsObjPoint(), could not create correct undo object!"
);
OUString
aStr
(
ImpGetResStr
(
STR_DragInsertGluePoint
));
OUString
aStr
(
ImpGetResStr
(
STR_DragInsertGluePoint
));
aInsPointUndoStr
=
aStr
.
replaceFirst
(
"%1"
,
pObj
->
TakeObjNameSingul
()
);
m
aInsPointUndoStr
=
aStr
.
replaceFirst
(
"%1"
,
pObj
->
TakeObjNameSingul
()
);
SdrGluePointList
*
pGPL
=
pObj
->
ForceGluePointList
();
SdrGluePointList
*
pGPL
=
pObj
->
ForceGluePointList
();
if
(
pGPL
!=
NULL
)
if
(
pGPL
!=
NULL
)
...
@@ -778,8 +778,8 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
...
@@ -778,8 +778,8 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
else
else
{
{
SetInsertGluePoint
(
false
);
SetInsertGluePoint
(
false
);
delete
pInsPointUndo
;
delete
m
pInsPointUndo
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
}
}
}
}
else
else
...
@@ -791,8 +791,8 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
...
@@ -791,8 +791,8 @@ bool SdrDragView::BegInsGluePoint(const Point& rPnt)
{
{
// no glue points possible for this object (e. g. Edge)
// no glue points possible for this object (e. g. Edge)
SetInsertGluePoint
(
false
);
SetInsertGluePoint
(
false
);
delete
pInsPointUndo
;
delete
m
pInsPointUndo
;
pInsPointUndo
=
NULL
;
m
pInsPointUndo
=
NULL
;
}
}
}
}
...
@@ -844,7 +844,7 @@ void SdrDragView::SetNoDragXorPolys(bool bOn)
...
@@ -844,7 +844,7 @@ void SdrDragView::SetNoDragXorPolys(bool bOn)
HideDragObj
();
HideDragObj
();
}
}
bNoDragXorPolys
=
bOn
;
m
bNoDragXorPolys
=
bOn
;
if
(
bDragging
)
if
(
bDragging
)
{
{
...
@@ -864,12 +864,12 @@ void SdrDragView::SetDragStripes(bool bOn)
...
@@ -864,12 +864,12 @@ void SdrDragView::SetDragStripes(bool bOn)
if
(
mpCurrentSdrDragMethod
&&
aDragStat
.
IsShown
())
if
(
mpCurrentSdrDragMethod
&&
aDragStat
.
IsShown
())
{
{
HideDragObj
();
HideDragObj
();
bDragStripes
=
bOn
;
m
bDragStripes
=
bOn
;
ShowDragObj
();
ShowDragObj
();
}
}
else
else
{
{
bDragStripes
=
bOn
;
m
bDragStripes
=
bOn
;
}
}
}
}
...
@@ -885,8 +885,8 @@ bool SdrDragView::IsOrthoDesired() const
...
@@ -885,8 +885,8 @@ bool SdrDragView::IsOrthoDesired() const
void
SdrDragView
::
SetMarkHandles
()
void
SdrDragView
::
SetMarkHandles
()
{
{
if
(
pDragHdl
)
if
(
m
pDragHdl
)
pDragHdl
=
0
;
m
pDragHdl
=
0
;
SdrExchangeView
::
SetMarkHandles
();
SdrExchangeView
::
SetMarkHandles
();
}
}
...
...
svx/source/svdraw/svdview.cxx
Dosyayı görüntüle @
676a7e99
...
@@ -1067,7 +1067,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
...
@@ -1067,7 +1067,7 @@ Pointer SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDevice*
bool
bCorner
=
pHdl
!=
NULL
&&
pHdl
->
IsCornerHdl
();
bool
bCorner
=
pHdl
!=
NULL
&&
pHdl
->
IsCornerHdl
();
bool
bVertex
=
pHdl
!=
NULL
&&
pHdl
->
IsVertexHdl
();
bool
bVertex
=
pHdl
!=
NULL
&&
pHdl
->
IsVertexHdl
();
bool
bMov
=
eHdl
==
HDL_MOVE
;
bool
bMov
=
eHdl
==
HDL_MOVE
;
if
(
bMov
&&
(
eDragMode
==
SDRDRAG_MOVE
||
eDragMode
==
SDRDRAG_RESIZE
||
bMarkedHitMovesAlways
))
{
if
(
bMov
&&
(
eDragMode
==
SDRDRAG_MOVE
||
eDragMode
==
SDRDRAG_RESIZE
||
m
bMarkedHitMovesAlways
))
{
if
(
!
IsMoveAllowed
())
return
Pointer
(
PointerStyle
::
Arrow
);
// because double click or drag & drop is possible
if
(
!
IsMoveAllowed
())
return
Pointer
(
PointerStyle
::
Arrow
);
// because double click or drag & drop is possible
return
Pointer
(
PointerStyle
::
Move
);
return
Pointer
(
PointerStyle
::
Move
);
}
}
...
@@ -1189,7 +1189,7 @@ OUString SdrView::GetStatusText()
...
@@ -1189,7 +1189,7 @@ OUString SdrView::GetStatusText()
{
{
if
(
bInsPolyPoint
||
IsInsertGluePoint
())
if
(
bInsPolyPoint
||
IsInsertGluePoint
())
{
{
aStr
=
aInsPointUndoStr
;
aStr
=
m
aInsPointUndoStr
;
}
}
else
else
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment