This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch AOO50X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit b3533e202d2b218c7c91ae901594bf7369cc7944
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Nov 6 19:59:45 2026 -0500

    Replace std::mem_fun, bind1st, bind2nd and ptr_fun
    
    Uses std::bind, std::mem_fn and std::function. Stored mem_fun_t types
    become std::function.
---
 .../accessibility/standard/vclxaccessiblelist.hxx  |  2 +-
 .../source/standard/vclxaccessiblelist.cxx         |  2 +-
 main/basegfx/source/polygon/b2dpolypolygon.cxx     |  6 ++--
 main/basegfx/source/polygon/b3dpolypolygon.cxx     |  6 ++--
 .../source/controller/dialogs/DialogModel.cxx      |  4 +--
 .../source/controller/main/DrawCommandDispatch.cxx |  3 +-
 main/chart2/source/inc/CommonFunctors.hxx          |  4 +--
 main/comphelper/inc/comphelper/stl_types.hxx       |  2 +-
 .../source/commontools/TDatabaseMetaDataBase.cxx   | 26 ++++++++--------
 main/connectivity/source/commontools/dbtools2.cxx  |  3 +-
 .../source/drivers/file/FResultSet.cxx             |  3 +-
 .../connectivity/source/drivers/hsqldb/HDriver.cxx |  5 +--
 .../source/drivers/hsqldb/HStorageMap.cxx          |  5 +--
 .../source/drivers/odbcbase/OResultSet.cxx         |  3 +-
 .../source/inc/TDatabaseMetaDataBase.hxx           |  2 +-
 main/dbaccess/source/core/api/RowSetBase.cxx       | 12 ++++----
 main/dbaccess/source/core/api/RowSetBase.hxx       |  4 +--
 .../source/core/api/SingleSelectQueryComposer.cxx  | 11 ++++---
 .../source/core/dataaccess/databasedocument.cxx    |  4 +--
 .../source/core/dataaccess/definitioncontainer.cxx |  5 +--
 .../source/core/inc/SingleSelectQueryComposer.hxx  |  5 +--
 main/dbaccess/source/filter/xml/xmlExport.cxx      |  4 +--
 main/dbaccess/source/ui/browser/formadapter.cxx    |  7 +++--
 .../source/ui/browser/genericcontroller.cxx        | 11 ++++---
 main/dbaccess/source/ui/browser/unodatbr.cxx       |  3 +-
 .../dbaccess/source/ui/control/RelationControl.cxx |  2 +-
 main/dbaccess/source/ui/control/tabletree.cxx      |  7 +++--
 main/dbaccess/source/ui/dlg/adtabdlg.cxx           |  3 +-
 main/dbaccess/source/ui/inc/RefFunctor.hxx         |  8 +++--
 main/dbaccess/source/ui/inc/WCopyTable.hxx         |  2 +-
 main/dbaccess/source/ui/misc/DExport.cxx           |  3 +-
 main/dbaccess/source/ui/misc/RowSetDrop.cxx        |  2 +-
 main/dbaccess/source/ui/misc/UITools.cxx           |  5 +--
 main/dbaccess/source/ui/misc/WColumnSelect.cxx     |  4 +--
 main/dbaccess/source/ui/misc/WCopyTable.cxx        |  4 +--
 .../source/ui/misc/dbsubcomponentcontroller.cxx    |  3 +-
 .../source/ui/querydesign/JoinTableView.cxx        |  8 ++---
 .../source/ui/querydesign/TableConnection.cxx      |  5 +--
 .../source/ui/querydesign/TableWindowTitle.cxx     |  3 +-
 .../accessibility/AccessibleStaticTextBase.cxx     |  5 +--
 .../extensions/source/propctrlr/propertyeditor.cxx |  6 ++--
 .../extensions/source/propctrlr/propertyeditor.hxx |  3 +-
 main/forms/source/component/ListBox.cxx            |  4 +--
 main/forms/source/richtext/richtextengine.cxx      |  2 +-
 main/forms/source/xforms/binding.cxx               |  6 ++--
 main/formula/source/ui/dlg/formula.cxx             |  3 +-
 main/jvmfwk/source/framework.cxx                   |  4 +--
 main/reportdesign/inc/UndoActions.hxx              | 36 +++++++++++-----------
 .../source/core/sdr/PropertyForward.cxx            |  3 +-
 main/reportdesign/source/core/sdr/UndoActions.cxx  | 34 ++++++++++----------
 main/reportdesign/source/ui/dlg/Navigator.cxx      |  8 ++---
 .../source/ui/inc/ReportController.hxx             |  2 +-
 main/reportdesign/source/ui/inc/RptUndo.hxx        | 16 +++++-----
 main/reportdesign/source/ui/inc/SectionWindow.hxx  |  4 +--
 .../source/ui/inspection/GeometryHandler.cxx       |  5 +--
 main/reportdesign/source/ui/misc/RptUndo.cxx       |  8 ++---
 .../source/ui/report/ReportController.cxx          | 31 ++++++++++---------
 .../source/ui/report/SectionWindow.cxx             | 16 +++++-----
 main/reportdesign/source/ui/report/ViewsWindow.cxx | 17 +++++-----
 main/sd/source/ui/tools/PropertySet.cxx            |  4 +--
 main/sd/source/ui/view/drviews1.cxx                |  2 +-
 main/sfx2/source/doc/sfxbasemodel.cxx              |  3 +-
 .../slideshow/source/engine/smilfunctionparser.cxx |  8 ++---
 main/svx/source/form/filtnav.cxx                   |  4 +--
 .../source/svdraw/svdotextpathdecomposition.cxx    |  5 +--
 main/sw/source/core/doc/doc.cxx                    | 15 ++++-----
 main/sw/source/core/doc/docdesc.cxx                | 11 ++++---
 main/sw/source/core/doc/docfmt.cxx                 |  3 +-
 main/sw/source/core/doc/docftn.cxx                 | 11 ++++---
 main/sw/source/core/doc/ftnidx.cxx                 |  3 +-
 main/sw/source/core/doc/lineinfo.cxx               |  5 +--
 main/sw/source/core/doc/number.cxx                 |  5 +--
 main/sw/source/filter/ww8/wrtw8nds.cxx             |  2 +-
 main/sw/source/filter/ww8/wrtw8sty.cxx             |  6 ++--
 main/vcl/source/glyphs/graphite_layout.cxx         |  2 +-
 main/xmloff/source/forms/layerimport.cxx           | 13 ++++----
 main/xmloff/source/xforms/TokenContext.cxx         |  2 +-
 77 files changed, 279 insertions(+), 239 deletions(-)

diff --git 
a/main/accessibility/inc/accessibility/standard/vclxaccessiblelist.hxx 
b/main/accessibility/inc/accessibility/standard/vclxaccessiblelist.hxx
index 174d334991..c4c4b71ed5 100644
--- a/main/accessibility/inc/accessibility/standard/vclxaccessiblelist.hxx
+++ b/main/accessibility/inc/accessibility/standard/vclxaccessiblelist.hxx
@@ -206,7 +206,7 @@ private:
        */
        void clearItems();
 
-       void adjustEntriesIndexInParent(ListItems::iterator& 
_aBegin,::std::mem_fun_t<bool,VCLXAccessibleListItem>& _rMemFun);
+       void adjustEntriesIndexInParent(ListItems::iterator& 
_aBegin,::std::function<bool(VCLXAccessibleListItem*)>& _rMemFun);
        void UpdateEntryRange_Impl (void);
 protected:
     void UpdateSelection_Impl (sal_uInt16 nPos = 0);
diff --git a/main/accessibility/source/standard/vclxaccessiblelist.cxx 
b/main/accessibility/source/standard/vclxaccessiblelist.cxx
index 5afefd03f6..c7675d7dcf 100644
--- a/main/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/main/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -524,7 +524,7 @@ void VCLXAccessibleList::UpdateSelection (::rtl::OUString 
sTextOfSelectedItem)
 }
 // 
-----------------------------------------------------------------------------
 
-void VCLXAccessibleList::adjustEntriesIndexInParent(ListItems::iterator& 
_aBegin,::std::mem_fun_t<bool,VCLXAccessibleListItem>& _rMemFun)
+void VCLXAccessibleList::adjustEntriesIndexInParent(ListItems::iterator& 
_aBegin,::std::function<bool(VCLXAccessibleListItem*)>& _rMemFun)
 {
        ListItems::iterator aIter = _aBegin;
        ListItems::iterator aEnd = m_aAccessibleChildren.end();
diff --git a/main/basegfx/source/polygon/b2dpolypolygon.cxx 
b/main/basegfx/source/polygon/b2dpolypolygon.cxx
index a52b74c724..8832295091 100644
--- a/main/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/main/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -133,14 +133,14 @@ public:
        {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( &basegfx::B2DPolygon::flip ));
+                       std::mem_fn( &basegfx::B2DPolygon::flip ));
        }
 
        void removeDoublePoints()
        {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( 
&basegfx::B2DPolygon::removeDoublePoints ));
+                       std::mem_fn( &basegfx::B2DPolygon::removeDoublePoints 
));
        }
 
        void transform(const basegfx::B2DHomMatrix& rMatrix)
@@ -155,7 +155,7 @@ public:
     {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( &basegfx::B2DPolygon::makeUnique ));
+                       std::mem_fn( &basegfx::B2DPolygon::makeUnique ));
     }
 
     const basegfx::B2DPolygon* begin() const
diff --git a/main/basegfx/source/polygon/b3dpolypolygon.cxx 
b/main/basegfx/source/polygon/b3dpolypolygon.cxx
index 5affc460ab..0e9a5cca13 100644
--- a/main/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/main/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -134,14 +134,14 @@ public:
        {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( &::basegfx::B3DPolygon::flip ));
+                       std::mem_fn( &::basegfx::B3DPolygon::flip ));
        }
 
        void removeDoublePoints()
        {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( 
&::basegfx::B3DPolygon::removeDoublePoints ));
+                       std::mem_fn( &::basegfx::B3DPolygon::removeDoublePoints 
));
        }
 
        void transform(const ::basegfx::B3DHomMatrix& rMatrix)
@@ -196,7 +196,7 @@ public:
     {
         std::for_each( maPolygons.begin(),
                        maPolygons.end(),
-                       std::mem_fun_ref( &::basegfx::B3DPolygon::makeUnique ));
+                       std::mem_fn( &::basegfx::B3DPolygon::makeUnique ));
     }
 };
 
diff --git a/main/chart2/source/controller/dialogs/DialogModel.cxx 
b/main/chart2/source/controller/dialogs/DialogModel.cxx
index a1f06e9523..1e1d316316 100644
--- a/main/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/main/chart2/source/controller/dialogs/DialogModel.cxx
@@ -118,8 +118,8 @@ OUString lcl_ConvertRole( const OUString & rRoleString, 
bool bFromInternalToUI )
     {
         tTranslationMap::const_iterator aIt(
             ::std::find_if( aTranslationMap.begin(), aTranslationMap.end(),
-                            ::std::compose1( ::std::bind2nd(
-                                                 ::std::equal_to< 
tTranslationMap::mapped_type >(),
+                            ::std::compose1( ::std::bind(
+                                                 ::std::equal_to< 
tTranslationMap::mapped_type >(), ::std::placeholders::_1,
                                                  rRoleString ),
                                              ::std::select2nd< 
tTranslationMap::value_type >())));
 
diff --git a/main/chart2/source/controller/main/DrawCommandDispatch.cxx 
b/main/chart2/source/controller/main/DrawCommandDispatch.cxx
index 0ac38f593c..f7c3b5c6ae 100644
--- a/main/chart2/source/controller/main/DrawCommandDispatch.cxx
+++ b/main/chart2/source/controller/main/DrawCommandDispatch.cxx
@@ -49,6 +49,7 @@
 #include <svx/xlnwtit.hxx>
 #include <svx/xtable.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
+#include <functional>
 
 #include <boost/bind.hpp>
 
@@ -394,7 +395,7 @@ void DrawCommandDispatch::execute( const ::rtl::OUString& 
rCommand, const Sequen
                 const beans::PropertyValue* pIter = rArgs.getConstArray();
                 const beans::PropertyValue* pEnd  = pIter + rArgs.getLength();
                 const beans::PropertyValue* pKeyModifier = ::std::find_if(
-                    pIter, pEnd, ::std::bind2nd( PropertyValueCompare(), 
boost::cref( sKeyModifier ) ) );
+                    pIter, pEnd, ::std::bind( PropertyValueCompare(), 
::std::placeholders::_1, boost::cref( sKeyModifier ) ) );
                 sal_Int16 nKeyModifier = 0;
                 if ( pKeyModifier && ( pKeyModifier->Value >>= nKeyModifier ) 
&& nKeyModifier == KEY_MOD1 )
                 {
diff --git a/main/chart2/source/inc/CommonFunctors.hxx 
b/main/chart2/source/inc/CommonFunctors.hxx
index ce08ca930e..c0e9935bbd 100644
--- a/main/chart2/source/inc/CommonFunctors.hxx
+++ b/main/chart2/source/inc/CommonFunctors.hxx
@@ -200,8 +200,8 @@ template< class MapType >
     findValueInMap( const MapType & rMap, const typename MapType::mapped_type 
& rData )
 {
     return ::std::find_if( rMap.begin(), rMap.end(),
-                           ::std::compose1( ::std::bind2nd(
-                                                ::std::equal_to< typename 
MapType::mapped_type >(),
+                           ::std::compose1( ::std::bind(
+                                                ::std::equal_to< typename 
MapType::mapped_type >(), ::std::placeholders::_1,
                                                 rData ),
                                             ::std::select2nd< typename 
MapType::value_type >()));
 }
diff --git a/main/comphelper/inc/comphelper/stl_types.hxx 
b/main/comphelper/inc/comphelper/stl_types.hxx
index 0e6bddc821..4d172e97a6 100644
--- a/main/comphelper/inc/comphelper/stl_types.hxx
+++ b/main/comphelper/inc/comphelper/stl_types.hxx
@@ -183,7 +183,7 @@ struct OInterfaceCompare
 };
 
 template <class _Tp, class _Arg>
-class mem_fun1_t : public ::std::binary_function<_Tp*,_Arg,void>
+class mem_fun1_t
 {
 public:
        typedef _Tp* first_argument_type;
diff --git a/main/connectivity/source/commontools/TDatabaseMetaDataBase.cxx 
b/main/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
index bbc45379ab..7e98dc64eb 100644
--- a/main/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
+++ b/main/connectivity/source/commontools/TDatabaseMetaDataBase.cxx
@@ -264,66 +264,66 @@ Reference< XResultSet > SAL_CALL 
ODatabaseMetaDataBase::getCatalogs(  )
 // 
-----------------------------------------------------------------------------
 ::rtl::OUString SAL_CALL ODatabaseMetaDataBase::getIdentifierQuoteString(  )
 {
-    return callImplMethod(m_sIdentifierQuoteString,::std::mem_fun_t< 
::rtl::OUString 
,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getIdentifierQuoteString_throw));
+    return callImplMethod(m_sIdentifierQuoteString,::std::function< 
::rtl::OUString(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_getIdentifierQuoteString_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::isCatalogAtStart(  )
 {
-    return callImplMethod(m_isCatalogAtStart,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_isCatalogAtStart_throw));
+    return callImplMethod(m_isCatalogAtStart,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_isCatalogAtStart_throw));
 }
 // 
-----------------------------------------------------------------------------
 ::rtl::OUString SAL_CALL ODatabaseMetaDataBase::getCatalogSeparator(  )
 {
-    return callImplMethod(m_sCatalogSeparator,::std::mem_fun_t< 
::rtl::OUString,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getCatalogSeparator_throw));
+    return callImplMethod(m_sCatalogSeparator,::std::function< 
::rtl::OUString(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_getCatalogSeparator_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInTableDefinitions(  )
 {
-    return 
callImplMethod(m_supportsCatalogsInTableDefinitions,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsCatalogsInTableDefinitions_throw));
+    return 
callImplMethod(m_supportsCatalogsInTableDefinitions,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsCatalogsInTableDefinitions_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInTableDefinitions(  )
 {
-    return 
callImplMethod(m_supportsSchemasInTableDefinitions,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsSchemasInTableDefinitions_throw));
+    return callImplMethod(m_supportsSchemasInTableDefinitions,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsSchemasInTableDefinitions_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsCatalogsInDataManipulation(  )
 {
-    return 
callImplMethod(m_supportsCatalogsInDataManipulation,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsCatalogsInDataManipulation_throw));
+    return 
callImplMethod(m_supportsCatalogsInDataManipulation,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsCatalogsInDataManipulation_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsSchemasInDataManipulation(  )
 {
-    return 
callImplMethod(m_supportsSchemasInDataManipulation,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsSchemasInDataManipulation_throw));
+    return callImplMethod(m_supportsSchemasInDataManipulation,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsSchemasInDataManipulation_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsMixedCaseQuotedIdentifiers(  )
 {
-    return 
callImplMethod(m_supportsMixedCaseQuotedIdentifiers,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsMixedCaseQuotedIdentifiers_throw));
+    return 
callImplMethod(m_supportsMixedCaseQuotedIdentifiers,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsMixedCaseQuotedIdentifiers_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithAddColumn(  )
 {
-    return callImplMethod(m_supportsAlterTableWithAddColumn,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithAddColumn_throw));
+    return callImplMethod(m_supportsAlterTableWithAddColumn,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithAddColumn_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::supportsAlterTableWithDropColumn(  )
 {
-    return callImplMethod(m_supportsAlterTableWithDropColumn,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithDropColumn_throw));
+    return callImplMethod(m_supportsAlterTableWithDropColumn,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_supportsAlterTableWithDropColumn_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxStatements(  )
 {
-    return callImplMethod(m_MaxStatements,::std::mem_fun_t< 
sal_Int32,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getMaxStatements_throw));
+    return callImplMethod(m_MaxStatements,::std::function< 
sal_Int32(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_getMaxStatements_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Int32 SAL_CALL ODatabaseMetaDataBase::getMaxTablesInSelect(  )
 {
-    return callImplMethod(m_MaxTablesInSelect,::std::mem_fun_t< 
sal_Int32,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_getMaxTablesInSelect_throw));
+    return callImplMethod(m_MaxTablesInSelect,::std::function< 
sal_Int32(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_getMaxTablesInSelect_throw));
 }
 // 
-----------------------------------------------------------------------------
 sal_Bool SAL_CALL ODatabaseMetaDataBase::storesMixedCaseQuotedIdentifiers(  )
 {
-    return callImplMethod(m_storesMixedCaseQuotedIdentifiers,::std::mem_fun_t< 
sal_Bool,ODatabaseMetaDataBase>(&ODatabaseMetaDataBase::impl_storesMixedCaseQuotedIdentifiers_throw));
+    return callImplMethod(m_storesMixedCaseQuotedIdentifiers,::std::function< 
sal_Bool(ODatabaseMetaDataBase*)>(&ODatabaseMetaDataBase::impl_storesMixedCaseQuotedIdentifiers_throw));
 }
 // 
-----------------------------------------------------------------------------
diff --git a/main/connectivity/source/commontools/dbtools2.cxx 
b/main/connectivity/source/commontools/dbtools2.cxx
index 3a17384508..b7465d8291 100644
--- a/main/connectivity/source/commontools/dbtools2.cxx
+++ b/main/connectivity/source/commontools/dbtools2.cxx
@@ -51,6 +51,7 @@
 #include <tools/diagnose_ex.h>
 #include <unotools/sharedunocomponent.hxx>
 #include <comphelper/configurationhelper.hxx>
+#include <functional>
 
 //.........................................................................
 namespace dbtools
@@ -618,7 +619,7 @@ sal_Bool isDataSourcePropertyEnabled(const 
Reference<XInterface>& _xProp,const :
                        
xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Info"))) 
>>= aInfo;
                        const PropertyValue* pValue 
=::std::find_if(aInfo.getConstArray(),
                                                                                
                aInfo.getConstArray() + aInfo.getLength(),
-                                                                               
                ::std::bind2nd(TPropertyValueEqualFunctor(),_sProperty));
+                                                                               
                ::std::bind(TPropertyValueEqualFunctor(), 
::std::placeholders::_1,_sProperty));
                        if ( pValue && pValue != (aInfo.getConstArray() + 
aInfo.getLength()) )
                                pValue->Value >>= bEnabled;
                }
diff --git a/main/connectivity/source/drivers/file/FResultSet.cxx 
b/main/connectivity/source/drivers/file/FResultSet.cxx
index 2e78c88ddb..e071f12f2d 100644
--- a/main/connectivity/source/drivers/file/FResultSet.cxx
+++ b/main/connectivity/source/drivers/file/FResultSet.cxx
@@ -50,6 +50,7 @@
 #include <com/sun/star/sdbcx/XIndexesSupplier.hpp>
 
 #include <algorithm>
+#include <functional>
 #include <comphelper/extract.hxx>
 #include "connectivity/dbexception.hxx"
 #include <comphelper/types.hxx>
@@ -1564,7 +1565,7 @@ sal_Bool OResultSet::OpenImpl()
                                                }
 
                                                
m_pFileSet->get().erase(::std::remove_if(m_pFileSet->get().begin(),m_pFileSet->get().end(),
-                                                                               
                                        
::std::bind2nd(::std::equal_to<sal_Int32>(),0))
+                                                                               
                                        
::std::bind(::std::equal_to<sal_Int32>(), ::std::placeholders::_1,0))
                                                                                
  ,m_pFileSet->get().end());
 
                                                if (bWasSorted)
diff --git a/main/connectivity/source/drivers/hsqldb/HDriver.cxx 
b/main/connectivity/source/drivers/hsqldb/HDriver.cxx
index afec912298..b1958229fd 100644
--- a/main/connectivity/source/drivers/hsqldb/HDriver.cxx
+++ b/main/connectivity/source/drivers/hsqldb/HDriver.cxx
@@ -52,6 +52,7 @@
 #include <unotools/ucbstreamhelper.hxx>
 #include "resource/hsqldb_res.hrc"
 #include "resource/sharedresources.hxx"
+#include <functional>
 
 //........................................................................
 namespace connectivity
@@ -587,7 +588,7 @@ namespace connectivity
             {
                 ::rtl::OUString sKey = 
StorageContainer::getRegisteredKey(xStorage);
                 TWeakPairVector::iterator i = 
::std::find_if(m_aConnections.begin(),m_aConnections.end(),::std::compose1(
-                                ::std::bind2nd(::std::equal_to< 
::rtl::OUString >(),sKey)
+                                ::std::bind(::std::equal_to< ::rtl::OUString 
>(), ::std::placeholders::_1,sKey)
                                 
,::std::compose1(::std::select1st<TWeakConnectionPair>(),::std::select2nd< 
TWeakPair >())));
                 if ( i != m_aConnections.end() )
                     shutdownConnection(i);
@@ -639,7 +640,7 @@ namespace connectivity
         if ( sKey.getLength() )
         {
             TWeakPairVector::iterator i = 
::std::find_if(m_aConnections.begin(),m_aConnections.end(),::std::compose1(
-                            ::std::bind2nd(::std::equal_to< ::rtl::OUString 
>(),sKey)
+                            ::std::bind(::std::equal_to< ::rtl::OUString >(), 
::std::placeholders::_1,sKey)
                             
,::std::compose1(::std::select1st<TWeakConnectionPair>(),::std::select2nd< 
TWeakPair >())));
             OSL_ENSURE( i != m_aConnections.end(), 
"ODriverDelegator::preCommit: they're committing a storage which I do not 
know!" );
             if ( i != m_aConnections.end() )
diff --git a/main/connectivity/source/drivers/hsqldb/HStorageMap.cxx 
b/main/connectivity/source/drivers/hsqldb/HStorageMap.cxx
index 5ba95f78b7..1300df1c79 100644
--- a/main/connectivity/source/drivers/hsqldb/HStorageMap.cxx
+++ b/main/connectivity/source/drivers/hsqldb/HStorageMap.cxx
@@ -31,6 +31,7 @@
 #include <com/sun/star/lang/DisposedException.hpp>
 #include "diagnose_ex.h"
 #include <osl/thread.h>
+#include <functional>
 
 //........................................................................
 namespace connectivity
@@ -181,7 +182,7 @@ namespace connectivity
                        // check if the storage is already in our map
                        TStorages::iterator aFind = 
::std::find_if(rMap.begin(),rMap.end(),
                                                                                
::std::compose1(
-                                                                               
        ::std::bind2nd(::std::equal_to<Reference<XStorage> >(),_xStorage)
+                                                                               
        ::std::bind(::std::equal_to<Reference<XStorage> >(), 
::std::placeholders::_1,_xStorage)
                                                                                
        
,::std::compose1(::std::select1st<TStorageURLPair>(),::std::compose1(::std::select1st<TStorages::mapped_type>(),::std::select2nd<TStorages::value_type>())))
                                        );
                        if ( aFind == rMap.end() )
@@ -212,7 +213,7 @@ namespace connectivity
                        // check if the storage is already in our map
                        TStorages::iterator aFind = 
::std::find_if(rMap.begin(),rMap.end(),
                                                                                
::std::compose1(
-                                                                               
        ::std::bind2nd(::std::equal_to<Reference<XStorage> >(),_xStorage)
+                                                                               
        ::std::bind(::std::equal_to<Reference<XStorage> >(), 
::std::placeholders::_1,_xStorage)
                                                                                
        
,::std::compose1(::std::select1st<TStorageURLPair>(),::std::compose1(::std::select1st<TStorages::mapped_type>(),::std::select2nd<TStorages::value_type>())))
                                        );
                        if ( aFind != rMap.end() )
diff --git a/main/connectivity/source/drivers/odbcbase/OResultSet.cxx 
b/main/connectivity/source/drivers/odbcbase/OResultSet.cxx
index 1470de5145..b64802c227 100644
--- a/main/connectivity/source/drivers/odbcbase/OResultSet.cxx
+++ b/main/connectivity/source/drivers/odbcbase/OResultSet.cxx
@@ -42,6 +42,7 @@
 #include "connectivity/dbexception.hxx"
 #include "diagnose_ex.h"
 #include <rtl/logfile.hxx>
+#include <functional>
 
 using namespace ::comphelper;
 using namespace connectivity;
@@ -1145,7 +1146,7 @@ Any SAL_CALL OResultSet::getBookmark(  )
        checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
        TBookmarkPosMap::iterator aFind = 
::std::find_if(m_aPosToBookmarks.begin(),m_aPosToBookmarks.end(),
-               
::std::compose1(::std::bind2nd(::std::equal_to<sal_Int32>(),m_nRowPos),::std::select2nd<TBookmarkPosMap::value_type>()));
+               ::std::compose1(::std::bind(::std::equal_to<sal_Int32>(), 
::std::placeholders::_1,m_nRowPos),::std::select2nd<TBookmarkPosMap::value_type>()));
 
        if ( aFind == m_aPosToBookmarks.end() )
        {
diff --git a/main/connectivity/source/inc/TDatabaseMetaDataBase.hxx 
b/main/connectivity/source/inc/TDatabaseMetaDataBase.hxx
index 80f2b655f3..73a2271aed 100644
--- a/main/connectivity/source/inc/TDatabaseMetaDataBase.hxx
+++ b/main/connectivity/source/inc/TDatabaseMetaDataBase.hxx
@@ -59,7 +59,7 @@ namespace connectivity
             ::std::pair<bool,sal_Int32>         m_MaxTablesInSelect;
             ::std::pair<bool,sal_Bool>          
m_storesMixedCaseQuotedIdentifiers;
 
-            template <typename T> T callImplMethod(::std::pair<bool,T>& 
_rCache,const ::std::mem_fun_t<T,ODatabaseMetaDataBase>& _pImplMethod)
+            template <typename T> T callImplMethod(::std::pair<bool,T>& 
_rCache,const ::std::function<T(ODatabaseMetaDataBase*)>& _pImplMethod)
             {
                 ::osl::MutexGuard aGuard( m_aMutex );
                 if ( !_rCache.first )
diff --git a/main/dbaccess/source/core/api/RowSetBase.cxx 
b/main/dbaccess/source/core/api/RowSetBase.cxx
index af5605f8a7..860710d4fc 100644
--- a/main/dbaccess/source/core/api/RowSetBase.cxx
+++ b/main/dbaccess/source/core/api/RowSetBase.cxx
@@ -849,8 +849,8 @@ void SAL_CALL ORowSetBase::afterLast(  )
        DBG_TRACE2("DBACCESS ORowSetBase::afterLast() Clone = %i ID = 
%i\n",m_bClone,osl_getThreadIdentifier(NULL));
 }
 // 
-----------------------------------------------------------------------------
-sal_Bool SAL_CALL ORowSetBase::move(   ::std::mem_fun_t<sal_Bool,ORowSetBase>& 
_aCheckFunctor,
-                                                                               
::std::mem_fun_t<sal_Bool,ORowSetCache>& _aMovementFunctor)
+sal_Bool SAL_CALL ORowSetBase::move(   
::std::function<sal_Bool(ORowSetBase*)>& _aCheckFunctor,
+                                                                               
::std::function<sal_Bool(ORowSetCache*)>& _aMovementFunctor)
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"ORowSetBase::move" );
        DBG_TRACE2("DBACCESS ORowSetBase::move() Clone = %i ID = 
%i\n",m_bClone,osl_getThreadIdentifier(NULL));
@@ -901,8 +901,8 @@ sal_Bool SAL_CALL ORowSetBase::first(  )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"ORowSetBase::first" );
        DBG_TRACE2("DBACCESS ORowSetBase::first() Clone = %i ID = 
%i\n",m_bClone,osl_getThreadIdentifier(NULL));
-       ::std::mem_fun_t<sal_Bool,ORowSetBase> ioF_tmp(&ORowSetBase::isOnFirst);
-       ::std::mem_fun_t<sal_Bool,ORowSetCache> F_tmp(&ORowSetCache::first);
+       ::std::function<sal_Bool(ORowSetBase*)> 
ioF_tmp(&ORowSetBase::isOnFirst);
+       ::std::function<sal_Bool(ORowSetCache*)> F_tmp(&ORowSetCache::first);
        return move(ioF_tmp,F_tmp);
 }
 // -------------------------------------------------------------------------
@@ -910,8 +910,8 @@ sal_Bool SAL_CALL ORowSetBase::last(  )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"ORowSetBase::last" );
        DBG_TRACE2("DBACCESS ORowSetBase::last() Clone = %i ID = 
%i\n",m_bClone,osl_getThreadIdentifier(NULL));
-       ::std::mem_fun_t<sal_Bool,ORowSetBase> ioL_tmp(&ORowSetBase::isOnLast);
-       ::std::mem_fun_t<sal_Bool,ORowSetCache> L_tmp(&ORowSetCache::last);
+       ::std::function<sal_Bool(ORowSetBase*)> ioL_tmp(&ORowSetBase::isOnLast);
+       ::std::function<sal_Bool(ORowSetCache*)> L_tmp(&ORowSetCache::last);
        return move(ioL_tmp,L_tmp);
 }
 // -------------------------------------------------------------------------
diff --git a/main/dbaccess/source/core/api/RowSetBase.hxx 
b/main/dbaccess/source/core/api/RowSetBase.hxx
index cea9715a87..f84c53a924 100644
--- a/main/dbaccess/source/core/api/RowSetBase.hxx
+++ b/main/dbaccess/source/core/api/RowSetBase.hxx
@@ -243,8 +243,8 @@ namespace dbaccess
                        @return
                                <TRUE/> if movement was successful.
                */
-               sal_Bool SAL_CALL move( ::std::mem_fun_t<sal_Bool,ORowSetBase>& 
_aCheckFunctor,
-                                                               
::std::mem_fun_t<sal_Bool,ORowSetCache>& _aMovementFunctor);
+               sal_Bool SAL_CALL move( 
::std::function<sal_Bool(ORowSetBase*)>& _aCheckFunctor,
+                                                               
::std::function<sal_Bool(ORowSetCache*)>& _aMovementFunctor);
 
                /** same meaning as isFirst. Only need by mem_fun
                        @return
diff --git a/main/dbaccess/source/core/api/SingleSelectQueryComposer.cxx 
b/main/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
index 07e8f3e5e8..4768b672c8 100644
--- a/main/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
+++ b/main/dbaccess/source/core/api/SingleSelectQueryComposer.cxx
@@ -63,6 +63,7 @@
 #include <unotools/sharedunocomponent.hxx>
 
 #include <memory>
+#include <functional>
 
 using namespace ::dbaccess;
 using namespace ::dbtools;
@@ -480,14 +481,14 @@ Sequence< Sequence< PropertyValue > > SAL_CALL 
OSingleSelectQueryComposer::getSt
 void SAL_CALL OSingleSelectQueryComposer::appendHavingClauseByColumn( const 
Reference< XPropertySet >& column, sal_Bool andCriteria,sal_Int32 
filterOperator )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"OSingleSelectQueryComposer::appendHavingClauseByColumn" );
-       ::std::mem_fun1_t<bool,OSingleSelectQueryComposer,::rtl::OUString> 
F_tmp(&OSingleSelectQueryComposer::implSetHavingClause);
+       ::std::function<bool(OSingleSelectQueryComposer*,::rtl::OUString)> 
F_tmp(&OSingleSelectQueryComposer::implSetHavingClause);
        setConditionByColumn(column,andCriteria,F_tmp,filterOperator);
 }
 // 
-----------------------------------------------------------------------------
 void SAL_CALL OSingleSelectQueryComposer::appendFilterByColumn( const 
Reference< XPropertySet >& column, sal_Bool andCriteria,sal_Int32 
filterOperator )
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"OSingleSelectQueryComposer::appendFilterByColumn" );
-       ::std::mem_fun1_t<bool,OSingleSelectQueryComposer,::rtl::OUString> 
F_tmp(&OSingleSelectQueryComposer::implSetFilter);
+       ::std::function<bool(OSingleSelectQueryComposer*,::rtl::OUString)> 
F_tmp(&OSingleSelectQueryComposer::implSetFilter);
        setConditionByColumn(column,andCriteria,F_tmp,filterOperator);
 }
 // 
-----------------------------------------------------------------------------
@@ -956,12 +957,12 @@ Reference< XNameAccess > SAL_CALL 
OSingleSelectQueryComposer::getColumns(  )
                                        xProp->getPropertyValue(PROPERTY_NAME) 
>>= sColumnName;
 
 
-                aFindName = 
::std::find_if(aNames.begin(),aNames.end(),::std::bind2nd(aCaseCompareFunctor,sColumnName));
+                aFindName = 
::std::find_if(aNames.begin(),aNames.end(),::std::bind(aCaseCompareFunctor, 
::std::placeholders::_1,sColumnName));
                 sal_Int32 j = 0;
                 while ( aFindName != aNames.end() )
                 {
                     sColumnName += ::rtl::OUString::valueOf(++j);
-                    aFindName = 
::std::find_if(aNames.begin(),aNames.end(),::std::bind2nd(aCaseCompareFunctor,sColumnName));
+                    aFindName = 
::std::find_if(aNames.begin(),aNames.end(),::std::bind(aCaseCompareFunctor, 
::std::placeholders::_1,sColumnName));
                 }
 
                 pColumn->setName(sColumnName);
@@ -1600,7 +1601,7 @@ void SAL_CALL 
OSingleSelectQueryComposer::setStructuredHavingClause( const Seque
        setHavingClause(lcl_getCondition(filter,aPredicateInput,getColumns(), 
m_xMetaData->getIdentifierQuoteString()));
 }
 // 
-----------------------------------------------------------------------------
-void OSingleSelectQueryComposer::setConditionByColumn( const Reference< 
XPropertySet >& column, sal_Bool andCriteria 
,::std::mem_fun1_t<bool,OSingleSelectQueryComposer,::rtl::OUString>& 
_aSetFunctor,sal_Int32 filterOperator)
+void OSingleSelectQueryComposer::setConditionByColumn( const Reference< 
XPropertySet >& column, sal_Bool andCriteria 
,::std::function<bool(OSingleSelectQueryComposer*,::rtl::OUString)>& 
_aSetFunctor,sal_Int32 filterOperator)
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbaccess", "[email protected]", 
"OSingleSelectQueryComposer::setConditionByColumn" );
        ::connectivity::checkDisposed(OSubComponent::rBHelper.bDisposed);
diff --git a/main/dbaccess/source/core/dataaccess/databasedocument.cxx 
b/main/dbaccess/source/core/dataaccess/databasedocument.cxx
index 9ccdc73837..b9bc11854f 100644
--- a/main/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/main/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -277,7 +277,7 @@ Sequence< Type > SAL_CALL ODatabaseDocument::getTypes(      
)
                 aTypes.getConstArray(),
                 aTypes.getConstArray() + aTypes.getLength(),
                 pStripTo,
-                ::std::bind2nd( ::std::equal_to< Type >(), 
XEmbeddedScripts::static_type() )
+                ::std::bind( ::std::equal_to< Type >(), 
::std::placeholders::_1, XEmbeddedScripts::static_type() )
             ) - pStripTo
         );
 
@@ -288,7 +288,7 @@ Sequence< Type > SAL_CALL ODatabaseDocument::getTypes(      
)
                 aTypes.getConstArray(),
                 aTypes.getConstArray() + aTypes.getLength(),
                 pStripTo,
-                ::std::bind2nd( ::std::equal_to< Type >(), 
XScriptInvocationContext::static_type() )
+                ::std::bind( ::std::equal_to< Type >(), 
::std::placeholders::_1, XScriptInvocationContext::static_type() )
             ) - pStripTo
         );
     }
diff --git a/main/dbaccess/source/core/dataaccess/definitioncontainer.cxx 
b/main/dbaccess/source/core/dataaccess/definitioncontainer.cxx
index 8f9cc2b193..d057190872 100644
--- a/main/dbaccess/source/core/dataaccess/definitioncontainer.cxx
+++ b/main/dbaccess/source/core/dataaccess/definitioncontainer.cxx
@@ -73,6 +73,7 @@
 #ifndef _UCBHELPER_CONTENTIDENTIFIER_HXX
 #include <ucbhelper/contentidentifier.hxx>
 #endif
+#include <functional>
 
 
 using namespace ::com::sun::star::uno;
@@ -110,7 +111,7 @@ ODefinitionContainer_Impl::const_iterator 
ODefinitionContainer_Impl::find( TCont
         m_aDefinitions.begin(),
         m_aDefinitions.end(),
         ::std::compose1(
-                       ::std::bind2nd( ::std::equal_to< TContentPtr >(), 
_pDefinition ),
+                       ::std::bind( ::std::equal_to< TContentPtr >(), 
::std::placeholders::_1, _pDefinition ),
             ::std::select2nd< NamedDefinitions::value_type >()
         )
     );
@@ -123,7 +124,7 @@ ODefinitionContainer_Impl::iterator 
ODefinitionContainer_Impl::find( TContentPtr
         m_aDefinitions.begin(),
         m_aDefinitions.end(),
         ::std::compose1(
-                       ::std::bind2nd( ::std::equal_to< TContentPtr >(), 
_pDefinition ),
+                       ::std::bind( ::std::equal_to< TContentPtr >(), 
::std::placeholders::_1, _pDefinition ),
             ::std::select2nd< NamedDefinitions::value_type >()
         )
     );
diff --git a/main/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx 
b/main/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
index 02c4223f1d..d32a43608d 100644
--- a/main/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
+++ b/main/dbaccess/source/core/inc/SingleSelectQueryComposer.hxx
@@ -40,6 +40,7 @@
 #include <comphelper/componentcontext.hxx>
 
 #include <memory>
+#include <functional>
 
 namespace com { namespace sun { namespace star { namespace util {
        class XNumberFormatsSupplier;
@@ -80,7 +81,7 @@ namespace dbaccess
                        OrderColumns            = 2,
                        ParameterColumns        = 3
                };
-        typedef ::std::const_mem_fun_t< const ::connectivity::OSQLParseNode*, 
::connectivity::OSQLParseTreeIterator >
+        typedef ::std::function< const ::connectivity::OSQLParseNode*(const 
::connectivity::OSQLParseTreeIterator*) >
                                                 TGetParseNode;
                ::connectivity::OSQLParser                              
m_aSqlParser;
                ::connectivity::OSQLParseTreeIterator   m_aSqlIterator;         
// the iterator for the complete statement
@@ -138,7 +139,7 @@ namespace dbaccess
 
                void setConditionByColumn( const 
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& 
column
                                                                , sal_Bool 
andCriteria
-                                                               
,::std::mem_fun1_t<bool,OSingleSelectQueryComposer,::rtl::OUString>& 
_aSetFunctor
+                                                               
,::std::function<bool(OSingleSelectQueryComposer*,::rtl::OUString)>& 
_aSetFunctor
                                 ,sal_Int32 filterOperator);
 
                /** getStructuredCondition returns the structured condition for 
the where or having clause
diff --git a/main/dbaccess/source/filter/xml/xmlExport.cxx 
b/main/dbaccess/source/filter/xml/xmlExport.cxx
index 9becec6eed..a3f7f93cf2 100644
--- a/main/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/main/dbaccess/source/filter/xml/xmlExport.cxx
@@ -1088,7 +1088,7 @@ void ODBExport::exportQueries(sal_Bool _bExportContext)
                    Reference< XNameAccess > xCollection = 
xSup->getQueryDefinitions();
                    if ( xCollection.is() && xCollection->hasElements() )
                    {
-                           ::std::auto_ptr< 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* > > pMemFunc;
+                           ::std::unique_ptr< 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* > > pMemFunc;
                            if ( _bExportContext )
                                    pMemFunc.reset( new 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* >(&ODBExport::exportQuery) );
                            else
@@ -1108,7 +1108,7 @@ void ODBExport::exportTables(sal_Bool _bExportContext)
                Reference< XNameAccess > xCollection = xSup->getTables();
                if ( xCollection.is() && xCollection->hasElements() )
                {
-                       ::std::auto_ptr< 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* > > pMemFunc;
+                       ::std::unique_ptr< 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* > > pMemFunc;
                        if ( _bExportContext )
                                pMemFunc.reset( new 
::comphelper::mem_fun1_t<ODBExport,XPropertySet* >(&ODBExport::exportTable) );
                        else
diff --git a/main/dbaccess/source/ui/browser/formadapter.cxx 
b/main/dbaccess/source/ui/browser/formadapter.cxx
index 53357e0d28..1b5755081e 100644
--- a/main/dbaccess/source/ui/browser/formadapter.cxx
+++ b/main/dbaccess/source/ui/browser/formadapter.cxx
@@ -54,6 +54,7 @@
 #ifndef _COMPHELPER_SEQUENCE_HXX_
 #include <comphelper/sequence.hxx>
 #endif
+#include <functional>
 
 using namespace dbaui;
 using namespace ::com::sun::star::uno;
@@ -1537,7 +1538,7 @@ sal_Int32 SbaXFormAdapter::implGetPos(const 
::rtl::OUString& rName)
 {
        ::std::vector< ::rtl::OUString>::iterator aIter = ::std::find_if(       
m_aChildNames.begin(),
                                                                                
                                                m_aChildNames.end(),
-                                                                               
                                                ::std::bind2nd(::std::equal_to< 
rtl::OUString>(),rName));
+                                                                               
                                                ::std::bind(::std::equal_to< 
rtl::OUString>(), ::std::placeholders::_1,rName));
 
        if(aIter != m_aChildNames.end())
                return aIter - m_aChildNames.begin();
@@ -1760,7 +1761,7 @@ void SAL_CALL SbaXFormAdapter::propertyChange(const 
::com::sun::star::beans::Pro
        {
                ::std::vector<  ::com::sun::star::uno::Reference< 
::com::sun::star::form::XFormComponent > >::iterator aIter = ::std::find_if(  
m_aChildren.begin(),
                                                                                
                                                m_aChildren.end(),
-                                                                               
                                                ::std::bind2nd(::std::equal_to< 
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 
>(),evt.Source));
+                                                                               
                                                ::std::bind(::std::equal_to< 
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >(), 
::std::placeholders::_1,evt.Source));
 
                if(aIter != m_aChildren.end())
                {
@@ -1781,7 +1782,7 @@ void SAL_CALL SbaXFormAdapter::disposing(const 
::com::sun::star::lang::EventObje
 
        ::std::vector<  ::com::sun::star::uno::Reference< 
::com::sun::star::form::XFormComponent > >::iterator aIter = ::std::find_if(  
m_aChildren.begin(),
                                                                                
                                                m_aChildren.end(),
-                                                                               
                                                ::std::bind2nd(::std::equal_to< 
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 
>(),Source.Source));
+                                                                               
                                                ::std::bind(::std::equal_to< 
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >(), 
::std::placeholders::_1,Source.Source));
        if(aIter != m_aChildren.end())
                        removeByIndex(aIter - m_aChildren.begin());
 }
diff --git a/main/dbaccess/source/ui/browser/genericcontroller.cxx 
b/main/dbaccess/source/ui/browser/genericcontroller.cxx
index 306eaed31f..6a604ac9b4 100644
--- a/main/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/main/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -122,6 +122,7 @@
 #include <rtl/logfile.hxx>
 #endif
 #include <algorithm>
+#include <functional>
 #include <hash_map>
 #include <cppuhelper/implbase1.hxx>
 #include <limits>
@@ -630,7 +631,7 @@ sal_Bool OGenericUnoController::isFeatureSupported( 
sal_Int32 _nId )
        SupportedFeatures::iterator aFeaturePos = ::std::find_if(
                m_aSupportedFeatures.begin(),
                m_aSupportedFeatures.end(),
-               ::std::bind2nd( CompareFeatureById(), _nId )
+               ::std::bind( CompareFeatureById(), ::std::placeholders::_1, 
_nId )
        );
 
     return ( m_aSupportedFeatures.end() != aFeaturePos && 
aFeaturePos->first.getLength());
@@ -670,7 +671,7 @@ void OGenericUnoController::InvalidateFeature_Impl()
                        SupportedFeatures::iterator aFeaturePos = 
::std::find_if(
                                m_aSupportedFeatures.begin(),
                                m_aSupportedFeatures.end(),
-                               ::std::bind2nd( CompareFeatureById(), 
aNextFeature.nId )
+                               ::std::bind( CompareFeatureById(), 
::std::placeholders::_1, aNextFeature.nId )
                        );
 
 #if OSL_DEBUG_LEVEL > 0
@@ -708,7 +709,7 @@ void OGenericUnoController::ImplInvalidateFeature( 
sal_Int32 _nId, const Referen
            SupportedFeatures::iterator aFeaturePos = ::std::find_if(
                    m_aSupportedFeatures.begin(),
                    m_aSupportedFeatures.end(),
-                   ::std::bind2nd( CompareFeatureById(), _nId )
+                   ::std::bind( CompareFeatureById(), ::std::placeholders::_1, 
_nId )
            );
         OSL_ENSURE( aFeaturePos != m_aSupportedFeatures.end(), 
"OGenericUnoController::ImplInvalidateFeature: invalidating an unsupported 
feature is suspicious, at least!" );
     }
@@ -914,7 +915,7 @@ void OGenericUnoController::removeStatusListener(const 
Reference< XStatusListene
        m_aFeaturesToInvalidate.erase(
                ::std::remove_if(       m_aFeaturesToInvalidate.begin(),
                                                        
m_aFeaturesToInvalidate.end(),
-                                                       
::std::bind2nd(FindFeatureListener(),aListener))
+                                                       
::std::bind(FindFeatureListener(), ::std::placeholders::_1,aListener))
                ,m_aFeaturesToInvalidate.end());
 }
 // 
-----------------------------------------------------------------------------
@@ -1062,7 +1063,7 @@ URL OGenericUnoController::getURLForId(sal_Int32 _nId) 
const
                SupportedFeatures::const_iterator aIter = ::std::find_if(
                        m_aSupportedFeatures.begin(),
                        m_aSupportedFeatures.end(),
-                       ::std::bind2nd( CompareFeatureById(), _nId )
+                       ::std::bind( CompareFeatureById(), 
::std::placeholders::_1, _nId )
                );
 
                if ( m_aSupportedFeatures.end() != aIter && 
aIter->first.getLength() )
diff --git a/main/dbaccess/source/ui/browser/unodatbr.cxx 
b/main/dbaccess/source/ui/browser/unodatbr.cxx
index a5fec75701..6df41e8f88 100644
--- a/main/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/main/dbaccess/source/ui/browser/unodatbr.cxx
@@ -134,6 +134,7 @@
 #include <rtl/logfile.hxx>
 
 #include <memory>
+#include <functional>
 
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::awt;
@@ -286,7 +287,7 @@ Sequence< Type > SAL_CALL SbaTableQueryBrowser::getTypes(  )
             aTypes.getConstArray(),
             aTypes.getConstArray() + aTypes.getLength(),
             aStrippedTypes.getArray(),
-            ::std::bind2nd( ::std::equal_to< Type >(), 
XScriptInvocationContext::static_type() )
+            ::std::bind( ::std::equal_to< Type >(), ::std::placeholders::_1, 
XScriptInvocationContext::static_type() )
         );
         aTypes = aStrippedTypes;
     }
diff --git a/main/dbaccess/source/ui/control/RelationControl.cxx 
b/main/dbaccess/source/ui/control/RelationControl.cxx
index 9eb1a03c36..738c0000de 100644
--- a/main/dbaccess/source/ui/control/RelationControl.cxx
+++ b/main/dbaccess/source/ui/control/RelationControl.cxx
@@ -456,7 +456,7 @@ namespace dbaui
                                OConnectionLineDataVec* pLines = 
m_pConnData->GetConnLineDataList();
                                ::std::for_each(pLines->begin(),
                                                                pLines->end(),
-                                                               
OUnaryRefFunctor<OConnectionLineData>( 
::std::mem_fun(&OConnectionLineData::Reset))
+                                                               
OUnaryRefFunctor<OConnectionLineData>( 
::std::mem_fn(&OConnectionLineData::Reset))
                                                                );
 
                                
m_pConnData->setReferencingTable(_pSource->GetData());
diff --git a/main/dbaccess/source/ui/control/tabletree.cxx 
b/main/dbaccess/source/ui/control/tabletree.cxx
index 0ef8231613..fb297a2b18 100644
--- a/main/dbaccess/source/ui/control/tabletree.cxx
+++ b/main/dbaccess/source/ui/control/tabletree.cxx
@@ -93,6 +93,7 @@
 #include <connectivity/dbmetadata.hxx>
 
 #include <algorithm>
+#include <functional>
 
 //.........................................................................
 namespace dbaui
@@ -271,7 +272,7 @@ namespace
                        aRet.first = lhs;
                        const ::rtl::OUString* pIter = m_aViews.getConstArray();
                        const ::rtl::OUString* pEnd = m_aViews.getConstArray() 
+ m_aViews.getLength();
-                       aRet.second = 
(::std::find_if(pIter,pEnd,::std::bind2nd(m_aEqualFunctor,lhs)) != pEnd);
+                       aRet.second = 
(::std::find_if(pIter,pEnd,::std::bind(m_aEqualFunctor, 
::std::placeholders::_1,lhs)) != pEnd);
 
                        return aRet;
                }
@@ -337,9 +338,9 @@ void OTableTreeListBox::UpdateTableList( const Reference< 
XConnection >& _rxConn
                {
                        String sRootEntryText;
                        TNames::const_iterator aViews = 
::std::find_if(_rTables.begin(),_rTables.end(),
-                       
::std::compose1(::std::bind2nd(::std::equal_to<sal_Bool>(),sal_False),::std::select2nd<TNames::value_type>()));
+                       
::std::compose1(::std::bind(::std::equal_to<sal_Bool>(), 
::std::placeholders::_1,sal_False),::std::select2nd<TNames::value_type>()));
                        TNames::const_iterator aTables = 
::std::find_if(_rTables.begin(),_rTables.end(),
-                       
::std::compose1(::std::bind2nd(::std::equal_to<sal_Bool>(),sal_True),::std::select2nd<TNames::value_type>()));
+                       
::std::compose1(::std::bind(::std::equal_to<sal_Bool>(), 
::std::placeholders::_1,sal_True),::std::select2nd<TNames::value_type>()));
 
                        if ( aViews == _rTables.end() )
                                sRootEntryText  = 
String(ModuleRes(STR_ALL_TABLES));
diff --git a/main/dbaccess/source/ui/dlg/adtabdlg.cxx 
b/main/dbaccess/source/ui/dlg/adtabdlg.cxx
index 8cfd47f10c..732e4bed56 100644
--- a/main/dbaccess/source/ui/dlg/adtabdlg.cxx
+++ b/main/dbaccess/source/ui/dlg/adtabdlg.cxx
@@ -48,6 +48,7 @@
 
 #include <comphelper/containermultiplexer.hxx>
 #include "cppuhelper/basemutex.hxx"
+#include <functional>
 #include <algorithm>
 
 // slot ids
@@ -206,7 +207,7 @@ void TableListFacade::updateTableObjectList( bool 
_bAllowViews )
                    const ::rtl::OUString* pViewEnd       = pViewBegin + 
sViews.getLength();
                    ::comphelper::TStringMixEqualFunctor aEqualFunctor;
                    for(;pViewBegin != pViewEnd;++pViewBegin)
-                           
aTables.erase(::std::remove_if(aTables.begin(),aTables.end(),::std::bind2nd(aEqualFunctor,*pViewBegin)),aTables.end());
+                           
aTables.erase(::std::remove_if(aTables.begin(),aTables.end(),::std::bind(aEqualFunctor,
 ::std::placeholders::_1,*pViewBegin)),aTables.end());
                    ::rtl::OUString* pTables = aTables.empty() ? 0 : 
&aTables[0];
                    sTables = Sequence< ::rtl::OUString>(pTables, 
aTables.size());
                    sViews = Sequence< ::rtl::OUString>();
diff --git a/main/dbaccess/source/ui/inc/RefFunctor.hxx 
b/main/dbaccess/source/ui/inc/RefFunctor.hxx
index 40f7566152..8f011ee54a 100644
--- a/main/dbaccess/source/ui/inc/RefFunctor.hxx
+++ b/main/dbaccess/source/ui/inc/RefFunctor.hxx
@@ -36,9 +36,13 @@ namespace dbaui
 {
        template <class T> class OUnaryRefFunctor
        {
-               ::std::mem_fun_t<bool,T> m_aFunction;
        public:
-               OUnaryRefFunctor(const ::std::mem_fun_t<bool,T>& _aFunc) : 
m_aFunction(_aFunc)
+               typedef ::vos::ORef<T> argument_type;
+               typedef void result_type;
+       private:
+               ::std::function<bool(T*)> m_aFunction;
+       public:
+               OUnaryRefFunctor(const ::std::function<bool(T*)>& _aFunc) : 
m_aFunction(_aFunc)
                {}
                inline void operator()(const ::vos::ORef<T>& _aType) const
                {
diff --git a/main/dbaccess/source/ui/inc/WCopyTable.hxx 
b/main/dbaccess/source/ui/inc/WCopyTable.hxx
index 7bbd08e401..71b3a85433 100644
--- a/main/dbaccess/source/ui/inc/WCopyTable.hxx
+++ b/main/dbaccess/source/ui/inc/WCopyTable.hxx
@@ -82,7 +82,7 @@ namespace dbaui
                inline bool operator()(const ::rtl::OUString& _sColumnName)     
const
                {
                        return 
::std::find_if(m_pVector->begin(),m_pVector->end(),
-                               ::std::bind2nd(m_aCase, _sColumnName)) != 
m_pVector->end();
+                               ::std::bind(m_aCase, ::std::placeholders::_1, 
_sColumnName)) != m_pVector->end();
                }
     };
 
diff --git a/main/dbaccess/source/ui/misc/DExport.cxx 
b/main/dbaccess/source/ui/misc/DExport.cxx
index 9c2641dc39..0d648addcf 100644
--- a/main/dbaccess/source/ui/misc/DExport.cxx
+++ b/main/dbaccess/source/ui/misc/DExport.cxx
@@ -70,6 +70,7 @@
 #include <vcl/msgbox.hxx>
 #include <cppuhelper/exc_hlp.hxx>
 #include <rtl/logfile.hxx>
+#include <functional>
 
 using namespace dbaui;
 using namespace utl;
@@ -868,7 +869,7 @@ Reference< XPreparedStatement > 
ODatabaseExport::createPreparedStatement( const
        for(sal_uInt32 j=0; j < aInsertList.size() ;++i,++j)
        {
                ODatabaseExport::TPositions::const_iterator aFind = 
::std::find_if(_rvColumns.begin(),_rvColumns.end(),
-                       
::std::compose1(::std::bind2nd(::std::equal_to<sal_Int32>(),i+1),::std::select2nd<ODatabaseExport::TPositions::value_type>()));
+                       
::std::compose1(::std::bind(::std::equal_to<sal_Int32>(), 
::std::placeholders::_1,i+1),::std::select2nd<ODatabaseExport::TPositions::value_type>()));
                if ( _rvColumns.end() != aFind && aFind->second != 
sal::static_int_cast< long >(CONTAINER_ENTRY_NOTFOUND) && aFind->first != 
sal::static_int_cast< long >(CONTAINER_ENTRY_NOTFOUND) )
                {
             OSL_ENSURE((aFind->first) < 
static_cast<sal_Int32>(aInsertList.size()),"aInsertList: Illegal index for 
vector");
diff --git a/main/dbaccess/source/ui/misc/RowSetDrop.cxx 
b/main/dbaccess/source/ui/misc/RowSetDrop.cxx
index c52efcc808..b543690a63 100644
--- a/main/dbaccess/source/ui/misc/RowSetDrop.cxx
+++ b/main/dbaccess/source/ui/misc/RowSetDrop.cxx
@@ -113,7 +113,7 @@ sal_Bool ORowSetImportExport::Read()
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "[email protected]", 
"ORowSetImportExport::Read" );
        // check if there is any column to copy
        if(::std::find_if(m_aColumnMapping.begin(),m_aColumnMapping.end(),
-                                               
::std::bind2nd(::std::greater<sal_Int32>(),0)) == m_aColumnMapping.end())
+                                               
::std::bind(::std::greater<sal_Int32>(), ::std::placeholders::_1,0)) == 
m_aColumnMapping.end())
                return sal_False;
        sal_Int32 nCurrentRow = 0;
        sal_Int32 nRowFilterIndex = 0;
diff --git a/main/dbaccess/source/ui/misc/UITools.cxx 
b/main/dbaccess/source/ui/misc/UITools.cxx
index dfdfaaa1eb..bcb3a339a3 100644
--- a/main/dbaccess/source/ui/misc/UITools.cxx
+++ b/main/dbaccess/source/ui/misc/UITools.cxx
@@ -290,6 +290,7 @@
 #ifndef _CONNECTIVITY_FILE_VALUE_HXX_
 #include <connectivity/FValue.hxx>
 #endif
+#include <functional>
 
 // .........................................................................
 namespace dbaui
@@ -1390,12 +1391,12 @@ void fillAutoIncrementValue(const 
Reference<XPropertySet>& _xDatasource,
                // search the right propertyvalue
                const PropertyValue* pValue 
=::std::find_if(aInfo.getConstArray(),
                                                                                
                        aInfo.getConstArray() + aInfo.getLength(),
-                                                                               
                        
::std::bind2nd(TPropertyValueEqualFunctor(),PROPERTY_AUTOINCREMENTCREATION));
+                                                                               
                        ::std::bind(TPropertyValueEqualFunctor(), 
::std::placeholders::_1,static_cast<const 
::rtl::OUString&>(PROPERTY_AUTOINCREMENTCREATION)));
                if ( pValue && pValue != (aInfo.getConstArray() + 
aInfo.getLength()) )
                        pValue->Value >>= _rsAutoIncrementValue;
                pValue =::std::find_if(aInfo.getConstArray(),
                                                                                
                        aInfo.getConstArray() + aInfo.getLength(),
-                                                                               
                        
::std::bind2nd(TPropertyValueEqualFunctor(),::rtl::OUString::createFromAscii("IsAutoRetrievingEnabled")
 ));
+                                                                               
                        ::std::bind(TPropertyValueEqualFunctor(), 
::std::placeholders::_1,::rtl::OUString::createFromAscii("IsAutoRetrievingEnabled")
 ));
                if ( pValue && pValue != (aInfo.getConstArray() + 
aInfo.getLength()) )
                        pValue->Value >>= _rAutoIncrementValueEnabled;
        }
diff --git a/main/dbaccess/source/ui/misc/WColumnSelect.cxx 
b/main/dbaccess/source/ui/misc/WColumnSelect.cxx
index 1a054a7856..8cef579467 100644
--- a/main/dbaccess/source/ui/misc/WColumnSelect.cxx
+++ b/main/dbaccess/source/ui/misc/WColumnSelect.cxx
@@ -361,7 +361,7 @@ void OWizColumnSelect::moveColumn(  ListBox* _pRight,
                // find the new column in the dest name mapping to obtain the 
old column
                OCopyTableWizard::TNameMapping::iterator aIter = 
::std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(),
                                                                                
                                                ::std::compose1(
-                                                                               
                                                        ::std::bind2nd(_aCase, 
_sColumnName),
+                                                                               
                                                        ::std::bind(_aCase, 
::std::placeholders::_1, _sColumnName),
                                                                                
                                                        
::std::select2nd<OCopyTableWizard::TNameMapping::value_type>())
                                                                                
                                                        );
 
@@ -411,7 +411,7 @@ sal_uInt16 OWizColumnSelect::adjustColumnPosition( ListBox* 
_pLeft,
             // find the new column in the dest name mapping to obtain the old 
column
             OCopyTableWizard::TNameMapping::iterator aIter = 
::std::find_if(m_pParent->m_mNameMapping.begin(),m_pParent->m_mNameMapping.end(),
                                                                     
::std::compose1(
-                                                                    
::std::bind2nd(_aCase, sColumnString),
+                                                                    
::std::bind(_aCase, ::std::placeholders::_1, sColumnString),
                                                                     
::std::select2nd<OCopyTableWizard::TNameMapping::value_type>())
                                                                     );
 
diff --git a/main/dbaccess/source/ui/misc/WCopyTable.cxx 
b/main/dbaccess/source/ui/misc/WCopyTable.cxx
index d2c8505405..a0f01af832 100644
--- a/main/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/main/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -926,7 +926,7 @@ IMPL_LINK( OCopyTableWizard, ImplOKHdl, OKButton*, EMPTYARG 
)
                     if ( supportsPrimaryKey() )
                     {
                         ODatabaseExport::TColumns::iterator aFind = 
::std::find_if(m_vDestColumns.begin(),m_vDestColumns.end()
-                            
,::std::compose1(::std::mem_fun(&OFieldDescription::IsPrimaryKey),::std::select2nd<ODatabaseExport::TColumns::value_type>()));
+                            
,::std::compose1(::std::mem_fn(&OFieldDescription::IsPrimaryKey),::std::select2nd<ODatabaseExport::TColumns::value_type>()));
                         if ( aFind == m_vDestColumns.end() && 
m_xInteractionHandler.is() )
                         {
 
@@ -1372,7 +1372,7 @@ Reference< XPropertySet > OCopyTableWizard::createTable()
                                        ODatabaseExport::TPositions::iterator 
aPosFind = ::std::find_if(
                         m_vColumnPos.begin(),
                         m_vColumnPos.end(),
-                                               ::std::compose1(    
::std::bind2nd( ::std::equal_to< sal_Int32 >(), nPos ),
+                                               ::std::compose1(    
::std::bind( ::std::equal_to< sal_Int32 >(), ::std::placeholders::_1, nPos ),
                                             ::std::select1st< 
ODatabaseExport::TPositions::value_type >()
                         )
                     );
diff --git a/main/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx 
b/main/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
index aa8afdabd6..46d789ba3c 100644
--- a/main/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
+++ b/main/dbaccess/source/ui/misc/dbsubcomponentcontroller.cxx
@@ -54,6 +54,7 @@
 #include <tools/debug.hxx>
 #include <tools/diagnose_ex.h>
 #include <vcl/msgbox.hxx>
+#include <functional>
 
 //........................................................................
 namespace dbaui
@@ -249,7 +250,7 @@ namespace dbaui
                 aTypes.getConstArray(),
                 aTypes.getConstArray() + aTypes.getLength(),
                 aStrippedTypes.getArray(),
-                ::std::bind2nd( ::std::equal_to< Type >(), 
XScriptInvocationContext::static_type() )
+                ::std::bind( ::std::equal_to< Type >(), 
::std::placeholders::_1, XScriptInvocationContext::static_type() )
             );
             aTypes = aStrippedTypes;
         }
diff --git a/main/dbaccess/source/ui/querydesign/JoinTableView.cxx 
b/main/dbaccess/source/ui/querydesign/JoinTableView.cxx
index 506eb3b7a1..01e7dd3554 100644
--- a/main/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/main/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -1074,7 +1074,7 @@ void OJoinTableView::InvalidateConnections()
        //////////////////////////////////////////////////////////////////////
        // Die Joins zeichnen
        ::std::for_each(m_vTableConnection.begin(),m_vTableConnection.end(),
-               ::std::mem_fun(& OTableConnection::InvalidateConnection));
+               ::std::mem_fn(& OTableConnection::InvalidateConnection));
 }
 
 
//------------------------------------------------------------------------------
@@ -1095,14 +1095,14 @@ void OJoinTableView::DrawConnections( const Rectangle& 
rRect )
 {
        return ::std::find_if(  m_vTableConnection.begin(),
                                                        
m_vTableConnection.end(),
-                                                       
::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin));
+                                                       
::std::bind(::std::mem_fn(&OTableConnection::isTableConnection), 
::std::placeholders::_1,_pFromWin));
 }
 // 
-----------------------------------------------------------------------------
 sal_Int32 OJoinTableView::getConnectionCount(const OTableWindow* _pFromWin) 
const
 {
        return ::std::count_if( m_vTableConnection.begin(),
                                                        
m_vTableConnection.end(),
-                                                       
::std::bind2nd(::std::mem_fun(&OTableConnection::isTableConnection),_pFromWin));
+                                                       
::std::bind(::std::mem_fn(&OTableConnection::isTableConnection), 
::std::placeholders::_1,_pFromWin));
 }
 
//------------------------------------------------------------------------------
 sal_Bool OJoinTableView::ExistsAConn(const OTableWindow* pFrom) const
@@ -1311,7 +1311,7 @@ void OJoinTableView::Command(const CommandEvent& rEvt)
                                if( pSelConnection )
                                {
                                        const ::std::vector<OConnectionLine*>* 
pLines = pSelConnection->GetConnLineList();
-                                       
::std::vector<OConnectionLine*>::const_iterator aIter = 
::std::find_if(pLines->begin(),pLines->end(),::std::mem_fun(&OConnectionLine::IsValid));
+                                       
::std::vector<OConnectionLine*>::const_iterator aIter = 
::std::find_if(pLines->begin(),pLines->end(),::std::mem_fn(&OConnectionLine::IsValid));
                                        if( aIter != pLines->end() )
                                                
executePopup((*aIter)->getMidPoint(),pSelConnection);
                                }
diff --git a/main/dbaccess/source/ui/querydesign/TableConnection.cxx 
b/main/dbaccess/source/ui/querydesign/TableConnection.cxx
index 92d98ce9a9..d1f1c48a63 100644
--- a/main/dbaccess/source/ui/querydesign/TableConnection.cxx
+++ b/main/dbaccess/source/ui/querydesign/TableConnection.cxx
@@ -42,6 +42,7 @@
 #include "ConnectionLineAccess.hxx"
 #endif
 #include <algorithm>
+#include <functional>
 
 
 using namespace dbaui;
@@ -146,7 +147,7 @@ namespace dbaui
        bool OTableConnection::RecalcLines()
        {
                // call RecalcLines on each line
-               
::std::for_each(m_vConnLine.begin(),m_vConnLine.end(),::std::mem_fun(&OConnectionLine::RecalcLine));
+               
::std::for_each(m_vConnLine.begin(),m_vConnLine.end(),::std::mem_fn(&OConnectionLine::RecalcLine));
                return true;
        }
        
//------------------------------------------------------------------------
@@ -193,7 +194,7 @@ namespace dbaui
                // check if the point hit our line
                ::std::vector<OConnectionLine*>::const_iterator aIter = 
::std::find_if(m_vConnLine.begin(),
                                                                                
                                                                 
m_vConnLine.end(),
-                                                                               
                                                                 
::std::bind2nd(TConnectionLineCheckHitFunctor(),rMousePos));
+                                                                               
                                                                 
::std::bind(TConnectionLineCheckHitFunctor(), 
::std::placeholders::_1,rMousePos));
                return aIter != m_vConnLine.end();
        }
 
diff --git a/main/dbaccess/source/ui/querydesign/TableWindowTitle.cxx 
b/main/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
index e67277e788..8388ba0269 100644
--- a/main/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
+++ b/main/dbaccess/source/ui/querydesign/TableWindowTitle.cxx
@@ -67,6 +67,7 @@
 #endif
 
 #include <algorithm>
+#include <functional>
 
 using namespace dbaui;
 using namespace ::com::sun::star::beans;
@@ -187,7 +188,7 @@ void OTableWindowTitle::MouseButtonDown( const MouseEvent& 
rEvt )
                                const ::std::vector<OTableConnection*>* pConns 
= pView->getTableConnections();
                                ::std::for_each(pConns->begin(),
                                                                pConns->end(),
-                                                               
::std::mem_fun(&OTableConnection::RecalcLines));
+                                                               
::std::mem_fn(&OTableConnection::RecalcLines));
 
                                pView->InvalidateConnections();
                                
pView->getDesignView()->getController().setModified(sal_True);
diff --git a/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx 
b/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx
index 9861464204..f1e480a641 100644
--- a/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx
+++ b/main/editeng/source/accessibility/AccessibleStaticTextBase.cxx
@@ -33,6 +33,7 @@
 #include <limits.h>
 #include <vector>
 #include <algorithm>
+#include <functional>
 #include <boost/bind.hpp>
 #include <vos/mutex.hxx>
 #include <vcl/window.hxx>
@@ -1105,7 +1106,7 @@ sal_Unicode cNewLine(0x0a);
             {
                 const beans::PropertyValue* pItr = aSeq.getConstArray();
                 const beans::PropertyValue* pEnd  = pItr + aSeq.getLength();
-                const beans::PropertyValue* pFind = ::std::find_if( pItr, 
pEnd, ::std::bind2nd( PropertyValueEqualFunctor(), boost::cref( *aItr ) ) );
+                const beans::PropertyValue* pFind = ::std::find_if( pItr, 
pEnd, ::std::bind( PropertyValueEqualFunctor(), ::std::placeholders::_1, 
boost::cref( *aItr ) ) );
                 if ( pFind != pEnd )
                 {
                     aIntersectionVec.push_back( *pFind );
@@ -1143,7 +1144,7 @@ sal_Unicode cNewLine(0x0a);
         {
             const beans::PropertyValue* pItr = 
aIntersectionSeq.getConstArray();
             const beans::PropertyValue* pEnd  = pItr + 
aIntersectionSeq.getLength();
-            const beans::PropertyValue* pFind = ::std::find_if( pItr, pEnd, 
::std::bind2nd( PropertyValueEqualFunctor(), boost::cref( pDefAttr[i] ) ) );
+            const beans::PropertyValue* pFind = ::std::find_if( pItr, pEnd, 
::std::bind( PropertyValueEqualFunctor(), ::std::placeholders::_1, boost::cref( 
pDefAttr[i] ) ) );
             if ( pFind == pEnd && pDefAttr[i].Handle != 0)
             {
                 aDiffVec.push_back( pDefAttr[i] );
diff --git a/main/extensions/source/propctrlr/propertyeditor.cxx 
b/main/extensions/source/propctrlr/propertyeditor.cxx
index b971a02365..05538be951 100644
--- a/main/extensions/source/propctrlr/propertyeditor.cxx
+++ b/main/extensions/source/propctrlr/propertyeditor.cxx
@@ -276,7 +276,7 @@ namespace pcr
     }
 
     //------------------------------------------------------------------
-    void OPropertyEditor::Update(const ::std::mem_fun_t<void,OBrowserListBox>& 
_aUpdateFunction)
+    void OPropertyEditor::Update(const 
::std::function<void(OBrowserListBox*)>& _aUpdateFunction)
     {
         // forward this to all our pages
         sal_uInt16 nCount = m_aTabControl.GetPageCount();
@@ -291,12 +291,12 @@ namespace pcr
     //------------------------------------------------------------------
     void OPropertyEditor::EnableUpdate()
     {
-        Update(::std::mem_fun(&OBrowserListBox::EnableUpdate));
+        Update(::std::mem_fn(&OBrowserListBox::EnableUpdate));
     }
     //------------------------------------------------------------------
     void OPropertyEditor::DisableUpdate()
     {
-        Update(::std::mem_fun(&OBrowserListBox::DisableUpdate));
+        Update(::std::mem_fn(&OBrowserListBox::DisableUpdate));
     }
 
     //------------------------------------------------------------------
diff --git a/main/extensions/source/propctrlr/propertyeditor.hxx 
b/main/extensions/source/propctrlr/propertyeditor.hxx
index 40543cb997..e1c9dc414e 100644
--- a/main/extensions/source/propctrlr/propertyeditor.hxx
+++ b/main/extensions/source/propctrlr/propertyeditor.hxx
@@ -33,6 +33,7 @@
 #include <comphelper/stl_types.hxx>
 #include <boost/mem_fn.hpp>
 #include <map>
+#include <functional>
 
 //............................................................................
 namespace pcr
@@ -134,7 +135,7 @@ namespace pcr
         OBrowserPage* getPage( const ::rtl::OUString& _rPropertyName );
         const OBrowserPage* getPage( const ::rtl::OUString& _rPropertyName ) 
const;
 
-        void Update(const ::std::mem_fun_t<void,OBrowserListBox>& 
_aUpdateFunction);
+        void Update(const ::std::function<void(OBrowserListBox*)>& 
_aUpdateFunction);
 
         typedef void (OPropertyEditor::*PageOperation)( OBrowserPage&, const 
void* );
         void    forEachPage( PageOperation _pOperation, const void* _pArgument 
= NULL );
diff --git a/main/forms/source/component/ListBox.cxx 
b/main/forms/source/component/ListBox.cxx
index a9ecec26fa..80e262fda4 100644
--- a/main/forms/source/component/ListBox.cxx
+++ b/main/forms/source/component/ListBox.cxx
@@ -419,11 +419,11 @@ namespace frm
         const ::rtl::OUString* pEndPos   = _rPropertyNames.getConstArray() + 
_rPropertyNames.getLength();
         const ::rtl::OUString* pSelectedItemsPos = ::std::find_if(
             pStartPos, pEndPos,
-             ::std::bind2nd( ::std::equal_to< ::rtl::OUString >(), 
PROPERTY_SELECT_SEQ )
+             ::std::bind( ::std::equal_to< ::rtl::OUString >(), 
::std::placeholders::_1, static_cast< ::rtl::OUString >( PROPERTY_SELECT_SEQ ) )
         );
         const ::rtl::OUString* pStringItemListPos = ::std::find_if(
             pStartPos, pEndPos,
-             ::std::bind2nd( ::std::equal_to< ::rtl::OUString >(), 
PROPERTY_STRINGITEMLIST )
+             ::std::bind( ::std::equal_to< ::rtl::OUString >(), 
::std::placeholders::_1, static_cast< ::rtl::OUString >( 
PROPERTY_STRINGITEMLIST ) )
         );
         if ( ( pSelectedItemsPos != pEndPos ) && ( pStringItemListPos != 
pEndPos ) )
         {
diff --git a/main/forms/source/richtext/richtextengine.cxx 
b/main/forms/source/richtext/richtextengine.cxx
index 97293569b1..f85e5f365f 100644
--- a/main/forms/source/richtext/richtextengine.cxx
+++ b/main/forms/source/richtext/richtextengine.cxx
@@ -134,7 +134,7 @@ namespace frm
         ::std::vector< IEngineStatusListener* >::iterator aPos = 
::std::find_if(
             m_aStatusListeners.begin(),
             m_aStatusListeners.end(),
-            ::std::bind2nd( ::std::equal_to< IEngineStatusListener* >( ), 
_pListener )
+            ::std::bind( ::std::equal_to< IEngineStatusListener* >( ), 
::std::placeholders::_1, _pListener )
         );
         OSL_ENSURE( aPos != m_aStatusListeners.end(), 
"RichTextEngine::revokeEngineStatusListener: listener not registered!" );
         if ( aPos != m_aStatusListeners.end() )
diff --git a/main/forms/source/xforms/binding.cxx 
b/main/forms/source/xforms/binding.cxx
index f2964ff604..185e1f9159 100644
--- a/main/forms/source/xforms/binding.cxx
+++ b/main/forms/source/xforms/binding.cxx
@@ -738,13 +738,13 @@ void Binding::valueModified()
     Reference<XInterface> xSource = static_cast<XPropertySet*>( this );
     ::std::for_each( maModifyListeners.begin(),
               maModifyListeners.end(),
-              ::std::bind2nd( ::std::ptr_fun( lcl_modified ), xSource ) );
+              ::std::bind( lcl_modified, ::std::placeholders::_1, xSource ) );
     ::std::for_each( maListEntryListeners.begin(),
               maListEntryListeners.end(),
-              ::std::bind2nd( ::std::ptr_fun( lcl_listentry ), xSource ) );
+              ::std::bind( lcl_listentry, ::std::placeholders::_1, xSource ) );
     ::std::for_each( maValidityListeners.begin(),
               maValidityListeners.end(),
-              ::std::bind2nd( ::std::ptr_fun( lcl_validate ), xSource ) );
+              ::std::bind( lcl_validate, ::std::placeholders::_1, xSource ) );
 
        // now distribute MIPs to childs
     if( xNode.is() )
diff --git a/main/formula/source/ui/dlg/formula.cxx 
b/main/formula/source/ui/dlg/formula.cxx
index 54f90c4af6..337474b164 100644
--- a/main/formula/source/ui/dlg/formula.cxx
+++ b/main/formula/source/ui/dlg/formula.cxx
@@ -68,6 +68,7 @@
 #include <boost/bind.hpp>
 #include <comphelper/processfactory.hxx>
 #include <map>
+#include <functional>
 
 #define TOKEN_OPEN  0
 #define TOKEN_CLOSE 1
@@ -553,7 +554,7 @@ xub_StrLen FormulaDlg_Impl::GetFunctionPos(xub_StrLen nPos)
                                    bFlag=sal_False;
                                    nFuncPos=nPrevFuncPos;
                            }
-                bool bIsFunction = 
::std::find_if(m_aFunctionOpCodes.getConstArray(),m_pFunctionOpCodesEnd,::std::bind2nd(OpCodeCompare(),boost::cref(eOp)))
 != m_pFunctionOpCodesEnd;
+                bool bIsFunction = 
::std::find_if(m_aFunctionOpCodes.getConstArray(),m_pFunctionOpCodesEnd,::std::bind(OpCodeCompare(),
 ::std::placeholders::_1,boost::cref(eOp))) != m_pFunctionOpCodesEnd;
 
                            if ( bIsFunction && 
m_aSpecialOpCodes[sheet::FormulaMapGroupSpecialOffset::SPACES].Token.OpCode != 
eOp )
                            {
diff --git a/main/jvmfwk/source/framework.cxx b/main/jvmfwk/source/framework.cxx
index 10c9d294e9..67d4858339 100644
--- a/main/jvmfwk/source/framework.cxx
+++ b/main/jvmfwk/source/framework.cxx
@@ -181,7 +181,7 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo 
***pparInfo, sal_Int32 *pSi
                                        //the same JRE
                                        it_info it_duplicate =
                                                
std::find_if(vecInfoManual.begin(), vecInfoManual.end(),
-                                                               
std::bind2nd(std::ptr_fun(areEqualJavaInfo), aInfo));
+                                                               
std::bind(areEqualJavaInfo, std::placeholders::_1, static_cast< ::JavaInfo 
const * >(aInfo)));
                                        if (it_duplicate == vecInfoManual.end())
                                                vecInfoManual.push_back(aInfo);
                                }
@@ -210,7 +210,7 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo 
***pparInfo, sal_Int32 *pSi
                {
                        it_info it_duplicate =
                                std::find_if(vecInfoManual2.begin(), 
vecInfoManual2.end(),
-                                                       
std::bind2nd(std::ptr_fun(areEqualJavaInfo), *j));
+                                                       
std::bind(areEqualJavaInfo, std::placeholders::_1, static_cast< ::JavaInfo 
const * >(*j)));
                        if (it_duplicate != vecInfoManual2.end())
                                vecInfoManual2.erase(it_duplicate);
                }
diff --git a/main/reportdesign/inc/UndoActions.hxx 
b/main/reportdesign/inc/UndoActions.hxx
index b47c37195d..7984abbd05 100644
--- a/main/reportdesign/inc/UndoActions.hxx
+++ b/main/reportdesign/inc/UndoActions.hxx
@@ -90,7 +90,7 @@ namespace rptui
                inline ::sal_Bool getHeaderOn() { return 
m_xGroup->getHeaderOn(); }
                inline ::sal_Bool getFooterOn() { return 
m_xGroup->getFooterOn(); }
 
-        static ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> , OGroupHelper> getMemberFunction(const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection);
+        static ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> (OGroupHelper*)> getMemberFunction(const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection);
 
        };
        typedef com::sun::star::uno::Reference< 
::com::sun::star::report::XSection > TSection;
@@ -116,7 +116,7 @@ namespace rptui
         inline ::sal_Bool getPageHeaderOn() { return 
m_xReport->getPageHeaderOn(); }
                inline ::sal_Bool getPageFooterOn() { return 
m_xReport->getPageFooterOn(); }
 
-        static ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> , OReportHelper> getMemberFunction(const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection);
+        static ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> (OReportHelper*)> getMemberFunction(const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection);
        };
 
        
//==================================================================================================================
@@ -220,13 +220,13 @@ namespace rptui
        class REPORTDESIGN_DLLPUBLIC OUndoReportSectionAction : public 
OUndoContainerAction
        {
         OReportHelper                                                          
m_aReportHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OReportHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OReportHelper*)> m_pMemberFunction;
        public:
                OUndoReportSectionAction(SdrModel& rMod
                                                        ,Action _eAction
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                           ,OReportHelper> 
_pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                           (OReportHelper*)> 
_pMemberFunction
                                                        ,const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition 
>& _xReport
                             ,const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface>& xElem
                             ,sal_uInt16 _nCommentId);
@@ -242,13 +242,13 @@ namespace rptui
        class REPORTDESIGN_DLLPUBLIC OUndoGroupSectionAction : public 
OUndoContainerAction
        {
         OGroupHelper                                                           
m_aGroupHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OGroupHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OGroupHelper*)> m_pMemberFunction;
        public:
                OUndoGroupSectionAction(SdrModel& rMod
                                                        ,Action _eAction
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                                               
        ,OGroupHelper> _pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                                               
        (OGroupHelper*)> _pMemberFunction
                                                        ,const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup >& _xGroup
                             ,const ::com::sun::star::uno::Reference< 
::com::sun::star::uno::XInterface>& xElem
                             ,sal_uInt16 _nCommentId);
@@ -291,15 +291,15 @@ namespace rptui
        class REPORTDESIGN_DLLPUBLIC OUndoPropertyReportSectionAction : public 
ORptUndoPropertyAction
        {
         OReportHelper                                                          
m_aReportHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OReportHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OReportHelper*)> m_pMemberFunction;
     protected:
         virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySet> getObject();
        public:
                OUndoPropertyReportSectionAction(SdrModel& rMod
                                                        ,const 
::com::sun::star::beans::PropertyChangeEvent& evt
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                           ,OReportHelper> 
_pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                           (OReportHelper*)> 
_pMemberFunction
                             ,const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XReportDefinition >& _xReport
                                                        );
        };
@@ -310,15 +310,15 @@ namespace rptui
        class REPORTDESIGN_DLLPUBLIC OUndoPropertyGroupSectionAction : public 
ORptUndoPropertyAction
        {
         OGroupHelper                                                           
m_aGroupHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OGroupHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OGroupHelper*)> m_pMemberFunction;
     protected:
         virtual ::com::sun::star::uno::Reference< 
::com::sun::star::beans::XPropertySet> getObject();
        public:
                OUndoPropertyGroupSectionAction(SdrModel& rMod
                                                        ,const 
::com::sun::star::beans::PropertyChangeEvent& evt
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                                               
        ,OGroupHelper> _pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                                               
        (OGroupHelper*)> _pMemberFunction
                             ,const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XGroup >& _xGroup
                             );
        };
diff --git a/main/reportdesign/source/core/sdr/PropertyForward.cxx 
b/main/reportdesign/source/core/sdr/PropertyForward.cxx
index a52f09a87e..5902135c7f 100644
--- a/main/reportdesign/source/core/sdr/PropertyForward.cxx
+++ b/main/reportdesign/source/core/sdr/PropertyForward.cxx
@@ -30,6 +30,7 @@
 #include <tools/debug.hxx>
 #include <tools/diagnose_ex.h>
 #include "corestrings.hrc"
+#include <functional>
 
 //........................................................................
 namespace rptui
@@ -129,7 +130,7 @@ void SAL_CALL OPropertyMediator::propertyChange( const 
PropertyChangeEvent& evt
                                                                
m_aNameMap.begin(),
                                                                
m_aNameMap.end(),
                                                                ::std::compose1(
-                                                               
::std::bind2nd(::std::equal_to< ::rtl::OUString >(), evt.PropertyName),
+                                                               
::std::bind(::std::equal_to< ::rtl::OUString >(), ::std::placeholders::_1, 
evt.PropertyName),
                                                                        
::std::compose1(::std::select1st<TPropertyConverter>(),::std::select2nd<TPropertyNamePair::value_type>())
                                                                )
                                                        );
diff --git a/main/reportdesign/source/core/sdr/UndoActions.cxx 
b/main/reportdesign/source/core/sdr/UndoActions.cxx
index 64ff1639f7..442eaefeb4 100644
--- a/main/reportdesign/source/core/sdr/UndoActions.cxx
+++ b/main/reportdesign/source/core/sdr/UndoActions.cxx
@@ -64,27 +64,27 @@ namespace rptui
        using namespace container;
        using namespace report;
 //----------------------------------------------------------------------------
-::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> 
OGroupHelper::getMemberFunction(const Reference< XSection >& _xSection)
+::std::function<uno::Reference<report::XSection> (OGroupHelper*)> 
OGroupHelper::getMemberFunction(const Reference< XSection >& _xSection)
 {
-    ::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> 
pMemFunSection = ::std::mem_fun(&OGroupHelper::getFooter);
+    ::std::function<uno::Reference<report::XSection> (OGroupHelper*)> 
pMemFunSection = ::std::mem_fn(&OGroupHelper::getFooter);
     uno::Reference< report::XGroup> xGroup = _xSection->getGroup();
     if ( xGroup->getHeaderOn() && xGroup->getHeader() == _xSection )
-        pMemFunSection = ::std::mem_fun(&OGroupHelper::getHeader);
+        pMemFunSection = ::std::mem_fn(&OGroupHelper::getHeader);
     return pMemFunSection;
 }
 // 
-----------------------------------------------------------------------------
-::std::mem_fun_t<uno::Reference<report::XSection> , OReportHelper> 
OReportHelper::getMemberFunction(const Reference< XSection >& _xSection)
+::std::function<uno::Reference<report::XSection> (OReportHelper*)> 
OReportHelper::getMemberFunction(const Reference< XSection >& _xSection)
 {
     uno::Reference< report::XReportDefinition> 
xReportDefinition(_xSection->getReportDefinition());
-    ::std::mem_fun_t<uno::Reference<report::XSection> , OReportHelper> 
pMemFunSection = ::std::mem_fun(&OReportHelper::getReportFooter);
+    ::std::function<uno::Reference<report::XSection> (OReportHelper*)> 
pMemFunSection = ::std::mem_fn(&OReportHelper::getReportFooter);
     if ( xReportDefinition->getReportHeaderOn() && 
xReportDefinition->getReportHeader() == _xSection )
-        pMemFunSection = ::std::mem_fun(&OReportHelper::getReportHeader);
+        pMemFunSection = ::std::mem_fn(&OReportHelper::getReportHeader);
     else if ( xReportDefinition->getPageHeaderOn() && 
xReportDefinition->getPageHeader() == _xSection )
-        pMemFunSection = ::std::mem_fun(&OReportHelper::getPageHeader);
+        pMemFunSection = ::std::mem_fn(&OReportHelper::getPageHeader);
     else if ( xReportDefinition->getPageFooterOn() && 
xReportDefinition->getPageFooter() == _xSection )
-        pMemFunSection = ::std::mem_fun(&OReportHelper::getPageFooter);
+        pMemFunSection = ::std::mem_fn(&OReportHelper::getPageFooter);
     else if ( xReportDefinition->getDetail() == _xSection )
-        pMemFunSection = ::std::mem_fun(&OReportHelper::getDetail);
+        pMemFunSection = ::std::mem_fn(&OReportHelper::getDetail);
     return pMemFunSection;
 }
 
@@ -260,8 +260,8 @@ void OUndoContainerAction::Redo()
 // 
-----------------------------------------------------------------------------
 OUndoGroupSectionAction::OUndoGroupSectionAction(SdrModel& _rMod
                                                                                
         ,Action _eAction
-                                                                               
         ,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
                ,OGroupHelper> _pMemberFunction
+                                                                               
         ,::std::function< uno::Reference< report::XSection >
+                                                                               
                (OGroupHelper*)> _pMemberFunction
                                                                                
 ,const uno::Reference< report::XGroup >& _xGroup
                                                                                
         ,const Reference< XInterface > & xElem
                                              ,sal_uInt16 _nCommentId)
@@ -306,8 +306,8 @@ void OUndoGroupSectionAction::implReRemove( )
 //----------------------------------------------------------------------------
 OUndoReportSectionAction::OUndoReportSectionAction(SdrModel& _rMod
                                                                                
         ,Action _eAction
-                                                                               
         ,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
            ,OReportHelper> _pMemberFunction
+                                                                               
         ,::std::function< uno::Reference< report::XSection >
+                                                                               
            (OReportHelper*)> _pMemberFunction
                                                                                
 ,const uno::Reference< report::XReportDefinition >& _xReport
                                                                                
         ,const Reference< XInterface > & xElem
                                              ,sal_uInt16 _nCommentId)
@@ -408,8 +408,8 @@ String ORptUndoPropertyAction::GetComment() const
 // 
-----------------------------------------------------------------------------
 OUndoPropertyGroupSectionAction::OUndoPropertyGroupSectionAction(SdrModel& 
_rMod
                                                                                
         ,const PropertyChangeEvent& evt
-                                                                               
         ,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
                ,OGroupHelper> _pMemberFunction
+                                                                               
         ,::std::function< uno::Reference< report::XSection >
+                                                                               
                (OGroupHelper*)> _pMemberFunction
                                                                                
 ,const uno::Reference< report::XGroup >& _xGroup
                                              )
 :ORptUndoPropertyAction(_rMod,evt)
@@ -425,8 +425,8 @@ Reference< XPropertySet> 
OUndoPropertyGroupSectionAction::getObject()
 // 
-----------------------------------------------------------------------------
 OUndoPropertyReportSectionAction::OUndoPropertyReportSectionAction(SdrModel& 
_rMod
                                                                                
         ,const PropertyChangeEvent& evt
-                                                                               
         ,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
            ,OReportHelper> _pMemberFunction
+                                                                               
         ,::std::function< uno::Reference< report::XSection >
+                                                                               
            (OReportHelper*)> _pMemberFunction
                                                                                
 ,const uno::Reference< report::XReportDefinition >& _xReport
                                              )
 :ORptUndoPropertyAction(_rMod,evt)
diff --git a/main/reportdesign/source/ui/dlg/Navigator.cxx 
b/main/reportdesign/source/ui/dlg/Navigator.cxx
index 9971635c3f..95e44d2ccc 100644
--- a/main/reportdesign/source/ui/dlg/Navigator.cxx
+++ b/main/reportdesign/source/ui/dlg/Navigator.cxx
@@ -831,12 +831,12 @@ void NavigatorTree::UserData::_propertyChanged(const 
beans::PropertyChangeEvent&
         {
             sal_Int32 nPos = 1;
             uno::Reference< report::XGroup> 
xGroup(_rEvent.Source,uno::UNO_QUERY);
-            ::std::mem_fun_t< sal_Bool,OGroupHelper> pIsOn = 
::std::mem_fun(&OGroupHelper::getHeaderOn);
-               ::std::mem_fun_t< uno::Reference<report::XSection> 
,OGroupHelper> pMemFunSection = ::std::mem_fun(&OGroupHelper::getHeader);
+            ::std::function< sal_Bool(OGroupHelper*)> pIsOn = 
::std::mem_fn(&OGroupHelper::getHeaderOn);
+               ::std::function< 
uno::Reference<report::XSection>(OGroupHelper*)> pMemFunSection = 
::std::mem_fn(&OGroupHelper::getHeader);
             if ( bFooterOn )
             {
-                pIsOn = ::std::mem_fun(&OGroupHelper::getFooterOn);
-                       pMemFunSection = 
::std::mem_fun(&OGroupHelper::getFooter);
+                pIsOn = ::std::mem_fn(&OGroupHelper::getFooterOn);
+                       pMemFunSection = 
::std::mem_fn(&OGroupHelper::getFooter);
                 nPos = m_pTree->GetChildCount(pEntry) - 1;
             }
 
diff --git a/main/reportdesign/source/ui/inc/ReportController.hxx 
b/main/reportdesign/source/ui/inc/ReportController.hxx
index 5b48c49185..09edd72d96 100644
--- a/main/reportdesign/source/ui/inc/ReportController.hxx
+++ b/main/reportdesign/source/ui/inc/ReportController.hxx
@@ -214,7 +214,7 @@ namespace rptui
                                                 ,sal_Int32 _nGroupPos
                                                 ,bool _bShow);
 
-        void executeMethodWithUndo(sal_uInt16 _nUndoStrId,const 
::std::mem_fun_t<void,ODesignView>& _pMemfun);
+        void executeMethodWithUndo(sal_uInt16 _nUndoStrId,const 
::std::function<void(ODesignView*)>& _pMemfun);
         void alignControlsWithUndo(sal_uInt16 _nUndoStrId,sal_Int32 
_nControlModification,bool _bAlignAtSection = false);
 
                // open the help agent of report designer at start time
diff --git a/main/reportdesign/source/ui/inc/RptUndo.hxx 
b/main/reportdesign/source/ui/inc/RptUndo.hxx
index 5f197e9c06..dcd30ae62a 100644
--- a/main/reportdesign/source/ui/inc/RptUndo.hxx
+++ b/main/reportdesign/source/ui/inc/RptUndo.hxx
@@ -75,8 +75,8 @@ namespace rptui
        class OReportSectionUndo : public OSectionUndo
        {
                OReportHelper                                                   
        m_aReportHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OReportHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OReportHelper*)> m_pMemberFunction;
 
                void    implReInsert( );
                void    implReRemove( );
@@ -87,8 +87,8 @@ namespace rptui
                //OReportSectionUndo(    const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection
                OReportSectionUndo(     OReportModel& rMod
                                                        ,sal_uInt16 _nSlot
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                           ,OReportHelper> 
_pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                           (OReportHelper*)> 
_pMemberFunction
                                                        ,const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XReportDefinition 
>& _xReport
                                                        ,Action _eAction
                                                        ,sal_uInt16 nCommentID);
@@ -100,8 +100,8 @@ namespace rptui
        class OGroupSectionUndo : public OSectionUndo
        {
                OGroupHelper                                                    
        m_aGroupHelper;
-               ::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
-                                                                       
,OGroupHelper> m_pMemberFunction;
+               ::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection >
+                                                                       
(OGroupHelper*)> m_pMemberFunction;
 
         mutable ::rtl::OUString                     m_sName;
 
@@ -114,8 +114,8 @@ namespace rptui
                //OGroupSectionUndo(     const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >& 
_xSection
                OGroupSectionUndo(      OReportModel& rMod
                                                        ,sal_uInt16 _nSlot
-                                                       ,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
-                                                                               
        ,OGroupHelper> _pMemberFunction
+                                                       ,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection >
+                                                                               
        (OGroupHelper*)> _pMemberFunction
                                                        ,const 
::com::sun::star::uno::Reference< ::com::sun::star::report::XGroup >& _xGroup
                                                        ,Action _eAction
                                                        ,sal_uInt16 nCommentID);
diff --git a/main/reportdesign/source/ui/inc/SectionWindow.hxx 
b/main/reportdesign/source/ui/inc/SectionWindow.hxx
index e57c080323..1cf83d8e02 100644
--- a/main/reportdesign/source/ui/inc/SectionWindow.hxx
+++ b/main/reportdesign/source/ui/inc/SectionWindow.hxx
@@ -73,7 +73,7 @@ namespace rptui
         * \param _pIsSectionOn
         * @return sal_True when title was set otherwise FALSE
         */
-        bool setGroupSectionTitle(const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XGroup>& _xGroup,sal_uInt16 _nResId,::std::mem_fun_t< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection> , 
OGroupHelper> _pGetSection,::std::mem_fun_t<sal_Bool, OGroupHelper> 
_pIsSectionOn);
+        bool setGroupSectionTitle(const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XGroup>& _xGroup,sal_uInt16 _nResId,::std::function< 
::com::sun::star::uno::Reference< ::com::sun::star::report::XSection> 
(OGroupHelper*)> _pGetSection,::std::function<sal_Bool(OGroupHelper*)> 
_pIsSectionOn);
 
         /** set the title of the (report/page) header or footer
         *
@@ -83,7 +83,7 @@ namespace rptui
         * \param _pIsSectionOn
         * @return sal_True when title was set otherwise FALSE
         */
-        bool setReportSectionTitle(const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XReportDefinition>& _xReport,sal_uInt16 
_nResId,::std::mem_fun_t< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> , OReportHelper> 
_pGetSection,::std::mem_fun_t<sal_Bool, OReportHelper> _pIsSectionOn);
+        bool setReportSectionTitle(const ::com::sun::star::uno::Reference< 
::com::sun::star::report::XReportDefinition>& _xReport,sal_uInt16 
_nResId,::std::function< ::com::sun::star::uno::Reference< 
::com::sun::star::report::XSection> (OReportHelper*)> 
_pGetSection,::std::function<sal_Bool(OReportHelper*)> _pIsSectionOn);
         void ImplInitSettings();
 
         DECL_LINK(Collapsed,OColorListener*);
diff --git a/main/reportdesign/source/ui/inspection/GeometryHandler.cxx 
b/main/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 100a799663..7824994f02 100644
--- a/main/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/main/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -111,6 +111,7 @@
 #include "dlgpage.hxx"
 #include "helpids.hrc"
 #include <toolkit/helper/convert.hxx>
+#include <functional>
 
 #define DATA_OR_FORMULA     0
 #define FUNCTION            1
@@ -926,7 +927,7 @@ beans::Property GeometryHandler::getProperty(const 
::rtl::OUString & PropertyNam
     uno::Sequence< beans::Property > aProps = getSupportedProperties();
     const beans::Property* pIter = aProps.getConstArray();
     const beans::Property* pEnd  = pIter + aProps.getLength();
-    const beans::Property* pFind = 
::std::find_if(pIter,pEnd,::std::bind2nd(PropertyCompare(),boost::cref(PropertyName)));
+    const beans::Property* pFind = 
::std::find_if(pIter,pEnd,::std::bind(PropertyCompare(), 
::std::placeholders::_1,boost::cref(PropertyName)));
     if ( pFind == pEnd )
         return beans::Property();
     return *pFind;
@@ -1316,7 +1317,7 @@ uno::Sequence< beans::Property > SAL_CALL 
GeometryHandler::getSupportedPropertie
     {
         const beans::Property* pIter = aSeq.getConstArray();
         const beans::Property* pEnd  = pIter + aSeq.getLength();
-        const beans::Property* pFind = 
::std::find_if(pIter,pEnd,::std::bind2nd(PropertyCompare(),boost::cref(pIncludeProperties[i])));
+        const beans::Property* pFind = 
::std::find_if(pIter,pEnd,::std::bind(PropertyCompare(), 
::std::placeholders::_1,boost::cref(pIncludeProperties[i])));
         if ( pFind != pEnd )
         {
             // special case for controls which contain a data field
diff --git a/main/reportdesign/source/ui/misc/RptUndo.cxx 
b/main/reportdesign/source/ui/misc/RptUndo.cxx
index b656c4d6ce..1dbe83623e 100644
--- a/main/reportdesign/source/ui/misc/RptUndo.cxx
+++ b/main/reportdesign/source/ui/misc/RptUndo.cxx
@@ -227,8 +227,8 @@ void OSectionUndo::Redo()
 TYPEINIT1( OReportSectionUndo, OSectionUndo );
 //----------------------------------------------------------------------------
 OReportSectionUndo::OReportSectionUndo(OReportModel& _rMod,sal_uInt16 _nSlot
-                                                                          
,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
        ,OReportHelper> _pMemberFunction
+                                                                          
,::std::function< uno::Reference< report::XSection >
+                                                                               
        (OReportHelper*)> _pMemberFunction
                                                                           
,const uno::Reference< report::XReportDefinition >& _xReport
                                                                           
,Action _eAction
                                                                           
,sal_uInt16 nCommentID)
@@ -266,8 +266,8 @@ void OReportSectionUndo::implReRemove( )
 TYPEINIT1( OGroupSectionUndo, OSectionUndo );
 //----------------------------------------------------------------------------
 OGroupSectionUndo::OGroupSectionUndo(OReportModel& _rMod,sal_uInt16 _nSlot
-                                                                          
,::std::mem_fun_t< uno::Reference< report::XSection >
-                                                                               
        ,OGroupHelper> _pMemberFunction
+                                                                          
,::std::function< uno::Reference< report::XSection >
+                                                                               
        (OGroupHelper*)> _pMemberFunction
                                                                           
,const uno::Reference< report::XGroup >& _xGroup
                                                                           
,Action _eAction
                                                                           
,sal_uInt16 nCommentID)
diff --git a/main/reportdesign/source/ui/report/ReportController.cxx 
b/main/reportdesign/source/ui/report/ReportController.cxx
index 0aa8decf35..24dd70804d 100644
--- a/main/reportdesign/source/ui/report/ReportController.cxx
+++ b/main/reportdesign/source/ui/report/ReportController.cxx
@@ -162,6 +162,7 @@
 #include <helpids.hrc>
 
 #include <ReportControllerObserver.hxx>
+#include <functional>
 
 #define MAX_ROWS_FOR_PREVIEW    20
 
@@ -1052,13 +1053,13 @@ void OReportController::Execute(sal_uInt16 _nId, const 
Sequence< PropertyValue >
         }
                break;
                case SID_CUT:
-            
executeMethodWithUndo(RID_STR_UNDO_REMOVE_SELECTION,::std::mem_fun(&ODesignView::Cut));
+            
executeMethodWithUndo(RID_STR_UNDO_REMOVE_SELECTION,::std::mem_fn(&ODesignView::Cut));
                        break;
                case SID_COPY:
                        getDesignView()->Copy();
                        break;
                case SID_PASTE:
-            
executeMethodWithUndo(RID_STR_UNDO_PASTE,::std::mem_fun(&ODesignView::Paste));
+            
executeMethodWithUndo(RID_STR_UNDO_PASTE,::std::mem_fn(&ODesignView::Paste));
                        break;
 
         case SID_FRAME_TO_TOP:
@@ -1192,7 +1193,7 @@ void OReportController::Execute(sal_uInt16 _nId, const 
Sequence< PropertyValue >
                 }
             }
             else
-                
executeMethodWithUndo(RID_STR_UNDO_REMOVE_SELECTION,::std::mem_fun(&ODesignView::Delete));
+                
executeMethodWithUndo(RID_STR_UNDO_REMOVE_SELECTION,::std::mem_fn(&ODesignView::Delete));
                        break;
                case SID_GRID_USE:
             getDesignView()->setGridSnap(m_bGridUse = !m_bGridUse);
@@ -2316,7 +2317,7 @@ void SAL_CALL OReportController::disposing( const 
lang::EventObject& Source )
 // 
-----------------------------------------------------------------------------
 sal_uInt16 lcl_getNonVisbleGroupsBefore( const uno::Reference< 
report::XGroups>& _xGroups
                                                  ,sal_Int32 _nGroupPos
-                                                 
,::std::mem_fun_t<sal_Bool,OGroupHelper>&_pGroupMemberFunction)
+                                                 
,::std::function<sal_Bool(OGroupHelper*)>&_pGroupMemberFunction)
 {
        uno::Reference< report::XGroup> xGroup;
        sal_uInt16 nNonVisibleGroups = 0;
@@ -2335,8 +2336,8 @@ sal_uInt16 lcl_getNonVisbleGroupsBefore( const 
uno::Reference< report::XGroups>&
 void OReportController::groupChange( const uno::Reference< report::XGroup>& 
_xGroup,const ::rtl::OUString& _sPropName,sal_Int32 _nGroupPos,bool _bShow)
 {
        //adjustSectionName(_xGroup,_nGroupPos);
-       ::std::mem_fun_t<sal_Bool,OGroupHelper> pMemFun = 
::std::mem_fun(&OGroupHelper::getHeaderOn);
-       ::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> 
pMemFunSection = ::std::mem_fun(&OGroupHelper::getHeader);
+       ::std::function<sal_Bool(OGroupHelper*)> pMemFun = 
::std::mem_fn(&OGroupHelper::getHeaderOn);
+       ::std::function<uno::Reference<report::XSection>(OGroupHelper*)> 
pMemFunSection = ::std::mem_fn(&OGroupHelper::getHeader);
        ::rtl::OUString sColor(DBGROUPHEADER);
        sal_uInt16 nPosition = 0;
        bool bHandle = false;
@@ -2348,8 +2349,8 @@ void OReportController::groupChange( const 
uno::Reference< report::XGroup>& _xGr
        }
        else if ( _sPropName.equals( PROPERTY_FOOTERON ) )
        {
-               pMemFun = ::std::mem_fun(&OGroupHelper::getFooterOn);
-               pMemFunSection = ::std::mem_fun(&OGroupHelper::getFooter);
+               pMemFun = ::std::mem_fn(&OGroupHelper::getFooterOn);
+               pMemFunSection = ::std::mem_fn(&OGroupHelper::getFooter);
                nPosition = getDesignView()->getSectionCount();
 
         if ( m_xReportDefinition->getPageFooterOn() )
@@ -2606,7 +2607,7 @@ void OReportController::Notify(SfxBroadcaster & /* _rBc 
*/, SfxHint const & _rHi
        }
 }
 // 
-----------------------------------------------------------------------------
-void OReportController::executeMethodWithUndo(sal_uInt16 _nUndoStrId,const 
::std::mem_fun_t<void,ODesignView>& _pMemfun)
+void OReportController::executeMethodWithUndo(sal_uInt16 _nUndoStrId,const 
::std::function<void(ODesignView*)>& _pMemfun)
 {
     const String sUndoAction = String((ModuleRes(_nUndoStrId)));
     UndoContext aUndoContext( getUndoManager(), sUndoAction );
@@ -3816,14 +3817,14 @@ void OReportController::switchReportSection(const 
sal_Int16 _nId)
             pUndoContext.reset( new UndoContext( getUndoManager(), sUndoAction 
) );
 
                        addUndoAction(new 
OReportSectionUndo(*(m_aReportModel),SID_REPORTHEADER_WITHOUT_UNDO
-                                                                               
                                        
,::std::mem_fun(&OReportHelper::getReportHeader)
+                                                                               
                                        
,::std::mem_fn(&OReportHelper::getReportHeader)
                                                                                
                                        ,m_xReportDefinition
                                                                                
                                        ,bSwitchOn ? Inserted : Removed
                                                                                
                                        ,0
                                                                                
                                        ));
 
                        addUndoAction(new 
OReportSectionUndo(*(m_aReportModel),SID_REPORTFOOTER_WITHOUT_UNDO
-                                                                               
                                        
,::std::mem_fun(&OReportHelper::getReportFooter)
+                                                                               
                                        
,::std::mem_fn(&OReportHelper::getReportFooter)
                                                                                
                                        ,m_xReportDefinition
                                                                                
                                        ,bSwitchOn ? Inserted : Removed
                                                                                
                                        ,0
@@ -3866,7 +3867,7 @@ void OReportController::switchPageSection(const sal_Int16 
_nId)
 
                        addUndoAction(new OReportSectionUndo(*m_aReportModel
                                                                                
                                        ,SID_PAGEHEADER_WITHOUT_UNDO
-                                                                               
                                        
,::std::mem_fun(&OReportHelper::getPageHeader)
+                                                                               
                                        
,::std::mem_fn(&OReportHelper::getPageHeader)
                                                                                
                                        ,m_xReportDefinition
                                                                                
                                        ,bSwitchOn ? Inserted : Removed
                                                                                
                                        ,0
@@ -3874,7 +3875,7 @@ void OReportController::switchPageSection(const sal_Int16 
_nId)
 
                        addUndoAction(new OReportSectionUndo(*m_aReportModel
                                                                                
                                        ,SID_PAGEFOOTER_WITHOUT_UNDO
-                                                                               
                                        
,::std::mem_fun(&OReportHelper::getPageFooter)
+                                                                               
                                        
,::std::mem_fn(&OReportHelper::getPageFooter)
                                                                                
                                        ,m_xReportDefinition
                                                                                
                                        ,bSwitchOn ? Inserted : Removed
                                                                                
                                        ,0
@@ -3956,7 +3957,7 @@ void OReportController::createGroupSection(const bool 
_bUndo,const bool _bHeader
                        if ( _bUndo )
                                addUndoAction(new 
OGroupSectionUndo(*m_aReportModel
                                                                 ,_bHeader ? 
SID_GROUPHEADER_WITHOUT_UNDO : SID_GROUPFOOTER_WITHOUT_UNDO
-                                                                ,_bHeader ? 
::std::mem_fun(&OGroupHelper::getHeader) : 
::std::mem_fun(&OGroupHelper::getFooter)
+                                                                ,_bHeader ? 
::std::mem_fn(&OGroupHelper::getHeader) : 
::std::mem_fn(&OGroupHelper::getFooter)
                                                                                
                                                ,xGroup
                                                                                
                                                ,bSwitchOn ? Inserted : Removed
                                                                 , ( _bHeader ?
@@ -4013,7 +4014,7 @@ void OReportController::createDefaultControl(const 
uno::Sequence< beans::Propert
         const ::rtl::OUString 
sKeyModifier(RTL_CONSTASCII_USTRINGPARAM("KeyModifier"));
         const beans::PropertyValue* pIter = _aArgs.getConstArray();
         const beans::PropertyValue* pEnd  = pIter + _aArgs.getLength();
-        const beans::PropertyValue* pKeyModifier = 
::std::find_if(pIter,pEnd,::std::bind2nd(PropertyValueCompare(),boost::cref(sKeyModifier)));
+        const beans::PropertyValue* pKeyModifier = 
::std::find_if(pIter,pEnd,::std::bind(PropertyValueCompare(), 
::std::placeholders::_1,boost::cref(sKeyModifier)));
         sal_Int16 nKeyModifier = 0;
         if ( pKeyModifier == pEnd || ((pKeyModifier->Value >>= nKeyModifier) 
&& nKeyModifier == KEY_MOD1) )
         {
diff --git a/main/reportdesign/source/ui/report/SectionWindow.cxx 
b/main/reportdesign/source/ui/report/SectionWindow.cxx
index d857d2ef47..9124a3ffa0 100644
--- a/main/reportdesign/source/ui/report/SectionWindow.cxx
+++ b/main/reportdesign/source/ui/report/SectionWindow.cxx
@@ -143,10 +143,10 @@ void OSectionWindow::_propertyChanged(const 
beans::PropertyChangeEvent& _rEvent)
         else if ( _rEvent.PropertyName.equals(PROPERTY_NAME) && 
!xSection->getGroup().is() )
         {
             uno::Reference< report::XReportDefinition > xReport = 
xSection->getReportDefinition();
-            if (    
setReportSectionTitle(xReport,RID_STR_REPORT_HEADER,::std::mem_fun(&OReportHelper::getReportHeader),::std::mem_fun(&OReportHelper::getReportHeaderOn))
-                ||  
setReportSectionTitle(xReport,RID_STR_REPORT_FOOTER,::std::mem_fun(&OReportHelper::getReportFooter),::std::mem_fun(&OReportHelper::getReportFooterOn))
-                ||  
setReportSectionTitle(xReport,RID_STR_PAGE_HEADER,::std::mem_fun(&OReportHelper::getPageHeader),::std::mem_fun(&OReportHelper::getPageHeaderOn))
-                ||  
setReportSectionTitle(xReport,RID_STR_PAGE_FOOTER,::std::mem_fun(&OReportHelper::getPageFooter),::std::mem_fun(&OReportHelper::getPageFooterOn))
 )
+            if (    
setReportSectionTitle(xReport,RID_STR_REPORT_HEADER,::std::mem_fn(&OReportHelper::getReportHeader),::std::mem_fn(&OReportHelper::getReportHeaderOn))
+                ||  
setReportSectionTitle(xReport,RID_STR_REPORT_FOOTER,::std::mem_fn(&OReportHelper::getReportFooter),::std::mem_fn(&OReportHelper::getReportFooterOn))
+                ||  
setReportSectionTitle(xReport,RID_STR_PAGE_HEADER,::std::mem_fn(&OReportHelper::getPageHeader),::std::mem_fn(&OReportHelper::getPageHeaderOn))
+                ||  
setReportSectionTitle(xReport,RID_STR_PAGE_FOOTER,::std::mem_fn(&OReportHelper::getPageFooter),::std::mem_fn(&OReportHelper::getPageFooterOn))
 )
             {
                 m_aStartMarker.Invalidate(INVALIDATE_NOERASE);
             }
@@ -161,14 +161,14 @@ void OSectionWindow::_propertyChanged(const 
beans::PropertyChangeEvent& _rEvent)
     else if ( _rEvent.PropertyName.equals(PROPERTY_EXPRESSION) )
     {
         uno::Reference< report::XGroup > xGroup(_rEvent.Source,uno::UNO_QUERY);
-        if ( xGroup.is() && 
!setGroupSectionTitle(xGroup,RID_STR_HEADER,::std::mem_fun(&OGroupHelper::getHeader),::std::mem_fun(&OGroupHelper::getHeaderOn)))
+        if ( xGroup.is() && 
!setGroupSectionTitle(xGroup,RID_STR_HEADER,::std::mem_fn(&OGroupHelper::getHeader),::std::mem_fn(&OGroupHelper::getHeaderOn)))
         {
-            
setGroupSectionTitle(xGroup,RID_STR_FOOTER,::std::mem_fun(&OGroupHelper::getFooter),::std::mem_fun(&OGroupHelper::getFooterOn));
+            
setGroupSectionTitle(xGroup,RID_STR_FOOTER,::std::mem_fn(&OGroupHelper::getFooter),::std::mem_fn(&OGroupHelper::getFooterOn));
         }
     }
 }
 // 
-----------------------------------------------------------------------------
-bool OSectionWindow::setReportSectionTitle(const uno::Reference< 
report::XReportDefinition>& _xReport,sal_uInt16 
_nResId,::std::mem_fun_t<uno::Reference<report::XSection> , OReportHelper> 
_pGetSection,::std::mem_fun_t<sal_Bool,OReportHelper> _pIsSectionOn)
+bool OSectionWindow::setReportSectionTitle(const uno::Reference< 
report::XReportDefinition>& _xReport,sal_uInt16 
_nResId,::std::function<uno::Reference<report::XSection> (OReportHelper*)> 
_pGetSection,::std::function<sal_Bool(OReportHelper*)> _pIsSectionOn)
 {
     OReportHelper aReportHelper(_xReport);
     const bool bRet = _pIsSectionOn(&aReportHelper) && 
_pGetSection(&aReportHelper) == m_aReportSection.getSection();
@@ -181,7 +181,7 @@ bool OSectionWindow::setReportSectionTitle(const 
uno::Reference< report::XReport
     return bRet;
 }
 // 
-----------------------------------------------------------------------------
-bool OSectionWindow::setGroupSectionTitle(const uno::Reference< 
report::XGroup>& _xGroup,sal_uInt16 
_nResId,::std::mem_fun_t<uno::Reference<report::XSection> , OGroupHelper> 
_pGetSection,::std::mem_fun_t<sal_Bool,OGroupHelper> _pIsSectionOn)
+bool OSectionWindow::setGroupSectionTitle(const uno::Reference< 
report::XGroup>& _xGroup,sal_uInt16 
_nResId,::std::function<uno::Reference<report::XSection> (OGroupHelper*)> 
_pGetSection,::std::function<sal_Bool(OGroupHelper*)> _pIsSectionOn)
 {
     OGroupHelper aGroupHelper(_xGroup);
     const bool bRet = _pIsSectionOn(&aGroupHelper) && 
_pGetSection(&aGroupHelper) == m_aReportSection.getSection() ;
diff --git a/main/reportdesign/source/ui/report/ViewsWindow.cxx 
b/main/reportdesign/source/ui/report/ViewsWindow.cxx
index b6ff7c959f..43e14bdbda 100644
--- a/main/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/main/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -52,6 +52,7 @@
 #include <toolkit/helper/convert.hxx>
 #include <algorithm>
 #include <numeric>
+#include <functional>
 
 namespace rptui
 {
@@ -803,8 +804,8 @@ void OViewsWindow::alignMarkedObjects(sal_Int32 
_nControlModification,bool _bAli
 
     bool bMove = true;
 
-    ::std::mem_fun_t<long&,Rectangle> aGetFun       = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Bottom);
-    ::std::mem_fun_t<long&,Rectangle> aRefFun       = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Top);
+    ::std::function<long&(Rectangle*)> aGetFun       = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Bottom);
+    ::std::function<long&(Rectangle*)> aRefFun       = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Top);
     TRectangleMap::iterator aRectIter = aSortRectangles.begin();
     TRectangleMap::iterator aRectEnd = aSortRectangles.end();
        for (;aRectIter != aRectEnd ; ++aRectIter)
@@ -823,8 +824,8 @@ void OViewsWindow::alignMarkedObjects(sal_Int32 
_nControlModification,bool _bAli
                        switch(_nControlModification)
             {
                                case ControlModification::TOP   :
-                    aGetFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Top);
-                    aRefFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Bottom);
+                    aGetFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Top);
+                    aRefFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Bottom);
                     pValue = &nYMov;
                     break;
                                case ControlModification::BOTTOM:
@@ -837,16 +838,16 @@ void OViewsWindow::alignMarkedObjects(sal_Int32 
_nControlModification,bool _bAli
                     bMove = false;
                     break;
                                case ControlModification::RIGHT :
-                    aGetFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Right);
-                    aRefFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Left);
+                    aGetFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Right);
+                    aRefFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Left);
                     break;
                                case ControlModification::CENTER_HORIZONTAL:
                     nXMov = aCenter.X() - aObjRect.Center().X();
                     bMove = false;
                     break;
                 case ControlModification::LEFT  :
-                    aGetFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Left);
-                    aRefFun  = 
::std::mem_fun<long&,Rectangle>(&Rectangle::Right);
+                    aGetFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Left);
+                    aRefFun  = 
static_cast<long&(Rectangle::*)()>(&Rectangle::Right);
                     break;
                 default:
                     bMove = false;
diff --git a/main/sd/source/ui/tools/PropertySet.cxx 
b/main/sd/source/ui/tools/PropertySet.cxx
index 9bc51d9606..64bb2b8323 100644
--- a/main/sd/source/ui/tools/PropertySet.cxx
+++ b/main/sd/source/ui/tools/PropertySet.cxx
@@ -131,8 +131,8 @@ void SAL_CALL PropertySet::removePropertyChangeListener (
             aRange.first,
             aRange.second,
             std::compose1(
-                
std::bind1st(std::equal_to<Reference<beans::XPropertyChangeListener> >(),
-                    rxListener),
+                
std::bind(std::equal_to<Reference<beans::XPropertyChangeListener> >(),
+                    rxListener, std::placeholders::_1),
                 std::select2nd<ChangeListenerContainer::value_type>())));
     if (iListener != mpChangeListeners->end())
     {
diff --git a/main/sd/source/ui/view/drviews1.cxx 
b/main/sd/source/ui/view/drviews1.cxx
index fce92708df..854a91e2ed 100644
--- a/main/sd/source/ui/view/drviews1.cxx
+++ b/main/sd/source/ui/view/drviews1.cxx
@@ -944,7 +944,7 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
         // Switching the current page while a Paint is being executed is
         // dangerous.  So, post it for later execution and return.
         maAsynchronousSwitchPageCall.Post(::boost::bind(
-            ::std::mem_fun(&DrawViewShell::SwitchPage),
+            ::std::mem_fn(&DrawViewShell::SwitchPage),
             this,
             nSelectedPage));
         return sal_False;
diff --git a/main/sfx2/source/doc/sfxbasemodel.cxx 
b/main/sfx2/source/doc/sfxbasemodel.cxx
index 1526d5a3d2..29d1b0e369 100644
--- a/main/sfx2/source/doc/sfxbasemodel.cxx
+++ b/main/sfx2/source/doc/sfxbasemodel.cxx
@@ -128,6 +128,7 @@
 #include <sfx2/DocumentMetadataAccess.hxx>
 
 #include <sfx2/sfxresid.hxx>
+#include <functional>
 
 
//________________________________________________________________________________________________________
 // const
@@ -605,7 +606,7 @@ namespace
             io_rTypes.getConstArray(),
             io_rTypes.getConstArray() + io_rTypes.getLength(),
             aStrippedTypes.getArray(),
-            ::std::bind2nd( ::std::equal_to< Type >(), i_rTypeToStrip )
+            ::std::bind( ::std::equal_to< Type >(), ::std::placeholders::_1, 
i_rTypeToStrip )
         );
         io_rTypes = aStrippedTypes;
     }
diff --git a/main/slideshow/source/engine/smilfunctionparser.cxx 
b/main/slideshow/source/engine/smilfunctionparser.cxx
index 8ed54c9539..79872679ec 100644
--- a/main/slideshow/source/engine/smilfunctionparser.cxx
+++ b/main/slideshow/source/engine/smilfunctionparser.cxx
@@ -438,10 +438,10 @@ namespace slideshow
                                        str_p( "$"              )[ 
ValueTFunctor(                                                                  
                                                        self.getContext()) ]
                               |                str_p( "pi"     )[ 
ConstantFunctor(M_PI,                                                           
                                                self.getContext()) ]
                               |                str_p( "e"      )[ 
ConstantFunctor(M_E,                                                            
                                                self.getContext()) ]
-                              |                str_p( "x"      )[ 
makeShapeBoundsFunctor(::std::mem_fun_ref(&::basegfx::B2DRange::getCenterX),self.getContext())
 ]
-                              |                str_p( "y"      )[ 
makeShapeBoundsFunctor(::std::mem_fun_ref(&::basegfx::B2DRange::getCenterY),self.getContext())
 ]
-                              |        str_p( "width"  )[ 
makeShapeBoundsFunctor(::std::mem_fun_ref(&::basegfx::B2DRange::getWidth),  
self.getContext()) ]
-                              |                str_p( "height" )[ 
makeShapeBoundsFunctor(::std::mem_fun_ref(&::basegfx::B2DRange::getHeight), 
self.getContext()) ]
+                              |                str_p( "x"      )[ 
makeShapeBoundsFunctor(::std::mem_fn(&::basegfx::B2DRange::getCenterX),self.getContext())
 ]
+                              |                str_p( "y"      )[ 
makeShapeBoundsFunctor(::std::mem_fn(&::basegfx::B2DRange::getCenterY),self.getContext())
 ]
+                              |        str_p( "width"  )[ 
makeShapeBoundsFunctor(::std::mem_fn(&::basegfx::B2DRange::getWidth),  
self.getContext()) ]
+                              |                str_p( "height" )[ 
makeShapeBoundsFunctor(::std::mem_fn(&::basegfx::B2DRange::getHeight), 
self.getContext()) ]
                               ;
 
                         unaryFunction =
diff --git a/main/svx/source/form/filtnav.cxx b/main/svx/source/form/filtnav.cxx
index aab36a241b..c5e8b50c4f 100644
--- a/main/svx/source/form/filtnav.cxx
+++ b/main/svx/source/form/filtnav.cxx
@@ -1831,9 +1831,9 @@ void FmFilterNavigator::KeyInput(const KeyEvent& rKEvt)
                if ( !getSelectedFilterItems( aItemList ) )
             break;
 
-               ::std::mem_fun1_t<SvLBoxEntry*,FmFilterNavigator,SvLBoxEntry*> 
getter = ::std::mem_fun(&FmFilterNavigator::getNextEntry);
+               ::std::function<SvLBoxEntry*(FmFilterNavigator*,SvLBoxEntry*)> 
getter = ::std::mem_fn(&FmFilterNavigator::getNextEntry);
                if ( rKeyCode.GetCode() == KEY_UP )
-                       getter = 
::std::mem_fun(&FmFilterNavigator::getPrevEntry);
+                       getter = 
::std::mem_fn(&FmFilterNavigator::getPrevEntry);
 
                SvLBoxEntry* pTarget = getter( this, NULL );
                if ( !pTarget )
diff --git a/main/svx/source/svdraw/svdotextpathdecomposition.cxx 
b/main/svx/source/svdraw/svdotextpathdecomposition.cxx
index 498dc608f9..ecd8a57fd5 100644
--- a/main/svx/source/svdraw/svdotextpathdecomposition.cxx
+++ b/main/svx/source/svdraw/svdotextpathdecomposition.cxx
@@ -34,6 +34,7 @@
 #include <basegfx/polygon/b2dpolygontools.hxx>
 #include <basegfx/polygon/b2dpolygon.hxx>
 #include <algorithm>
+#include <functional>
 #include <svx/xtextit.hxx>
 #include <svx/xftshtit.hxx>
 #include <vcl/virdev.hxx>
@@ -512,7 +513,7 @@ namespace
                                                                        double 
fDXOffset= *(pCandidate->getDoubleDXArray().begin() + (nPortionIndex - 1));
                                                                        
::std::transform(
                                                                                
aNewDXArray.begin(), aNewDXArray.end(),
-                                                                               
aNewDXArray.begin(), ::std::bind2nd(::std::minus<double>(), fDXOffset));
+                                                                               
aNewDXArray.begin(), ::std::bind(::std::minus<double>(), 
::std::placeholders::_1, fDXOffset));
                                                                }
 
                                                                
if(bAutosizeScale)
@@ -520,7 +521,7 @@ namespace
                                                                        // when 
autosize scaling, adapt to DXArray, too
                                                                        
::std::transform(
                                                                                
aNewDXArray.begin(), aNewDXArray.end(),
-                                                                               
aNewDXArray.begin(), ::std::bind2nd(::std::multiplies<double>(), 
fAutosizeScaleFactor));
+                                                                               
aNewDXArray.begin(), ::std::bind(::std::multiplies<double>(), 
::std::placeholders::_1, fAutosizeScaleFactor));
                                                                }
                                                        }
 
diff --git a/main/sw/source/core/doc/doc.cxx b/main/sw/source/core/doc/doc.cxx
index 2257f672a0..9185d0c9d6 100644
--- a/main/sw/source/core/doc/doc.cxx
+++ b/main/sw/source/core/doc/doc.cxx
@@ -123,6 +123,7 @@
 #include "switerator.hxx"
 #include <layouter.hxx>
 #include <drawdoc.hxx>
+#include <functional>
 
 using namespace ::com::sun::star;
 using ::rtl::OUString;
@@ -383,7 +384,7 @@ void SwDoc::setForbiddenCharacters(/*[in]*/ sal_uInt16 
nLang,
     {
         pTmpRoot->StartAllAction();
                std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-               std::for_each( aAllLayouts.begin(), aAllLayouts.end(), 
std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), INV_SIZE));
+               std::for_each( aAllLayouts.begin(), aAllLayouts.end(), 
std::bind(std::mem_fn(&SwRootFrm::InvalidateAllCntnt), std::placeholders::_1, 
INV_SIZE));
         pTmpRoot->EndAllAction();
     }//swmod 080310
     SetModified();
@@ -454,7 +455,7 @@ void SwDoc::setCharacterCompressionType( 
/*[in]*/SwCharCompressType n )
         {
                        pTmpRoot->StartAllAction();
                        std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-                       std::for_each( aAllLayouts.begin(), aAllLayouts.end(), 
std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), INV_SIZE));
+                       std::for_each( aAllLayouts.begin(), aAllLayouts.end(), 
std::bind(std::mem_fn(&SwRootFrm::InvalidateAllCntnt), std::placeholders::_1, 
INV_SIZE));
                        pTmpRoot->EndAllAction();
                }//swmod 080310
         SetModified();
@@ -2058,14 +2059,14 @@ void SwDoc::SpellItAgainSam( sal_Bool bInvalid, 
sal_Bool bOnlyWrong, sal_Bool bS
        ASSERT( GetCurrentLayout(), "SpellAgain: Where's my RootFrm?" );
        if( bInvalid )
        {
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::AllInvalidateSmartTagsOrSpelling),bSmartTags));//swmod
 080305
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::SetNeedGrammarCheck), 
true) );
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::AllInvalidateSmartTagsOrSpelling),
 std::placeholders::_1,bSmartTags));//swmod 080305
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::SetNeedGrammarCheck), 
std::placeholders::_1, true) );
                if ( bSmartTags )
                        GetNodes().ForEach( lcl_CheckSmartTagsAgain, 
&bOnlyWrong );
                GetNodes().ForEach( lcl_SpellAndGrammarAgain, &bOnlyWrong );
        }
 
-       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::SetIdleFlags));//swmod 080307
+       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::SetIdleFlags));//swmod 080307
 }
 
 void SwDoc::InvalidateAutoCompleteFlag()
@@ -2074,14 +2075,14 @@ void SwDoc::InvalidateAutoCompleteFlag()
        if( pTmpRoot )
        {
                std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllInvalidateAutoCompleteWords));//swmod
 080305
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllInvalidateAutoCompleteWords));//swmod
 080305
                for( sal_uLong nNd = 1, nCnt = GetNodes().Count(); nNd < nCnt; 
++nNd )
         {
             SwTxtNode* pTxtNode = GetNodes()[ nNd ]->GetTxtNode();
             if ( pTxtNode ) pTxtNode->SetAutoCompleteWordDirty( true );
         }
 
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::SetIdleFlags));//swmod 080228
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::SetIdleFlags));//swmod 080228
        }       //swmod 080219
 }
 
diff --git a/main/sw/source/core/doc/docdesc.cxx 
b/main/sw/source/core/doc/docdesc.cxx
index 215e2f8cd7..d01abbdbf1 100644
--- a/main/sw/source/core/doc/docdesc.cxx
+++ b/main/sw/source/core/doc/docdesc.cxx
@@ -73,6 +73,7 @@
 #include <pagedeschint.hxx>
 #include <tgrditem.hxx>
 #include <drawdoc.hxx>
+#include <functional>
 
 using namespace com::sun::star;
 
@@ -427,7 +428,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc 
&rChged )
                // notify Layot!
        {
                std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllCheckPageDescs));//swmod 080304
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllCheckPageDescs));//swmod 080304
        }
 
        // now take over the page attributes
@@ -496,7 +497,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
         if ( bHasLayout )
         {
             std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::CheckFtnPageDescs), 
false));
+            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::CheckFtnPageDescs), 
std::placeholders::_1, false));
         }
     }
     else if ( pEndNoteInfo->DependsOn( pDel ) )
@@ -505,7 +506,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
         if ( bHasLayout )
         {
             std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::CheckFtnPageDescs), 
true));
+            std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::CheckFtnPageDescs), 
std::placeholders::_1, true));
         }
     }
 
@@ -517,7 +518,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel)
             if( bHasLayout )
             {
                 std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-                std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllCheckPageDescs));//swmod 080228
+                std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllCheckPageDescs));//swmod 080228
             }
         }
     }
@@ -688,7 +689,7 @@ void SwDoc::PrtDataChanged()
                        pFntCache->Flush();
 
                        std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), 
INV_SIZE));//swmod 080304
+                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::InvalidateAllCntnt), 
std::placeholders::_1, INV_SIZE));//swmod 080304
 
                        if ( pSh )
                        {
diff --git a/main/sw/source/core/doc/docfmt.cxx 
b/main/sw/source/core/doc/docfmt.cxx
index e4c257abb1..459f9ceecf 100644
--- a/main/sw/source/core/doc/docfmt.cxx
+++ b/main/sw/source/core/doc/docfmt.cxx
@@ -78,6 +78,7 @@
 #include <istyleaccess.hxx>
 #include <SwUndoFmt.hxx>
 #include <docsh.hxx>
+#include <functional>
 
 using namespace ::com::sun::star::i18n;
 using namespace ::com::sun::star::lang;
@@ -2206,7 +2207,7 @@ void SwDoc::CopyPageDesc( const SwPageDesc& rSrcDesc, 
SwPageDesc& rDstDesc,
        if( bNotifyLayout && pTmpRoot )
        {
                std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();//swmod 
080225
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllCheckPageDescs));//swmod 080226
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllCheckPageDescs));//swmod 080226
        }
 
        //Wenn sich FussnotenInfo veraendert, so werden die Seiten
diff --git a/main/sw/source/core/doc/docftn.cxx 
b/main/sw/source/core/doc/docftn.cxx
index 8267c27cd1..c039ae1b3a 100644
--- a/main/sw/source/core/doc/docftn.cxx
+++ b/main/sw/source/core/doc/docftn.cxx
@@ -40,6 +40,7 @@
 #include <ndtxt.hxx>
 #include <poolfmt.hxx>
 #include <ftninfo.hxx>
+#include <functional>
 
 /*********************** SwFtnInfo ***************************/
 
@@ -293,14 +294,14 @@ void SwDoc::SetFtnInfo(const SwFtnInfo& rInfo)
                        std::set<SwRootFrm*> aAllLayouts = 
GetAllLayouts();//swmod 080304
                        if ( bFtnPos )
                                //pTmpRoot->RemoveFtns();
-                               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllRemoveFtns));//swmod 080305
+                               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllRemoveFtns));//swmod 080305
                        else
                        {
                                //pTmpRoot->UpdateFtnNums();
-                               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::UpdateFtnNums));//swmod 080304
+                               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::UpdateFtnNums));//swmod 080304
                                if ( bFtnDesc )
                                        //pTmpRoot->CheckFtnPageDescs( FALSE );
-                                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::CheckFtnPageDescs), 
sal_False));//swmod 080304
+                                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::CheckFtnPageDescs), 
std::placeholders::_1, sal_False));//swmod 080304
                                if ( bExtra )
                                {
                                        //Fuer die Benachrichtung bezueglich 
ErgoSum usw. sparen wir uns
@@ -370,7 +371,7 @@ void SwDoc::SetEndNoteInfo(const SwEndNoteInfo& rInfo)
                                //pTmpRoot->CheckFtnPageDescs( TRUE );
                        {
                                std::set<SwRootFrm*> aAllLayouts = 
GetAllLayouts();
-                           std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::CheckFtnPageDescs), 
sal_True));//swmod 080304
+                           std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::CheckFtnPageDescs), 
std::placeholders::_1, sal_True));//swmod 080304
                        }
                        if ( bExtra )
                        {
@@ -512,7 +513,7 @@ bool SwDoc::SetCurFtn( const SwPaM& rPam, const String& 
rNumStr,
                        //
                {
                        std::set<SwRootFrm*> aAllLayouts = GetAllLayouts();
-                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::UpdateFtnNums));
+                       std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::UpdateFtnNums));
                }       //swmod 080304pTmpRoot->UpdateFtnNums();        //swmod 
080219
         SetModified();
        }
diff --git a/main/sw/source/core/doc/ftnidx.cxx 
b/main/sw/source/core/doc/ftnidx.cxx
index 304d7ebcdd..80c7f9b12c 100644
--- a/main/sw/source/core/doc/ftnidx.cxx
+++ b/main/sw/source/core/doc/ftnidx.cxx
@@ -35,6 +35,7 @@
 #include <section.hxx>
 #include <fmtftntx.hxx>
 #include <rootfrm.hxx>
+#include <functional>
 
 
 _SV_IMPL_SORTAR_ALG( _SwFtnIdxs, SwTxtFtnPtr )
@@ -290,7 +291,7 @@ void SwFtnIdxs::UpdateAllFtn()
        }
 
        if( pTmpRoot && FTNNUM_PAGE == rFtnInfo.eNum )
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::UpdateFtnNums));//swmod 0
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::UpdateFtnNums));//swmod 0
 }
 
 SwTxtFtn* SwFtnIdxs::SeekEntry( const SwNodeIndex& rPos, sal_uInt16* pFndPos ) 
const
diff --git a/main/sw/source/core/doc/lineinfo.cxx 
b/main/sw/source/core/doc/lineinfo.cxx
index 5c29fec068..9feb561eb0 100644
--- a/main/sw/source/core/doc/lineinfo.cxx
+++ b/main/sw/source/core/doc/lineinfo.cxx
@@ -33,6 +33,7 @@
 #include "rootfrm.hxx"
 #include "viewsh.hxx"
 #include <set>
+#include <functional>
 void SwDoc::SetLineNumberInfo( const SwLineNumberInfo &rNew )
 {
        SwRootFrm* pTmpRoot = GetCurrentLayout();//swmod 080219
@@ -45,7 +46,7 @@ void SwDoc::SetLineNumberInfo( const SwLineNumberInfo &rNew )
         // FME 2007-08-14 #i80120# Invalidate size, because ChgThisLines()
         // is only (onny may only be) called by the formatting routines
         //pTmpRoot->InvalidateAllCntnt( INV_LINENUM | INV_SIZE );
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind2nd(std::mem_fun(&SwRootFrm::InvalidateAllCntnt), 
INV_LINENUM | INV_SIZE));//swmod 080226
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::bind(std::mem_fn(&SwRootFrm::InvalidateAllCntnt), 
std::placeholders::_1, INV_LINENUM | INV_SIZE));//swmod 080226
                 pTmpRoot->EndAllAction();
        }       //swmod 080219
        *pLineNumberInfo = rNew;
@@ -147,7 +148,7 @@ void SwLineNumberInfo::Modify( const SfxPoolItem* pOld, 
const SfxPoolItem* pNew
        {
                pRoot->StartAllAction();
                std::set<SwRootFrm*> aAllLayouts = pDoc->GetAllLayouts();
-               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fun(&SwRootFrm::AllAddPaintRect));//swmod 080305
+               std::for_each( aAllLayouts.begin(), 
aAllLayouts.end(),std::mem_fn(&SwRootFrm::AllAddPaintRect));//swmod 080305
                //pRoot->GetCurrShell()->AddPaintRect( pRoot->Frm() );
                pRoot->EndAllAction();
        }
diff --git a/main/sw/source/core/doc/number.cxx 
b/main/sw/source/core/doc/number.cxx
index 8c81b24043..8a4c187f56 100644
--- a/main/sw/source/core/doc/number.cxx
+++ b/main/sw/source/core/doc/number.cxx
@@ -55,6 +55,7 @@
 // --> OD 2008-02-19 #refactorlists#
 #include <list.hxx>
 #include <algorithm>
+#include <functional>
 // <--
 // --> OD 2008-06-06 #i89178#
 #include <unotools/saveopt.hxx>
@@ -1024,7 +1025,7 @@ void SwNumRule::SetInvalidRule(sal_Bool bFlag)
             // <--
         }
         std::for_each( aLists.begin(), aLists.end(),
-                       std::mem_fun( &SwList::InvalidateListTree ) );
+                       std::mem_fn( &SwList::InvalidateListTree ) );
         // <--
     }
 
@@ -1207,7 +1208,7 @@ void SwNumRule::Validate()
         aLists.insert( pTxtNode->GetDoc()->getListByName( 
pTxtNode->GetListId() ) );
     }
     std::for_each( aLists.begin(), aLists.end(),
-                   std::mem_fun( &SwList::ValidateListTree ) );
+                   std::mem_fn( &SwList::ValidateListTree ) );
     // <--
 
     SetInvalidRule(sal_False);
diff --git a/main/sw/source/filter/ww8/wrtw8nds.cxx 
b/main/sw/source/filter/ww8/wrtw8nds.cxx
index eae993d705..a6afc73de0 100644
--- a/main/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/main/sw/source/filter/ww8/wrtw8nds.cxx
@@ -289,7 +289,7 @@ WW8SwAttrIter::WW8SwAttrIter(MSWordExportBase& rWr, const 
SwTxtNode& rTxtNd) :
     if (rWr.HackIsWW8OrHigher() && rWr.bInWriteEscher)
     {
         std::for_each(maFlyFrms.begin(), maFlyFrms.end(),
-            std::mem_fun_ref(&sw::Frame::ForceTreatAsInline));
+            std::mem_fn(&sw::Frame::ForceTreatAsInline));
     }
 
     maFlyIter = maFlyFrms.begin();
diff --git a/main/sw/source/filter/ww8/wrtw8sty.cxx 
b/main/sw/source/filter/ww8/wrtw8sty.cxx
index 1fff8d6f71..f9376cad55 100644
--- a/main/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/main/sw/source/filter/ww8/wrtw8sty.cxx
@@ -841,7 +841,7 @@ void wwFontHelper::WriteFontTable(SvStream *pTableStream, 
WW8Fib& rFib)
      * Write them all to pTableStream
      */
     ::std::for_each(aFontList.begin(), aFontList.end(),
-        ::std::bind2nd(::std::mem_fun(&wwFont::Write),pTableStream));
+        ::std::bind(::std::mem_fn(&wwFont::Write), 
::std::placeholders::_1,pTableStream));
 
     /*
      * Write the position and len in the FIB
@@ -862,7 +862,7 @@ void wwFontHelper::WriteFontTable( const 
DocxAttributeOutput& rAttrOutput )
     ::std::vector<const wwFont *> aFontList( AsVector() );
 
     ::std::for_each( aFontList.begin(), aFontList.end(),
-        ::std::bind2nd( ::std::mem_fun( &wwFont::WriteDocx ), &rAttrOutput ) );
+        ::std::bind( ::std::mem_fn( &wwFont::WriteDocx ), 
::std::placeholders::_1, &rAttrOutput ) );
 }
 #endif
 
@@ -871,7 +871,7 @@ void wwFontHelper::WriteFontTable( const 
RtfAttributeOutput& rAttrOutput )
     ::std::vector<const wwFont *> aFontList( AsVector() );
 
     ::std::for_each( aFontList.begin(), aFontList.end(),
-        ::std::bind2nd( ::std::mem_fun( &wwFont::WriteRtf ), &rAttrOutput ) );
+        ::std::bind( ::std::mem_fn( &wwFont::WriteRtf ), 
::std::placeholders::_1, &rAttrOutput ) );
 }
 
 /* */
diff --git a/main/vcl/source/glyphs/graphite_layout.cxx 
b/main/vcl/source/glyphs/graphite_layout.cxx
index f55aab2aae..4994994b74 100644
--- a/main/vcl/source/glyphs/graphite_layout.cxx
+++ b/main/vcl/source/glyphs/graphite_layout.cxx
@@ -866,7 +866,7 @@ bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, 
gr::Segment * pSegment)
             {
                 // not needed for adjacent differences, but for mouse clicks 
to char
                 std::transform(mvCharDxs.begin(), mvCharDxs.end(), 
mvCharDxs.begin(),
-                    std::bind1st(std::minus<long>(), mnWidth));
+                    std::bind(std::minus<long>(), mnWidth, 
std::placeholders::_1));
                 // fixup last dx to ensure it always equals the width
                 mvCharDxs[mvCharDxs.size() - 1] = mnWidth;
             }
diff --git a/main/xmloff/source/forms/layerimport.cxx 
b/main/xmloff/source/forms/layerimport.cxx
index a0f830c094..89715d2b6a 100644
--- a/main/xmloff/source/forms/layerimport.cxx
+++ b/main/xmloff/source/forms/layerimport.cxx
@@ -59,6 +59,7 @@
 #include "xmloff/xmlnmspe.hxx"
 #include <rtl/logfile.hxx>
 #include <algorithm>
+#include <functional>
 
 SV_IMPL_REF( SvXMLStylesContext );
 
@@ -622,18 +623,18 @@ void OFormLayerXMLImport_Impl::documentDone( )
     // process XForms-bindings; call registerXFormsValueBinding for each
     std::for_each( m_aXFormsValueBindings.begin(),
                    m_aXFormsValueBindings.end(),
-                   bind1st( ptr_fun( bindXFormsValueBinding ),
-                            rImport.GetModel() ) );
+                   std::bind( bindXFormsValueBinding,
+                            rImport.GetModel(), std::placeholders::_1 ) );
     // same for list bindings
     std::for_each( m_aXFormsListBindings.begin(),
                    m_aXFormsListBindings.end(),
-                   bind1st( ptr_fun( bindXFormsListBinding ),
-                            rImport.GetModel() ) );
+                   std::bind( bindXFormsListBinding,
+                            rImport.GetModel(), std::placeholders::_1 ) );
     // same for submissions
     std::for_each( m_aXFormsSubmissions.begin(),
                    m_aXFormsSubmissions.end(),
-                   bind1st( ptr_fun( bindXFormsSubmission ),
-                            rImport.GetModel() ) );
+                   std::bind( bindXFormsSubmission,
+                            rImport.GetModel(), std::placeholders::_1 ) );
 }
 
 //.........................................................................
diff --git a/main/xmloff/source/xforms/TokenContext.cxx 
b/main/xmloff/source/xforms/TokenContext.cxx
index 4e618fc897..e8d1fe9738 100644
--- a/main/xmloff/source/xforms/TokenContext.cxx
+++ b/main/xmloff/source/xforms/TokenContext.cxx
@@ -137,6 +137,6 @@ void TokenContext::Characters( const ::rtl::OUString& 
rCharacters )
     const sal_Unicode* pEnd = &( pBegin[ rCharacters.getLength() ] );
 
     // raise error if non-whitespace character is found
-    if( ::std::find_if( pBegin, pEnd, 
::std::not1(::std::ptr_fun(lcl_IsWhiteSpace)) ) != pEnd )
+    if( ::std::find_if( pBegin, pEnd, [](sal_Unicode c){ return 
!lcl_IsWhiteSpace(c); } ) != pEnd )
         GetImport().SetError( XMLERROR_UNKNOWN_CHARACTERS, rCharacters );
 }

Reply via email to