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
61acb9be
Kaydet (Commit)
61acb9be
authored
May 30, 2012
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#47752: first column of checkboxes is too small
Change-Id: I199276a99063d5a125be1f2cd5d71574f078a82e
üst
628cec2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
svtreebx.hxx
svtools/inc/svtools/svtreebx.hxx
+2
-0
svtreebx.cxx
svtools/source/contnr/svtreebx.cxx
+18
-1
No files found.
svtools/inc/svtools/svtreebx.hxx
Dosyayı görüntüle @
61acb9be
...
@@ -78,6 +78,8 @@ class SVT_DLLPUBLIC SvTreeListBox : public SvLBox
...
@@ -78,6 +78,8 @@ class SVT_DLLPUBLIC SvTreeListBox : public SvLBox
short
nFocusWidth
;
short
nFocusWidth
;
sal_uInt16
aContextBmpMode
;
sal_uInt16
aContextBmpMode
;
long
mnCheckboxItemWidth
;
#ifdef _SVTREEBX_CXX
#ifdef _SVTREEBX_CXX
DECL_DLLPRIVATE_LINK
(
CheckButtonClick
,
SvLBoxButtonData
*
);
DECL_DLLPRIVATE_LINK
(
CheckButtonClick
,
SvLBoxButtonData
*
);
...
...
svtools/source/contnr/svtreebx.cxx
Dosyayı görüntüle @
61acb9be
...
@@ -88,6 +88,7 @@ void SvTreeListBox::InitTreeView()
...
@@ -88,6 +88,7 @@ void SvTreeListBox::InitTreeView()
nFirstSelTab
=
0
;
nFirstSelTab
=
0
;
nLastSelTab
=
0
;
nLastSelTab
=
0
;
nFocusWidth
=
-
1
;
nFocusWidth
=
-
1
;
mnCheckboxItemWidth
=
0
;
Link
*
pLink
=
new
Link
(
LINK
(
this
,
SvTreeListBox
,
DefaultCompare
)
);
Link
*
pLink
=
new
Link
(
LINK
(
this
,
SvTreeListBox
,
DefaultCompare
)
);
pLBoxImpl
->
m_pLink
=
pLink
;
pLBoxImpl
->
m_pLink
=
pLink
;
...
@@ -212,9 +213,11 @@ void SvTreeListBox::SetTabs()
...
@@ -212,9 +213,11 @@ void SvTreeListBox::SetTabs()
long
nStartPos
=
TAB_STARTPOS
;
long
nStartPos
=
TAB_STARTPOS
;
long
nNodeWidthPixel
=
GetExpandedNodeBmp
().
GetSizePixel
().
Width
();
long
nNodeWidthPixel
=
GetExpandedNodeBmp
().
GetSizePixel
().
Width
();
// pCheckButtonData->Width() knows nothing about the native checkbox width,
// so we have mnCheckboxItemWidth which becomes valid when something is added.
long
nCheckWidth
=
0
;
long
nCheckWidth
=
0
;
if
(
nTreeFlags
&
TREEFLAG_CHKBTN
)
if
(
nTreeFlags
&
TREEFLAG_CHKBTN
)
nCheckWidth
=
pCheckButtonData
->
aBmps
[
0
].
GetSizePixel
().
Width
()
;
nCheckWidth
=
mnCheckboxItemWidth
;
long
nCheckWidthDIV2
=
nCheckWidth
/
2
;
long
nCheckWidthDIV2
=
nCheckWidth
/
2
;
long
nContextWidth
=
nContextBmpWidthMax
;
long
nContextWidth
=
nContextBmpWidthMax
;
...
@@ -519,6 +522,20 @@ void SvTreeListBox::ImpEntryInserted( SvLBoxEntry* pEntry )
...
@@ -519,6 +522,20 @@ void SvTreeListBox::ImpEntryInserted( SvLBoxEntry* pEntry )
}
}
}
}
SetEntryHeight
(
(
SvLBoxEntry
*
)
pEntry
);
SetEntryHeight
(
(
SvLBoxEntry
*
)
pEntry
);
if
(
nTreeFlags
&
TREEFLAG_CHKBTN
)
{
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetFirstItem
(
SV_ITEM_ID_LBOXBUTTON
));
if
(
pItem
)
{
long
nWidth
=
pItem
->
GetSize
(
this
,
pEntry
).
Width
();
if
(
mnCheckboxItemWidth
<
nWidth
)
{
mnCheckboxItemWidth
=
nWidth
;
nTreeFlags
|=
TREEFLAG_RECALCTABS
;
}
}
}
}
}
...
...
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