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
5088ee99
Kaydet (Commit)
5088ee99
authored
Agu 03, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd: replace boost::function with std::function
Change-Id: If70426d6d93a8c3b7c585b1c69e9b1c58643d140
üst
902d61bc
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
48 additions
and
41 deletions
+48
-41
precompiled_sd.hxx
sd/inc/pch/precompiled_sd.hxx
+0
-1
FrameworkHelper.hxx
sd/source/ui/inc/framework/FrameworkHelper.hxx
+6
-5
navigatr.hxx
sd/source/ui/inc/navigatr.hxx
+1
-1
sdtreelb.hxx
sd/source/ui/inc/sdtreelb.hxx
+0
-1
AsynchronousCall.hxx
sd/source/ui/inc/tools/AsynchronousCall.hxx
+3
-2
ConfigurationAccess.hxx
sd/source/ui/inc/tools/ConfigurationAccess.hxx
+3
-2
SlsQueueProcessor.hxx
sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx
+3
-2
SlsScrollBarManager.cxx
sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx
+2
-2
SlsVisibleAreaManager.cxx
...ource/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
+1
-1
SlsAnimationFunction.hxx
...ce/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx
+4
-2
SlsAnimator.hxx
sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
+6
-4
SlsScrollBarManager.hxx
...rce/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx
+4
-3
SlsTransferableData.hxx
...rce/ui/slidesorter/inc/controller/SlsTransferableData.hxx
+3
-2
SlsPageEnumeration.hxx
sd/source/ui/slidesorter/inc/model/SlsPageEnumeration.hxx
+2
-2
SlsPageEnumerationProvider.cxx
...ource/ui/slidesorter/model/SlsPageEnumerationProvider.cxx
+0
-1
SlsInsertAnimator.cxx
sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
+5
-6
SlsLayeredDevice.cxx
sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
+5
-4
No files found.
sd/inc/pch/precompiled_sd.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -69,7 +69,6 @@
#include <basic/sbx.hxx>
#include <boost/bind.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/function.hpp>
#include <boost/limits.hpp>
#include <boost/make_shared.hpp>
#include <boost/noncopyable.hpp>
...
...
sd/source/ui/inc/framework/FrameworkHelper.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -31,7 +31,8 @@
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/function.hpp>
#include <functional>
#include <map>
namespace
sd
{
...
...
@@ -146,11 +147,11 @@ public:
static
::
boost
::
shared_ptr
<
ViewShell
>
GetViewShell
(
const
css
::
uno
::
Reference
<
css
::
drawing
::
framework
::
XView
>&
rxView
);
typedef
::
boost
::
function
<
bool
(
const
css
::
drawing
::
framework
::
ConfigurationChangeEvent
&
)
>
typedef
::
std
::
function
<
bool
(
const
css
::
drawing
::
framework
::
ConfigurationChangeEvent
&
)
>
ConfigurationChangeEventFilter
;
typedef
::
boost
::
function
<
void
(
bool
bEventSeen
)
>
Callback
;
typedef
::
boost
::
function
<
void
(
typedef
::
std
::
function
<
void
(
bool
bEventSeen
)
>
Callback
;
typedef
::
std
::
function
<
void
(
const
css
::
uno
::
Reference
<
css
::
drawing
::
framework
::
XResourceId
>&
)
>
ResourceFunctor
;
...
...
sd/source/ui/inc/navigatr.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -81,7 +81,7 @@ class SdNavigatorWin
:
public
vcl
::
Window
{
public
:
typedef
::
boost
::
function
<
void
()
>
UpdateRequestFunctor
;
typedef
::
std
::
function
<
void
()
>
UpdateRequestFunctor
;
/** Create a new instance of the navigator.
@param bUseActiveUpdate
...
...
sd/source/ui/inc/sdtreelb.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -31,7 +31,6 @@
#include "sdxfer.hxx"
#include <vector>
#include <boost/scoped_ptr.hpp>
#include <boost/function.hpp>
class
SdDrawDocument
;
class
SfxMedium
;
...
...
sd/source/ui/inc/tools/AsynchronousCall.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -21,8 +21,9 @@
#define INCLUDED_SD_SOURCE_UI_INC_TOOLS_ASYNCHRONOUSCALL_HXX
#include <vcl/timer.hxx>
#include <memory>
#include <
boost/function.hpp
>
#include <
functional
>
namespace
sd
{
namespace
tools
{
...
...
@@ -63,7 +64,7 @@ public:
The timeout in milliseconds until the function object is
executed.
*/
typedef
::
boost
::
function0
<
void
>
AsynchronousFunction
;
typedef
::
std
::
function
<
void
()
>
AsynchronousFunction
;
void
Post
(
const
AsynchronousFunction
&
rFunction
,
sal_uInt32
nTimeoutInMilliseconds
=
10
);
...
...
sd/source/ui/inc/tools/ConfigurationAccess.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -25,8 +25,9 @@
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <vector>
#include <
boost/function.hpp
>
#include <
functional
>
namespace
sd
{
namespace
tools
{
...
...
@@ -91,7 +92,7 @@ public:
parameters are the name of key item (often of no further interest)
and the value of the item.
*/
typedef
::
boost
::
function
<
void
(
typedef
::
std
::
function
<
void
(
const
OUString
&
,
const
std
::
vector
<
css
::
uno
::
Any
>&
)
>
Functor
;
...
...
sd/source/ui/slidesorter/cache/SlsQueueProcessor.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -32,7 +32,8 @@
#include <svx/svdpagv.hxx>
#include <vcl/svapp.hxx>
#include <vcl/timer.hxx>
#include <boost/function.hpp>
#include <functional>
namespace
sd
{
namespace
slidesorter
{
namespace
view
{
class
SlideSorterView
;
...
...
@@ -51,7 +52,7 @@ class RequestQueue;
class
QueueProcessor
{
public
:
typedef
::
boost
::
function
<
bool
()
>
IdleDetectionCallback
;
typedef
::
std
::
function
<
bool
()
>
IdleDetectionCallback
;
QueueProcessor
(
RequestQueue
&
rQueue
,
const
::
boost
::
shared_ptr
<
BitmapCache
>&
rpCache
,
...
...
sd/source/ui/slidesorter/controller/SlsScrollBarManager.cxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -501,7 +501,7 @@ void ScrollBarManager::CalcAutoScrollOffset (const Point& rMouseWindowPosition)
bool
ScrollBarManager
::
AutoScroll
(
const
Point
&
rMouseWindowPosition
,
const
::
boost
::
function
<
void
()
>&
rAutoScrollFunctor
)
const
::
std
::
function
<
void
()
>&
rAutoScrollFunctor
)
{
maAutoScrollFunctor
=
rAutoScrollFunctor
;
CalcAutoScrollOffset
(
rMouseWindowPosition
);
...
...
@@ -546,7 +546,7 @@ bool ScrollBarManager::RepeatAutoScroll()
void
ScrollBarManager
::
clearAutoScrollFunctor
()
{
maAutoScrollFunctor
=
::
boost
::
function
<
void
()
>
();
maAutoScrollFunctor
=
::
std
::
function
<
void
()
>
();
}
IMPL_LINK_NOARG_TYPED
(
ScrollBarManager
,
AutoScrollTimeoutHandler
,
Timer
*
,
void
)
...
...
sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -43,7 +43,7 @@ namespace {
SlideSorter
&
mrSlideSorter
;
Point
maStart
;
const
Point
maEnd
;
const
::
boost
::
function
<
double
(
double
)
>
maAccelerationFunction
;
const
::
std
::
function
<
double
(
double
)
>
maAccelerationFunction
;
};
}
// end of anonymous namespace
...
...
sd/source/ui/slidesorter/inc/controller/SlsAnimationFunction.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -22,8 +22,10 @@
#include "model/SlsSharedPageDescriptor.hxx"
#include <basegfx/point/b2dpoint.hxx>
#include <boost/noncopyable.hpp>
#include <boost/function.hpp>
#include <functional>
#include <vector>
namespace
sd
{
namespace
slidesorter
{
namespace
view
{
...
...
@@ -65,7 +67,7 @@ private:
class
AnimationParametricFunction
{
public
:
typedef
::
boost
::
function
<
basegfx
::
B2DPoint
(
double
)
>
ParametricFunction
;
typedef
::
std
::
function
<
basegfx
::
B2DPoint
(
double
)
>
ParametricFunction
;
AnimationParametricFunction
(
const
ParametricFunction
&
rFunction
);
double
operator
()
(
const
double
nX
);
...
...
sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -26,12 +26,14 @@
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
#include <sal/types.h>
#include <vector>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <functional>
#include <vector>
namespace
sd
{
namespace
slidesorter
{
namespace
controller
{
/** Experimental class for simple eye candy animations.
...
...
@@ -57,8 +59,8 @@ public:
/** An animation object is called with values between 0 and 1 as single
argument to its operator() method.
*/
typedef
::
boost
::
function1
<
void
,
double
>
AnimationFunctor
;
typedef
::
boost
::
function0
<
void
>
FinishFunctor
;
typedef
::
std
::
function
<
void
(
double
)
>
AnimationFunctor
;
typedef
::
std
::
function
<
void
()
>
FinishFunctor
;
typedef
sal_Int32
AnimationId
;
static
const
AnimationId
NotAnAnimationId
=
-
1
;
...
...
sd/source/ui/slidesorter/inc/controller/SlsScrollBarManager.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -25,7 +25,8 @@
#include <tools/link.hxx>
#include <tools/gen.hxx>
#include <vcl/timer.hxx>
#include <boost/function.hpp>
#include <functional>
class
ScrollBar
;
class
ScrollBarBox
;
...
...
@@ -144,7 +145,7 @@ public:
*/
bool
AutoScroll
(
const
Point
&
rMouseWindowPosition
,
const
::
boost
::
function
<
void
()
>&
rAutoScrollFunctor
);
const
::
std
::
function
<
void
()
>&
rAutoScrollFunctor
);
void
StopAutoScroll
();
...
...
@@ -207,7 +208,7 @@ private:
*/
VclPtr
<
sd
::
Window
>
mpContentWindow
;
::
boost
::
function
<
void
()
>
maAutoScrollFunctor
;
::
std
::
function
<
void
()
>
maAutoScrollFunctor
;
void
SetWindowOrigin
(
double
nHorizontalPosition
,
...
...
sd/source/ui/slidesorter/inc/controller/SlsTransferableData.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -21,8 +21,9 @@
#define INCLUDED_SD_SOURCE_UI_SLIDESORTER_INC_CONTROLLER_SLSTRANSFERABLEDATA_HXX
#include "sdxfer.hxx"
#include <boost/function.hpp>
#include <vector>
#include <functional>
class
SdDrawDocument
;
namespace
sd
{
namespace
slidesorter
{
...
...
@@ -78,7 +79,7 @@ public:
private
:
SlideSorterViewShell
*
mpViewShell
;
const
::
std
::
vector
<
Representative
>
maRepresentatives
;
typedef
::
std
::
vector
<
boost
::
function
<
void
(
sal_uInt8
)
>
>
CallbackContainer
;
typedef
::
std
::
vector
<
std
::
function
<
void
(
sal_uInt8
)
>
>
CallbackContainer
;
virtual
void
Notify
(
SfxBroadcaster
&
rBroadcaster
,
const
SfxHint
&
rHint
)
SAL_OVERRIDE
;
};
...
...
sd/source/ui/slidesorter/inc/model/SlsPageEnumeration.hxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -27,7 +27,7 @@
#include "model/SlsEnumeration.hxx"
#include "model/SlsSharedPageDescriptor.hxx"
#include <
boost/function.hpp
>
#include <
functional
>
#include <memory>
namespace
sd
{
namespace
slidesorter
{
namespace
model
{
...
...
@@ -54,7 +54,7 @@ public:
enumeration. Pages for which rPredicate returns <FALSE/> are
exclude.
*/
typedef
::
boost
::
function
<
bool
(
const
SharedPageDescriptor
&
)
>
PagePredicate
;
typedef
::
std
::
function
<
bool
(
const
SharedPageDescriptor
&
)
>
PagePredicate
;
static
PageEnumeration
Create
(
const
SlideSorterModel
&
rModel
,
const
PagePredicate
&
rPredicate
);
...
...
sd/source/ui/slidesorter/model/SlsPageEnumerationProvider.cxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -20,7 +20,6 @@
#include "model/SlsPageEnumerationProvider.hxx"
#include "model/SlsPageEnumeration.hxx"
#include "model/SlsPageDescriptor.hxx"
#include <boost/function.hpp>
namespace
sd
{
namespace
slidesorter
{
namespace
model
{
...
...
sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -97,7 +97,7 @@ public:
private
:
controller
::
Animator
::
AnimationId
mnAnimationId
;
AnimatorAccess
&
mrAnimatorAccess
;
::
boost
::
function
<
double
(
double
)
>
maAccelerationFunction
;
::
std
::
function
<
double
(
double
)
>
maAccelerationFunction
;
void
RestartAnimation
();
};
...
...
@@ -395,14 +395,13 @@ void PageObjectRun::RestartAnimation()
// Restart the animation.
mrAnimatorAccess
.
AddRun
(
shared_from_this
());
auto
sharedThis
(
shared_from_this
());
mnAnimationId
=
mrAnimatorAccess
.
GetAnimator
()
->
AddAnimation
(
::
boost
::
ref
(
*
this
)
,
[
this
]
(
double
const
val
)
{
(
*
this
)(
val
);
}
,
0
,
300
,
::
boost
::
bind
(
&
AnimatorAccess
::
RemoveRun
,
::
boost
::
ref
(
mrAnimatorAccess
),
shared_from_this
()));
[
sharedThis
]
()
{
sharedThis
->
mrAnimatorAccess
.
RemoveRun
(
sharedThis
);
}
);
}
void
PageObjectRun
::
operator
()
(
const
double
nGlobalTime
)
...
...
sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
Dosyayı görüntüle @
5088ee99
...
...
@@ -22,12 +22,13 @@
#include <vcl/window.hxx>
#include <vcl/virdev.hxx>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <tools/gen.hxx>
#include <tools/fract.hxx>
#include <boost/bind.hpp>
#include <functional>
namespace
sd
{
namespace
slidesorter
{
namespace
view
{
namespace
{
...
...
@@ -75,7 +76,7 @@ void DeviceCopy (
rSourceDevice
);
}
void
ForAllRectangles
(
const
vcl
::
Region
&
rRegion
,
::
boost
::
function
<
void
(
const
Rectangle
&
)
>
aFunction
)
void
ForAllRectangles
(
const
vcl
::
Region
&
rRegion
,
::
std
::
function
<
void
(
const
Rectangle
&
)
>
aFunction
)
{
OSL_ASSERT
(
aFunction
);
RectangleVector
aRectangles
;
...
...
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