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
c2238e16
Kaydet (Commit)
c2238e16
authored
Agu 18, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert SdrAnimationMode to scoped enum
Change-Id: I8a88a7ee538dab020e2ee08e4dce4b100f0bfa3b
üst
df418a41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
svdpntv.hxx
include/svx/svdpntv.hxx
+6
-6
drviewsa.cxx
sd/source/ui/view/drviewsa.cxx
+1
-1
svdpntv.cxx
svx/source/svdraw/svdpntv.cxx
+2
-2
No files found.
include/svx/svdpntv.hxx
Dosyayı görüntüle @
c2238e16
...
@@ -63,10 +63,10 @@ namespace sdr { namespace contact {
...
@@ -63,10 +63,10 @@ namespace sdr { namespace contact {
// Defines for AnimationMode
// Defines for AnimationMode
enum
SdrAnimationMode
enum
class
SdrAnimationMode
{
{
SDR_ANIMATION_ANIMATE
,
Animate
,
SDR_ANIMATION_DISABLE
Disable
};
};
...
@@ -470,16 +470,16 @@ public:
...
@@ -470,16 +470,16 @@ public:
/// Enable/disable animations for ::Paint
/// Enable/disable animations for ::Paint
/// Is used by e.g. SdrGrafObj, if it contains an animation
/// Is used by e.g. SdrGrafObj, if it contains an animation
/// Preventing automatic animation is needed for e.g. the presentation view
/// Preventing automatic animation is needed for e.g. the presentation view
bool
IsAnimationEnabled
()
const
{
return
(
S
DR_ANIMATION_ANIMATE
==
meAnimationMode
);
}
bool
IsAnimationEnabled
()
const
{
return
(
S
drAnimationMode
::
Animate
==
meAnimationMode
);
}
void
SetAnimationEnabled
(
bool
bEnable
=
true
);
void
SetAnimationEnabled
(
bool
bEnable
=
true
);
/// Set/unset pause state for animations
/// Set/unset pause state for animations
void
SetAnimationPause
(
bool
bSet
);
void
SetAnimationPause
(
bool
bSet
);
/// Mode when starting an animation in the Paint Handler:
/// Mode when starting an animation in the Paint Handler:
/// 1. S
DR_ANIMATION_ANIMATE
(default): start animation normally
/// 1. S
drAnimationMode::Animate
(default): start animation normally
/// 2. SDR_ANIMATION_DONT_ANIMATE: only show the replacement picture
/// 2. SDR_ANIMATION_DONT_ANIMATE: only show the replacement picture
/// 3. S
DR_ANIMATION_DISABLE
: don't start and don't show any replacement
/// 3. S
drAnimationMode::Disable
: don't start and don't show any replacement
void
SetAnimationMode
(
const
SdrAnimationMode
eMode
);
void
SetAnimationMode
(
const
SdrAnimationMode
eMode
);
/// The Browser is destroyed for bShow=false
/// The Browser is destroyed for bShow=false
...
...
sd/source/ui/view/drviewsa.cxx
Dosyayı görüntüle @
c2238e16
...
@@ -362,7 +362,7 @@ void DrawViewShell::Shutdown()
...
@@ -362,7 +362,7 @@ void DrawViewShell::Shutdown()
if
(
SlideShow
::
IsRunning
(
GetViewShellBase
()
)
)
if
(
SlideShow
::
IsRunning
(
GetViewShellBase
()
)
)
{
{
// Turn off effects.
// Turn off effects.
GetDrawView
()
->
SetAnimationMode
(
S
DR_ANIMATION_DISABLE
);
GetDrawView
()
->
SetAnimationMode
(
S
drAnimationMode
::
Disable
);
}
}
}
}
...
...
svx/source/svdraw/svdpntv.cxx
Dosyayı görüntüle @
c2238e16
...
@@ -166,7 +166,7 @@ void SdrPaintView::ImpClearVars()
...
@@ -166,7 +166,7 @@ void SdrPaintView::ImpClearVars()
mbPrintPreview
=
false
;
mbPrintPreview
=
false
;
mbPreviewRenderer
=
false
;
mbPreviewRenderer
=
false
;
meAnimationMode
=
S
DR_ANIMATION_ANIMATE
;
meAnimationMode
=
S
drAnimationMode
::
Animate
;
mbAnimationPause
=
false
;
mbAnimationPause
=
false
;
mnHitTolPix
=
2
;
mnHitTolPix
=
2
;
...
@@ -1177,7 +1177,7 @@ void SdrPaintView::DoConnect(SdrOle2Obj* /*pOleObj*/)
...
@@ -1177,7 +1177,7 @@ void SdrPaintView::DoConnect(SdrOle2Obj* /*pOleObj*/)
void
SdrPaintView
::
SetAnimationEnabled
(
bool
bEnable
)
void
SdrPaintView
::
SetAnimationEnabled
(
bool
bEnable
)
{
{
SetAnimationMode
(
bEnable
?
S
DR_ANIMATION_ANIMATE
:
SDR_ANIMATION_DISABLE
);
SetAnimationMode
(
bEnable
?
S
drAnimationMode
::
Animate
:
SdrAnimationMode
::
Disable
);
}
}
#if defined DBG_UTIL
#if defined DBG_UTIL
...
...
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