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
28159e91
Kaydet (Commit)
28159e91
authored
May 11, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sdext: replace boost::bind with C++11 lambdas, part 2
Change-Id: Ife5fbf7a7a41182de00dca339cba160e3bb0062f
üst
0b8a989a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
29 deletions
+42
-29
precompiled_PresenterScreen.hxx
sdext/inc/pch/precompiled_PresenterScreen.hxx
+0
-1
PresenterScrollBar.cxx
sdext/source/presenter/PresenterScrollBar.cxx
+3
-2
PresenterSlideSorter.cxx
sdext/source/presenter/PresenterSlideSorter.cxx
+4
-3
PresenterTextView.cxx
sdext/source/presenter/PresenterTextView.cxx
+3
-3
PresenterTheme.cxx
sdext/source/presenter/PresenterTheme.cxx
+21
-13
PresenterTimer.cxx
sdext/source/presenter/PresenterTimer.cxx
+2
-2
PresenterToolBar.cxx
sdext/source/presenter/PresenterToolBar.cxx
+4
-2
PresenterViewFactory.cxx
sdext/source/presenter/PresenterViewFactory.cxx
+5
-3
No files found.
sdext/inc/pch/precompiled_PresenterScreen.hxx
Dosyayı görüntüle @
28159e91
...
...
@@ -40,7 +40,6 @@
#include <string>
#include <utility>
#include <vector>
#include <boost/bind.hpp>
#include <osl/diagnose.h>
#include <osl/doublecheckedlocking.h>
#include <osl/getglobalmutex.hxx>
...
...
sdext/source/presenter/PresenterScrollBar.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -31,7 +31,7 @@
#include <com/sun/star/rendering/CompositeOperation.hpp>
#include <com/sun/star/rendering/TexturingMode.hpp>
#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
#include <boost/bind.hpp>
#include <algorithm>
#include <memory>
#include <math.h>
...
...
@@ -809,8 +809,9 @@ void PresenterScrollBar::MousePressRepeater::Start (const PresenterScrollBar::Ar
Execute
();
// Schedule repeated executions.
auto
pThis
(
shared_from_this
());
mnMousePressRepeaterTaskId
=
PresenterTimer
::
ScheduleRepeatedTask
(
::
boost
::
bind
(
&
PresenterScrollBar
::
MousePressRepeater
::
Callback
,
shared_from_this
(),
_1
)
,
[
pThis
]
(
TimeValue
const
&
rTime
)
{
return
pThis
->
Callback
(
rTime
);
}
,
500000000
,
250000000
);
}
...
...
sdext/source/presenter/PresenterSlideSorter.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -44,7 +44,6 @@
#include <com/sun/star/util/Color.hpp>
#include <algorithm>
#include <math.h>
#include <boost/bind.hpp>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -303,7 +302,7 @@ PresenterSlideSorter::PresenterSlideSorter (
rxContext
,
mxWindow
,
mpPresenterController
->
GetPaintManager
(),
::
boost
::
bind
(
&
PresenterSlideSorter
::
SetVerticalOffset
,
this
,
_1
)
));
[
this
]
(
double
const
offset
)
{
return
this
->
SetVerticalOffset
(
offset
);
}
));
mpCloseButton
=
PresenterButton
::
Create
(
rxContext
,
...
...
@@ -1052,7 +1051,9 @@ void PresenterSlideSorter::Paint (const awt::Rectangle& rUpdateBox)
PresenterGeometryHelper
::
ConvertRectangle
(
mpLayout
->
maBoundingBox
)))
{
mpLayout
->
ForAllVisibleSlides
(
::
boost
::
bind
(
&
PresenterSlideSorter
::
PaintPreview
,
this
,
mxCanvas
,
rUpdateBox
,
_1
));
[
this
,
&
rUpdateBox
]
(
sal_Int32
const
nIndex
)
{
return
this
->
PaintPreview
(
this
->
mxCanvas
,
rUpdateBox
,
nIndex
);
});
}
Reference
<
rendering
::
XSpriteCanvas
>
xSpriteCanvas
(
mxCanvas
,
UNO_QUERY
);
...
...
sdext/source/presenter/PresenterTextView.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -36,7 +36,6 @@
#include <com/sun/star/rendering/CompositeOperation.hpp>
#include <com/sun/star/rendering/TextDirection.hpp>
#include <com/sun/star/text/WritingMode2.hpp>
#include <boost/bind.hpp>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
accessibility
;
...
...
@@ -75,7 +74,8 @@ PresenterTextView::PresenterTextView (
mpFont
(),
maParagraphs
(),
mpCaret
(
new
PresenterTextCaret
(
::
boost
::
bind
(
&
PresenterTextView
::
GetCaretBounds
,
this
,
_1
,
_2
),
[
this
]
(
sal_Int32
const
nParagraphIndex
,
sal_Int32
const
nCharacterIndex
)
{
return
this
->
GetCaretBounds
(
nParagraphIndex
,
nCharacterIndex
);
},
rInvalidator
)),
mnLeftOffset
(
0
),
mnTopOffset
(
0
),
...
...
@@ -1105,7 +1105,7 @@ void PresenterTextCaret::ShowCaret()
if
(
mnCaretBlinkTaskId
==
0
)
{
mnCaretBlinkTaskId
=
PresenterTimer
::
ScheduleRepeatedTask
(
::
boost
::
bind
(
&
PresenterTextCaret
::
InvertCaret
,
this
)
,
[
this
]
(
TimeValue
const
&
)
{
return
this
->
InvertCaret
();
}
,
CaretBlinkIntervall
,
CaretBlinkIntervall
);
}
...
...
sdext/source/presenter/PresenterTheme.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -31,7 +31,6 @@
#include <com/sun/star/rendering/XBitmap.hpp>
#include <com/sun/star/util/Color.hpp>
#include <osl/diagnose.h>
#include <boost/bind.hpp>
#include <map>
using
namespace
::
com
::
sun
::
star
;
...
...
@@ -383,10 +382,11 @@ std::shared_ptr<PresenterConfigurationAccess> PresenterTheme::GetNodeForViewStyl
"Presenter/Themes/"
+
mpTheme
->
msConfigurationNodeName
+
"/ViewStyles"
)))
{
pConfiguration
->
GoToChild
(
::
boost
::
bind
(
&
PresenterConfigurationAccess
::
IsStringPropertyEqual
,
rsStyleName
,
OUString
(
"StyleName"
),
_2
));
[
&
rsStyleName
]
(
OUString
const
&
,
uno
::
Reference
<
beans
::
XPropertySet
>
const
&
xProps
)
{
return
PresenterConfigurationAccess
::
IsStringPropertyEqual
(
rsStyleName
,
OUString
(
"StyleName"
),
xProps
);
});
}
return
pConfiguration
;
}
...
...
@@ -653,8 +653,10 @@ void PresenterTheme::Theme::Read (
UNO_QUERY
);
PresenterConfigurationAccess
::
ForAll
(
xFontNode
,
::
boost
::
bind
(
&
PresenterTheme
::
Theme
::
ProcessFont
,
this
,
::
boost
::
ref
(
rReadContext
),
_1
,
_2
));
[
this
,
&
rReadContext
]
(
OUString
const
&
rKey
,
uno
::
Reference
<
beans
::
XPropertySet
>
const
&
xProps
)
{
return
this
->
ProcessFont
(
rReadContext
,
rKey
,
xProps
);
});
}
SharedPaneStyle
PresenterTheme
::
Theme
::
GetPaneStyle
(
const
OUString
&
rsStyleName
)
const
...
...
@@ -863,8 +865,10 @@ void PaneStyleContainer::Read (
PresenterConfigurationAccess
::
ForAll
(
xPaneStyleList
,
aProperties
,
::
boost
::
bind
(
&
PaneStyleContainer
::
ProcessPaneStyle
,
this
,
::
boost
::
ref
(
rReadContext
),
_1
,
_2
));
[
this
,
&
rReadContext
]
(
OUString
const
&
rKey
,
std
::
vector
<
uno
::
Any
>
const
&
rValues
)
{
return
this
->
ProcessPaneStyle
(
rReadContext
,
rKey
,
rValues
);
});
}
}
...
...
@@ -993,8 +997,10 @@ void ViewStyleContainer::Read (
{
PresenterConfigurationAccess
::
ForAll
(
xViewStyleList
,
::
boost
::
bind
(
&
ViewStyleContainer
::
ProcessViewStyle
,
this
,
::
boost
::
ref
(
rReadContext
),
_2
));
[
this
,
&
rReadContext
]
(
OUString
const
&
,
uno
::
Reference
<
beans
::
XPropertySet
>
const
&
xProps
)
{
return
this
->
ProcessViewStyle
(
rReadContext
,
xProps
);
});
}
}
...
...
@@ -1106,8 +1112,10 @@ void StyleAssociationContainer::Read (
PresenterConfigurationAccess
::
ForAll
(
xStyleAssociationList
,
aProperties
,
::
boost
::
bind
(
&
StyleAssociationContainer
::
ProcessStyleAssociation
,
this
,
::
boost
::
ref
(
rReadContext
),
_1
,
_2
));
[
this
,
&
rReadContext
]
(
OUString
const
&
rKey
,
std
::
vector
<
uno
::
Any
>
const
&
rValues
)
{
return
this
->
ProcessStyleAssociation
(
rReadContext
,
rKey
,
rValues
);
});
}
}
...
...
sdext/source/presenter/PresenterTimer.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <osl/doublecheckedlocking.h>
#include <osl/thread.hxx>
#include <boost/bind.hpp>
#include <algorithm>
#include <iterator>
#include <memory>
...
...
@@ -416,7 +416,7 @@ void PresenterClockTimer::AddListener (const SharedListener& rListener)
if
(
mnTimerTaskId
==
PresenterTimer
::
NotAValidTaskId
)
{
mnTimerTaskId
=
PresenterTimer
::
ScheduleRepeatedTask
(
::
boost
::
bind
(
&
PresenterClockTimer
::
CheckCurrentTime
,
this
,
_1
)
,
[
this
]
(
TimeValue
const
&
rTime
)
{
return
this
->
CheckCurrentTime
(
rTime
);
}
,
0
,
250000000
/*ns*/
);
}
...
...
sdext/source/presenter/PresenterToolBar.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -49,7 +49,6 @@
#include <com/sun/star/util/Color.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <rtl/ustrbuf.hxx>
#include <boost/bind.hpp>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -658,7 +657,10 @@ void PresenterToolBar::CreateControls (
{
PresenterConfigurationAccess
::
ForAll
(
xEntries
,
::
boost
::
bind
(
&
PresenterToolBar
::
ProcessEntry
,
this
,
_2
,
::
boost
::
ref
(
aContext
)));
[
this
,
&
aContext
]
(
OUString
const
&
,
uno
::
Reference
<
beans
::
XPropertySet
>
const
&
xProps
)
{
return
this
->
ProcessEntry
(
xProps
,
aContext
);
});
}
}
}
...
...
sdext/source/presenter/PresenterViewFactory.cxx
Dosyayı görüntüle @
28159e91
...
...
@@ -35,7 +35,6 @@
#include <com/sun/star/drawing/XSlideSorterBase.hpp>
#include <com/sun/star/presentation/XSlideShow.hpp>
#include <com/sun/star/presentation/XSlideShowView.hpp>
#include <boost/bind.hpp>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -490,8 +489,11 @@ Reference<XView> PresenterViewFactory::CreateSlideSorterView(
PresenterPaneContainer
::
SharedPaneDescriptor
pDescriptor
(
mpPresenterController
->
GetPaneContainer
()
->
FindPaneId
(
rxViewId
->
getAnchor
()));
if
(
pDescriptor
.
get
()
!=
nullptr
)
pDescriptor
->
maActivator
=
::
boost
::
bind
(
&
PresenterSlideSorter
::
SetActiveState
,
_1
);
{
pDescriptor
->
maActivator
=
[]
(
bool
const
isActive
)
{
return
PresenterSlideSorter
::
SetActiveState
(
isActive
);
};
}
xView
=
pView
.
get
();
}
catch
(
RuntimeException
&
)
...
...
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