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
ff54a3c2
Kaydet (Commit)
ff54a3c2
authored
Agu 01, 2012
tarafından
Noel Power
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simpler fix fo fdo#51336 - change vcl checkbox no-label behaviour
Change-Id: I1563dc2afc49c7b1115192db00fbd08a7524154e
üst
d616ea80
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
ebbcontrols.cxx
svtools/source/brwbox/ebbcontrols.cxx
+1
-0
button.hxx
vcl/inc/vcl/button.hxx
+12
-2
button.cxx
vcl/source/control/button.cxx
+8
-8
No files found.
svtools/source/brwbox/ebbcontrols.cxx
Dosyayı görüntüle @
ff54a3c2
...
...
@@ -268,6 +268,7 @@ namespace svt
EnableChildTransparentMode
();
pBox
=
new
TriStateBox
(
this
,
WB_CENTER
|
WB_VCENTER
);
pBox
->
SetLegacyNoTextAlign
(
true
);
pBox
->
EnableChildTransparentMode
();
pBox
->
SetPaintTransparent
(
sal_True
);
pBox
->
SetClickHdl
(
LINK
(
this
,
CheckBoxControl
,
OnClick
)
);
...
...
vcl/inc/vcl/button.hxx
Dosyayı görüntüle @
ff54a3c2
...
...
@@ -292,7 +292,11 @@ private:
sal_Bool
mbRadioCheck
;
sal_Bool
mbStateChanged
;
Link
maToggleHdl
;
// when mbLegacyNoTextAlign is set then the old behaviour where
// the WB_LEFT, WB_RIGHT & WB_CENTER affect the image placement
// occurs, otherwise the image ( radiobutton circle ) is placed
// to the left or right ( depending on RTL or LTR settings )
bool
mbLegacyNoTextAlign
;
SAL_DLLPRIVATE
void
ImplInitRadioButtonData
();
SAL_DLLPRIVATE
WinBits
ImplInitStyle
(
const
Window
*
pPrevWindow
,
WinBits
nStyle
);
SAL_DLLPRIVATE
void
ImplInitSettings
(
sal_Bool
bFont
,
sal_Bool
bForeground
,
sal_Bool
bBackground
);
...
...
@@ -409,7 +413,11 @@ private:
TriState
meSaveValue
;
sal_Bool
mbTriState
;
Link
maToggleHdl
;
// when mbLegacyNoTextAlign is set then the old behaviour where
// the WB_LEFT, WB_RIGHT & WB_CENTER affect the image placement
// occurs, otherwise the image ( checkbox box ) is placed
// to the left or right ( depending on RTL or LTR settings )
bool
mbLegacyNoTextAlign
;
SAL_DLLPRIVATE
void
ImplInitCheckBoxData
();
SAL_DLLPRIVATE
WinBits
ImplInitStyle
(
const
Window
*
pPrevWindow
,
WinBits
nStyle
);
SAL_DLLPRIVATE
void
ImplInitSettings
(
sal_Bool
bFont
,
sal_Bool
bForeground
,
sal_Bool
bBackground
);
...
...
@@ -481,6 +489,8 @@ public:
void
SetToggleHdl
(
const
Link
&
rLink
)
{
maToggleHdl
=
rLink
;
}
const
Link
&
GetToggleHdl
()
const
{
return
maToggleHdl
;
}
bool
IsLegacyNoTextAlign
()
{
return
mbLegacyNoTextAlign
;
}
void
SetLegacyNoTextAlign
(
bool
bVal
)
{
mbLegacyNoTextAlign
=
bVal
;
}
};
inline
void
CheckBox
::
Check
(
sal_Bool
bCheck
)
...
...
vcl/source/control/button.cxx
Dosyayı görüntüle @
ff54a3c2
...
...
@@ -2193,9 +2193,9 @@ void RadioButton::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
}
else
{
if
(
nWinStyle
&
WB_CENTER
)
if
(
mbLegacyNoTextAlign
&&
(
nWinStyle
&
WB_CENTER
)
)
rStateRect
.
Left
()
=
rPos
.
X
()
+
((
rSize
.
Width
()
-
rImageSize
.
Width
())
/
2
);
else
if
(
nWinStyle
&
WB_RIGHT
)
else
if
(
mbLegacyNoTextAlign
&&
(
nWinStyle
&
WB_RIGHT
)
)
rStateRect
.
Left
()
=
rPos
.
X
()
+
rSize
.
Width
()
-
rImageSize
.
Width
();
//-1;
else
rStateRect
.
Left
()
=
rPos
.
X
();
//+1;
...
...
@@ -2421,7 +2421,7 @@ void RadioButton::ImplCallClick( sal_Bool bGrabFocus, sal_uInt16 nFocusFlags )
// -----------------------------------------------------------------------
RadioButton
::
RadioButton
(
Window
*
pParent
,
WinBits
nStyle
)
:
Button
(
WINDOW_RADIOBUTTON
)
Button
(
WINDOW_RADIOBUTTON
)
,
mbLegacyNoTextAlign
(
false
)
{
ImplInitRadioButtonData
();
ImplInit
(
pParent
,
nStyle
);
...
...
@@ -2430,7 +2430,7 @@ RadioButton::RadioButton( Window* pParent, WinBits nStyle ) :
// -----------------------------------------------------------------------
RadioButton
::
RadioButton
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
Button
(
WINDOW_RADIOBUTTON
)
Button
(
WINDOW_RADIOBUTTON
)
,
mbLegacyNoTextAlign
(
false
)
{
ImplInitRadioButtonData
();
rResId
.
SetRT
(
RSC_RADIOBUTTON
);
...
...
@@ -3256,9 +3256,9 @@ void CheckBox::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
}
else
{
if
(
nWinStyle
&
WB_CENTER
)
if
(
mbLegacyNoTextAlign
&&
(
nWinStyle
&
WB_CENTER
)
)
rStateRect
.
Left
()
=
rPos
.
X
()
+
((
rSize
.
Width
()
-
rImageSize
.
Width
())
/
2
);
else
if
(
nWinStyle
&
WB_RIGHT
)
else
if
(
mbLegacyNoTextAlign
&&
(
nWinStyle
&
WB_RIGHT
)
)
rStateRect
.
Left
()
=
rPos
.
X
()
+
rSize
.
Width
()
-
rImageSize
.
Width
();
else
rStateRect
.
Left
()
=
rPos
.
X
();
...
...
@@ -3354,7 +3354,7 @@ void CheckBox::ImplCheck()
// -----------------------------------------------------------------------
CheckBox
::
CheckBox
(
Window
*
pParent
,
WinBits
nStyle
)
:
Button
(
WINDOW_CHECKBOX
)
Button
(
WINDOW_CHECKBOX
)
,
mbLegacyNoTextAlign
(
false
)
{
ImplInitCheckBoxData
();
ImplInit
(
pParent
,
nStyle
);
...
...
@@ -3363,7 +3363,7 @@ CheckBox::CheckBox( Window* pParent, WinBits nStyle ) :
// -----------------------------------------------------------------------
CheckBox
::
CheckBox
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
Button
(
WINDOW_CHECKBOX
)
Button
(
WINDOW_CHECKBOX
)
,
mbLegacyNoTextAlign
(
false
)
{
ImplInitCheckBoxData
();
rResId
.
SetRT
(
RSC_CHECKBOX
);
...
...
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