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
45ba5f2f
Kaydet (Commit)
45ba5f2f
authored
Nis 24, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert IMPSDR_ constants to scoped enum
Change-Id: Id267196397e2aa743d75f03932b3301ad462d800
üst
11bce321
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
svdmrkv.hxx
include/svx/svdmrkv.hxx
+8
-4
svddrgmt.cxx
svx/source/svdraw/svddrgmt.cxx
+3
-3
svdmrkv.cxx
svx/source/svdraw/svdmrkv.cxx
+3
-3
svdview.cxx
svx/source/svdraw/svdview.cxx
+2
-2
No files found.
include/svx/svdmrkv.hxx
Dosyayı görüntüle @
45ba5f2f
...
@@ -83,9 +83,13 @@ enum SdrViewEditMode {SDREDITMODE_EDIT, // Also known as arrow or poin
...
@@ -83,9 +83,13 @@ enum SdrViewEditMode {SDREDITMODE_EDIT, // Also known as arrow or poin
SDREDITMODE_CREATE
,
// Tool for object creation
SDREDITMODE_CREATE
,
// Tool for object creation
SDREDITMODE_GLUEPOINTEDIT
};
// Glue point editing mode
SDREDITMODE_GLUEPOINTEDIT
};
// Glue point editing mode
#define IMPSDR_POINTSDESCRIPTION 0x0001
/** options for ImpTakeDescriptionStr() */
#define IMPSDR_GLUEPOINTSDESCRIPTION 0x0002
enum
class
ImpTakeDescriptionOptions
{
NONE
=
0
,
POINTS
=
1
,
GLUEPOINTS
=
2
,
};
class
ImplMarkingOverlay
;
class
ImplMarkingOverlay
;
...
@@ -161,7 +165,7 @@ protected:
...
@@ -161,7 +165,7 @@ protected:
SdrObject
*
CheckSingleSdrObjectHit
(
const
Point
&
rPnt
,
sal_uInt16
nTol
,
SdrObjList
*
pOL
,
SdrPageView
*
pPV
,
SdrSearchOptions
nOptions
,
const
SetOfByte
*
pMVisLay
,
SdrObject
*&
rpRootObj
)
const
;
SdrObject
*
CheckSingleSdrObjectHit
(
const
Point
&
rPnt
,
sal_uInt16
nTol
,
SdrObjList
*
pOL
,
SdrPageView
*
pPV
,
SdrSearchOptions
nOptions
,
const
SetOfByte
*
pMVisLay
,
SdrObject
*&
rpRootObj
)
const
;
SdrObject
*
CheckSingleSdrObjectHit
(
const
Point
&
rPnt
,
sal_uInt16
nTol
,
SdrObjList
*
pOL
,
SdrPageView
*
pPV
,
SdrSearchOptions
nOptions
,
const
SetOfByte
*
pMVisLay
,
SdrObject
*&
rpRootObj
,
const
SdrMarkList
*
pMarkList
)
const
;
SdrObject
*
CheckSingleSdrObjectHit
(
const
Point
&
rPnt
,
sal_uInt16
nTol
,
SdrObjList
*
pOL
,
SdrPageView
*
pPV
,
SdrSearchOptions
nOptions
,
const
SetOfByte
*
pMVisLay
,
SdrObject
*&
rpRootObj
,
const
SdrMarkList
*
pMarkList
)
const
;
bool
ImpIsFrameHandles
()
const
;
bool
ImpIsFrameHandles
()
const
;
void
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
=
0
,
sal_uInt16
nOpt
=
0
)
const
;
void
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
=
0
,
ImpTakeDescriptionOptions
nOpt
=
ImpTakeDescriptionOptions
::
NONE
)
const
;
// Generates a string including degrees symbol, from an angel specification in 1/100deg
// Generates a string including degrees symbol, from an angel specification in 1/100deg
bool
ImpMarkPoint
(
SdrHdl
*
pHdl
,
SdrMark
*
pMark
,
bool
bUnmark
);
bool
ImpMarkPoint
(
SdrHdl
*
pHdl
,
SdrMark
*
pMark
,
bool
bUnmark
);
...
...
svx/source/svdraw/svddrgmt.cxx
Dosyayı görüntüle @
45ba5f2f
...
@@ -563,11 +563,11 @@ void SdrDragMethod::createSdrDragEntries_GlueDrag()
...
@@ -563,11 +563,11 @@ void SdrDragMethod::createSdrDragEntries_GlueDrag()
void
SdrDragMethod
::
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
)
const
void
SdrDragMethod
::
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
)
const
{
{
sal_uInt16
nOpt
=
0
;
ImpTakeDescriptionOptions
nOpt
=
ImpTakeDescriptionOptions
::
NONE
;
if
(
IsDraggingPoints
())
{
if
(
IsDraggingPoints
())
{
nOpt
=
I
MPSDR_POINTSDESCRIPTION
;
nOpt
=
I
mpTakeDescriptionOptions
::
POINTS
;
}
else
if
(
IsDraggingGluePoints
())
{
}
else
if
(
IsDraggingGluePoints
())
{
nOpt
=
I
MPSDR_GLUEPOINTSDESCRIPTION
;
nOpt
=
I
mpTakeDescriptionOptions
::
GLUEPOINTS
;
}
}
getSdrDragView
().
ImpTakeDescriptionStr
(
nStrCacheID
,
rStr
,
nVal
,
nOpt
);
getSdrDragView
().
ImpTakeDescriptionStr
(
nStrCacheID
,
rStr
,
nVal
,
nOpt
);
}
}
...
...
svx/source/svdraw/svdmrkv.cxx
Dosyayı görüntüle @
45ba5f2f
...
@@ -2023,18 +2023,18 @@ const Rectangle& SdrMarkView::GetMarkedObjRect() const
...
@@ -2023,18 +2023,18 @@ const Rectangle& SdrMarkView::GetMarkedObjRect() const
void
SdrMarkView
::
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
,
sal_uInt16
nOpt
)
const
void
SdrMarkView
::
ImpTakeDescriptionStr
(
sal_uInt16
nStrCacheID
,
OUString
&
rStr
,
sal_uInt16
nVal
,
ImpTakeDescriptionOptions
nOpt
)
const
{
{
rStr
=
ImpGetResStr
(
nStrCacheID
);
rStr
=
ImpGetResStr
(
nStrCacheID
);
sal_Int32
nPos
=
rStr
.
indexOf
(
"%1"
);
sal_Int32
nPos
=
rStr
.
indexOf
(
"%1"
);
if
(
nPos
!=
-
1
)
if
(
nPos
!=
-
1
)
{
{
if
(
nOpt
==
I
MPSDR_POINTSDESCRIPTION
)
if
(
nOpt
==
I
mpTakeDescriptionOptions
::
POINTS
)
{
{
rStr
=
rStr
.
replaceAt
(
nPos
,
2
,
GetDescriptionOfMarkedPoints
());
rStr
=
rStr
.
replaceAt
(
nPos
,
2
,
GetDescriptionOfMarkedPoints
());
}
}
else
if
(
nOpt
==
I
MPSDR_GLUEPOINTSDESCRIPTION
)
else
if
(
nOpt
==
I
mpTakeDescriptionOptions
::
GLUEPOINTS
)
{
{
rStr
=
rStr
.
replaceAt
(
nPos
,
2
,
GetDescriptionOfMarkedGluePoints
());
rStr
=
rStr
.
replaceAt
(
nPos
,
2
,
GetDescriptionOfMarkedGluePoints
());
}
}
...
...
svx/source/svdraw/svdview.cxx
Dosyayı görüntüle @
45ba5f2f
...
@@ -1282,11 +1282,11 @@ OUString SdrView::GetStatusText()
...
@@ -1282,11 +1282,11 @@ OUString SdrView::GetStatusText()
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
);
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
);
if
(
IsGluePointEditMode
())
{
if
(
IsGluePointEditMode
())
{
if
(
HasMarkedGluePoints
())
{
if
(
HasMarkedGluePoints
())
{
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
,
0
,
I
MPSDR_GLUEPOINTSDESCRIPTION
);
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
,
0
,
I
mpTakeDescriptionOptions
::
GLUEPOINTS
);
}
}
}
else
{
}
else
{
if
(
HasMarkedPoints
())
{
if
(
HasMarkedPoints
())
{
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
,
0
,
I
MPSDR_POINTSDESCRIPTION
);
ImpTakeDescriptionStr
(
STR_ViewMarked
,
aStr
,
0
,
I
mpTakeDescriptionOptions
::
POINTS
);
}
}
}
}
}
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