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
8d005e90
Kaydet (Commit)
8d005e90
authored
Eki 19, 2012
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#121224# Corrected to use the ApplicationDocumentColor instead of the ApplicationBackgroundColor
üst
2d9d5c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
PreviewRenderer.cxx
sd/source/ui/tools/PreviewRenderer.cxx
+22
-8
No files found.
sd/source/ui/tools/PreviewRenderer.cxx
Dosyayı görüntüle @
8d005e90
...
...
@@ -283,16 +283,30 @@ bool PreviewRenderer::Initialize (
SdrPageView
*
pPageView
=
mpView
->
GetSdrPageView
();
if
(
pPageView
==
NULL
)
break
;
// Set background color of page view and outliner.
// #121224# No need to set SetApplicationBackgroundColor (which is the color
// of the area 'behind' the page (formally called 'Wiese') since the page previews
// produced exactly cover the page's area, so it would never be visible. What
// needs to be set is the ApplicationDocumentColor which is derived from
// svtools::DOCCOLOR normally
svtools
::
ColorConfig
aColorConfig
;
const
Color
aPageBackgroundColor
(
pPage
->
GetPageBackgroundColor
(
pPageView
));
pPageView
->
SetApplicationBackgroundColor
(
aPageBackgroundColor
);
SdrOutliner
&
rOutliner
(
pDocument
->
GetDrawOutliner
(
NULL
));
rOutliner
.
SetBackgroundColor
(
aPageBackgroundColor
);
Color
aApplicationDocumentColor
;
if
(
!
pPageView
||
pPageView
->
GetApplicationDocumentColor
()
==
COL_AUTO
)
{
svtools
::
ColorConfig
aColorConfig
;
aApplicationDocumentColor
=
aColorConfig
.
GetColorValue
(
svtools
::
DOCCOLOR
).
nColor
;
}
else
{
aApplicationDocumentColor
=
pPageView
->
GetApplicationDocumentColor
();
}
pPageView
->
SetApplicationDocumentColor
(
aApplicationDocumentColor
);
SdrOutliner
&
rOutliner
(
pDocument
->
GetDrawOutliner
(
NULL
));
rOutliner
.
SetBackgroundColor
(
aApplicationDocumentColor
);
rOutliner
.
SetDefaultLanguage
(
pDocument
->
GetLanguage
(
EE_CHAR_LANGUAGE
));
mpView
->
SetApplicationBackgroundColor
(
Color
(
aColorConfig
.
GetColorValue
(
svtools
::
APPBACKGROUND
).
nColor
));
mpPreviewDevice
->
SetBackground
(
Wallpaper
(
aPageBackgroundColor
));
mpPreviewDevice
->
SetBackground
(
Wallpaper
(
aApplicationDocumentColor
));
mpPreviewDevice
->
Erase
();
bSuccess
=
true
;
...
...
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