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
48c3b33d
Kaydet (Commit)
48c3b33d
authored
Agu 18, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SdrCrookMode to scoped enum
Change-Id: If7c62d6c6f5bfa5f4f4f7bdb1af9384f3fa7cea8
üst
eba160af
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
29 deletions
+29
-29
svdsnpv.hxx
include/svx/svdsnpv.hxx
+6
-6
fusel.cxx
sd/source/ui/func/fusel.cxx
+3
-3
svddrgmt.cxx
svx/source/svdraw/svddrgmt.cxx
+9
-9
svdedtv1.cxx
svx/source/svdraw/svdedtv1.cxx
+10
-10
svdsnpv.cxx
svx/source/svdraw/svdsnpv.cxx
+1
-1
No files found.
include/svx/svdsnpv.hxx
Dosyayı görüntüle @
48c3b33d
...
...
@@ -79,11 +79,11 @@ namespace o3tl
template
<>
struct
typed_flags
<
SdrSnap
>
:
is_typed_flags
<
SdrSnap
,
3
>
{};
}
// S
DRCROOK_STRETCH
is not implemented yet!
enum
SdrCrookMode
{
SDRCROOK_ROTATE
,
S
DRCROOK_SLANT
,
S
DRCROOK_STRETCH
// S
drCrookMode::Stretch
is not implemented yet!
enum
class
SdrCrookMode
{
Rotate
,
S
lant
,
S
tretch
};
...
...
@@ -269,7 +269,7 @@ public:
void
SetCrookNoContortion
(
bool
bOn
)
{
bCrookNoContortion
=
bOn
;
}
bool
IsCrookNoContortion
()
const
{
return
bCrookNoContortion
;
}
// Crook-Mode. persistent. Default=S
DRCROOK_ROTATE
. (ni)
// Crook-Mode. persistent. Default=S
drCrookMode::Rotate
. (ni)
void
SetCrookMode
(
SdrCrookMode
eMode
)
{
eCrookMode
=
eMode
;
}
SdrCrookMode
GetCrookMode
()
const
{
return
eCrookMode
;
}
...
...
sd/source/ui/func/fusel.cxx
Dosyayı görüntüle @
48c3b33d
...
...
@@ -1078,7 +1078,7 @@ void FuSelection::Activate()
if
(
mpView
->
GetDragMode
()
!=
eMode
)
{
mpView
->
SetDragMode
(
eMode
);
mpView
->
SetCrookMode
(
S
DRCROOK_ROTATE
);
mpView
->
SetCrookMode
(
S
drCrookMode
::
Rotate
);
}
}
break
;
...
...
@@ -1090,7 +1090,7 @@ void FuSelection::Activate()
if
(
mpView
->
GetDragMode
()
!=
eMode
)
{
mpView
->
SetDragMode
(
eMode
);
mpView
->
SetCrookMode
(
S
DRCROOK_SLANT
);
mpView
->
SetCrookMode
(
S
drCrookMode
::
Slant
);
}
}
break
;
...
...
@@ -1102,7 +1102,7 @@ void FuSelection::Activate()
if
(
mpView
->
GetDragMode
()
!=
eMode
)
{
mpView
->
SetDragMode
(
eMode
);
mpView
->
SetCrookMode
(
S
DRCROOK_STRETCH
);
mpView
->
SetCrookMode
(
S
drCrookMode
::
Stretch
);
}
}
break
;
...
...
svx/source/svdraw/svddrgmt.cxx
Dosyayı görüntüle @
48c3b33d
...
...
@@ -2793,7 +2793,7 @@ SdrDragCrook::SdrDragCrook(SdrDragView& rNewView)
bAtCenter
(
false
),
nAngle
(
0
),
nMarkSize
(
0
),
eMode
(
S
DRCROOK_ROTATE
)
eMode
(
S
drCrookMode
::
Rotate
)
{
}
...
...
@@ -2994,9 +2994,9 @@ void SdrDragCrook::MovAllPoints(basegfx::B2DPolyPolygon& rTarget)
switch
(
eMode
)
{
case
S
DRCROOK_ROTATE
:
CrookRotateXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
DRCROOK_SLANT
:
CrookSlantXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
DRCROOK_STRETCH
:
CrookStretchXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
,
aMarkRect
);
break
;
case
S
drCrookMode
:
:
Rotate
:
CrookRotateXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Slant
:
CrookSlantXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Stretch
:
CrookStretchXPoint
(
aCtr1
,
nullptr
,
nullptr
,
aC
,
aRad
,
nSin
,
nCos
,
bVertical
,
aMarkRect
);
break
;
}
// switch
}
...
...
@@ -3095,9 +3095,9 @@ void SdrDragCrook::MovCrookPoint(Point& rPnt, Point* pC1, Point* pC2)
switch
(
eMode
)
{
case
S
DRCROOK_ROTATE
:
CrookRotateXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
);
break
;
case
S
DRCROOK_SLANT
:
CrookSlantXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
);
break
;
case
S
DRCROOK_STRETCH
:
CrookStretchXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
,
aMarkRect
);
break
;
case
S
drCrookMode
:
:
Rotate
:
CrookRotateXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
);
break
;
case
S
drCrookMode
:
:
Slant
:
CrookSlantXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
);
break
;
case
S
drCrookMode
:
:
Stretch
:
CrookStretchXPoint
(
rPnt
,
pC1
,
pC2
,
aC
,
aRad
,
nSin
,
nCos
,
bVert
,
aMarkRect
);
break
;
}
// switch
}
}
...
...
@@ -3111,7 +3111,7 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt)
SdrCrookMode
eNeuMode
=
getSdrDragView
().
GetCrookMode
();
bool
bNeuContortion
=!
bNeuMoveOnly
&&
((
bContortionAllowed
&&
!
getSdrDragView
().
IsCrookNoContortion
())
||
!
bNoContortionAllowed
);
bResize
=!
getSdrDragView
().
IsOrtho
()
&&
bResizeAllowed
&&
!
bNeuMoveOnly
;
bool
bNeuRotate
=
bRotateAllowed
&&
!
bNeuContortion
&&
!
bNeuMoveOnly
&&
eNeuMode
==
S
DRCROOK_ROTATE
;
bool
bNeuRotate
=
bRotateAllowed
&&
!
bNeuContortion
&&
!
bNeuMoveOnly
&&
eNeuMode
==
S
drCrookMode
::
Rotate
;
Point
aPnt
(
GetSnapPos
(
rPnt
));
...
...
@@ -3310,7 +3310,7 @@ void SdrDragCrook::applyCurrentTransformationToSdrObject(SdrObject& rTarget)
if
(
bDoCrook
)
{
const
Rectangle
aLocalMarkRect
(
getSdrDragView
().
GetMarkedObjRect
());
const
bool
bLocalRotate
(
!
bContortion
&&
eMode
==
S
DRCROOK_ROTATE
&&
getSdrDragView
().
IsRotateAllowed
());
const
bool
bLocalRotate
(
!
bContortion
&&
eMode
==
S
drCrookMode
::
Rotate
&&
getSdrDragView
().
IsRotateAllowed
());
SdrEditView
::
ImpCrookObj
(
&
rTarget
,
aCenter
,
aRad
,
eMode
,
bVertical
,
!
bContortion
,
bLocalRotate
,
aLocalMarkRect
);
}
...
...
svx/source/svdraw/svdedtv1.cxx
Dosyayı görüntüle @
48c3b33d
...
...
@@ -509,9 +509,9 @@ void SdrEditView::ImpCrookObj(SdrObject* pO, const Point& rRef, const Point& rRa
{
XPolyPolygon
aXPP
(
pPath
->
GetPathPoly
());
switch
(
eMode
)
{
case
S
DRCROOK_ROTATE
:
CrookRotatePoly
(
aXPP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
DRCROOK_SLANT
:
CrookSlantPoly
(
aXPP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
DRCROOK_STRETCH
:
CrookStretchPoly
(
aXPP
,
rRef
,
rRad
,
bVertical
,
rMarkRect
);
break
;
case
S
drCrookMode
:
:
Rotate
:
CrookRotatePoly
(
aXPP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Slant
:
CrookSlantPoly
(
aXPP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Stretch
:
CrookStretchPoly
(
aXPP
,
rRef
,
rRad
,
bVertical
,
rMarkRect
);
break
;
}
// switch
pPath
->
SetPathPoly
(
aXPP
.
getB2DPolyPolygon
());
bDone
=
true
;
...
...
@@ -532,9 +532,9 @@ void SdrEditView::ImpCrookObj(SdrObject* pO, const Point& rRef, const Point& rRa
switch
(
eMode
)
{
case
S
DRCROOK_ROTATE
:
CrookRotatePoly
(
aXP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
DRCROOK_SLANT
:
CrookSlantPoly
(
aXP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
DRCROOK_STRETCH
:
CrookStretchPoly
(
aXP
,
rRef
,
rRad
,
bVertical
,
rMarkRect
);
break
;
case
S
drCrookMode
:
:
Rotate
:
CrookRotatePoly
(
aXP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Slant
:
CrookSlantPoly
(
aXP
,
rRef
,
rRad
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Stretch
:
CrookStretchPoly
(
aXP
,
rRef
,
rRad
,
bVertical
,
rMarkRect
);
break
;
}
for
(
nPtNum
=
0L
;
nPtNum
<
nPointCount
;
nPtNum
++
)
...
...
@@ -562,9 +562,9 @@ void SdrEditView::ImpCrookObj(SdrObject* pO, const Point& rRef, const Point& rRa
switch
(
eMode
)
{
case
S
DRCROOK_ROTATE
:
nAngle
=
CrookRotateXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
);
bRotOk
=
bRotate
;
break
;
case
S
DRCROOK_SLANT
:
nAngle
=
CrookSlantXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
DRCROOK_STRETCH
:
nAngle
=
CrookStretchXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
,
rMarkRect
);
break
;
case
S
drCrookMode
:
:
Rotate
:
nAngle
=
CrookRotateXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
);
bRotOk
=
bRotate
;
break
;
case
S
drCrookMode
:
:
Slant
:
nAngle
=
CrookSlantXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
);
break
;
case
S
drCrookMode
:
:
Stretch
:
nAngle
=
CrookStretchXPoint
(
aCtr1
,
nullptr
,
nullptr
,
rRef
,
rRad
,
nSin
,
nCos
,
bVertical
,
rMarkRect
);
break
;
}
}
...
...
@@ -583,7 +583,7 @@ void SdrEditView::CrookMarkedObj(const Point& rRef, const Point& rRad, SdrCrookM
Rectangle
aMarkRect
(
GetMarkedObjRect
());
const
bool
bUndo
=
IsUndoEnabled
();
bool
bRotate
=
bNoContortion
&&
eMode
==
S
DRCROOK_ROTATE
&&
IsRotateAllowed
();
bool
bRotate
=
bNoContortion
&&
eMode
==
S
drCrookMode
::
Rotate
&&
IsRotateAllowed
();
if
(
bUndo
)
{
...
...
svx/source/svdraw/svdsnpv.cxx
Dosyayı görüntüle @
48c3b33d
...
...
@@ -181,7 +181,7 @@ SdrSnapView::SdrSnapView(SdrModel* pModel1, OutputDevice* pOut)
,
nMagnSizPix
(
4
)
,
nSnapAngle
(
1500
)
,
nEliminatePolyPointLimitAngle
(
0
)
,
eCrookMode
(
S
DRCROOK_ROTATE
)
,
eCrookMode
(
S
drCrookMode
::
Rotate
)
,
bSnapEnab
(
true
)
,
bGridSnap
(
true
)
,
bBordSnap
(
true
)
...
...
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