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
c2e57626
Kaydet (Commit)
c2e57626
authored
Kas 24, 2012
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Apply Style: Preview the text color too.
Change-Id: Id9429b058842b1437e3d3cad171181ea604cc7fa
üst
7e862a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+11
-6
No files found.
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
c2e57626
...
...
@@ -558,9 +558,6 @@ void SvxStyleBox_Impl::UserDraw( const UserDrawEvent& rUDEvt )
{
const
SfxItemSet
&
aItemSet
=
pStyle
->
GetItemSet
();
// all the font properties
//const SvxColorItem *pColorItem = static_cast< const SvxColorItem* >( aItemSet.GetItem( SID_ATTR_CHAR_COLOR ) );
const
SvxFontItem
*
pFontItem
=
static_cast
<
const
SvxFontItem
*
>
(
aItemSet
.
GetItem
(
SID_ATTR_CHAR_FONT
)
);
const
SvxFontHeightItem
*
pFontHeightItem
=
static_cast
<
const
SvxFontHeightItem
*
>
(
aItemSet
.
GetItem
(
SID_ATTR_CHAR_FONTHEIGHT
)
);
...
...
@@ -585,10 +582,18 @@ void SvxStyleBox_Impl::UserDraw( const UserDrawEvent& rUDEvt )
// setup the device & draw
Font
aOldFont
(
pDevice
->
GetFont
()
);
//
Color aOldColor( pDevice->GetTextColor() );
Color
aOldColor
(
pDevice
->
GetTextColor
()
);
pDevice
->
SetFont
(
aFont
);
//pDevice->SetTextColor( pColorItem->GetValue() );
// text color, when we are not selected
pItem
=
aItemSet
.
GetItem
(
SID_ATTR_CHAR_COLOR
);
if
(
pItem
&&
rUDEvt
.
GetItemId
()
!=
GetSelectEntryPos
()
)
{
Color
aColor
(
static_cast
<
const
SvxColorItem
*
>
(
pItem
)
->
GetValue
()
);
if
(
aColor
!=
COL_AUTO
)
pDevice
->
SetTextColor
(
aColor
);
}
// IMG_TXT_DISTANCE in ilstbox.hxx is 6, then 1 is added as
// nBorder, and we are adding 1 in order to look better when
...
...
@@ -604,7 +609,7 @@ void SvxStyleBox_Impl::UserDraw( const UserDrawEvent& rUDEvt )
pDevice
->
DrawText
(
aPos
,
aStyleName
);
//
pDevice->SetTextColor( aOldColor );
pDevice
->
SetTextColor
(
aOldColor
);
pDevice
->
SetFont
(
aOldFont
);
// draw separator, if present
...
...
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