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
682d5eab
Kaydet (Commit)
682d5eab
authored
May 29, 2015
tarafından
Krisztian Pinter
Kaydeden (comit)
Jan Holesovsky
Haz 03, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
calc mapmode: Refactor DrawDocumentBackground to use logic units
Change-Id: I316e51bac78981263bfbee55ea5b684a40b44afa
üst
9eb16c85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
gridwin4.cxx
sc/source/ui/view/gridwin4.cxx
+2
-1
output.cxx
sc/source/ui/view/output.cxx
+6
-5
No files found.
sc/source/ui/view/gridwin4.cxx
Dosyayı görüntüle @
682d5eab
...
...
@@ -718,9 +718,10 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
else
aOutputData
.
SetSolidBackground
(
true
);
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
aOutputData
.
DrawDocumentBackground
();
pContentDev
->
SetMapMode
(
MAP_PIXEL
);
if
(
bGridFirst
&&
(
bGrid
||
bPage
)
)
aOutputData
.
DrawGrid
(
bGrid
,
bPage
);
...
...
sc/source/ui/view/output.cxx
Dosyayı görüntüle @
682d5eab
...
...
@@ -767,13 +767,14 @@ void ScOutputData::DrawDocumentBackground()
if
(
!
bSolidBackground
)
return
;
Size
aOnePixel
=
mpDev
->
PixelToLogic
(
Size
(
1
,
1
));
long
nOneX
=
aOnePixel
.
Width
();
long
nOneY
=
aOnePixel
.
Height
();
Rectangle
aRect
(
nScrX
-
nOneX
,
nScrY
-
nOneY
,
nScrX
+
nScrW
,
nScrY
+
nScrH
);
Color
aBgColor
(
SC_MOD
()
->
GetColorConfig
().
GetColorValue
(
svtools
::
DOCCOLOR
).
nColor
);
mpDev
->
SetLineColor
(
aBgColor
);
mpDev
->
SetFillColor
(
aBgColor
);
mpDev
->
DrawRect
(
aRect
);
Point
aScreenPos
=
mpDev
->
PixelToLogic
(
Point
(
nScrX
,
nScrY
));
Size
aScreenSize
=
mpDev
->
PixelToLogic
(
Size
(
nScrW
-
1
,
nScrH
-
1
));
mpDev
->
DrawRect
(
Rectangle
(
aScreenPos
,
aScreenSize
));
}
namespace
{
...
...
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