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
d1e9aa23
Kaydet (Commit)
d1e9aa23
authored
Eki 21, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#83588 Revert "center slide after changing zoom"
This reverts commit
b179235f
.
üst
7d9f02cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
29 deletions
+0
-29
ViewShell.hxx
sd/source/ui/inc/ViewShell.hxx
+0
-1
viewshe2.cxx
sd/source/ui/view/viewshe2.cxx
+0
-27
viewshel.cxx
sd/source/ui/view/viewshel.cxx
+0
-1
No files found.
sd/source/ui/inc/ViewShell.hxx
Dosyayı görüntüle @
d1e9aa23
...
...
@@ -205,7 +205,6 @@ public:
virtual
void
UpdateScrollBars
(
void
);
void
Scroll
(
long
nX
,
long
nY
);
void
ScrollLines
(
long
nX
,
long
nY
);
void
ScrollCenter
();
virtual
void
SetZoom
(
long
nZoom
);
virtual
void
SetZoomRect
(
const
Rectangle
&
rZoomRect
);
void
InitWindows
(
const
Point
&
rViewOrigin
,
const
Size
&
rViewSize
,
...
...
sd/source/ui/view/viewshe2.cxx
Dosyayı görüntüle @
d1e9aa23
...
...
@@ -365,33 +365,6 @@ void ViewShell::SetZoom(long nZoom)
UpdateScrollBars
();
}
namespace
{
void
CenterScrollBar
(
ScrollBar
*
pBar
)
{
long
nVisSize
=
pBar
->
GetVisibleSize
();
long
nMin
=
pBar
->
GetRangeMin
();
long
nMax
=
pBar
->
GetRangeMax
();
long
nLen
=
nMax
-
nMin
-
nVisSize
;
long
nPos
=
nMin
+
nLen
/
2
;
pBar
->
DoScroll
(
nPos
);
}
}
void
ViewShell
::
ScrollCenter
()
{
if
(
mpHorizontalScrollBar
.
get
()
!=
NULL
)
CenterScrollBar
(
mpHorizontalScrollBar
.
get
());
//zoom mode with no panning of the current slide, i.e. the
//scrollbar is in change slide mode not pan slide mode
if
(
IsPageFlipMode
())
return
;
if
(
mpVerticalScrollBar
.
get
()
!=
NULL
)
CenterScrollBar
(
mpVerticalScrollBar
.
get
());
}
/**
* Set zoom rectangle for active window. Sets all split windows to the same zoom
* factor.
...
...
sd/source/ui/view/viewshel.cxx
Dosyayı görüntüle @
d1e9aa23
...
...
@@ -655,7 +655,6 @@ bool ViewShell::HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWi
nNewZoom
=
std
::
min
(
(
long
)
pWin
->
GetMaxZoom
(),
basegfx
::
zoomtools
::
zoomIn
(
nOldZoom
));
SetZoom
(
nNewZoom
);
ScrollCenter
();
//center slide after changing zoom
Invalidate
(
SID_ATTR_ZOOM
);
Invalidate
(
SID_ATTR_ZOOMSLIDER
);
...
...
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