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
43bfb0e4
Kaydet (Commit)
43bfb0e4
authored
Şub 22, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
auto fill handle: HiDPI, increase hit area, adjust draw position
Change-Id: I197ca370dad5cadcddd2472ed9f25d7b3acc504a
üst
abc31637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
gridwin.cxx
sc/source/ui/view/gridwin.cxx
+18
-6
No files found.
sc/source/ui/view/gridwin.cxx
Dosyayı görüntüle @
43bfb0e4
...
...
@@ -5948,18 +5948,30 @@ void ScGridWindow::UpdateAutoFillOverlay()
ScDocument
*
pDoc
=
pViewData
->
GetDocument
();
bool
bLayoutRTL
=
pDoc
->
IsLayoutRTL
(
nTab
);
sal_Int32
nScale
=
GetDPIScaleFactor
();
// Size should be even
Size
aFillHandleSize
=
Size
(
6
*
nScale
,
6
*
nScale
);
Point
aFillPos
=
pViewData
->
GetScrPos
(
nX
,
nY
,
eWhich
,
true
);
long
nSizeXPix
;
long
nSizeYPix
;
pViewData
->
GetMergeSizePixel
(
nX
,
nY
,
nSizeXPix
,
nSizeYPix
);
if
(
bLayoutRTL
)
aFillPos
.
X
()
-=
nSizeXPix
+
3
;
if
(
bLayoutRTL
)
aFillPos
.
X
()
-=
nSizeXPix
-
2
+
(
aFillHandleSize
.
Width
()
/
2
);
else
aFillPos
.
X
()
+=
nSizeXPix
-
2
;
aFillPos
.
X
()
+=
nSizeXPix
-
(
aFillHandleSize
.
Width
()
/
2
)
;
aFillPos
.
Y
()
+=
nSizeYPix
;
aFillPos
.
Y
()
-=
2
;
mpAutoFillRect
.
reset
(
new
Rectangle
(
aFillPos
,
Size
(
6
,
6
)));
aFillPos
.
Y
()
-=
(
aFillHandleSize
.
Height
()
/
2
);
Rectangle
aFillRect
(
aFillPos
,
aFillHandleSize
);
// expand rect to increase hit area
mpAutoFillRect
.
reset
(
new
Rectangle
(
aFillRect
.
Left
()
-
nScale
,
aFillRect
.
Top
()
-
nScale
,
aFillRect
.
Right
()
+
nScale
,
aFillRect
.
Bottom
()
+
nScale
));
// #i70788# get the OverlayManager safely
rtl
::
Reference
<
sdr
::
overlay
::
OverlayManager
>
xOverlayManager
=
getOverlayManager
();
...
...
@@ -5972,7 +5984,7 @@ void ScGridWindow::UpdateAutoFillOverlay()
aHandleColor
=
SC_MOD
()
->
GetColorConfig
().
GetColorValue
(
svtools
::
CALCPAGEBREAKAUTOMATIC
).
nColor
;
std
::
vector
<
basegfx
::
B2DRange
>
aRanges
;
const
basegfx
::
B2DHomMatrix
aTransform
(
GetInverseViewTransformation
());
basegfx
::
B2DRange
aRB
(
mpAutoFillRect
->
Left
(),
mpAutoFillRect
->
Top
(),
mpAutoFillRect
->
Right
()
+
1
,
mpAutoFillRect
->
Bottom
()
+
1
);
basegfx
::
B2DRange
aRB
(
aFillRect
.
Left
(),
aFillRect
.
Top
(),
aFillRect
.
Right
(),
aFillRect
.
Bottom
()
);
aRB
.
transform
(
aTransform
);
aRanges
.
push_back
(
aRB
);
...
...
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