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
fdaa46f0
Kaydet (Commit)
fdaa46f0
authored
Agu 24, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SvxDistributeHorizontal to scoped enum
Change-Id: I7f3592ac8ef90686954624f37394a6e8f047ca44
üst
b8d03c61
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
dlgfact.cxx
cui/source/factory/dlgfact.cxx
+1
-1
dstribut.hxx
cui/source/inc/dstribut.hxx
+2
-2
dstribut.cxx
cui/source/tabpages/dstribut.cxx
+10
-10
dstribut_enum.hxx
include/svx/dstribut_enum.hxx
+6
-6
svdedtv2.cxx
svx/source/svdraw/svdedtv2.cxx
+6
-6
No files found.
cui/source/factory/dlgfact.cxx
Dosyayı görüntüle @
fdaa46f0
...
@@ -929,7 +929,7 @@ AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog(
...
@@ -929,7 +929,7 @@ AbstractSvxCaptionDialog* AbstractDialogFactory_Impl::CreateCaptionDialog(
AbstractSvxDistributeDialog
*
AbstractDialogFactory_Impl
::
CreateSvxDistributeDialog
(
const
SfxItemSet
&
rAttr
)
AbstractSvxDistributeDialog
*
AbstractDialogFactory_Impl
::
CreateSvxDistributeDialog
(
const
SfxItemSet
&
rAttr
)
{
{
VclPtrInstance
<
SvxDistributeDialog
>
pDlg
(
nullptr
,
rAttr
,
SvxDistributeHorizontal
None
,
SvxDistributeVertical
::
NONE
);
VclPtrInstance
<
SvxDistributeDialog
>
pDlg
(
nullptr
,
rAttr
,
SvxDistributeHorizontal
::
NONE
,
SvxDistributeVertical
::
NONE
);
return
new
AbstractSvxDistributeDialog_Impl
(
pDlg
);
return
new
AbstractSvxDistributeDialog_Impl
(
pDlg
);
}
}
...
...
cui/source/inc/dstribut.hxx
Dosyayı görüntüle @
fdaa46f0
...
@@ -42,7 +42,7 @@ class SvxDistributePage : public SvxTabPage
...
@@ -42,7 +42,7 @@ class SvxDistributePage : public SvxTabPage
public
:
public
:
SvxDistributePage
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rInAttrs
,
SvxDistributePage
(
vcl
::
Window
*
pWindow
,
const
SfxItemSet
&
rInAttrs
,
SvxDistributeHorizontal
eHor
=
SvxDistributeHorizontal
None
,
SvxDistributeHorizontal
eHor
=
SvxDistributeHorizontal
::
NONE
,
SvxDistributeVertical
eVer
=
SvxDistributeVertical
::
NONE
);
SvxDistributeVertical
eVer
=
SvxDistributeVertical
::
NONE
);
virtual
~
SvxDistributePage
();
virtual
~
SvxDistributePage
();
virtual
void
dispose
()
override
;
virtual
void
dispose
()
override
;
...
@@ -61,7 +61,7 @@ class SvxDistributeDialog : public SfxSingleTabDialog
...
@@ -61,7 +61,7 @@ class SvxDistributeDialog : public SfxSingleTabDialog
public
:
public
:
SvxDistributeDialog
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rAttr
,
SvxDistributeDialog
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rAttr
,
SvxDistributeHorizontal
eHor
=
SvxDistributeHorizontal
None
,
SvxDistributeHorizontal
eHor
=
SvxDistributeHorizontal
::
NONE
,
SvxDistributeVertical
eVer
=
SvxDistributeVertical
::
NONE
);
SvxDistributeVertical
eVer
=
SvxDistributeVertical
::
NONE
);
virtual
~
SvxDistributeDialog
();
virtual
~
SvxDistributeDialog
();
virtual
void
dispose
()
override
;
virtual
void
dispose
()
override
;
...
...
cui/source/tabpages/dstribut.cxx
Dosyayı görüntüle @
fdaa46f0
...
@@ -120,11 +120,11 @@ void SvxDistributePage::Reset(const SfxItemSet* )
...
@@ -120,11 +120,11 @@ void SvxDistributePage::Reset(const SfxItemSet* )
switch
(
m_eDistributeHor
)
switch
(
m_eDistributeHor
)
{
{
case
SvxDistributeHorizontal
None
:
m_pBtnHorNone
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontal
:
:
NONE
:
m_pBtnHorNone
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontalLeft
:
m_pBtnHorLeft
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontal
:
:
Left
:
m_pBtnHorLeft
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontalCenter
:
m_pBtnHorCenter
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontal
:
:
Center
:
m_pBtnHorCenter
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontalDistance
:
m_pBtnHorDistance
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontal
:
:
Distance
:
m_pBtnHorDistance
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontalRight
:
m_pBtnHorRight
->
SetState
(
true
);
break
;
case
SvxDistributeHorizontal
:
:
Right
:
m_pBtnHorRight
->
SetState
(
true
);
break
;
}
}
m_pBtnVerNone
->
SetState
(
false
);
m_pBtnVerNone
->
SetState
(
false
);
...
@@ -151,17 +151,17 @@ void SvxDistributePage::Reset(const SfxItemSet* )
...
@@ -151,17 +151,17 @@ void SvxDistributePage::Reset(const SfxItemSet* )
bool
SvxDistributePage
::
FillItemSet
(
SfxItemSet
*
)
bool
SvxDistributePage
::
FillItemSet
(
SfxItemSet
*
)
{
{
SvxDistributeHorizontal
eDistributeHor
(
SvxDistributeHorizontal
None
);
SvxDistributeHorizontal
eDistributeHor
(
SvxDistributeHorizontal
::
NONE
);
SvxDistributeVertical
eDistributeVer
(
SvxDistributeVertical
::
NONE
);
SvxDistributeVertical
eDistributeVer
(
SvxDistributeVertical
::
NONE
);
if
(
m_pBtnHorLeft
->
IsChecked
())
if
(
m_pBtnHorLeft
->
IsChecked
())
eDistributeHor
=
SvxDistributeHorizontalLeft
;
eDistributeHor
=
SvxDistributeHorizontal
::
Left
;
else
if
(
m_pBtnHorCenter
->
IsChecked
())
else
if
(
m_pBtnHorCenter
->
IsChecked
())
eDistributeHor
=
SvxDistributeHorizontalCenter
;
eDistributeHor
=
SvxDistributeHorizontal
::
Center
;
else
if
(
m_pBtnHorDistance
->
IsChecked
())
else
if
(
m_pBtnHorDistance
->
IsChecked
())
eDistributeHor
=
SvxDistributeHorizontalDistance
;
eDistributeHor
=
SvxDistributeHorizontal
::
Distance
;
else
if
(
m_pBtnHorRight
->
IsChecked
())
else
if
(
m_pBtnHorRight
->
IsChecked
())
eDistributeHor
=
SvxDistributeHorizontalRight
;
eDistributeHor
=
SvxDistributeHorizontal
::
Right
;
if
(
m_pBtnVerTop
->
IsChecked
())
if
(
m_pBtnVerTop
->
IsChecked
())
eDistributeVer
=
SvxDistributeVertical
::
Top
;
eDistributeVer
=
SvxDistributeVertical
::
Top
;
...
...
include/svx/dstribut_enum.hxx
Dosyayı görüntüle @
fdaa46f0
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
#ifndef INCLUDED_SVX_DSTRIBUT_ENUM_HXX
#ifndef INCLUDED_SVX_DSTRIBUT_ENUM_HXX
#define INCLUDED_SVX_DSTRIBUT_ENUM_HXX
#define INCLUDED_SVX_DSTRIBUT_ENUM_HXX
enum
SvxDistributeHorizontal
enum
class
SvxDistributeHorizontal
{
{
SvxDistributeHorizontalNone
=
0
,
NONE
=
0
,
SvxDistributeHorizontal
Left
,
Left
,
SvxDistributeHorizontal
Center
,
Center
,
SvxDistributeHorizontal
Distance
,
Distance
,
SvxDistributeHorizontal
Right
Right
};
};
enum
class
SvxDistributeVertical
enum
class
SvxDistributeVertical
...
...
svx/source/svdraw/svdedtv2.cxx
Dosyayı görüntüle @
fdaa46f0
...
@@ -788,7 +788,7 @@ void SdrEditView::DistributeMarkedObjects()
...
@@ -788,7 +788,7 @@ void SdrEditView::DistributeMarkedObjects()
if
(
bUndo
)
if
(
bUndo
)
BegUndo
();
BegUndo
();
if
(
eHor
!=
SvxDistributeHorizontal
None
)
if
(
eHor
!=
SvxDistributeHorizontal
::
NONE
)
{
{
// build sorted entry list
// build sorted entry list
nFullLength
=
0L
;
nFullLength
=
0L
;
...
@@ -802,24 +802,24 @@ void SdrEditView::DistributeMarkedObjects()
...
@@ -802,24 +802,24 @@ void SdrEditView::DistributeMarkedObjects()
switch
(
eHor
)
switch
(
eHor
)
{
{
case
SvxDistributeHorizontalLeft
:
case
SvxDistributeHorizontal
:
:
Left
:
{
{
pNew
->
mnPos
=
pNew
->
mpObj
->
GetSnapRect
().
Left
();
pNew
->
mnPos
=
pNew
->
mpObj
->
GetSnapRect
().
Left
();
break
;
break
;
}
}
case
SvxDistributeHorizontalCenter
:
case
SvxDistributeHorizontal
:
:
Center
:
{
{
pNew
->
mnPos
=
(
pNew
->
mpObj
->
GetSnapRect
().
Right
()
+
pNew
->
mpObj
->
GetSnapRect
().
Left
())
/
2
;
pNew
->
mnPos
=
(
pNew
->
mpObj
->
GetSnapRect
().
Right
()
+
pNew
->
mpObj
->
GetSnapRect
().
Left
())
/
2
;
break
;
break
;
}
}
case
SvxDistributeHorizontalDistance
:
case
SvxDistributeHorizontal
:
:
Distance
:
{
{
pNew
->
mnLength
=
pNew
->
mpObj
->
GetSnapRect
().
GetWidth
()
+
1
;
pNew
->
mnLength
=
pNew
->
mpObj
->
GetSnapRect
().
GetWidth
()
+
1
;
nFullLength
+=
pNew
->
mnLength
;
nFullLength
+=
pNew
->
mnLength
;
pNew
->
mnPos
=
(
pNew
->
mpObj
->
GetSnapRect
().
Right
()
+
pNew
->
mpObj
->
GetSnapRect
().
Left
())
/
2
;
pNew
->
mnPos
=
(
pNew
->
mpObj
->
GetSnapRect
().
Right
()
+
pNew
->
mpObj
->
GetSnapRect
().
Left
())
/
2
;
break
;
break
;
}
}
case
SvxDistributeHorizontalRight
:
case
SvxDistributeHorizontal
:
:
Right
:
{
{
pNew
->
mnPos
=
pNew
->
mpObj
->
GetSnapRect
().
Right
();
pNew
->
mnPos
=
pNew
->
mpObj
->
GetSnapRect
().
Right
();
break
;
break
;
...
@@ -837,7 +837,7 @@ void SdrEditView::DistributeMarkedObjects()
...
@@ -837,7 +837,7 @@ void SdrEditView::DistributeMarkedObjects()
aEntryList
.
push_back
(
pNew
);
aEntryList
.
push_back
(
pNew
);
}
}
if
(
eHor
==
SvxDistributeHorizontalDistance
)
if
(
eHor
==
SvxDistributeHorizontal
::
Distance
)
{
{
// calculate room in-between
// calculate room in-between
sal_Int32
nWidth
=
GetAllMarkedBoundRect
().
GetWidth
()
+
1
;
sal_Int32
nWidth
=
GetAllMarkedBoundRect
().
GetWidth
()
+
1
;
...
...
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