summaryrefslogtreecommitdiff
path: root/slideshow/source/engine
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-08 17:39:23 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-08 17:41:39 +0100
commitc2cc6289baf2154cbb7c4fa88627060793ffb22c (patch)
tree585bc6551bb9b6db2d4a0acf0ee0bcc01458bae5 /slideshow/source/engine
parent222e5b0572ffea06729d0799e77390baa22bff57 (diff)
Port stuff to our private implementation of SGI extensions
Diffstat (limited to 'slideshow/source/engine')
-rw-r--r--slideshow/source/engine/rehearsetimingsactivity.cxx5
-rw-r--r--slideshow/source/engine/slide/layermanager.cxx6
-rw-r--r--slideshow/source/engine/slide/shapemanagerimpl.cxx8
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx6
-rw-r--r--slideshow/source/engine/waitsymbol.cxx5
5 files changed, 19 insertions, 11 deletions
diff --git a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx
index b8a01924f..439601c03 100644
--- a/slideshow/source/engine/rehearsetimingsactivity.cxx
+++ b/slideshow/source/engine/rehearsetimingsactivity.cxx
@@ -55,6 +55,7 @@
#include "rehearsetimingsactivity.hxx"
#include <boost/bind.hpp>
+#include <o3tl/compat_functional.hxx>
#include <algorithm>
using namespace com::sun::star;
@@ -374,7 +375,7 @@ void RehearseTimingsActivity::viewRemoved( const UnoViewSharedPtr& rView )
std::equal_to<UnoViewSharedPtr>(),
rView,
// select view:
- boost::bind( std::select1st<ViewsVecT::value_type>(), _1 ))),
+ boost::bind( o3tl::select1st<ViewsVecT::value_type>(), _1 ))),
maViews.end() );
}
@@ -389,7 +390,7 @@ void RehearseTimingsActivity::viewChanged( const UnoViewSharedPtr& rView )
std::equal_to<UnoViewSharedPtr>(),
rView,
// select view:
- boost::bind( std::select1st<ViewsVecT::value_type>(), _1 ))));
+ boost::bind( o3tl::select1st<ViewsVecT::value_type>(), _1 ))));
OSL_ASSERT( aModifiedEntry != maViews.end() );
if( aModifiedEntry == maViews.end() )
diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx
index 0bd52febb..5f85cca61 100644
--- a/slideshow/source/engine/slide/layermanager.cxx
+++ b/slideshow/source/engine/slide/layermanager.cxx
@@ -40,6 +40,8 @@
#include <boost/bind.hpp>
#include <algorithm>
+#include <o3tl/compat_functional.hxx>
+
#include "layermanager.hxx"
using namespace ::com::sun::star;
@@ -162,7 +164,7 @@ namespace slideshow
std::for_each(maAllShapes.begin(),
maAllShapes.end(),
boost::bind( &Shape::clearAllViewLayers,
- boost::bind( std::select1st<LayerShapeMap::value_type>(),
+ boost::bind( o3tl::select1st<LayerShapeMap::value_type>(),
_1 )));
for (LayerShapeMap::iterator
@@ -272,7 +274,7 @@ namespace slideshow
std::for_each( maAllShapes.begin(),
maAllShapes.end(),
boost::bind(&Shape::render,
- boost::bind( ::std::select1st<LayerShapeMap::value_type>(), _1)) );
+ boost::bind( ::o3tl::select1st<LayerShapeMap::value_type>(), _1)) );
}
void LayerManager::addShape( const ShapeSharedPtr& rShape )
diff --git a/slideshow/source/engine/slide/shapemanagerimpl.cxx b/slideshow/source/engine/slide/shapemanagerimpl.cxx
index bc1856890..6d28deef9 100644
--- a/slideshow/source/engine/slide/shapemanagerimpl.cxx
+++ b/slideshow/source/engine/slide/shapemanagerimpl.cxx
@@ -41,6 +41,8 @@
#include <boost/bind.hpp>
+#include <o3tl/compat_functional.hxx>
+
using namespace com::sun::star;
namespace slideshow {
@@ -83,7 +85,7 @@ void ShapeManagerImpl::activate( bool bSlideBackgoundPainted )
this,
boost::cref(xDummyListener),
boost::bind(
- std::select1st<ShapeEventListenerMap::value_type>(),
+ o3tl::select1st<ShapeEventListenerMap::value_type>(),
_1 )));
// clone cursor map
@@ -92,10 +94,10 @@ void ShapeManagerImpl::activate( bool bSlideBackgoundPainted )
boost::bind( &ShapeManagerImpl::cursorChanged,
this,
boost::bind(
- std::select1st<ShapeCursorMap::value_type>(),
+ o3tl::select1st<ShapeCursorMap::value_type>(),
_1 ),
boost::bind(
- std::select2nd<ShapeCursorMap::value_type>(),
+ o3tl::select2nd<ShapeCursorMap::value_type>(),
_1 )));
if( mpLayerManager )
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index 95c047b01..84b825327 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -75,6 +75,8 @@
#include "event.hxx"
#include "tools.hxx"
+#include <o3tl/compat_functional.hxx>
+
#include <boost/bind.hpp>
#include <iterator>
#include <algorithm>
@@ -619,7 +621,7 @@ SlideBitmapSharedPtr SlideImpl::getCurrentSlideBitmap( const UnoViewSharedPtr& r
rView,
// select view:
boost::bind(
- std::select1st<VectorOfVectorOfSlideBitmaps::value_type>(),
+ o3tl::select1st<VectorOfVectorOfSlideBitmaps::value_type>(),
_1 )))) == aEnd )
{
// corresponding view not found - maybe view was not
@@ -693,7 +695,7 @@ void SlideImpl::viewRemoved( const UnoViewSharedPtr& rView )
rView,
// select view:
boost::bind(
- std::select1st<VectorOfVectorOfSlideBitmaps::value_type>(),
+ o3tl::select1st<VectorOfVectorOfSlideBitmaps::value_type>(),
_1 ))),
aEnd );
}
diff --git a/slideshow/source/engine/waitsymbol.cxx b/slideshow/source/engine/waitsymbol.cxx
index 8e36df487..022ad0e8e 100644
--- a/slideshow/source/engine/waitsymbol.cxx
+++ b/slideshow/source/engine/waitsymbol.cxx
@@ -43,6 +43,7 @@
#include "waitsymbol.hxx"
#include "eventmultiplexer.hxx"
+#include <o3tl/compat_functional.hxx>
#include <algorithm>
@@ -165,7 +166,7 @@ void WaitSymbol::viewRemoved( const UnoViewSharedPtr& rView )
std::equal_to<UnoViewSharedPtr>(),
rView,
// select view:
- boost::bind( std::select1st<ViewsVecT::value_type>(), _1 ) ) ),
+ boost::bind( o3tl::select1st<ViewsVecT::value_type>(), _1 ) ) ),
maViews.end() );
}
@@ -180,7 +181,7 @@ void WaitSymbol::viewChanged( const UnoViewSharedPtr& rView )
std::equal_to<UnoViewSharedPtr>(),
rView,
// select view:
- boost::bind( std::select1st<ViewsVecT::value_type>(), _1 ))));
+ boost::bind( o3tl::select1st<ViewsVecT::value_type>(), _1 ))));
OSL_ASSERT( aModifiedEntry != maViews.end() );
if( aModifiedEntry == maViews.end() )