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
b3464e87
Kaydet (Commit)
b3464e87
authored
Mar 26, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SymbolAlign to enum class
Change-Id: Iecc1400809212f56915cad56b739378cda49b90f
üst
93ddb2cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
wintypes.hxx
include/tools/wintypes.hxx
+1
-1
button.cxx
vcl/source/control/button.cxx
+2
-2
morebtn.cxx
vcl/source/control/morebtn.cxx
+1
-1
No files found.
include/tools/wintypes.hxx
Dosyayı görüntüle @
b3464e87
...
...
@@ -291,7 +291,7 @@ enum ImageAlign { IMAGEALIGN_LEFT, IMAGEALIGN_TOP, IMAGEALIGN_RIGHT, IMAGEALIGN_
IMAGEALIGN_LEFT_TOP
,
IMAGEALIGN_LEFT_BOTTOM
,
IMAGEALIGN_TOP_LEFT
,
IMAGEALIGN_TOP_RIGHT
,
IMAGEALIGN_RIGHT_TOP
,
IMAGEALIGN_RIGHT_BOTTOM
,
IMAGEALIGN_BOTTOM_LEFT
,
IMAGEALIGN_BOTTOM_RIGHT
,
IMAGEALIGN_CENTER
};
enum
SymbolAlign
{
SYMBOLALIGN_LEFT
,
SYMBOLALIGN_
RIGHT
};
enum
class
SymbolAlign
{
LEFT
,
RIGHT
};
// ButtonDialog-Types
...
...
vcl/source/control/button.cxx
Dosyayı görüntüle @
b3464e87
...
...
@@ -79,7 +79,7 @@ public:
};
ImplCommonButtonData
::
ImplCommonButtonData
()
:
maFocusRect
(),
mnSeparatorX
(
0
),
mnButtonState
(
0
),
mbSmallSymbol
(
false
),
maImage
(),
meImageAlign
(
IMAGEALIGN_TOP
),
meSymbolAlign
(
S
YMBOLALIGN_
LEFT
)
mbSmallSymbol
(
false
),
maImage
(),
meImageAlign
(
IMAGEALIGN_TOP
),
meSymbolAlign
(
S
ymbolAlign
::
LEFT
)
{
}
...
...
@@ -463,7 +463,7 @@ void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
if
(
bHasSymbol
)
{
if
(
mpButtonData
->
meSymbolAlign
==
S
YMBOLALIGN_
RIGHT
)
if
(
mpButtonData
->
meSymbolAlign
==
S
ymbolAlign
::
RIGHT
)
{
Point
aRightPos
=
Point
(
aTextPos
.
X
()
+
aTextSize
.
Width
()
+
aSymbolSize
.
Width
()
/
2
,
aTextPos
.
Y
()
);
*
pSymbolRect
=
Rectangle
(
aRightPos
,
aSymbolSize
);
...
...
vcl/source/control/morebtn.cxx
Dosyayı görüntüle @
b3464e87
...
...
@@ -47,7 +47,7 @@ void MoreButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
ShowState
();
SetSymbolAlign
(
S
YMBOLALIGN_
RIGHT
);
SetSymbolAlign
(
S
ymbolAlign
::
RIGHT
);
SetImageAlign
(
IMAGEALIGN_RIGHT
);
//Resoves: fdo#31849 ensure button remains vertically centered
SetSmallSymbol
(
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