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
91cc656c
Kaydet (Commit)
91cc656c
authored
Ock 11, 2011
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove the size in the LineListBox
üst
932d9136
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
ctrlbox.hxx
svtools/inc/svtools/ctrlbox.hxx
+1
-1
ctrlbox.cxx
svtools/source/control/ctrlbox.cxx
+4
-17
No files found.
svtools/inc/svtools/ctrlbox.hxx
Dosyayı görüntüle @
91cc656c
...
...
@@ -315,7 +315,7 @@ class SVT_DLLPUBLIC LineListBox : public ListBox
SVT_DLLPRIVATE
void
ImpGetLine
(
long
nLine1
,
long
nLine2
,
long
nDistance
,
Color
nColor1
,
Color
nColor2
,
Color
nColorDist
,
sal_uInt16
nStyle
,
Bitmap
&
rBmp
,
XubString
&
rStr
);
sal_uInt16
nStyle
,
Bitmap
&
rBmp
);
using
Window
::
ImplInit
;
SVT_DLLPRIVATE
void
ImplInit
();
sal_Bool
UpdatePaintLineColor
(
void
);
// returns sal_True if maPaintCol has changed
...
...
svtools/source/control/ctrlbox.cxx
Dosyayı görüntüle @
91cc656c
...
...
@@ -600,7 +600,7 @@ namespace svtools
void
LineListBox
::
ImpGetLine
(
long
nLine1
,
long
nLine2
,
long
nDistance
,
Color
aColor1
,
Color
aColor2
,
Color
aColorDist
,
sal_uInt16
nStyle
,
Bitmap
&
rBmp
,
XubString
&
rStr
)
sal_uInt16
nStyle
,
Bitmap
&
rBmp
)
{
Size
aSize
=
GetOutputSizePixel
();
aSize
.
Width
()
-=
20
;
...
...
@@ -655,25 +655,13 @@ void LineListBox::ImpGetLine( long nLine1, long nLine2, long nDistance,
}
rBmp
=
aVirDev
.
GetBitmap
(
Point
(),
Size
(
aSize
.
Width
(),
n1
+
nDist
+
n2
)
);
}
// Twips nach Unit
if
(
eUnit
==
FUNIT_POINT
)
{
nLine1
*=
5
;
nLine2
*=
5
;
nDistance
*=
5
;
rStr
.
AssignAscii
(
" pt"
);
}
String
aNum
(
GetSettings
().
GetLocaleI18nHelper
().
GetNum
(
nLine1
+
nLine2
+
nDistance
,
2
)
);
rStr
.
Insert
(
aNum
,
0
);
}
// -----------------------------------------------------------------------
void
LineListBox
::
ImplInit
()
{
aTxtSize
.
Width
()
=
GetTextWidth
(
XubString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
99,99 mm"
)
)
);
aTxtSize
.
Width
()
=
GetTextWidth
(
XubString
(
RTL_CONSTASCII_USTRINGPARAM
(
"
"
)
)
);
aTxtSize
.
Height
()
=
GetTextHeight
();
pLineList
=
new
ImpLineList
();
eUnit
=
FUNIT_POINT
;
...
...
@@ -905,7 +893,6 @@ void LineListBox::UpdateEntries( long nOldWidth )
ImpLineListData
*
pData
=
pLineList
->
GetObject
(
n
);
if
(
pData
&&
pData
->
GetMinWidth
()
<=
m_nWidth
)
{
XubString
aStr
;
Bitmap
aBmp
;
ImpGetLine
(
pData
->
GetLine1ForWidth
(
m_nWidth
),
pData
->
GetLine2ForWidth
(
m_nWidth
),
...
...
@@ -913,8 +900,8 @@ void LineListBox::UpdateEntries( long nOldWidth )
GetColorLine1
(
GetEntryCount
(
)
),
GetColorLine2
(
GetEntryCount
(
)
),
GetColorDist
(
GetEntryCount
(
)
),
pData
->
GetStyle
(),
aBmp
,
aStr
);
ListBox
::
InsertEntry
(
aStr
,
aBmp
,
LISTBOX_APPEND
);
pData
->
GetStyle
(),
aBmp
);
ListBox
::
InsertEntry
(
XubString
(
RTL_CONSTASCII_USTRINGPARAM
(
" "
)
)
,
aBmp
,
LISTBOX_APPEND
);
if
(
n
==
nTypePos
)
SelectEntryPos
(
GetEntryCount
()
-
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