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
31e5afcd
Kaydet (Commit)
31e5afcd
authored
Ock 14, 2015
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adjust zoom level for different output tile size.
Change-Id: I54b9f3ca66035b66509c960ca79391446ecf8778
üst
169b9397
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
gridwin4.cxx
sc/source/ui/view/gridwin4.cxx
+21
-0
No files found.
sc/source/ui/view/gridwin4.cxx
Dosyayı görüntüle @
31e5afcd
...
@@ -882,6 +882,24 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
...
@@ -882,6 +882,24 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
// Assumption: always paint the whole sheet i.e. "visible" range is always
// Assumption: always paint the whole sheet i.e. "visible" range is always
// from (0,0) to last data position.
// from (0,0) to last data position.
// Tile geometry is independent of the zoom level, but the output size is
// dependent of the zoom level. Determine the correct zoom level before
// we start.
// TODO : zooming isn't perfect. Find out why.
double
nOutWTwips
=
static_cast
<
double
>
(
nOutputWidth
)
/
PIXEL_PER_TWIPS
;
double
nOutHTwips
=
static_cast
<
double
>
(
nOutputHeight
)
/
PIXEL_PER_TWIPS
;
nOutWTwips
/=
nTileWidth
;
nOutHTwips
/=
nTileHeight
;
Fraction
aFracX
(
nOutWTwips
);
Fraction
aFracY
(
nOutHTwips
);
pViewData
->
SetZoom
(
aFracX
,
aFracY
,
true
);
pViewData
->
RefreshZoom
();
rDevice
.
SetOutputSizePixel
(
Size
(
nOutputWidth
,
nOutputHeight
));
SCTAB
nTab
=
pViewData
->
GetTabNo
();
SCTAB
nTab
=
pViewData
->
GetTabNo
();
ScDocument
*
pDoc
=
pViewData
->
GetDocument
();
ScDocument
*
pDoc
=
pViewData
->
GetDocument
();
ScAddress
aLastPos
=
pDoc
->
GetLastDataPos
(
nTab
);
ScAddress
aLastPos
=
pDoc
->
GetLastDataPos
(
nTab
);
...
@@ -908,6 +926,9 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
...
@@ -908,6 +926,9 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
}
}
aOutData
.
SetGridColor
(
aGridColor
);
aOutData
.
SetGridColor
(
aGridColor
);
aOutData
.
DrawClear
();
aOutData
.
DrawDocumentBackground
();
aOutData
.
DrawBackground
();
aOutData
.
DrawGrid
(
true
,
false
);
aOutData
.
DrawGrid
(
true
,
false
);
aOutData
.
DrawShadow
();
aOutData
.
DrawShadow
();
...
...
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