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
e03dc2b8
Kaydet (Commit)
e03dc2b8
authored
Nis 19, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin three useless variables and simplify
Change-Id: I9e015028ad7a3e0bbac4368a636fad52f0823383
üst
b444e459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
viewsh.cxx
sw/source/core/view/viewsh.cxx
+5
-17
No files found.
sw/source/core/view/viewsh.cxx
Dosyayı görüntüle @
e03dc2b8
...
@@ -1211,28 +1211,15 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
...
@@ -1211,28 +1211,15 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
lMult
=
12
;
lMult
=
12
;
}
}
#ifndef MACOSX
// #i98766# - disable smooth scrolling for Mac
// #i75172# isolated static conditions
// #i75172# isolated static conditions
const
bool
bOnlyYScroll
(
!
lXDiff
&&
Abs
(
lYDiff
)
!=
0
&&
Abs
(
lYDiff
)
<
lMax
);
const
bool
bOnlyYScroll
(
!
lXDiff
&&
Abs
(
lYDiff
)
!=
0
&&
Abs
(
lYDiff
)
<
lMax
);
const
bool
bAllowedWithChildWindows
(
GetWin
()
->
GetWindowClipRegionPixel
(
WINDOW_GETCLIPREGION_NOCHILDREN
|
WINDOW_GETCLIPREGION_NULL
).
IsNull
());
const
bool
bAllowedWithChildWindows
(
GetWin
()
->
GetWindowClipRegionPixel
(
WINDOW_GETCLIPREGION_NOCHILDREN
|
WINDOW_GETCLIPREGION_NULL
).
IsNull
());
// --> OD 2009-08-12 #i98766# - disable smooth scrolling for Mac port builds
#ifdef MACOSX
const
bool
bSmoothScrollAllowed
(
false
);
(
void
)
bOnlyYScroll
;
(
void
)
bAllowedWithChildWindows
;
#else
const
bool
bSmoothScrollAllowed
(
bOnlyYScroll
&&
mbEnableSmooth
&&
GetViewOptions
()
->
IsSmoothScroll
()
&&
bAllowedWithChildWindows
);
const
bool
bSmoothScrollAllowed
(
bOnlyYScroll
&&
mbEnableSmooth
&&
GetViewOptions
()
->
IsSmoothScroll
()
&&
bAllowedWithChildWindows
);
#endif
// <-
const
bool
bIAmCursorShell
(
ISA
(
SwCrsrShell
));
(
void
)
bIAmCursorShell
;
// #i75172# with selection on overlay, smooth scroll should be allowed with it
if
(
bSmoothScrollAllowed
)
const
bool
bAllowedForSelection
(
true
||
(
bIAmCursorShell
&&
!
((
SwCrsrShell
*
)
this
)
->
HasSelection
()));
// #i75172# with cursors on overlay, smooth scroll should be allowed with it
const
bool
bAllowedForMultipleCursors
(
true
||
(
bIAmCursorShell
&&
((
SwCrsrShell
*
)
this
)
->
GetCrsrCnt
()
<
2
));
if
(
bSmoothScrollAllowed
&&
bAllowedForSelection
&&
bAllowedForMultipleCursors
)
{
{
Imp
()
->
bStopSmooth
=
sal_False
;
Imp
()
->
bStopSmooth
=
sal_False
;
...
@@ -1426,6 +1413,7 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
...
@@ -1426,6 +1413,7 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
}
}
delete
pVout
;
delete
pVout
;
}
}
#endif
maVisArea
.
Pos
().
X
()
-=
lXDiff
;
maVisArea
.
Pos
().
X
()
-=
lXDiff
;
maVisArea
.
Pos
().
Y
()
-=
lYDiff
;
maVisArea
.
Pos
().
Y
()
-=
lYDiff
;
...
...
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