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
8ece576c
Kaydet (Commit)
8ece576c
authored
Haz 26, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix OptionString to set a correct item size
Change-Id: I3406b5481991e459ac051868e441c0c04a2f7d5a
üst
2022c84d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
calcoptionsdlg.cxx
sc/source/ui/optdlg/calcoptionsdlg.cxx
+29
-3
No files found.
sc/source/ui/optdlg/calcoptionsdlg.cxx
Dosyayı görüntüle @
8ece576c
...
@@ -36,8 +36,32 @@ public:
...
@@ -36,8 +36,32 @@ public:
void
SetValue
(
const
OUString
&
rValue
)
{
maValue
=
rValue
;
}
void
SetValue
(
const
OUString
&
rValue
)
{
maValue
=
rValue
;
}
virtual
void
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
const
SvViewDataEntry
*
pView
,
const
SvTreeListEntry
*
pEntry
);
virtual
void
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
const
SvViewDataEntry
*
pView
,
const
SvTreeListEntry
*
pEntry
);
virtual
void
InitViewData
(
SvTreeListBox
*
pView
,
SvTreeListEntry
*
pEntry
,
SvViewDataItem
*
pViewData
);
};
};
void
OptionString
::
InitViewData
(
SvTreeListBox
*
pView
,
SvTreeListEntry
*
pEntry
,
SvViewDataItem
*
pViewData
)
{
if
(
!
pViewData
)
pViewData
=
pView
->
GetViewDataItem
(
pEntry
,
this
);
OUString
aDesc
=
maDesc
+
OUString
(
": "
);
Size
aDescSize
(
pView
->
GetTextWidth
(
aDesc
),
pView
->
GetTextHeight
());
Font
aOldFont
=
pView
->
GetFont
();
Font
aFont
=
aOldFont
;
aFont
.
SetWeight
(
WEIGHT_BOLD
);
//To not make the SvTreeListBox try and recalculate all rows, call the
//underlying SetFont, we just want to know what size this text will be
//and are going to reset the font to the original again afterwards
pView
->
Control
::
SetFont
(
aFont
);
Size
aValueSize
(
pView
->
GetTextWidth
(
maValue
),
pView
->
GetTextHeight
());
pView
->
Control
::
SetFont
(
aOldFont
);
pViewData
->
maSize
=
Size
(
aDescSize
.
Width
()
+
aValueSize
.
Width
(),
std
::
max
(
aDescSize
.
Height
(),
aValueSize
.
Height
()));
}
void
OptionString
::
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
const
SvViewDataEntry
*
/*pView*/
,
const
SvTreeListEntry
*
/*pEntry*/
)
void
OptionString
::
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
const
SvViewDataEntry
*
/*pView*/
,
const
SvTreeListEntry
*
/*pEntry*/
)
{
{
Point
aPos
=
rPos
;
Point
aPos
=
rPos
;
...
@@ -49,10 +73,12 @@ void OptionString::Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDat
...
@@ -49,10 +73,12 @@ void OptionString::Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDat
Font
aFont
=
aOldFont
;
Font
aFont
=
aOldFont
;
aFont
.
SetWeight
(
WEIGHT_BOLD
);
aFont
.
SetWeight
(
WEIGHT_BOLD
);
rDev
.
SetFont
(
aFont
);
//To not make the SvTreeListBox try and recalculate all rows, call the
//underlying SetFont, we are going to draw this string and then going to
//reset the font to the original again afterwards
rDev
.
Control
::
SetFont
(
aFont
);
rDev
.
DrawText
(
aPos
,
maValue
);
rDev
.
DrawText
(
aPos
,
maValue
);
rDev
.
Control
::
SetFont
(
aOldFont
);
rDev
.
SetFont
(
aOldFont
);
}
}
formula
::
FormulaGrammar
::
AddressConvention
toAddressConvention
(
sal_uInt16
nPos
)
formula
::
FormulaGrammar
::
AddressConvention
toAddressConvention
(
sal_uInt16
nPos
)
...
...
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