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
34d2a07a
Kaydet (Commit)
34d2a07a
authored
Agu 03, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
slideshow: replace boost::function with std::function
Change-Id: Ibcb0f40d327e3086b6493cf2052caf135aa89e10
üst
81c6ae87
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
precompiled_slideshow.hxx
slideshow/inc/pch/precompiled_slideshow.hxx
+0
-1
delayevent.cxx
slideshow/source/engine/delayevent.cxx
+2
-2
effectrewinder.cxx
slideshow/source/engine/effectrewinder.cxx
+8
-8
effectrewinder.hxx
slideshow/source/engine/effectrewinder.hxx
+7
-5
eventmultiplexer.cxx
slideshow/source/engine/eventmultiplexer.cxx
+0
-1
delayevent.hxx
slideshow/source/inc/delayevent.hxx
+5
-4
No files found.
slideshow/inc/pch/precompiled_slideshow.hxx
Dosyayı görüntüle @
34d2a07a
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <boost/current_function.hpp>
#include <boost/current_function.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/function.hpp>
#include <boost/mem_fn.hpp>
#include <boost/mem_fn.hpp>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <boost/optional.hpp>
...
...
slideshow/source/engine/delayevent.cxx
Dosyayı görüntüle @
34d2a07a
...
@@ -30,7 +30,7 @@ bool Delay::fire()
...
@@ -30,7 +30,7 @@ bool Delay::fire()
if
(
isCharged
())
{
if
(
isCharged
())
{
mbWasFired
=
true
;
mbWasFired
=
true
;
maFunc
();
maFunc
();
maFunc
.
clear
()
;
// early release of payload
maFunc
=
nullptr
;
// early release of payload
}
}
return
true
;
return
true
;
}
}
...
@@ -50,7 +50,7 @@ void Delay::dispose()
...
@@ -50,7 +50,7 @@ void Delay::dispose()
// don't clear unconditionally, because it may currently be executed:
// don't clear unconditionally, because it may currently be executed:
if
(
isCharged
())
{
if
(
isCharged
())
{
mbWasFired
=
true
;
mbWasFired
=
true
;
maFunc
.
clear
()
;
// release of payload
maFunc
=
nullptr
;
// release of payload
}
}
}
}
...
...
slideshow/source/engine/effectrewinder.cxx
Dosyayı görüntüle @
34d2a07a
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <com/sun/star/animations/Event.hpp>
#include <com/sun/star/animations/Event.hpp>
#include <com/sun/star/animations/EventTrigger.hpp>
#include <com/sun/star/animations/EventTrigger.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/enable_shared_from_this.hpp>
...
@@ -44,7 +44,7 @@ namespace {
...
@@ -44,7 +44,7 @@ namespace {
class
RewinderEventHandler
:
public
EventHandler
class
RewinderEventHandler
:
public
EventHandler
{
{
public
:
public
:
typedef
::
boost
::
function
<
bool
()
>
Action
;
typedef
::
std
::
function
<
bool
()
>
Action
;
RewinderEventHandler
(
const
Action
&
rAction
)
:
maAction
(
rAction
)
{}
RewinderEventHandler
(
const
Action
&
rAction
)
:
maAction
(
rAction
)
{}
virtual
~
RewinderEventHandler
()
{}
virtual
~
RewinderEventHandler
()
{}
private
:
private
:
...
@@ -57,7 +57,7 @@ private:
...
@@ -57,7 +57,7 @@ private:
class
RewinderAnimationEventHandler
:
public
AnimationEventHandler
class
RewinderAnimationEventHandler
:
public
AnimationEventHandler
{
{
public
:
public
:
typedef
::
boost
::
function
<
bool
(
const
AnimationNodeSharedPtr
&
rpNode
)
>
Action
;
typedef
::
std
::
function
<
bool
(
const
AnimationNodeSharedPtr
&
rpNode
)
>
Action
;
RewinderAnimationEventHandler
(
const
Action
&
rAction
)
:
maAction
(
rAction
)
{}
RewinderAnimationEventHandler
(
const
Action
&
rAction
)
:
maAction
(
rAction
)
{}
virtual
~
RewinderAnimationEventHandler
()
{}
virtual
~
RewinderAnimationEventHandler
()
{}
private
:
private
:
...
@@ -170,8 +170,8 @@ void EffectRewinder::setRootAnimationNode (
...
@@ -170,8 +170,8 @@ void EffectRewinder::setRootAnimationNode (
bool
EffectRewinder
::
rewind
(
bool
EffectRewinder
::
rewind
(
const
::
boost
::
shared_ptr
<
ScreenUpdater
::
UpdateLock
>&
rpPaintLock
,
const
::
boost
::
shared_ptr
<
ScreenUpdater
::
UpdateLock
>&
rpPaintLock
,
const
::
boost
::
function
<
void
()
>&
rSlideRewindFunctor
,
const
::
std
::
function
<
void
()
>&
rSlideRewindFunctor
,
const
::
boost
::
function
<
void
()
>&
rPreviousSlideFunctor
)
const
::
std
::
function
<
void
()
>&
rPreviousSlideFunctor
)
{
{
mpPaintLock
=
rpPaintLock
;
mpPaintLock
=
rpPaintLock
;
...
@@ -243,7 +243,7 @@ void EffectRewinder::skipAllMainSequenceEffects()
...
@@ -243,7 +243,7 @@ void EffectRewinder::skipAllMainSequenceEffects()
this
,
this
,
nTotalMainSequenceEffectCount
,
nTotalMainSequenceEffectCount
,
false
,
false
,
::
boost
::
function
<
void
()
>
()),
::
std
::
function
<
void
()
>
()),
"EffectRewinder::asynchronousRewind"
);
"EffectRewinder::asynchronousRewind"
);
mrEventQueue
.
addEvent
(
mpAsynchronousRewindEvent
);
mrEventQueue
.
addEvent
(
mpAsynchronousRewindEvent
);
}
}
...
@@ -354,7 +354,7 @@ bool EffectRewinder::notifyAnimationStart (const AnimationNodeSharedPtr& rpNode)
...
@@ -354,7 +354,7 @@ bool EffectRewinder::notifyAnimationStart (const AnimationNodeSharedPtr& rpNode)
void
EffectRewinder
::
asynchronousRewind
(
void
EffectRewinder
::
asynchronousRewind
(
sal_Int32
nEffectCount
,
sal_Int32
nEffectCount
,
const
bool
bRedisplayCurrentSlide
,
const
bool
bRedisplayCurrentSlide
,
const
boost
::
function
<
void
()
>&
rSlideRewindFunctor
)
const
std
::
function
<
void
()
>&
rSlideRewindFunctor
)
{
{
OSL_ASSERT
(
mpAsynchronousRewindEvent
);
OSL_ASSERT
(
mpAsynchronousRewindEvent
);
...
@@ -398,7 +398,7 @@ void EffectRewinder::asynchronousRewind (
...
@@ -398,7 +398,7 @@ void EffectRewinder::asynchronousRewind (
void
EffectRewinder
::
asynchronousRewindToPreviousSlide
(
void
EffectRewinder
::
asynchronousRewindToPreviousSlide
(
const
::
boost
::
function
<
void
()
>&
rSlideRewindFunctor
)
const
::
std
::
function
<
void
()
>&
rSlideRewindFunctor
)
{
{
OSL_ASSERT
(
mpAsynchronousRewindEvent
);
OSL_ASSERT
(
mpAsynchronousRewindEvent
);
...
...
slideshow/source/engine/effectrewinder.hxx
Dosyayı görüntüle @
34d2a07a
...
@@ -27,8 +27,10 @@
...
@@ -27,8 +27,10 @@
#include "screenupdater.hxx"
#include "screenupdater.hxx"
#include <com/sun/star/presentation/XSlideShow.hpp>
#include <com/sun/star/presentation/XSlideShow.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/function.hpp>
#include <functional>
#include <vector>
#include <vector>
namespace
slideshow
{
namespace
internal
{
namespace
slideshow
{
namespace
internal
{
...
@@ -90,8 +92,8 @@ public:
...
@@ -90,8 +92,8 @@ public:
*/
*/
bool
rewind
(
bool
rewind
(
const
::
boost
::
shared_ptr
<
ScreenUpdater
::
UpdateLock
>&
rpPaintLock
,
const
::
boost
::
shared_ptr
<
ScreenUpdater
::
UpdateLock
>&
rpPaintLock
,
const
::
boost
::
function
<
void
()
>&
rSlideRewindFunctor
,
const
::
std
::
function
<
void
()
>&
rSlideRewindFunctor
,
const
::
boost
::
function
<
void
()
>&
rPreviousSlideFunctor
);
const
::
std
::
function
<
void
()
>&
rPreviousSlideFunctor
);
/** Call this method after gotoPreviousEffect() triggered a slide change
/** Call this method after gotoPreviousEffect() triggered a slide change
to the previous slide.
to the previous slide.
...
@@ -152,7 +154,7 @@ private:
...
@@ -152,7 +154,7 @@ private:
void
asynchronousRewind
(
void
asynchronousRewind
(
sal_Int32
nEffectCount
,
sal_Int32
nEffectCount
,
const
bool
bRedisplayCurrentSlide
,
const
bool
bRedisplayCurrentSlide
,
const
boost
::
function
<
void
()
>&
rSlideRewindFunctor
);
const
::
std
::
function
<
void
()
>&
rSlideRewindFunctor
);
/** Go to the previous slide and replay all of its main sequence effects
/** Go to the previous slide and replay all of its main sequence effects
(or effect groups).
(or effect groups).
...
@@ -160,7 +162,7 @@ private:
...
@@ -160,7 +162,7 @@ private:
This functor is used to go to the previous slide.
This functor is used to go to the previous slide.
*/
*/
void
asynchronousRewindToPreviousSlide
(
void
asynchronousRewindToPreviousSlide
(
const
::
boost
::
function
<
void
()
>&
rPreviousSlideFunctor
);
const
::
std
::
function
<
void
()
>&
rPreviousSlideFunctor
);
};
};
}
}
// end of namespace ::slideshow::internal
}
}
// end of namespace ::slideshow::internal
...
...
slideshow/source/engine/eventmultiplexer.cxx
Dosyayı görüntüle @
34d2a07a
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
#include <boost/shared_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
...
...
slideshow/source/inc/delayevent.hxx
Dosyayı görüntüle @
34d2a07a
...
@@ -19,11 +19,12 @@
...
@@ -19,11 +19,12 @@
#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_DELAYEVENT_HXX
#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_DELAYEVENT_HXX
#define INCLUDED_SLIDESHOW_SOURCE_INC_DELAYEVENT_HXX
#define INCLUDED_SLIDESHOW_SOURCE_INC_DELAYEVENT_HXX
#include <boost/function.hpp>
#include "event.hxx"
#include "event.hxx"
#include <boost/noncopyable.hpp>
#include <boost/noncopyable.hpp>
#include <functional>
namespace
slideshow
{
namespace
slideshow
{
namespace
internal
{
namespace
internal
{
...
@@ -32,7 +33,7 @@ namespace internal {
...
@@ -32,7 +33,7 @@ namespace internal {
class
Delay
:
public
Event
,
private
::
boost
::
noncopyable
class
Delay
:
public
Event
,
private
::
boost
::
noncopyable
{
{
public
:
public
:
typedef
::
boost
::
function0
<
void
>
FunctorT
;
typedef
::
std
::
function
<
void
()
>
FunctorT
;
template
<
typename
FuncT
>
template
<
typename
FuncT
>
Delay
(
FuncT
const
&
func
,
Delay
(
FuncT
const
&
func
,
...
@@ -41,7 +42,7 @@ public:
...
@@ -41,7 +42,7 @@ public:
)
:
Event
(
rsDescription
),
)
:
Event
(
rsDescription
),
mnTimeout
(
nTimeout
),
maFunc
(
func
),
mbWasFired
(
false
)
{}
mnTimeout
(
nTimeout
),
maFunc
(
func
),
mbWasFired
(
false
)
{}
Delay
(
const
boost
::
function0
<
void
>&
func
,
Delay
(
const
std
::
function
<
void
()
>&
func
,
double
nTimeout
double
nTimeout
,
const
OUString
&
rsDescription
,
const
OUString
&
rsDescription
)
:
Event
(
rsDescription
),
)
:
Event
(
rsDescription
),
...
...
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