[Libreoffice-commits] core.git: 2 commits - basctl/inc basctl/source cppcanvas/qa drawinglayer/inc drawinglayer/source filter/source include/comphelper include/filter include/sfx2 include/svx include/xmloff sc/source sd/source sfx2/source svx/source sw/inc sw/source xmloff/inc xmloff/source

Caolán McNamara caolanm at redhat.com
Tue Feb 17 08:24:43 PST 2015


 basctl/inc/pch/precompiled_basctl.hxx                         |    2 
 basctl/source/basicide/iderdll.cxx                            |   14 
 cppcanvas/qa/extras/emfplus/emfplus.cxx                       |    4 
 drawinglayer/inc/pch/precompiled_drawinglayer.hxx             |    2 
 drawinglayer/source/primitive2d/textlayoutdevice.cxx          |    6 
 filter/source/msfilter/escherex.cxx                           |    2 
 filter/source/msfilter/msdffimp.cxx                           |   78 ++--
 include/comphelper/scoped_disposing_ptr.hxx                   |  158 ---------
 include/comphelper/unique_disposing_ptr.hxx                   |  160 ++++++++++
 include/filter/msfilter/escherex.hxx                          |    4 
 include/filter/msfilter/msdffimp.hxx                          |   16 -
 include/filter/msfilter/mstoolbar.hxx                         |   19 -
 include/sfx2/objsh.hxx                                        |    8 
 include/svx/EnhancedCustomShape2d.hxx                         |    6 
 include/svx/EnhancedCustomShapeFunctionParser.hxx             |    4 
 include/svx/charmap.hxx                                       |    4 
 include/svx/modctrl.hxx                                       |    4 
 include/svx/nbdtmg.hxx                                        |    6 
 include/svx/sdr/table/tablecontroller.hxx                     |    2 
 include/svx/selectioncontroller.hxx                           |    6 
 include/svx/shapepropertynotifier.hxx                         |   15 
 include/svx/sidebar/SelectionChangeHandler.hxx                |    8 
 include/svx/svdedxv.hxx                                       |    4 
 include/svx/svdmodel.hxx                                      |    2 
 include/svx/svdotext.hxx                                      |    1 
 include/xmloff/table/XMLTableExport.hxx                       |   10 
 include/xmloff/table/XMLTableImport.hxx                       |    4 
 include/xmloff/txtimp.hxx                                     |   16 -
 include/xmloff/xmluconv.hxx                                   |    5 
 sc/source/filter/excel/expop2.cxx                             |    4 
 sc/source/filter/excel/xltoolbar.hxx                          |    4 
 sd/source/ui/func/fuformatpaintbrush.cxx                      |   10 
 sd/source/ui/inc/fuformatpaintbrush.hxx                       |    4 
 sd/source/ui/unoidl/unopage.cxx                               |   20 -
 sfx2/source/appl/sfxpicklist.cxx                              |    4 
 sfx2/source/doc/new.cxx                                       |   10 
 sfx2/source/doc/objcont.cxx                                   |   18 -
 sfx2/source/doc/objstor.cxx                                   |    6 
 sfx2/source/doc/sfxbasemodel.cxx                              |  102 +++---
 sfx2/source/inc/preview.hxx                                   |    2 
 svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx |   36 +-
 svx/source/dialog/charmap.cxx                                 |    2 
 svx/source/sidebar/nbdtmg.cxx                                 |   30 -
 svx/source/stbctrls/modctrl.cxx                               |   28 -
 svx/source/svdraw/selectioncontroller.cxx                     |    2 
 svx/source/svdraw/svdedxv.cxx                                 |   10 
 svx/source/table/tablecontroller.cxx                          |   24 -
 svx/source/unodraw/shapepropertynotifier.cxx                  |   26 -
 sw/inc/pch/precompiled_sw.hxx                                 |    2 
 sw/source/filter/ww8/wrtww8.cxx                               |    4 
 sw/source/filter/ww8/ww8par.cxx                               |    4 
 sw/source/filter/ww8/ww8scan.cxx                              |    1 
 sw/source/filter/ww8/ww8toolbar.hxx                           |    6 
 sw/source/uibase/app/swdll.cxx                                |    6 
 xmloff/inc/RDFaImportHelper.hxx                               |    7 
 xmloff/source/chart/SchXMLTools.cxx                           |    1 
 xmloff/source/core/RDFaImportHelper.cxx                       |   34 +-
 xmloff/source/table/XMLTableExport.cxx                        |   46 +-
 xmloff/source/table/XMLTableImport.cxx                        |   18 -
 xmloff/source/text/XMLPropertyBackpatcher.cxx                 |   22 -
 xmloff/source/text/XMLTextMarkImportContext.cxx               |   18 -
 xmloff/source/text/txtimp.cxx                                 |    8 
 62 files changed, 543 insertions(+), 546 deletions(-)

New commits:
commit d6b28f0bfe5df0248b18e306c3144282f052c7f0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 17 15:52:39 2015 +0000

    asan: failure to load tdf#55620 attachment under asan
    
    still loops in layout though
    
    how am I *still* finding bugs in this thing
    
    Change-Id: I048595956516b9acfc60e90c64180b904d6cc1d7

diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index d07d9ee..22d93f1 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -5213,6 +5213,7 @@ void WW8PLCFxDesc::Restore( const WW8PLCFxSave1& rSave )
             pPLCFx->SetDirty(false);
             aD.ReduceByOffset();
             pMemPos = aD.pMemPos + rSave.nPLCFxMemOfs;
+            nSprmsLen = nOrigSprmsLen - rSave.nPLCFxMemOfs;
         }
     }
 }
commit 3744d8506ef231d642785faf6da4926cea64c6a0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 17 13:43:17 2015 +0000

    boost->std
    
    Change-Id: I8371b942d915f777a29ca01cd0aed674db0ca853

diff --git a/basctl/inc/pch/precompiled_basctl.hxx b/basctl/inc/pch/precompiled_basctl.hxx
index 3d8c89f..f81441cd 100644
--- a/basctl/inc/pch/precompiled_basctl.hxx
+++ b/basctl/inc/pch/precompiled_basctl.hxx
@@ -97,7 +97,7 @@
 #include <com/sun/star/util/theMacroExpander.hpp>
 #include <comphelper/documentinfo.hxx>
 #include <comphelper/processfactory.hxx>
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <comphelper/stl_types.hxx>
 #include <comphelper/string.hxx>
 #include <comphelper/types.hxx>
diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx
index b6d5e29..959ed58 100644
--- a/basctl/source/basicide/iderdll.cxx
+++ b/basctl/source/basicide/iderdll.cxx
@@ -17,7 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <comphelper/processfactory.hxx>
 
 #include <iderdll.hxx>
@@ -48,7 +48,7 @@ namespace
 class Dll
 {
     Shell* m_pShell;
-    boost::scoped_ptr<ExtraData> m_pExtraData;
+    std::unique_ptr<ExtraData> m_xExtraData;
 
 public:
     Dll ();
@@ -60,10 +60,10 @@ public:
 
 // Holds a basctl::Dll and release it on exit, or dispose of the
 //default XComponent, whichever comes first
-class DllInstance : public comphelper::scoped_disposing_solar_mutex_reset_ptr<Dll>
+class DllInstance : public comphelper::unique_disposing_solar_mutex_reset_ptr<Dll>
 {
 public:
-    DllInstance() : comphelper::scoped_disposing_solar_mutex_reset_ptr<Dll>(Reference<lang::XComponent>( frame::Desktop::create(comphelper::getProcessComponentContext()), UNO_QUERY_THROW), new Dll)
+    DllInstance() : comphelper::unique_disposing_solar_mutex_reset_ptr<Dll>(Reference<lang::XComponent>( frame::Desktop::create(comphelper::getProcessComponentContext()), UNO_QUERY_THROW), new Dll)
     { }
 };
 
@@ -137,9 +137,9 @@ Dll::Dll () :
 
 ExtraData* Dll::GetExtraData ()
 {
-    if (!m_pExtraData)
-        m_pExtraData.reset(new ExtraData);
-    return m_pExtraData.get();
+    if (!m_xExtraData)
+        m_xExtraData.reset(new ExtraData);
+    return m_xExtraData.get();
 }
 
 } // namespace
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx
index c704b4a..1b5f865 100644
--- a/cppcanvas/qa/extras/emfplus/emfplus.cxx
+++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx
@@ -57,9 +57,9 @@ public:
         SfxBaseModel* pModel = dynamic_cast<SfxBaseModel*>(mxComponent.get());
         CPPUNIT_ASSERT(pModel);
         SfxObjectShell* pShell = pModel->GetObjectShell();
-        boost::shared_ptr<GDIMetaFile> pMetaFile = pShell->GetPreviewMetaFile();
+        std::shared_ptr<GDIMetaFile> xMetaFile = pShell->GetPreviewMetaFile();
         BitmapEx aResultBitmap;
-        CPPUNIT_ASSERT(pMetaFile->CreateThumbnail(aResultBitmap));
+        CPPUNIT_ASSERT(xMetaFile->CreateThumbnail(aResultBitmap));
         // If this is set, the metafile will be dumped as a PNG one for debug purposes.
         char* pEnv = getenv("CPPCANVAS_DEBUG_EMFPLUS_DUMP_TO");
         if (pEnv)
diff --git a/drawinglayer/inc/pch/precompiled_drawinglayer.hxx b/drawinglayer/inc/pch/precompiled_drawinglayer.hxx
index d993b06..3c0c6d8 100644
--- a/drawinglayer/inc/pch/precompiled_drawinglayer.hxx
+++ b/drawinglayer/inc/pch/precompiled_drawinglayer.hxx
@@ -80,7 +80,7 @@
 #include <comphelper/broadcasthelper.hxx>
 #include <comphelper/processfactory.hxx>
 #include <comphelper/random.hxx>
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <comphelper/string.hxx>
 #include <cppuhelper/factory.hxx>
 #include <cppuhelper/implbase2.hxx>
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
index 12e83f6..b1e1ad0 100644
--- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx
+++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
@@ -23,7 +23,7 @@
 
 #include <drawinglayer/primitive2d/textlayoutdevice.hxx>
 #include <comphelper/processfactory.hxx>
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <vcl/timer.hxx>
 #include <vcl/virdev.hxx>
 #include <vcl/font.hxx>
@@ -46,10 +46,10 @@ namespace
     //The ImpTimerRefDev itself, if the timeout ever gets hit, will call
     //reset on the scoped_timed_RefDev to release the ImpTimerRefDev early
     //if its unused for a few minutes
-    class scoped_timed_RefDev : public comphelper::scoped_disposing_ptr<ImpTimedRefDev>
+    class scoped_timed_RefDev : public comphelper::unique_disposing_ptr<ImpTimedRefDev>
     {
     public:
-        scoped_timed_RefDev() : comphelper::scoped_disposing_ptr<ImpTimedRefDev>((::com::sun::star::uno::Reference<com::sun::star::lang::XComponent>(::comphelper::getProcessComponentContext(), ::com::sun::star::uno::UNO_QUERY_THROW)))
+        scoped_timed_RefDev() : comphelper::unique_disposing_ptr<ImpTimedRefDev>((::com::sun::star::uno::Reference<com::sun::star::lang::XComponent>(::comphelper::getProcessComponentContext(), ::com::sun::star::uno::UNO_QUERY_THROW)))
         {
         }
     };
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 11a2d92..4c33d21 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -2588,7 +2588,7 @@ void ConvertEnhancedCustomShapeEquation( SdrObjCustomShape* pCustoShape,
                 EnhancedCustomShape2d aCustoShape2d( pCustoShape );
                 try
                 {
-                    ::boost::shared_ptr< EnhancedCustomShape::ExpressionNode > aExpressNode(
+                    std::shared_ptr< EnhancedCustomShape::ExpressionNode > aExpressNode(
                         EnhancedCustomShape::FunctionParser::parseFunction( sEquationSource[ i ], aCustoShape2d ) );
                     com::sun::star::drawing::EnhancedCustomShapeParameter aPara( aExpressNode->fillNode( rEquations, NULL, 0 ) );
                     if ( aPara.Type != com::sun::star::drawing::EnhancedCustomShapeParameterType::EQUATION )
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 387bbac..328fe2f 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -137,7 +137,7 @@
 #include <rtl/ustring.hxx>
 #include <svtools/embedhlp.hxx>
 #include <boost/scoped_array.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 using namespace ::com::sun::star    ;
 using namespace ::com::sun::star::drawing;
@@ -257,17 +257,17 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
 
     if( ::utl::LocalFileHelper::ConvertPhysicalNameToURL( OUString("d:\\ashape.dbg"), aURLStr ) )
     {
-        boost::scoped_ptr<SvStream> pOut(::utl::UcbStreamHelper::CreateStream( aURLStr, StreamMode::WRITE ));
+        std::unique_ptr<SvStream> xOut(::utl::UcbStreamHelper::CreateStream( aURLStr, StreamMode::WRITE ));
 
-        if( pOut )
+        if( xOut )
         {
-            pOut->Seek( STREAM_SEEK_TO_END );
+            xOut->Seek( STREAM_SEEK_TO_END );
 
             if ( IsProperty( DFF_Prop_adjustValue ) || IsProperty( DFF_Prop_pVertices ) )
             {
-                pOut->WriteLine( "" );
+                xOut->WriteLine( "" );
                 OString aString("ShapeId: " + OString::number(nShapeId));
-                pOut->WriteLine(aString);
+                xOut->WriteLine(aString);
             }
             for ( sal_uInt32 i = DFF_Prop_adjustValue; i <= DFF_Prop_adjust10Value; i++ )
             {
@@ -275,7 +275,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
                 {
                     OString aString("Prop_adjustValue" + OString::number( ( i - DFF_Prop_adjustValue ) + 1 ) +
                                     ":" + OString::number(GetPropertyValue(i)) );
-                    pOut->WriteLine(aString);
+                    xOut->WriteLine(aString);
                 }
             }
             sal_Int32 i;
@@ -290,15 +290,15 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
                         sal_Int32 nLen = (sal_Int32)GetPropertyValue( i );
                         if ( nLen )
                         {
-                            pOut->WriteLine( "" );
+                            xOut->WriteLine( "" );
                             OStringBuffer aDesc("Property:" + OString::number(i) +
                                                 "  Size:" + OString::number(nLen));
-                            pOut->WriteLine(aDesc.makeStringAndClear());
+                            xOut->WriteLine(aDesc.makeStringAndClear());
                             sal_Int16   nNumElem, nNumElemMem, nNumSize;
                             rIn >> nNumElem >> nNumElemMem >> nNumSize;
                             aDesc.append("Entries: " + OString::number(nNumElem) +
                                          "  Size:" + OString::number(nNumSize));
-                            pOut->WriteLine(aDesc.makeStringAndClear());
+                            xOut->WriteLine(aDesc.makeStringAndClear());
                             if ( nNumSize < 0 )
                                 nNumSize = ( ( -nNumSize ) >> 2 );
                             if ( !nNumSize )
@@ -315,21 +315,21 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
                                             sal_uInt8 nVal;
                                             rIn >> nVal;
                                             if ( ( nVal >> 4 ) > 9 )
-                                                *pOut << (sal_uInt8)( ( nVal >> 4 ) + 'A' - 10 );
+                                                *xOut << (sal_uInt8)( ( nVal >> 4 ) + 'A' - 10 );
                                             else
-                                                *pOut << (sal_uInt8)( ( nVal >> 4 ) + '0' );
+                                                *xOut << (sal_uInt8)( ( nVal >> 4 ) + '0' );
 
                                             if ( ( nVal & 0xf ) > 9 )
-                                                *pOut << (sal_uInt8)( ( nVal & 0xf ) + 'A' - 10 );
+                                                *xOut << (sal_uInt8)( ( nVal & 0xf ) + 'A' - 10 );
                                             else
-                                                *pOut << (sal_uInt8)( ( nVal & 0xf ) + '0' );
+                                                *xOut << (sal_uInt8)( ( nVal & 0xf ) + '0' );
 
                                             nLen--;
                                         }
                                     }
-                                    *pOut << (char)( ' ' );
+                                    *xOut << (char)( ' ' );
                                 }
-                                pOut->WriteLine( OString() );
+                                xOut->WriteLine( OString() );
                             }
                         }
                     }
@@ -337,7 +337,7 @@ void DffPropertyReader::ReadPropSet( SvStream& rIn, void* pClientData ) const
                     {
                         OString aString("Property" + OString::number(i) +
                                         ":" + OString::number(GetPropertyValue(i)));
-                        pOut->WriteLine(aString);
+                        xOut->WriteLine(aString);
                     }
                 }
             }
@@ -3084,15 +3084,15 @@ DffRecordHeader* DffRecordManager::GetRecordHeader( sal_uInt16 nRecId, DffSeekTo
 
 
 bool CompareSvxMSDffShapeInfoById::operator() (
-    ::boost::shared_ptr<SvxMSDffShapeInfo> const& lhs,
-    ::boost::shared_ptr<SvxMSDffShapeInfo> const& rhs) const
+    std::shared_ptr<SvxMSDffShapeInfo> const& lhs,
+    std::shared_ptr<SvxMSDffShapeInfo> const& rhs) const
 {
     return lhs->nShapeId < rhs->nShapeId;
 }
 
 bool CompareSvxMSDffShapeInfoByTxBxComp::operator() (
-    ::boost::shared_ptr<SvxMSDffShapeInfo> const& lhs,
-    ::boost::shared_ptr<SvxMSDffShapeInfo> const& rhs) const
+    std::shared_ptr<SvxMSDffShapeInfo> const& lhs,
+    std::shared_ptr<SvxMSDffShapeInfo> const& rhs) const
 {
     return lhs->nTxBxComp < rhs->nTxBxComp;
 }
@@ -5144,7 +5144,7 @@ SdrObject* SvxMSDffManager::ProcessObj(SvStream& rSt,
             // the object with a frame, otherwise
             if( bTextFrame )
             {
-                ::boost::shared_ptr<SvxMSDffShapeInfo> const pTmpRec(
+                std::shared_ptr<SvxMSDffShapeInfo> const pTmpRec(
                     new SvxMSDffShapeInfo(0, pImpRec->nShapeId));
 
                 SvxMSDffShapeInfos_ById::const_iterator const it =
@@ -5707,7 +5707,7 @@ void SvxMSDffManager::CheckTxBxStoryChain()
             mark = m_xShapeInfosByTxBxComp->begin();
          iter != m_xShapeInfosByTxBxComp->end(); ++iter)
     {
-        boost::shared_ptr<SvxMSDffShapeInfo> const pObj = *iter;
+        std::shared_ptr<SvxMSDffShapeInfo> const pObj = *iter;
         if( pObj->nTxBxComp )
         {
             // group change?
@@ -6136,7 +6136,7 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
         {
             aInfo.bReplaceByFly = true;
         }
-        m_xShapeInfosByTxBxComp->insert(::boost::shared_ptr<SvxMSDffShapeInfo>(
+        m_xShapeInfosByTxBxComp->insert(std::shared_ptr<SvxMSDffShapeInfo>(
                     new SvxMSDffShapeInfo(aInfo)));
         pShapeOrders->push_back( new SvxMSDffShapeOrder( aInfo.nShapeId ) );
     }
@@ -6156,7 +6156,7 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
 bool SvxMSDffManager::GetShape(sal_uLong nId, SdrObject*&         rpShape,
                                           SvxMSDffImportData& rData)
 {
-    ::boost::shared_ptr<SvxMSDffShapeInfo> const pTmpRec(
+    std::shared_ptr<SvxMSDffShapeInfo> const pTmpRec(
         new SvxMSDffShapeInfo(0, nId));
 
     SvxMSDffShapeInfos_ById::const_iterator const it =
@@ -6333,18 +6333,18 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, Rect
         rBLIPStream.SeekRel( nSkip );
 
         SvStream* pGrStream = &rBLIPStream;
-        boost::scoped_ptr<SvMemoryStream> pOut;
+        std::unique_ptr<SvMemoryStream> xOut;
         if( bZCodecCompression )
         {
-            pOut.reset(new SvMemoryStream( 0x8000, 0x4000 ));
+            xOut.reset(new SvMemoryStream( 0x8000, 0x4000 ));
             ZCodec aZCodec( 0x8000, 0x8000 );
             aZCodec.BeginCompression();
-            aZCodec.Decompress( rBLIPStream, *pOut );
+            aZCodec.Decompress( rBLIPStream, *xOut );
             aZCodec.EndCompression();
-            pOut->Seek( STREAM_SEEK_TO_BEGIN );
-            pOut->SetResizeOffset( 0 ); // sj: #i102257# setting ResizeOffset of 0 prevents from seeking
+            xOut->Seek( STREAM_SEEK_TO_BEGIN );
+            xOut->SetResizeOffset( 0 ); // sj: #i102257# setting ResizeOffset of 0 prevents from seeking
                                         // behind the stream end (allocating too much memory)
-            pGrStream = pOut.get();
+            pGrStream = xOut.get();
         }
 
 #if OSL_DEBUG_LEVEL > 2
@@ -6376,24 +6376,24 @@ bool SvxMSDffManager::GetBLIPDirect( SvStream& rBLIPStream, Graphic& rData, Rect
 
             SAL_INFO("filter.ms", "dumping " << aURLStr);
 
-            boost::scoped_ptr<SvStream> pDbgOut(::utl::UcbStreamHelper::CreateStream(aURLStr, StreamMode::TRUNC | StreamMode::WRITE));
+            std::unique_ptr<SvStream> pDbgOut(::utl::UcbStreamHelper::CreateStream(aURLStr, StreamMode::TRUNC | StreamMode::WRITE));
 
             if( pDbgOut )
             {
                 if ( bZCodecCompression )
                 {
-                    pOut->Seek( STREAM_SEEK_TO_END );
-                    pDbgOut->Write( pOut->GetData(), pOut->Tell() );
-                    pOut->Seek( STREAM_SEEK_TO_BEGIN );
+                    xOut->Seek( STREAM_SEEK_TO_END );
+                    pDbgOut->Write( xOut->GetData(), xOut->Tell() );
+                    xOut->Seek( STREAM_SEEK_TO_BEGIN );
                 }
                 else
                 {
                     sal_Int32 nDbgLen = nLength - nSkip;
                     if ( nDbgLen )
                     {
-                        boost::scoped_array<sal_Char> pDat(new sal_Char[ nDbgLen ]);
-                        pGrStream->Read( pDat.get(), nDbgLen );
-                        pDbgOut->Write( pDat.get(), nDbgLen );
+                        std::scoped_array<sal_Char> xDat(new sal_Char[ nDbgLen ]);
+                        pGrStream->Read( xDat.get(), nDbgLen );
+                        pDbgOut->Write( xDat.get(), nDbgLen );
                         pGrStream->SeekRel( -nDbgLen );
                     }
                 }
@@ -6905,7 +6905,7 @@ com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >  SvxMS
     {
         //TODO/MBA: check if (and when) storage and stream will be destroyed!
         const SfxFilter* pFilter = 0;
-        ::boost::scoped_ptr<SvMemoryStream> xMemStream (new SvMemoryStream);
+        std::unique_ptr<SvMemoryStream> xMemStream (new SvMemoryStream);
         if ( pName )
         {
             // TODO/LATER: perhaps we need to retrieve VisArea and Metafile from the storage also
diff --git a/include/comphelper/scoped_disposing_ptr.hxx b/include/comphelper/unique_disposing_ptr.hxx
similarity index 85%
rename from include/comphelper/scoped_disposing_ptr.hxx
rename to include/comphelper/unique_disposing_ptr.hxx
index 2625f40..1848639 100644
--- a/include/comphelper/scoped_disposing_ptr.hxx
+++ b/include/comphelper/unique_disposing_ptr.hxx
@@ -7,11 +7,10 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_COMPHELPER_SCOPED_DISPOSING_PTR_HXX
-#define INCLUDED_COMPHELPER_SCOPED_DISPOSING_PTR_HXX
+#ifndef INCLUDED_COMPHELPER_UNIQUE_DISPOSING_PTR_HXX
+#define INCLUDED_COMPHELPER_UNIQUE_DISPOSING_PTR_HXX
 
 #include <cppuhelper/implbase1.hxx>
-#include <boost/utility.hpp>
 
 #include <com/sun/star/lang/XComponent.hpp>
 #include <com/sun/star/frame/XDesktop.hpp>
@@ -22,13 +21,16 @@
 namespace comphelper
 {
 //Similar to std::unique_ptr, except additionally releases the ptr on XComponent::disposing and/or XTerminateListener::notifyTermination if supported
-template<class T> class scoped_disposing_ptr : private boost::noncopyable
+template<class T> class unique_disposing_ptr
 {
 private:
     std::unique_ptr<T> m_xItem;
     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener> m_xTerminateListener;
+
+    unique_disposing_ptr(const unique_disposing_ptr&) SAL_DELETED_FUNCTION;
+    unique_disposing_ptr& operator=(const unique_disposing_ptr&) SAL_DELETED_FUNCTION;
 public:
-    scoped_disposing_ptr( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > &rComponent, T * p = 0 )
+    unique_disposing_ptr( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > &rComponent, T * p = 0 )
         : m_xItem(p)
     {
         m_xTerminateListener = new TerminateListener(rComponent, *this);
@@ -59,7 +61,7 @@ public:
         return static_cast< bool >(m_xItem);
     }
 
-    virtual ~scoped_disposing_ptr()
+    virtual ~unique_disposing_ptr()
     {
         reset();
     }
@@ -68,10 +70,10 @@ private:
     {
     private:
         ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > m_xComponent;
-        scoped_disposing_ptr<T>& m_rItem;
+        unique_disposing_ptr<T>& m_rItem;
     public:
         TerminateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > &rComponent,
-            scoped_disposing_ptr<T>& rItem) : m_xComponent(rComponent), m_rItem(rItem)
+            unique_disposing_ptr<T>& rItem) : m_xComponent(rComponent), m_rItem(rItem)
         {
             if (m_xComponent.is())
             {
@@ -135,19 +137,19 @@ private:
 //for threadsafety. The user can ensure this, except in the case of its dtor
 //being called from reset due to a terminate on the XComponent being called
 //from an aribitrary thread
-template<class T> class scoped_disposing_solar_mutex_reset_ptr
-    : public scoped_disposing_ptr<T>
+template<class T> class unique_disposing_solar_mutex_reset_ptr
+    : public unique_disposing_ptr<T>
 {
 public:
-    scoped_disposing_solar_mutex_reset_ptr( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > &rComponent, T * p = 0 )
-        : scoped_disposing_ptr<T>(rComponent, p)
+    unique_disposing_solar_mutex_reset_ptr( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > &rComponent, T * p = 0 )
+        : unique_disposing_ptr<T>(rComponent, p)
     {
     }
 
     virtual void reset(T * p = 0)
     {
         SolarMutexGuard aGuard;
-        scoped_disposing_ptr<T>::reset(p);
+        unique_disposing_ptr<T>::reset(p);
     }
 };
 
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx
index 93f8d35..884829b 100644
--- a/include/filter/msfilter/escherex.hxx
+++ b/include/filter/msfilter/escherex.hxx
@@ -1155,9 +1155,7 @@ private:
     bool                mbPicStrmQueried;   /// True = ImplQueryPictureStream() has been called.
 };
 
-typedef ::boost::shared_ptr< EscherExGlobal > EscherExGlobalRef;
-
-
+typedef std::shared_ptr< EscherExGlobal > EscherExGlobalRef;
 
 class SdrObject;
 class SdrPage;
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx
index a6fdf66..b6b6bd7 100644
--- a/include/filter/msfilter/msdffimp.hxx
+++ b/include/filter/msfilter/msdffimp.hxx
@@ -23,10 +23,10 @@
 #include <string.h>
 
 #include <map>
-#include <vector>
+#include <memory>
 #include <set>
+#include <vector>
 
-#include <boost/shared_ptr.hpp>
 #include <boost/ptr_container/ptr_vector.hpp>
 #include <boost/ptr_container/ptr_set.hpp>
 
@@ -114,19 +114,19 @@ typedef boost::ptr_vector<SvxMSDffShapeOrder> SvxMSDffShapeOrders;
 
 struct MSFILTER_DLLPUBLIC CompareSvxMSDffShapeInfoById
 {
-    bool operator()(::boost::shared_ptr<SvxMSDffShapeInfo> const& lhs,
-                    ::boost::shared_ptr<SvxMSDffShapeInfo> const& rhs) const;
+    bool operator()(std::shared_ptr<SvxMSDffShapeInfo> const& lhs,
+                    std::shared_ptr<SvxMSDffShapeInfo> const& rhs) const;
 };
 struct MSFILTER_DLLPUBLIC CompareSvxMSDffShapeInfoByTxBxComp
 {
-    bool operator()(::boost::shared_ptr<SvxMSDffShapeInfo> const& lhs,
-                    ::boost::shared_ptr<SvxMSDffShapeInfo> const& rhs) const;
+    bool operator()(std::shared_ptr<SvxMSDffShapeInfo> const& lhs,
+                    std::shared_ptr<SvxMSDffShapeInfo> const& rhs) const;
 };
 
 // the following will be sorted explicitly:
-typedef ::std::set< ::boost::shared_ptr<SvxMSDffShapeInfo>,
+typedef ::std::set< std::shared_ptr<SvxMSDffShapeInfo>,
             CompareSvxMSDffShapeInfoById > SvxMSDffShapeInfos_ById;
-typedef ::std::multiset< ::boost::shared_ptr<SvxMSDffShapeInfo>,
+typedef ::std::multiset< std::shared_ptr<SvxMSDffShapeInfo>,
             CompareSvxMSDffShapeInfoByTxBxComp> SvxMSDffShapeInfos_ByTxBxComp;
 
 #define SVXMSDFF_SETTINGS_CROP_BITMAPS      1
diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx
index 2ad8338..2705df3 100644
--- a/include/filter/msfilter/mstoolbar.hxx
+++ b/include/filter/msfilter/mstoolbar.hxx
@@ -13,7 +13,6 @@
 #include <ostream>
 #include <memory>
 #include <vector>
-#include <boost/shared_ptr.hpp>
 #include <com/sun/star/frame/XModel.hpp>
 #include <com/sun/star/container/XIndexContainer.hpp>
 #include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
@@ -173,7 +172,7 @@ public:
 class MSFILTER_DLLPUBLIC TBCMenuSpecific : public TBBase
 {
     sal_Int32 tbid;
-    boost::shared_ptr< WString > name; //exist only if tbid equals 0x00000001
+    std::shared_ptr< WString > name; //exist only if tbid equals 0x00000001
 public:
     TBCMenuSpecific();
     virtual ~TBCMenuSpecific(){}
@@ -205,7 +204,7 @@ public:
 
 class TBCComboDropdownSpecific : public TBBase
 {
-    boost::shared_ptr< TBCCDData > data;
+    std::shared_ptr< TBCCDData > data;
 public:
     TBCComboDropdownSpecific( const TBCHeader& header );
     TBCComboDropdownSpecific(){}
@@ -218,10 +217,10 @@ public:
 class TBCBSpecific :  public TBBase
 {
     sal_uInt8 bFlags;
-    boost::shared_ptr< TBCBitMap > icon; // optional
-    boost::shared_ptr< TBCBitMap > iconMask; // optional
-    boost::shared_ptr< sal_uInt16 > iBtnFace; // optional
-    boost::shared_ptr< WString > wstrAcc; // optional
+    std::shared_ptr< TBCBitMap > icon; // optional
+    std::shared_ptr< TBCBitMap > iconMask; // optional
+    std::shared_ptr< sal_uInt16 > iBtnFace; // optional
+    std::shared_ptr< WString > wstrAcc; // optional
 
 public:
     TBCBSpecific();
@@ -266,8 +265,8 @@ class MSFILTER_DLLPUBLIC TBCHeader : public TBBase
     sal_uInt16 tcid;
     sal_uInt32 tbct;
     sal_uInt8 bPriority;
-    boost::shared_ptr< sal_uInt16 > width;  //optional
-    boost::shared_ptr< sal_uInt16 > height; //optional
+    std::shared_ptr< sal_uInt16 > width;  //optional
+    std::shared_ptr< sal_uInt16 > height; //optional
 
 public:
     TBCHeader();
@@ -287,7 +286,7 @@ class MSFILTER_DLLPUBLIC TBCData : public TBBase
 {
     TBCHeader rHeader;
     TBCGeneralInfo controlGeneralInfo;
-    boost::shared_ptr< TBBase > controlSpecificInfo; // can be one of TBCBSpecific, TBCMenuSpecific or TBCComboDropdow nSpecific depending on the control type specified by TBCHeader.tct
+    std::shared_ptr< TBBase > controlSpecificInfo; // can be one of TBCBSpecific, TBCMenuSpecific or TBCComboDropdow nSpecific depending on the control type specified by TBCHeader.tct
     TBCData(const TBCData&) SAL_DELETED_FUNCTION;
     TBCData& operator = ( const TBCData&) SAL_DELETED_FUNCTION;
 public:
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 90e7cfe..d08baa9 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -34,8 +34,6 @@
 #include <com/sun/star/task/XInteractionHandler.hpp>
 #include <com/sun/star/beans/XPropertySet.hpp>
 #include <com/sun/star/document/CmisVersion.hpp>
-#include <boost/shared_ptr.hpp>
-#include <set>
 
 #include <vcl/timer.hxx>
 #include <svl/poolitem.hxx>
@@ -47,6 +45,8 @@
 #include <sfx2/shell.hxx>
 #include <comphelper/embeddedobjectcontainer.hxx>
 #include <com/sun/star/frame/XModel.hpp>
+#include <memory>
+#include <set>
 
 class SbxValue;
 class SvxMacro;
@@ -415,7 +415,7 @@ public:
     virtual Size                GetFirstPageSize();
     bool                        DoClose();
     virtual void                PrepareReload();
-    ::boost::shared_ptr<GDIMetaFile> GetPreviewMetaFile( bool bFullContent = false ) const;
+    std::shared_ptr<GDIMetaFile> GetPreviewMetaFile( bool bFullContent = false ) const;
     virtual void                CancelTransfers();
 
     bool                        GenerateAndStoreThumbnail(
@@ -597,7 +597,7 @@ public:
     virtual bool    SetProtectionPassword( const OUString &rPassword );
     virtual bool    GetProtectionHash( /*out*/ ::com::sun::star::uno::Sequence< sal_Int8 > &rPasswordHash );
 
-    SAL_DLLPRIVATE ::boost::shared_ptr<GDIMetaFile> CreatePreviewMetaFile_Impl( bool bFullContent ) const;
+    SAL_DLLPRIVATE std::shared_ptr<GDIMetaFile> CreatePreviewMetaFile_Impl( bool bFullContent ) const;
 
     SAL_DLLPRIVATE bool IsOwnStorageFormat_Impl(const SfxMedium &) const;
 
diff --git a/include/svx/EnhancedCustomShape2d.hxx b/include/svx/EnhancedCustomShape2d.hxx
index 871776e..74f06e0 100644
--- a/include/svx/EnhancedCustomShape2d.hxx
+++ b/include/svx/EnhancedCustomShape2d.hxx
@@ -35,7 +35,7 @@
 #include <svx/EnhancedCustomShapeFunctionParser.hxx>
 #include <tools/gen.hxx>
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <vector>
 
 #define DFF_CUSTOMSHAPE_FLIP_V      1
@@ -102,8 +102,8 @@ class SVX_DLLPUBLIC EnhancedCustomShape2d : public SfxItemSet
             bool bReady;
             double fValue;
         };
-        com::sun::star::uno::Sequence< OUString >                                                  seqEquations;
-        std::vector< ::boost::shared_ptr< EnhancedCustomShape::ExpressionNode > >                       vNodesSharedPtr;
+        com::sun::star::uno::Sequence< OUString >                                                       seqEquations;
+        std::vector< std::shared_ptr< EnhancedCustomShape::ExpressionNode > >                           vNodesSharedPtr;
         std::vector< EquationResult >                                                                   vEquationResults;
 
         com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeSegment >            seqSegments;
diff --git a/include/svx/EnhancedCustomShapeFunctionParser.hxx b/include/svx/EnhancedCustomShapeFunctionParser.hxx
index 164ca6f..9f4f464 100644
--- a/include/svx/EnhancedCustomShapeFunctionParser.hxx
+++ b/include/svx/EnhancedCustomShapeFunctionParser.hxx
@@ -21,9 +21,9 @@
 #define INCLUDED_SVX_ENHANCEDCUSTOMSHAPEFUNCTIONPARSER_HXX
 
 #include <sal/config.h>
-#include <boost/shared_ptr.hpp>
 #include <com/sun/star/drawing/EnhancedCustomShapeParameter.hpp>
 #include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp>
+#include <memory>
 #include <vector>
 
 #include <svx/svxdllapi.h>
@@ -119,7 +119,7 @@ public:
     virtual com::sun::star::drawing::EnhancedCustomShapeParameter fillNode(
         std::vector< EnhancedCustomShapeEquation >& rEquations, ExpressionNode* pOptionalArg, sal_uInt32 nFlags ) = 0;
 };
-typedef ::boost::shared_ptr< ExpressionNode > ExpressionNodeSharedPtr;
+typedef std::shared_ptr< ExpressionNode > ExpressionNodeSharedPtr;
 
 /** This exception is thrown, when the arithmetic expression
     parser failed to parse a string.
diff --git a/include/svx/charmap.hxx b/include/svx/charmap.hxx
index 7810dda..d27afb6 100644
--- a/include/svx/charmap.hxx
+++ b/include/svx/charmap.hxx
@@ -22,8 +22,8 @@
 #include <vcl/ctrl.hxx>
 #include <vcl/metric.hxx>
 #include <vcl/scrbar.hxx>
-#include <boost/shared_ptr.hpp>
 #include <map>
+#include <memory>
 #include <svx/svxdllapi.h>
 
 // define ----------------------------------------------------------------
@@ -95,7 +95,7 @@ protected:
 
 
 private:
-    typedef ::std::map<sal_Int32, boost::shared_ptr<svx::SvxShowCharSetItem> > ItemsMap;
+    typedef std::map<sal_Int32, std::shared_ptr<svx::SvxShowCharSetItem> > ItemsMap;
     ItemsMap        m_aItems;
     Link            aDoubleClkHdl;
     Link            aSelectHdl;
diff --git a/include/svx/modctrl.hxx b/include/svx/modctrl.hxx
index 1febdbd..bb0bdc3 100644
--- a/include/svx/modctrl.hxx
+++ b/include/svx/modctrl.hxx
@@ -23,7 +23,7 @@
 #include <sfx2/stbitem.hxx>
 #include <svx/svxdllapi.h>
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 // Forward declarations
 class Timer;
@@ -50,7 +50,7 @@ private: // Functions
 
 private:
     struct ImplData;
-    ::boost::shared_ptr<ImplData> mpImpl;
+    std::shared_ptr<ImplData> mxImpl;
 };
 
 
diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index b6ca6f6..41e679d 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -19,7 +19,7 @@
 #ifndef INCLUDED_SVX_NBDTMG_HXX
 #define INCLUDED_SVX_NBDTMG_HXX
 #include <svx/svxdllapi.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <vector>
 #include <editeng/numitem.hxx>
 #include <vcl/font.hxx>
@@ -81,7 +81,7 @@ class  SVX_DLLPUBLIC NumSettings_Impl
 };
 
 typedef NumSettings_Impl* NumSettings_ImplPtr;
-typedef std::vector< boost::shared_ptr<NumSettings_Impl> > NumSettingsArr_Impl;
+typedef std::vector< std::shared_ptr<NumSettings_Impl> > NumSettingsArr_Impl;
 
 class  SVX_DLLPUBLIC BulletsSettings
 {
@@ -165,7 +165,7 @@ class  SVX_DLLPUBLIC NumberSettings_Impl
 };
 
 typedef NumberSettings_Impl* NumberSettings_ImplPtr;
-typedef std::vector< boost::shared_ptr<NumberSettings_Impl> > NumberSettingsArr_Impl;
+typedef std::vector< std::shared_ptr<NumberSettings_Impl> > NumberSettingsArr_Impl;
 
 class  SVX_DLLPUBLIC OutlineSettings_Impl
 {
diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx
index ca5f024..92d893df 100644
--- a/include/svx/sdr/table/tablecontroller.hxx
+++ b/include/svx/sdr/table/tablecontroller.hxx
@@ -61,7 +61,7 @@ public:
     SVX_DLLPRIVATE virtual bool GetStyleSheet( SfxStyleSheet* &rpStyleSheet ) const SAL_OVERRIDE;
     SVX_DLLPRIVATE virtual bool SetStyleSheet( SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr ) SAL_OVERRIDE;
 
-    SVX_DLLPRIVATE virtual bool TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& rFormatSet  ) SAL_OVERRIDE;
+    SVX_DLLPRIVATE virtual bool TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& rFormatSet  ) SAL_OVERRIDE;
     SVX_DLLPRIVATE virtual bool ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNoCharacterFormats, bool bNoParagraphFormats ) SAL_OVERRIDE;
 
     // slots
diff --git a/include/svx/selectioncontroller.hxx b/include/svx/selectioncontroller.hxx
index 9853214..6c15e28 100644
--- a/include/svx/selectioncontroller.hxx
+++ b/include/svx/selectioncontroller.hxx
@@ -21,10 +21,8 @@
 #define INCLUDED_SVX_SELECTIONCONTROLLER_HXX
 
 #include <svx/svxdllapi.h>
-
-#include <boost/shared_ptr.hpp>
-
 #include <cppuhelper/weak.hxx>
+#include <memory>
 
 class KeyEvent;
 class MouseEvent;
@@ -63,7 +61,7 @@ public:
     virtual bool PasteObjModel( const SdrModel& rModel );
 
     /** returns a format paint brush set from the current selection */
-    virtual bool TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& rFormatSet  );
+    virtual bool TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& rFormatSet  );
 
     /** applies a format paint brush set from the current selection.
         if bNoCharacterFormats is true, no character attributes are changed.
diff --git a/include/svx/shapepropertynotifier.hxx b/include/svx/shapepropertynotifier.hxx
index 5d9f90b..1d2147a 100644
--- a/include/svx/shapepropertynotifier.hxx
+++ b/include/svx/shapepropertynotifier.hxx
@@ -26,8 +26,6 @@
 #include <com/sun/star/beans/PropertyChangeEvent.hpp>
 #include <com/sun/star/beans/XPropertyChangeListener.hpp>
 
-#include <boost/noncopyable.hpp>
-#include <boost/shared_ptr.hpp>
 #include <memory>
 
 namespace cppu
@@ -58,7 +56,7 @@ namespace svx
 
         virtual ~IPropertyValueProvider();
     };
-    typedef ::boost::shared_ptr< IPropertyValueProvider >  PPropertyValueProvider;
+    typedef std::shared_ptr< IPropertyValueProvider >  PPropertyValueProvider;
 
 
     //= PropertyValueProvider
@@ -69,7 +67,6 @@ namespace svx
         and calls the getPropertyValue method.
     */
     class SVX_DLLPUBLIC PropertyValueProvider   :public IPropertyValueProvider
-                                                ,public ::boost::noncopyable
     {
     public:
         PropertyValueProvider( ::cppu::OWeakObject& _rContext, const sal_Char* _pAsciiPropertyName )
@@ -83,6 +80,9 @@ namespace svx
 
     protected:
         ::cppu::OWeakObject&    getContext() const { return m_rContext; }
+        PropertyValueProvider(const PropertyValueProvider&) SAL_DELETED_FUNCTION;
+        PropertyValueProvider& operator=(const PropertyValueProvider&) SAL_DELETED_FUNCTION;
+
     private:
         ::cppu::OWeakObject&    m_rContext;
         const OUString   m_sPropertyName;
@@ -97,7 +97,7 @@ namespace svx
 
         The class is intended to be held as member of the class which does the property change broadcasting.
     */
-    class SVX_DLLPUBLIC PropertyChangeNotifier : public ::boost::noncopyable
+    class SVX_DLLPUBLIC PropertyChangeNotifier
     {
     public:
         /** constructs a notifier instance
@@ -129,7 +129,10 @@ namespace svx
         void    disposing();
 
     private:
-        ::std::unique_ptr< PropertyChangeNotifier_Data >  m_pData;
+        PropertyChangeNotifier(const PropertyChangeNotifier&) SAL_DELETED_FUNCTION;
+        PropertyChangeNotifier& operator=(const PropertyChangeNotifier&) SAL_DELETED_FUNCTION;
+
+        std::unique_ptr< PropertyChangeNotifier_Data >  m_xData;
     };
 
 
diff --git a/include/svx/sidebar/SelectionChangeHandler.hxx b/include/svx/sidebar/SelectionChangeHandler.hxx
index 0b9ed76..ed5e9a8 100644
--- a/include/svx/sidebar/SelectionChangeHandler.hxx
+++ b/include/svx/sidebar/SelectionChangeHandler.hxx
@@ -28,10 +28,8 @@
 #include <cppuhelper/compbase1.hxx>
 #include <cppuhelper/basemutex.hxx>
 
-#include <boost/noncopyable.hpp>
 #include <boost/function.hpp>
 
-
 class SdrMarkView;
 
 
@@ -45,8 +43,7 @@ namespace {
 
 
 class SVX_DLLPUBLIC SelectionChangeHandler
-    : private ::boost::noncopyable,
-      private ::cppu::BaseMutex,
+    : private ::cppu::BaseMutex,
       public SelectionChangeHandlerInterfaceBase
 {
 public:
@@ -69,6 +66,9 @@ public:
     void Disconnect (void);
 
 private:
+    SelectionChangeHandler(const SelectionChangeHandler&) SAL_DELETED_FUNCTION;
+    SelectionChangeHandler& operator=(const SelectionChangeHandler&) SAL_DELETED_FUNCTION;
+
     const boost::function<rtl::OUString(void)> maSelectionChangeCallback;
     css::uno::Reference<css::frame::XController> mxController;
     const sfx2::sidebar::EnumContext::Context meDefaultContext;
diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx
index 66bbe0b..fb30ff7 100644
--- a/include/svx/svdedxv.hxx
+++ b/include/svx/svdedxv.hxx
@@ -26,7 +26,7 @@
 
 #include <svx/selectioncontroller.hxx>
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 class SdrOutliner;
 class OutlinerView;
@@ -259,7 +259,7 @@ public:
     bool SupportsFormatPaintbrush( sal_uInt32 nObjectInventor, sal_uInt16 nObjectIdentifier ) const;
 
     /** returns a format paint brush set from the current selection */
-    bool TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& rFormatSet  );
+    bool TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& rFormatSet  );
 
     /** applies a format paint brush set from the current selection.
         if bNoCharacterFormats is true, no character attributes are changed.
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx
index b3fa3c4..4006388 100644
--- a/include/svx/svdmodel.hxx
+++ b/include/svx/svdmodel.hxx
@@ -38,8 +38,6 @@
 #include <svx/pageitem.hxx>
 #include <vcl/field.hxx>
 
-#include <boost/shared_ptr.hpp>
-
 class OutputDevice;
 #include <svx/svdtypes.hxx>
 #include <svx/svxdllapi.h>
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index b1ee25d..864cc83 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -29,7 +29,6 @@
 #include <svx/xtextit0.hxx>
 #include <svx/svdtext.hxx>
 #include <vector>
-#include <boost/shared_ptr.hpp>
 #include <svx/svxdllapi.h>
 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
 #include <svx/svdpagv.hxx>
diff --git a/include/xmloff/table/XMLTableExport.hxx b/include/xmloff/table/XMLTableExport.hxx
index cf324e7..82e6d24 100644
--- a/include/xmloff/table/XMLTableExport.hxx
+++ b/include/xmloff/table/XMLTableExport.hxx
@@ -25,8 +25,8 @@
 #include <rtl/ustring.hxx>
 #include <rtl/ustrbuf.hxx>
 
-#include <boost/shared_ptr.hpp>
 #include <map>
+#include <memory>
 #include <vector>
 
 #include <com/sun/star/table/XTableColumns.hpp>
@@ -49,7 +49,7 @@
 class SvXMLExport;
 class SvXMLExportPropertyMapper;
 
-typedef ::std::map< const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >, OUString > TableStyleMap;
+typedef std::map< const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >, OUString > TableStyleMap;
 
 struct XMLTableInfo
 {
@@ -59,7 +59,7 @@ struct XMLTableInfo
     std::vector< OUString > maDefaultRowCellStyles;
 };
 
-typedef ::std::map< const ::com::sun::star::uno::Reference< com::sun::star::table::XColumnRowRange >, boost::shared_ptr< XMLTableInfo > > TableInfoMap;
+typedef std::map< const ::com::sun::star::uno::Reference< com::sun::star::table::XColumnRowRange >, std::shared_ptr< XMLTableInfo > > TableInfoMap;
 
 class XMLOFF_DLLPUBLIC XMLTableExport : public salhelper::SimpleReferenceObject
 {
@@ -96,8 +96,8 @@ private:
 
     SAL_DLLPRIVATE void ImpExportText( const com::sun::star::uno::Reference < com::sun::star::table::XCell >& xCell );
 
-    void ExportCell( const com::sun::star::uno::Reference < com::sun::star::table::XCell >& xCell, const boost::shared_ptr< XMLTableInfo >& pTableInfo, const OUString& sDefaultCellStyle  );
-    void ExportTableColumns( const com::sun::star::uno::Reference < com::sun::star::container::XIndexAccess >& xtableColumns, const boost::shared_ptr< XMLTableInfo >& pTableInfo );
+    void ExportCell( const com::sun::star::uno::Reference < com::sun::star::table::XCell >& xCell, const std::shared_ptr< XMLTableInfo >& pTableInfo, const OUString& sDefaultCellStyle  );
+    void ExportTableColumns( const com::sun::star::uno::Reference < com::sun::star::container::XIndexAccess >& xtableColumns, const std::shared_ptr< XMLTableInfo >& pTableInfo );
 
 };
 
diff --git a/include/xmloff/table/XMLTableImport.hxx b/include/xmloff/table/XMLTableImport.hxx
index 4de0822..8e6bb26 100644
--- a/include/xmloff/table/XMLTableImport.hxx
+++ b/include/xmloff/table/XMLTableImport.hxx
@@ -30,13 +30,13 @@
 
 #include <rtl/ref.hxx>
 
-#include <boost/shared_ptr.hpp>
 #include <map>
+#include <memory>
 
 class SvXMLStyleContext;
 
 typedef std::map< OUString, OUString > XMLTableTemplate;
-typedef std::map < OUString, boost::shared_ptr< XMLTableTemplate > > XMLTableTemplateMap;
+typedef std::map < OUString, std::shared_ptr< XMLTableTemplate > > XMLTableTemplateMap;
 
 class XMLTableImport : public salhelper::SimpleReferenceObject
 {
diff --git a/include/xmloff/txtimp.hxx b/include/xmloff/txtimp.hxx
index 43b9315..03b2319 100644
--- a/include/xmloff/txtimp.hxx
+++ b/include/xmloff/txtimp.hxx
@@ -26,8 +26,6 @@
 
 #include <map>
 #include <memory>
-#include <boost/utility.hpp>
-#include <boost/shared_ptr.hpp>
 
 #include <xmloff/xmltkmap.hxx>
 #include <rtl/ref.hxx>
@@ -366,16 +364,18 @@ enum XMLTextType
 #define XML_TEXT_RENAME_TYPE_FRAME 10
 #define XML_TEXT_RENAME_TYPE_TABLE 20
 
-class XMLOFF_DLLPUBLIC XMLTextImportHelper : public salhelper::SimpleReferenceObject,
-    private boost::noncopyable
+class XMLOFF_DLLPUBLIC XMLTextImportHelper : public salhelper::SimpleReferenceObject
 {
 private:
+    XMLTextImportHelper(const XMLTextImportHelper&) SAL_DELETED_FUNCTION;
+    XMLTextImportHelper& operator=(const XMLTextImportHelper&) SAL_DELETED_FUNCTION;
+
     struct Impl;
     std::unique_ptr<Impl> m_xImpl;
     /// ugly, but implementation of this is in XMLPropertyBackpatcher.cxx
     struct BackpatcherImpl;
-    ::boost::shared_ptr<BackpatcherImpl> m_pBackpatcherImpl;
-    ::boost::shared_ptr<BackpatcherImpl> MakeBackpatcherImpl();
+    std::shared_ptr<BackpatcherImpl> m_xBackpatcherImpl;
+    std::shared_ptr<BackpatcherImpl> MakeBackpatcherImpl();
 
 protected:
     virtual SvXMLImportContext *CreateTableChildContext(
@@ -567,7 +567,7 @@ public:
         const ::com::sun::star::uno::Reference<
                 ::com::sun::star::text::XTextRange> & rRange,
         OUString const& i_rXmlId,
-        ::boost::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
+        std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
             i_rpRDFaAttributes);
 
     /// process the start of a range reference
@@ -576,7 +576,7 @@ public:
         ::com::sun::star::uno::Reference<
                 ::com::sun::star::text::XTextRange> & o_rRange,
         OUString & o_rXmlId,
-        ::boost::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
+        std::shared_ptr< ::xmloff::ParsedRDFaAttributes > &
             o_rpRDFaAttributes);
 
     OUString FindActiveBookmarkName();
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx
index b43a63b..00d8a34 100644
--- a/include/xmloff/xmluconv.hxx
+++ b/include/xmloff/xmluconv.hxx
@@ -26,7 +26,6 @@
 
 #include <memory>
 #include <limits.h>
-#include <boost/utility.hpp>
 
 #include <rtl/ustring.hxx>
 #include <rtl/ustrbuf.hxx>
@@ -80,9 +79,11 @@ public:
 */
 
 class XMLOFF_DLLPUBLIC SvXMLUnitConverter
-    : private ::boost::noncopyable
 {
 private:
+    SvXMLUnitConverter(const SvXMLUnitConverter&) SAL_DELETED_FUNCTION;
+    SvXMLUnitConverter& operator=(const SvXMLUnitConverter&) SAL_DELETED_FUNCTION;
+
     struct Impl;
     ::std::unique_ptr<Impl> m_pImpl;
 
diff --git a/sc/source/filter/excel/expop2.cxx b/sc/source/filter/excel/expop2.cxx
index 8356acd..29e157d 100644
--- a/sc/source/filter/excel/expop2.cxx
+++ b/sc/source/filter/excel/expop2.cxx
@@ -92,10 +92,10 @@ FltError ExportBiff5::Write()
                 = xDPS->getDocumentProperties();
         if ( SvtFilterOptions::Get().IsEnableCalcPreview() )
         {
-            ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+            std::shared_ptr<GDIMetaFile> xMetaFile =
                 pDocShell->GetPreviewMetaFile (false);
             uno::Sequence<sal_uInt8> metaFile(
-                sfx2::convertMetaFile(pMetaFile.get()));
+                sfx2::convertMetaFile(xMetaFile.get()));
             sfx2::SaveOlePropertySet(xDocProps, xRootStrg, &metaFile);
         }
         else
diff --git a/sc/source/filter/excel/xltoolbar.hxx b/sc/source/filter/excel/xltoolbar.hxx
index b5481ca..3a9658c 100644
--- a/sc/source/filter/excel/xltoolbar.hxx
+++ b/sc/source/filter/excel/xltoolbar.hxx
@@ -34,8 +34,8 @@ public:
 class ScTBC : public TBBase
 {
     TBCHeader tbch;
-    boost::shared_ptr<TBCCmd> tbcCmd; // optional
-    boost::shared_ptr<TBCData> tbcd;
+    std::shared_ptr<TBCCmd> tbcCmd; // optional
+    std::shared_ptr<TBCData> tbcd;
 public:
     ScTBC();
     virtual ~ScTBC(){}
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index d4fb0d6..cc25b13 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -71,7 +71,7 @@ void FuFormatPaintBrush::DoExecute( SfxRequest& rReq )
 
     if( mpView )
     {
-        mpView->TakeFormatPaintBrush( mpItemSet );
+        mpView->TakeFormatPaintBrush( mxItemSet );
     }
 }
 
@@ -175,7 +175,7 @@ bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt)
 
 bool FuFormatPaintBrush::MouseButtonUp(const MouseEvent& rMEvt)
 {
-    if( mpItemSet.get() && mpView && mpView->AreObjectsMarked() )
+    if( mxItemSet.get() && mpView && mpView->AreObjectsMarked() )
     {
         bool bNoCharacterFormats = false;
         bool bNoParagraphFormats = false;
@@ -233,7 +233,7 @@ void FuFormatPaintBrush::Deactivate()
 
 bool FuFormatPaintBrush::HasContentForThisType( sal_uInt32 nObjectInventor, sal_uInt16 nObjectIdentifier ) const
 {
-    if( mpItemSet.get() == 0 )
+    if( mxItemSet.get() == 0 )
         return false;
     if( !mpView || (!mpView->SupportsFormatPaintbrush( nObjectInventor, nObjectIdentifier) ) )
         return false;
@@ -243,7 +243,7 @@ bool FuFormatPaintBrush::HasContentForThisType( sal_uInt32 nObjectInventor, sal_
 void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphFormats )
 {
     const SdrMarkList& rMarkList = mpView->GetMarkedObjectList();
-    if( mpItemSet.get() && ( rMarkList.GetMarkCount() == 1 ) )
+    if( mxItemSet.get() && ( rMarkList.GetMarkCount() == 1 ) )
     {
         SdrObject* pObj( NULL );
         bool bUndo = mpDoc->IsUndoEnabled();
@@ -260,7 +260,7 @@ void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphForma
             mpDoc->AddUndo( mpDoc->GetSdrUndoFactory().CreateUndoAttrObject( *pObj, false, true ) );
         }
 
-        mpView->ApplyFormatPaintBrush( *mpItemSet.get(), bNoCharacterFormats, bNoParagraphFormats );
+        mpView->ApplyFormatPaintBrush( *mxItemSet.get(), bNoCharacterFormats, bNoParagraphFormats );
 
         if( pObj )
         {
diff --git a/sd/source/ui/inc/fuformatpaintbrush.hxx b/sd/source/ui/inc/fuformatpaintbrush.hxx
index 41c3396..13ec578 100644
--- a/sd/source/ui/inc/fuformatpaintbrush.hxx
+++ b/sd/source/ui/inc/fuformatpaintbrush.hxx
@@ -23,7 +23,7 @@
 #include "futext.hxx"
 
 #include <svl/itemset.hxx>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 namespace sd {
 
@@ -57,7 +57,7 @@ private:
 
     void implcancel();
 
-    ::boost::shared_ptr<SfxItemSet> mpItemSet;
+    std::shared_ptr<SfxItemSet> mxItemSet;
     bool   mbPermanent;
     bool   mbOldIsQuickTextEditMode;
 };
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 4319fd7..e6b828d 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1110,19 +1110,18 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
                         pDoc->SetSelected( pDoc->GetSdPage( nPgNum, PK_STANDARD ), nPgNum == nPageNumber );
                         nPgNum++;
                     }
-                    ::boost::shared_ptr<GDIMetaFile> pMetaFile =
-                        pDocShell->GetPreviewMetaFile();
-                    if ( pMetaFile )
+                    std::shared_ptr<GDIMetaFile> xMetaFile = pDocShell->GetPreviewMetaFile();
+                    if (xMetaFile)
                     {
                         Point   aPoint;
                         Size    aSize( GetPage()->GetSize() );
-                        pMetaFile->AddAction( (MetaAction*) new MetaFillColorAction( COL_WHITE, true ), 0 );
-                        pMetaFile->AddAction( (MetaAction*) new MetaRectAction( Rectangle( aPoint, aSize ) ), 1 );
-                        pMetaFile->SetPrefMapMode( MAP_100TH_MM );
-                        pMetaFile->SetPrefSize( aSize );
+                        xMetaFile->AddAction( (MetaAction*) new MetaFillColorAction( COL_WHITE, true ), 0 );
+                        xMetaFile->AddAction( (MetaAction*) new MetaRectAction( Rectangle( aPoint, aSize ) ), 1 );
+                        xMetaFile->SetPrefMapMode( MAP_100TH_MM );
+                        xMetaFile->SetPrefSize( aSize );
 
                         SvMemoryStream aDestStrm( 65535, 65535 );
-                        ConvertGDIMetaFileToWMF( *pMetaFile, aDestStrm, NULL, false );
+                        ConvertGDIMetaFileToWMF( *xMetaFile, aDestStrm, NULL, false );
                         Sequence<sal_Int8> aSeq( (sal_Int8*)aDestStrm.GetData(), aDestStrm.Tell() );
                         aAny <<= aSeq;
                     }
@@ -1147,10 +1146,9 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
                         pDoc->SetSelected( pDoc->GetSdPage( nPgNum, PK_STANDARD ), nPgNum == nPageNumber );
                         nPgNum++;
                     }
-                    ::boost::shared_ptr<GDIMetaFile> pMetaFile =
-                        pDocShell->GetPreviewMetaFile();
+                    std::shared_ptr<GDIMetaFile> xMetaFile = pDocShell->GetPreviewMetaFile();
                     BitmapEx aBitmap;
-                    if (pMetaFile && pMetaFile->CreateThumbnail(aBitmap))
+                    if (xMetaFile && xMetaFile->CreateThumbnail(aBitmap))
                     {
                         SvMemoryStream aMemStream;
                         WriteDIB(aBitmap.GetBitmap(), aMemStream, false, false);
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 8e8452e..4c53a50 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -202,9 +202,9 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
     if (!pDocSh->IsModified() && !pEncryptionDataItem && !Application::IsHeadlessModeEnabled())
     {
         // not modified => the document matches what is in the shell
-        boost::shared_ptr<GDIMetaFile> pMetaFile = pDocSh->GetPreviewMetaFile();
+        std::shared_ptr<GDIMetaFile> xMetaFile = pDocSh->GetPreviewMetaFile();
         BitmapEx aResultBitmap;
-        if (pMetaFile->CreateThumbnail(aResultBitmap))
+        if (xMetaFile->CreateThumbnail(aResultBitmap))
         {
             SvMemoryStream aStream(65535, 65535);
             vcl::PNGWriter aWriter(aResultBitmap);
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 9a97255..703e7b9 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -41,17 +41,17 @@
 
 void SfxPreviewBase_Impl::SetObjectShell( SfxObjectShell* pObj )
 {
-    ::boost::shared_ptr<GDIMetaFile> pFile = pObj
+    std::shared_ptr<GDIMetaFile> xFile = pObj
         ? pObj->GetPreviewMetaFile()
-        : ::boost::shared_ptr<GDIMetaFile>();
-    pMetaFile = pFile;
+        : std::shared_ptr<GDIMetaFile>();
+    xMetaFile = xFile;
     Invalidate();
 }
 
 SfxPreviewBase_Impl::SfxPreviewBase_Impl(
     vcl::Window* pParent, WinBits nStyle)
     : Window(pParent, nStyle)
-    , pMetaFile()
+    , xMetaFile()
 {
 }
 
@@ -112,7 +112,7 @@ void SfxPreviewWin_Impl::ImpPaint(
 
 void SfxPreviewWin_Impl::Paint( const Rectangle& rRect )
 {
-    ImpPaint( rRect, pMetaFile.get(), this );
+    ImpPaint( rRect, xMetaFile.get(), this );
 }
 
 extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSfxPreviewWin(vcl::Window *pParent, VclBuilder::stringmap &)
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 937a5e0..933fd30 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -108,13 +108,13 @@ bool operator> (const util::DateTime& i_rLeft, const util::DateTime& i_rRight)
     return false;
 }
 
-::boost::shared_ptr<GDIMetaFile>
+std::shared_ptr<GDIMetaFile>
 SfxObjectShell::GetPreviewMetaFile( bool bFullContent ) const
 {
     return CreatePreviewMetaFile_Impl( bFullContent );
 }
 
-::boost::shared_ptr<GDIMetaFile>
+std::shared_ptr<GDIMetaFile>
 SfxObjectShell::CreatePreviewMetaFile_Impl( bool bFullContent ) const
 {
     // DoDraw can only be called when no printing is done, otherwise
@@ -123,16 +123,16 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( bool bFullContent ) const
     if ( pFrame && pFrame->GetViewShell() &&
          pFrame->GetViewShell()->GetPrinter() &&
          pFrame->GetViewShell()->GetPrinter()->IsPrinting() )
-         return ::boost::shared_ptr<GDIMetaFile>();
+         return std::shared_ptr<GDIMetaFile>();
 
-    ::boost::shared_ptr<GDIMetaFile> pFile(new GDIMetaFile);
+    std::shared_ptr<GDIMetaFile> xFile(new GDIMetaFile);
 
     VirtualDevice aDevice;
     aDevice.EnableOutput( false );
 
     MapMode aMode( ((SfxObjectShell*)this)->GetMapUnit() );
     aDevice.SetMapMode( aMode );
-    pFile->SetPrefMapMode( aMode );
+    xFile->SetPrefMapMode( aMode );
 
     Size aTmpSize;
     sal_Int8 nAspect;
@@ -147,11 +147,11 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( bool bFullContent ) const
         aTmpSize = ((SfxObjectShell*)this)->GetFirstPageSize();
     }
 
-    pFile->SetPrefSize( aTmpSize );
+    xFile->SetPrefSize( aTmpSize );
     DBG_ASSERT( aTmpSize.Height()*aTmpSize.Width(),
         "size of first page is 0, override GetFirstPageSize or set vis-area!" );
 
-    pFile->Record( &aDevice );
+    xFile->Record( &aDevice );
 
     LanguageType eLang;
     SvtCTLOptions aCTLOptions;
@@ -168,9 +168,9 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( bool bFullContent ) const
         SAL_INFO( "sfx.doc", "PERFORMANCE SfxObjectShell::CreatePreviewMetaFile_Impl" );
         ((SfxObjectShell*)this)->DoDraw( &aDevice, Point(0,0), aTmpSize, JobSetup(), nAspect );
     }
-    pFile->Stop();
+    xFile->Stop();
 
-    return pFile;
+    return xFile;
 }
 
 
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index d763e69..59cb2e8 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3571,10 +3571,10 @@ bool SfxObjectShell::WriteThumbnail(bool bEncrypted, bool bIsTemplate, const uno
         }
         else
         {
-            boost::shared_ptr<GDIMetaFile> pMetaFile = GetPreviewMetaFile(false);
-            if (pMetaFile)
+            std::shared_ptr<GDIMetaFile> xMetaFile = GetPreviewMetaFile(false);
+            if (xMetaFile)
             {
-                bResult = GraphicHelper::getThumbnailFormatFromGDI_Impl(pMetaFile.get(), xStream);
+                bResult = GraphicHelper::getThumbnailFormatFromGDI_Impl(xMetaFile.get(), xStream);
             }
         }
     }
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 96ea1b9..bcf9973 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -216,7 +216,7 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument
     Reference< rdf::XDocumentMetadataAccess>                   m_xDocumentMetadata      ;
     ::rtl::Reference< ::sfx2::DocumentUndoManager >            m_pDocumentUndoManager   ;
     Sequence< document::CmisProperty>                          m_cmisProperties         ;
-    boost::shared_ptr<SfxGrabBagItem>                          m_pGrabBagItem           ;
+    std::shared_ptr<SfxGrabBagItem>                            m_xGrabBagItem           ;
 
     IMPL_SfxBaseModel_DataContainer( ::osl::Mutex& rMutex, SfxObjectShell* pObjectShell )
             :   m_pObjectShell          ( pObjectShell  )
@@ -2010,15 +2010,15 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
 
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
                     SvMemoryStream aMemStm( 65535, 65535 );
                     aMemStm.SetVersion( SOFFICE_FILEFORMAT_CURRENT );
 
-                    pMetaFile->Write( aMemStm );
+                    xMetaFile->Write( aMemStm );
                     aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ),
                                                     aMemStm.Seek( STREAM_SEEK_TO_END ) );
                 }
@@ -2030,15 +2030,15 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
         {
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->CreatePreviewMetaFile_Impl( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
                     SvMemoryStream aMemStm( 65535, 65535 );
                     aMemStm.SetVersion( SOFFICE_FILEFORMAT_CURRENT );
 
-                    pMetaFile->Write( aMemStm );
+                    xMetaFile->Write( aMemStm );
                     aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ),
                                                     aMemStm.Seek( STREAM_SEEK_TO_END ) );
                 }
@@ -2050,32 +2050,32 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
         {
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
-                    ::boost::shared_ptr<SvMemoryStream> pStream(
+                    std::shared_ptr<SvMemoryStream> xStream(
                         GraphicHelper::getFormatStrFromGDI_Impl(
-                            pMetaFile.get(), CVT_EMF ) );
-                    if ( pStream )
+                            xMetaFile.get(), CVT_EMF ) );
+                    if (xStream)
                     {
-                        pStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
-                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( pStream->GetData() ),
-                                                        pStream->Seek( STREAM_SEEK_TO_END ) );
+                        xStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
+                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( xStream->GetData() ),
+                                                        xStream->Seek( STREAM_SEEK_TO_END ) );
                     }
                 }
             }
             else if ( GraphicHelper::supportsMetaFileHandle_Impl()
               && aFlavor.DataType == cppu::UnoType<sal_uInt64>::get())
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
                     aAny <<= reinterpret_cast< const sal_uInt64 >(
-                        GraphicHelper::getEnhMetaFileFromGDI_Impl( pMetaFile.get() ) );
+                        GraphicHelper::getEnhMetaFileFromGDI_Impl( xMetaFile.get() ) );
                 }
             }
             else
@@ -2085,20 +2085,20 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
         {
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
-                    ::boost::shared_ptr<SvMemoryStream> pStream(
+                    std::shared_ptr<SvMemoryStream> xStream(
                         GraphicHelper::getFormatStrFromGDI_Impl(
-                            pMetaFile.get(), CVT_WMF ) );
+                            xMetaFile.get(), CVT_WMF ) );
 
-                    if ( pStream )
+                    if (xStream)
                     {
-                        pStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
-                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( pStream->GetData() ),
-                                                        pStream->Seek( STREAM_SEEK_TO_END ) );
+                        xStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
+                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( xStream->GetData() ),
+                                                        xStream->Seek( STREAM_SEEK_TO_END ) );
                     }
                 }
             }
@@ -2107,15 +2107,15 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
             {
                 // means HGLOBAL handler to memory storage containing METAFILEPICT structure
 
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
-                    Size aMetaSize = pMetaFile->GetPrefSize();
+                    Size aMetaSize = xMetaFile->GetPrefSize();
                     aAny <<= reinterpret_cast< const sal_uInt64 >(
                         GraphicHelper::getWinMetaFileFromGDI_Impl(
-                            pMetaFile.get(), aMetaSize ) );
+                            xMetaFile.get(), aMetaSize ) );
                 }
             }
             else
@@ -2125,20 +2125,20 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
         {
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
-                    ::boost::shared_ptr<SvMemoryStream> pStream(
+                    std::shared_ptr<SvMemoryStream> xStream(
                         GraphicHelper::getFormatStrFromGDI_Impl(
-                            pMetaFile.get(), CVT_BMP ) );
+                            xMetaFile.get(), CVT_BMP ) );
 
-                    if ( pStream )
+                    if (xStream)
                     {
-                        pStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
-                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( pStream->GetData() ),
-                                                        pStream->Seek( STREAM_SEEK_TO_END ) );
+                        xStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
+                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( xStream->GetData() ),
+                                                        xStream->Seek( STREAM_SEEK_TO_END ) );
                     }
                 }
             }
@@ -2149,20 +2149,20 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla
         {
             if ( aFlavor.DataType == getCppuType( (const Sequence< sal_Int8 >*) 0 ) )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     m_pData->m_pObjectShell->GetPreviewMetaFile( true );
 
-                if ( pMetaFile )
+                if (xMetaFile)
                 {
-                    ::boost::shared_ptr<SvMemoryStream> pStream(
+                    std::shared_ptr<SvMemoryStream> xStream(
                         GraphicHelper::getFormatStrFromGDI_Impl(
-                            pMetaFile.get(), CVT_PNG ) );
+                            xMetaFile.get(), CVT_PNG ) );
 
-                    if ( pStream )
+                    if (xStream)
                     {
-                        pStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
-                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( pStream->GetData() ),
-                                                        pStream->Seek( STREAM_SEEK_TO_END ) );
+                        xStream->SetVersion( SOFFICE_FILEFORMAT_CURRENT );
+                        aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( xStream->GetData() ),
+                                                        xStream->Seek( STREAM_SEEK_TO_END ) );
                     }
                 }
             }
@@ -3454,8 +3454,8 @@ bool SfxBaseModel::hasValidSignatures() const
 
 void SfxBaseModel::getGrabBagItem(com::sun::star::uno::Any& rVal) const
 {
-    if (m_pData->m_pGrabBagItem.get())
-        m_pData->m_pGrabBagItem->QueryValue(rVal);
+    if (m_pData->m_xGrabBagItem.get())
+        m_pData->m_xGrabBagItem->QueryValue(rVal);
     else {
         uno::Sequence<beans::PropertyValue> aValue(0);
         rVal = uno::makeAny(aValue);
@@ -3464,10 +3464,10 @@ void SfxBaseModel::getGrabBagItem(com::sun::star::uno::Any& rVal) const
 
 void SfxBaseModel::setGrabBagItem(const com::sun::star::uno::Any& rVal)
 {
-    if (!m_pData->m_pGrabBagItem.get())
-        m_pData->m_pGrabBagItem.reset(new SfxGrabBagItem);
+    if (!m_pData->m_xGrabBagItem.get())
+        m_pData->m_xGrabBagItem.reset(new SfxGrabBagItem);
 
-    m_pData->m_pGrabBagItem->PutValue(rVal);
+    m_pData->m_xGrabBagItem->PutValue(rVal);
 }
 
 static void GetCommandFromSequence( OUString& rCommand, sal_Int32& nIndex, const Sequence< beans::PropertyValue >& rSeqPropValue )
diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx
index cbd4da7..d343e7e 100644
--- a/sfx2/source/inc/preview.hxx
+++ b/sfx2/source/inc/preview.hxx
@@ -29,7 +29,7 @@ class GDIMetaFile;
 class SfxPreviewBase_Impl : public vcl::Window
 {
 protected:
-    ::boost::shared_ptr<GDIMetaFile> pMetaFile;
+    std::shared_ptr<GDIMetaFile> xMetaFile;
 public:
     SfxPreviewBase_Impl(vcl::Window* pParent, WinBits nStyle);
     void            SetObjectShell( SfxObjectShell* pObj );
diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
index 7804b66..44d2165 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx
@@ -778,22 +778,22 @@ struct ParserContext
 
 };
 
-typedef ::boost::shared_ptr< ParserContext > ParserContextSharedPtr;
+typedef std::shared_ptr< ParserContext > ParserContextSharedPtr;
 
 /** Generate parse-dependent-but-then-constant value
     */
 class DoubleConstantFunctor
 {
-    ParserContextSharedPtr  mpContext;
+    ParserContextSharedPtr  mxContext;
 
 public:
     DoubleConstantFunctor( const ParserContextSharedPtr& rContext ) :
-        mpContext( rContext )
+        mxContext( rContext )
     {
     }
     void operator()( double n ) const
     {
-        mpContext->maOperandStack.push( ExpressionNodeSharedPtr( new ConstantValueExpression( n ) ) );
+        mxContext->maOperandStack.push( ExpressionNodeSharedPtr( new ConstantValueExpression( n ) ) );
     }
 };
 
@@ -801,14 +801,14 @@ class EnumFunctor
 {
     const ExpressionFunct           meFunct;
     double                          mnValue;
-    ParserContextSharedPtr          mpContext;
+    ParserContextSharedPtr          mxContext;
 
 public:
 
     EnumFunctor( const ExpressionFunct eFunct, const ParserContextSharedPtr& rContext )
     : meFunct( eFunct )
     , mnValue( 0 )
-    , mpContext( rContext )
+    , mxContext( rContext )
     {
     }
     void operator()( StringIteratorT rFirst, StringIteratorT rSecond ) const
@@ -819,17 +819,17 @@ public:
             case ENUM_FUNC_ADJUSTMENT :
             {
                 OUString aVal( rFirst + 1, rSecond - rFirst, RTL_TEXTENCODING_UTF8 );
-                mpContext->maOperandStack.push( ExpressionNodeSharedPtr( new AdjustmentExpression( *mpContext->mpCustoShape, aVal.toInt32() ) ) );
+                mxContext->maOperandStack.push( ExpressionNodeSharedPtr( new AdjustmentExpression( *mxContext->mpCustoShape, aVal.toInt32() ) ) );
             }
             break;
             case ENUM_FUNC_EQUATION :
                 {
                 OUString aVal( rFirst + 1, rSecond - rFirst, RTL_TEXTENCODING_UTF8 );
-                mpContext->maOperandStack.push( ExpressionNodeSharedPtr( new EquationExpression( *mpContext->mpCustoShape, aVal.toInt32() ) ) );
+                mxContext->maOperandStack.push( ExpressionNodeSharedPtr( new EquationExpression( *mxContext->mpCustoShape, aVal.toInt32() ) ) );
             }
             break;
             default:
-                mpContext->maOperandStack.push( ExpressionNodeSharedPtr( new EnumValueExpression( *mpContext->mpCustoShape, meFunct ) ) );
+                mxContext->maOperandStack.push( ExpressionNodeSharedPtr( new EnumValueExpression( *mxContext->mpCustoShape, meFunct ) ) );
         }
     }
 };
@@ -837,18 +837,18 @@ public:
 class UnaryFunctionFunctor
 {
     const ExpressionFunct   meFunct;
-    ParserContextSharedPtr  mpContext;
+    ParserContextSharedPtr  mxContext;
 
 public :
 
     UnaryFunctionFunctor( const ExpressionFunct eFunct, const ParserContextSharedPtr& rContext ) :
         meFunct( eFunct ),
-        mpContext( rContext )
+        mxContext( rContext )
     {
     }
     void operator()( StringIteratorT, StringIteratorT ) const
     {
-        ParserContext::OperandStack& rNodeStack( mpContext->maOperandStack );
+        ParserContext::OperandStack& rNodeStack( mxContext->maOperandStack );
 
         if( rNodeStack.size() < 1 )
             throw ParseError( "Not enough arguments for unary operator" );
@@ -874,19 +874,19 @@ public :
 class BinaryFunctionFunctor
 {
     const ExpressionFunct   meFunct;
-    ParserContextSharedPtr  mpContext;
+    ParserContextSharedPtr  mxContext;
 
 public:
 
     BinaryFunctionFunctor( const ExpressionFunct eFunct, const ParserContextSharedPtr& rContext ) :
         meFunct( eFunct ),
-        mpContext( rContext )
+        mxContext( rContext )
     {
     }
 
     void operator()( StringIteratorT, StringIteratorT ) const
     {
-        ParserContext::OperandStack& rNodeStack( mpContext->maOperandStack );
+        ParserContext::OperandStack& rNodeStack( mxContext->maOperandStack );
 
         if( rNodeStack.size() < 2 )
             throw ParseError( "Not enough arguments for binary operator" );
@@ -909,17 +909,17 @@ public:
 
 class IfFunctor
 {
-    ParserContextSharedPtr  mpContext;
+    ParserContextSharedPtr  mxContext;
 
 public :
 
     IfFunctor( const ParserContextSharedPtr& rContext ) :
-        mpContext( rContext )
+        mxContext( rContext )
     {
     }
     void operator()( StringIteratorT, StringIteratorT ) const
     {
-        ParserContext::OperandStack& rNodeStack( mpContext->maOperandStack );
+        ParserContext::OperandStack& rNodeStack( mxContext->maOperandStack );
 
         if( rNodeStack.size() < 3 )
             throw ParseError( "Not enough arguments for ternary operator" );
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 26f6df2..32178658 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -716,7 +716,7 @@ void SvxShowCharSet::ReleaseAccessible()
     if ( aFind == m_aItems.end() )
     {
         OSL_ENSURE(m_pAccessible,"Who wants to create a child of my table without a parent?");
-        boost::shared_ptr<svx::SvxShowCharSetItem> xItem(new svx::SvxShowCharSetItem(*this,
+        std::shared_ptr<svx::SvxShowCharSetItem> xItem(new svx::SvxShowCharSetItem(*this,
             m_pAccessible->getTable(), sal::static_int_cast< sal_uInt16 >(_nPos)));
         aFind = m_aItems.insert(ItemsMap::value_type(_nPos, xItem)).first;
         OUStringBuffer buf;
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index 4f244a4..e2ae286 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -51,7 +51,7 @@
 #include <com/sun/star/beans/PropertyValue.hpp>
 #include <comphelper/processfactory.hxx>
 #include <com/sun/star/text/XNumberingTypeInfo.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 using namespace com::sun::star;
 using namespace com::sun::star::uno;
@@ -159,17 +159,17 @@ void NBOTypeMgrBase::ImplLoad(const OUString& filename)
     eCoreUnit = SFX_MAPUNIT_100TH_MM;
     INetURLObject aFile( SvtPathOptions().GetPalettePath() );
     aFile.Append( filename);
-    boost::scoped_ptr<SvStream> pIStm(::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
-    if( pIStm ) {
+    std::unique_ptr<SvStream> xIStm(::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
+    if( xIStm ) {
         sal_uInt32                  nVersion = 0;
         sal_Int32                   nNumIndex = 0;
-        pIStm->ReadUInt32( nVersion );
+        xIStm->ReadUInt32( nVersion );
         if (nVersion==DEFAULT_NUMBERING_CACHE_FORMAT_VERSION) //first version
         {
-            pIStm->ReadInt32( nNumIndex );
+            xIStm->ReadInt32( nNumIndex );
             sal_uInt16 mLevel = 0x1;
             while (nNumIndex>=0 && nNumIndex<DEFAULT_NUM_VALUSET_COUNT) {
-                SvxNumRule aNum(*pIStm);
+                SvxNumRule aNum(*xIStm);
                 //bullet color in font properties is not stored correctly. Need set tranparency bits manually
                 for(sal_uInt16 i = 0; i < aNum.GetLevelCount(); i++)
                 {
@@ -184,7 +184,7 @@ void NBOTypeMgrBase::ImplLoad(const OUString& filename)
                     }
                 }
                 RelplaceNumRule(aNum,nNumIndex,mLevel);
-                pIStm->ReadInt32( nNumIndex );
+                xIStm->ReadInt32( nNumIndex );
             }
         }
     }
@@ -198,24 +198,24 @@ void NBOTypeMgrBase::ImplStore(const OUString& filename)
     eCoreUnit = SFX_MAPUNIT_100TH_MM;
     INetURLObject aFile( SvtPathOptions().GetPalettePath() );
     aFile.Append( filename);
-    boost::scoped_ptr<SvStream> pOStm(::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::WRITE ));
-    if( pOStm ) {
+    std::unique_ptr<SvStream> xOStm(::utl::UcbStreamHelper::CreateStream( aFile.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::WRITE ));
+    if( xOStm ) {
         sal_uInt32                      nVersion;
         sal_Int32                       nNumIndex;
         nVersion = DEFAULT_NUMBERING_CACHE_FORMAT_VERSION;
-        pOStm->WriteUInt32( nVersion );
+        xOStm->WriteUInt32( nVersion );
         for(sal_Int32 nItem = 0; nItem < DEFAULT_NUM_VALUSET_COUNT; nItem++ ) {
             if (IsCustomized(nItem)) {
                 SvxNumRule aDefNumRule( NUM_BULLET_REL_SIZE|NUM_CONTINUOUS|NUM_BULLET_COLOR|NUM_CHAR_TEXT_DISTANCE|NUM_SYMBOL_ALIGNMENT,10, false,
                     SVX_RULETYPE_NUMBERING,SvxNumberFormat::LABEL_ALIGNMENT);
                 sal_uInt16 mLevel = 0x1;
-                pOStm->WriteInt32( nItem );
+                xOStm->WriteInt32( nItem );
                 ApplyNumRule(aDefNumRule,nItem,mLevel,false,true);
-                aDefNumRule.Store(*pOStm);
+                aDefNumRule.Store(*xOStm);
             }
         }
         nNumIndex = -1;
-        pOStm->WriteInt32( nNumIndex );  //write end flag
+        xOStm->WriteInt32( nNumIndex );  //write end flag
     }
     eCoreUnit = eOldCoreUnit;
 }
@@ -1311,7 +1311,7 @@ void NumberingTypeMgr::Init()
             pNumEntry->nIndexDefault = i;
             pNumEntry->pNumSetting = pNew;
             pNumEntry->sDescription = SVX_RESSTR( RID_SVXSTR_SINGLENUM_DESCRIPTIONS + i );
-            pNumberSettingsArr->push_back(boost::shared_ptr<NumberSettings_Impl>(pNumEntry));
+            pNumberSettingsArr->push_back(std::shared_ptr<NumberSettings_Impl>(pNumEntry));
         }
     }
     catch(Exception&)
@@ -1533,7 +1533,7 @@ void OutlineTypeMgr::Init()
                 pNew->eNumAlign = aNumFmt.GetNumAdjust();
                 pNew->nNumAlignAt = aNumFmt.GetFirstLineIndent();
                 pNew->nNumIndentAt = aNumFmt.GetIndentAt();
-                pItemArr->pNumSettingsArr->push_back(boost::shared_ptr<NumSettings_Impl>(pNew));
+                pItemArr->pNumSettingsArr->push_back(std::shared_ptr<NumSettings_Impl>(pNew));
             }
         }
     }
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 7899bcb..a860032 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -63,20 +63,20 @@ struct SvxModifyControl::ImplData
 
 SvxModifyControl::SvxModifyControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, StatusBar& rStb ) :
     SfxStatusBarControl( _nSlotId, _nId, rStb ),
-    mpImpl(new ImplData)
+    mxImpl(new ImplData)
 {
 //#ifndef MACOSX
     if ( rStb.GetDPIScaleFactor() > 1 )
     {
-        for (int i = 0; i < mpImpl->MODIFICATION_STATE_SIZE; i++)
+        for (int i = 0; i < mxImpl->MODIFICATION_STATE_SIZE; i++)
         {
-            BitmapEx b = mpImpl->maImages[i].GetBitmapEx();
+            BitmapEx b = mxImpl->maImages[i].GetBitmapEx();
             b.Scale(rStb.GetDPIScaleFactor(), rStb.GetDPIScaleFactor(), BMP_SCALE_FAST);
-            mpImpl->maImages[i] = Image(b);
+            mxImpl->maImages[i] = Image(b);
         }
     }
 //#endif
-    mpImpl->maIdle.SetIdleHdl( LINK(this, SvxModifyControl, OnTimer) );
+    mxImpl->maIdle.SetIdleHdl( LINK(this, SvxModifyControl, OnTimer) );
 }
 
 
@@ -89,12 +89,12 @@ void SvxModifyControl::StateChanged( sal_uInt16, SfxItemState eState,
 
     DBG_ASSERT( pState->ISA( SfxBoolItem ), "invalid item type" );
     const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(pState);
-    mpImpl->maIdle.Stop();
+    mxImpl->maIdle.Stop();
 
     bool modified = pItem->GetValue();
-    bool start = ( !modified && mpImpl->mnModState == ImplData::MODIFICATION_STATE_YES);  // should timer be started and feedback image displayed ?
+    bool start = ( !modified && mxImpl->mnModState == ImplData::MODIFICATION_STATE_YES);  // should timer be started and feedback image displayed ?
 
-    mpImpl->mnModState = (start ? ImplData::MODIFICATION_STATE_FEEDBACK : (modified ? ImplData::MODIFICATION_STATE_YES : ImplData::MODIFICATION_STATE_NO));
+    mxImpl->mnModState = (start ? ImplData::MODIFICATION_STATE_FEEDBACK : (modified ? ImplData::MODIFICATION_STATE_YES : ImplData::MODIFICATION_STATE_NO));
 
     _repaint();
 
@@ -102,7 +102,7 @@ void SvxModifyControl::StateChanged( sal_uInt16, SfxItemState eState,
     GetStatusBar().SetQuickHelpText(GetId(), SVX_RESSTR(nResId));
 
     if ( start )
-        mpImpl->maIdle.Start();
+        mxImpl->maIdle.Start();
 }
 
 
@@ -113,7 +113,7 @@ IMPL_LINK( SvxModifyControl, OnTimer, Timer *, pTimer )
         return 0;
 
     pTimer->Stop();
-    mpImpl->mnModState = ImplData::MODIFICATION_STATE_NO;
+    mxImpl->mnModState = ImplData::MODIFICATION_STATE_NO;
 
     _repaint();
 
@@ -154,14 +154,14 @@ void SvxModifyControl::Paint( const UserDrawEvent& rUsrEvt )
     OutputDevice*       pDev =  rUsrEvt.GetDevice();
     Rectangle           aRect = rUsrEvt.GetRect();
 
-    ImplData::ModificationState state = mpImpl->mnModState;
-    Point aPt = centerImage(aRect, mpImpl->maImages[state]);
-    pDev->DrawImage(aPt, mpImpl->maImages[state]);
+    ImplData::ModificationState state = mxImpl->mnModState;
+    Point aPt = centerImage(aRect, mxImpl->maImages[state]);
+    pDev->DrawImage(aPt, mxImpl->maImages[state]);
 }
 
 void SvxModifyControl::Click()
 {
-    if (mpImpl->mnModState != ImplData::MODIFICATION_STATE_YES)
+    if (mxImpl->mnModState != ImplData::MODIFICATION_STATE_YES)
         // document not modified.  nothing to do here.
         return;
 
diff --git a/svx/source/svdraw/selectioncontroller.cxx b/svx/source/svdraw/selectioncontroller.cxx
index a64f80c..800d694 100644
--- a/svx/source/svdraw/selectioncontroller.cxx
+++ b/svx/source/svdraw/selectioncontroller.cxx
@@ -90,7 +90,7 @@ bool SelectionController::PasteObjModel( const SdrModel& /*rModel*/ )
     return false;
 }
 
-bool SelectionController::TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& /*rFormatSet*/  )
+bool SelectionController::TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& /*rFormatSet*/  )
 {
     return false;
 }
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index d3dcf97..67d9514 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -60,7 +60,7 @@
 #include <sdr/overlay/overlaytools.hxx>
 #include <svx/sdr/table/tablecontroller.hxx>
 #include <drawinglayer/processor2d/processor2dtools.hxx>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 
 void SdrObjEditView::ImpClearVars()
@@ -342,11 +342,11 @@ void SdrObjEditView::ImpPaintOutlinerView(OutlinerView& rOutlView, const Rectang
     {
         // completely reworked to use primitives; this ensures same look and functionality
         const drawinglayer::geometry::ViewInformation2D aViewInformation2D;
-        boost::scoped_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(drawinglayer::processor2d::createProcessor2DFromOutputDevice(
+        boost::scoped_ptr<drawinglayer::processor2d::BaseProcessor2D> xProcessor(drawinglayer::processor2d::createProcessor2DFromOutputDevice(
             rTargetDevice,
             aViewInformation2D));
 
-        if(pProcessor)
+        if (xProcessor)
         {
             const bool bMerk(rTargetDevice.IsMapModeEnabled());
             const basegfx::B2DRange aRange(aPixRect.Left(), aPixRect.Top(), aPixRect.Right(), aPixRect.Bottom());
@@ -365,7 +365,7 @@ void SdrObjEditView::ImpPaintOutlinerView(OutlinerView& rOutlView, const Rectang
             const drawinglayer::primitive2d::Primitive2DSequence aSequence(&xReference, 1);
 
             rTargetDevice.EnableMapMode(false);
-            pProcessor->process(aSequence);
+            xProcessor->process(aSequence);
             rTargetDevice.EnableMapMode(bMerk);
         }
     }
@@ -1978,7 +1978,7 @@ static const sal_uInt16* GetFormatRangeImpl( bool bTextOnly )
     return &gRanges[ bTextOnly ? 10 : 0];
 }
 
-bool SdrObjEditView::TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& rFormatSet  )
+bool SdrObjEditView::TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& rFormatSet  )
 {
     if( mxSelectionController.is() && mxSelectionController->TakeFormatPaintBrush(rFormatSet) )
         return true;
diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx
index c028a2a..119ff78 100644
--- a/svx/source/table/tablecontroller.cxx
+++ b/svx/source/table/tablecontroller.cxx
@@ -66,7 +66,7 @@
 #include "tableundo.hxx"
 #include "tablelayouter.hxx"
 #include <vcl/msgbox.hxx>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 using ::editeng::SvxBorderLine;
 using namespace ::sdr::table;
@@ -393,7 +393,7 @@ void SvxTableController::GetState( SfxItemSet& rSet )
     if( !mxTable.is() || !mxTableObj.is() || !mxTableObj->GetModel() )
         return;
 
-    boost::scoped_ptr<SfxItemSet> pSet;
+    std::unique_ptr<SfxItemSet> xSet;
 
     bool bVertDone = false;
 
@@ -414,16 +414,16 @@ void SvxTableController::GetState( SfxItemSet& rSet )
                     }
                     else if(!bVertDone)
                     {
-                        if( !pSet )
+                        if (!xSet)
                         {
-                            pSet.reset(new SfxItemSet( mxTableObj->GetModel()->GetItemPool() ));
-                            MergeAttrFromSelectedCells(*pSet, false);
+                            xSet.reset(new SfxItemSet( mxTableObj->GetModel()->GetItemPool() ));
+                            MergeAttrFromSelectedCells(*xSet, false);
                         }
 
                         SdrTextVertAdjust eAdj = SDRTEXTVERTADJUST_BLOCK;
 
-                        if( pSet->GetItemState( SDRATTR_TEXT_VERTADJUST ) != SfxItemState::DONTCARE )
-                            eAdj = static_cast<const SdrTextVertAdjustItem&>(pSet->Get(SDRATTR_TEXT_VERTADJUST)).GetValue();
+                        if (xSet->GetItemState( SDRATTR_TEXT_VERTADJUST ) != SfxItemState::DONTCARE)
+                            eAdj = static_cast<const SdrTextVertAdjustItem&>(xSet->Get(SDRATTR_TEXT_VERTADJUST)).GetValue();
 
                         rSet.Put(SfxBoolItem(SID_TABLE_VERT_BOTTOM, eAdj == SDRTEXTVERTADJUST_BOTTOM));
                         rSet.Put(SfxBoolItem(SID_TABLE_VERT_CENTER, eAdj == SDRTEXTVERTADJUST_CENTER));
@@ -893,11 +893,11 @@ void SvxTableController::onFormatTable( SfxRequest& rReq )
         aNewAttr.Put( aBoxInfoItem );
 
         SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
-        boost::scoped_ptr< SfxAbstractTabDialog > pDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 );
+        std::unique_ptr< SfxAbstractTabDialog > xDlg( pFact ? pFact->CreateSvxFormatCellsDialog( NULL, &aNewAttr, pTableObj->GetModel(), pTableObj) : 0 );
         // Even Cancel Button is returning positive(101) value,
-        if( pDlg.get() && ( pDlg->Execute() == RET_OK ) )
+        if (xDlg.get() && xDlg->Execute() == RET_OK)
         {
-            SfxItemSet aNewSet( *(pDlg->GetOutputItemSet ()) );
+            SfxItemSet aNewSet(*(xDlg->GetOutputItemSet()));
 
             //Only properties that were unchanged by the dialog appear in this
             //itemset.  We had constructed these two properties from other
@@ -1199,7 +1199,7 @@ void SvxTableController::SplitMarkedCells()
         getSelectedCells( aStart, aEnd );
 
         SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
-        boost::scoped_ptr< SvxAbstractSplittTableDialog > xDlg( pFact ? pFact->CreateSvxSplittTableDialog( NULL, false, 99, 99 ) : 0 );
+        std::unique_ptr< SvxAbstractSplittTableDialog > xDlg( pFact ? pFact->CreateSvxSplittTableDialog( NULL, false, 99, 99 ) : 0 );
         if( xDlg.get() && xDlg->Execute() )
         {
             const sal_Int32 nCount = xDlg->GetCount() - 1;
@@ -2647,7 +2647,7 @@ bool SvxTableController::PasteObject( SdrTableObj* pPasteTableObj )
     return true;
 }
 
-bool SvxTableController::TakeFormatPaintBrush( boost::shared_ptr< SfxItemSet >& /*rFormatSet*/  )
+bool SvxTableController::TakeFormatPaintBrush( std::shared_ptr< SfxItemSet >& /*rFormatSet*/  )
 {
     // SdrView::TakeFormatPaintBrush() is enough
     return false;
diff --git a/svx/source/unodraw/shapepropertynotifier.cxx b/svx/source/unodraw/shapepropertynotifier.cxx
index 19bd256..9c286f2 100644
--- a/svx/source/unodraw/shapepropertynotifier.cxx
+++ b/svx/source/unodraw/shapepropertynotifier.cxx
@@ -99,7 +99,7 @@ namespace svx
     }
 
     PropertyChangeNotifier::PropertyChangeNotifier( ::cppu::OWeakObject& _rOwner, ::osl::Mutex& _rMutex )
-        :m_pData( new PropertyChangeNotifier_Data( _rOwner, _rMutex ) )
+        :m_xData( new PropertyChangeNotifier_Data( _rOwner, _rMutex ) )
     {
     }
 
@@ -114,10 +114,10 @@ namespace svx
         ENSURE_OR_THROW( _eProperty != eInvalidShapeProperty, "Illegal ShapeProperty value!" );
         ENSURE_OR_THROW( !!_pProvider, "NULL factory not allowed." );
 
-        OSL_ENSURE( m_pData->m_aProviders.find( _eProperty ) == m_pData->m_aProviders.end(),
+        OSL_ENSURE( m_xData->m_aProviders.find( _eProperty ) == m_xData->m_aProviders.end(),
             "PropertyChangeNotifier::registerProvider: factory for this ID already present!" );
 
-        m_pData->m_aProviders[ _eProperty ] = _pProvider;
+        m_xData->m_aProviders[ _eProperty ] = _pProvider;
     }
 
 
@@ -125,22 +125,22 @@ namespace svx
     {
         ENSURE_OR_THROW( _eProperty != eInvalidShapeProperty, "Illegal ShapeProperty value!" );
 
-        PropertyProviders::const_iterator provPos = m_pData->m_aProviders.find( _eProperty );
-        OSL_ENSURE( provPos != m_pData->m_aProviders.end(), "PropertyChangeNotifier::notifyPropertyChange: no factory!" );
-        if ( provPos == m_pData->m_aProviders.end() )
+        PropertyProviders::const_iterator provPos = m_xData->m_aProviders.find( _eProperty );
+        OSL_ENSURE( provPos != m_xData->m_aProviders.end(), "PropertyChangeNotifier::notifyPropertyChange: no factory!" );
+        if ( provPos == m_xData->m_aProviders.end() )
             return;
 
         OUString sPropertyName( provPos->second->getPropertyName() );
 
-        ::cppu::OInterfaceContainerHelper* pPropListeners = m_pData->m_aPropertyChangeListeners.getContainer( sPropertyName );
-        ::cppu::OInterfaceContainerHelper* pAllListeners = m_pData->m_aPropertyChangeListeners.getContainer( OUString() );
+        ::cppu::OInterfaceContainerHelper* pPropListeners = m_xData->m_aPropertyChangeListeners.getContainer( sPropertyName );
+        ::cppu::OInterfaceContainerHelper* pAllListeners = m_xData->m_aPropertyChangeListeners.getContainer( OUString() );
         if ( !pPropListeners && !pAllListeners )
             return;
 
         try
         {
             PropertyChangeEvent aEvent;
-            aEvent.Source = m_pData->m_rContext;
+            aEvent.Source = m_xData->m_rContext;
             // Handle/OldValue not supported
             aEvent.PropertyName = provPos->second->getPropertyName();
             provPos->second->getCurrentValue( aEvent.NewValue );
@@ -159,21 +159,21 @@ namespace svx
 
     void PropertyChangeNotifier::addPropertyChangeListener( const OUString& _rPropertyName, const Reference< XPropertyChangeListener >& _rxListener )
     {
-        m_pData->m_aPropertyChangeListeners.addInterface( _rPropertyName, _rxListener );
+        m_xData->m_aPropertyChangeListeners.addInterface( _rPropertyName, _rxListener );
     }
 
 
     void PropertyChangeNotifier::removePropertyChangeListener( const OUString& _rPropertyName, const Reference< XPropertyChangeListener >& _rxListener )
     {
-        m_pData->m_aPropertyChangeListeners.removeInterface( _rPropertyName, _rxListener );
+        m_xData->m_aPropertyChangeListeners.removeInterface( _rPropertyName, _rxListener );
     }
 
 
     void PropertyChangeNotifier::disposing()
     {
         EventObject aEvent;
-        aEvent.Source = m_pData->m_rContext;
-        m_pData->m_aPropertyChangeListeners.disposeAndClear( aEvent );
+        aEvent.Source = m_xData->m_rContext;
+        m_xData->m_aPropertyChangeListeners.disposeAndClear( aEvent );
     }
 
 
diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx
index d3fb9fc..3755950 100644
--- a/sw/inc/pch/precompiled_sw.hxx
+++ b/sw/inc/pch/precompiled_sw.hxx
@@ -460,7 +460,7 @@
 #include <comphelper/makesequence.hxx>
 #include <comphelper/namedvaluecollection.hxx>
 #include <comphelper/processfactory.hxx>
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <comphelper/sequence.hxx>
 #include <comphelper/sequenceashashmap.hxx>
 #include <comphelper/servicehelper.hxx>
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 4b42c1d..d5872cb 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -3406,10 +3406,10 @@ void WW8Export::PrepareStorage()
         {
             if ( SvtFilterOptions::Get().IsEnableWordPreview() )
             {
-                ::boost::shared_ptr<GDIMetaFile> pMetaFile =
+                std::shared_ptr<GDIMetaFile> xMetaFile =
                     pDocShell->GetPreviewMetaFile(false);
                 uno::Sequence<sal_uInt8> metaFile(
-                    sfx2::convertMetaFile(pMetaFile.get()));
+                    sfx2::convertMetaFile(xMetaFile.get()));
                 sfx2::SaveOlePropertySet(xDocProps, &GetWriter().GetStorage(), &metaFile);
             }
             else
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 1c3096c..58d1c79 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -837,11 +837,11 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
             // with a Frame, else
             if( bIsSimpleDrawingTextBox )
             {
-                ::boost::shared_ptr<SvxMSDffShapeInfo> const pTmpRec(
+                std::shared_ptr<SvxMSDffShapeInfo> const xTmpRec(
                         new SvxMSDffShapeInfo(0, pImpRec->nShapeId));
 
                 SvxMSDffShapeInfos_ById::const_iterator const it =
-                    GetShapeInfos()->find(pTmpRec);
+                    GetShapeInfos()->find(xTmpRec);
                 if (it != GetShapeInfos()->end())
                 {
                     SvxMSDffShapeInfo& rInfo = **it;
diff --git a/sw/source/filter/ww8/ww8toolbar.hxx b/sw/source/filter/ww8/ww8toolbar.hxx
index e6d80e2..3f125d3 100644
--- a/sw/source/filter/ww8/ww8toolbar.hxx
+++ b/sw/source/filter/ww8/ww8toolbar.hxx
@@ -29,8 +29,8 @@ class SwCTBWrapper;
 class SwTBC : public TBBase
 {
     TBCHeader tbch;
-    boost::shared_ptr< sal_uInt32 > cid; // optional
-    boost::shared_ptr<TBCData> tbcd;
+    std::shared_ptr< sal_uInt32 > cid; // optional
+    std::shared_ptr<TBCData> tbcd;
 
 public:
     SwTBC();
@@ -126,7 +126,7 @@ class Customization : public TBBase
     sal_uInt16 reserved1;
     sal_uInt16 ctbds;
     SwCTBWrapper* pWrapper;
-    boost::shared_ptr< SwCTB > customizationDataCTB;
+    std::shared_ptr< SwCTB > customizationDataCTB;
     std::vector< TBDelta > customizationDataTBDelta;
     bool bIsDroppedMenuTB;
     bool ImportMenu( SwCTBWrapper&, const css::uno::Reference< css::container::XIndexContainer >&, CustomToolBarImportHelper& );
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx
index 8f0c4e2..cd26bf9 100644
--- a/sw/source/uibase/app/swdll.cxx
+++ b/sw/source/uibase/app/swdll.cxx
@@ -35,7 +35,7 @@
 
 #include <com/sun/star/frame/Desktop.hpp>
 #include <unotools/moduleoptions.hxx>
-#include <comphelper/scoped_disposing_ptr.hxx>
+#include <comphelper/unique_disposing_ptr.hxx>
 #include <comphelper/processfactory.hxx>
 
 #include <svx/fmobjfac.hxx>
@@ -54,10 +54,10 @@ namespace
 {
     //Holds a SwDLL and release it on exit, or dispose of the
     //default XComponent, whichever comes first
-    class SwDLLInstance : public comphelper::scoped_disposing_solar_mutex_reset_ptr<SwDLL>
+    class SwDLLInstance : public comphelper::unique_disposing_solar_mutex_reset_ptr<SwDLL>
     {
     public:
-        SwDLLInstance() : comphelper::scoped_disposing_solar_mutex_reset_ptr<SwDLL>(uno::Reference<lang::XComponent>( frame::Desktop::create(comphelper::getProcessComponentContext()), uno::UNO_QUERY_THROW), new SwDLL)
+        SwDLLInstance() : comphelper::unique_disposing_solar_mutex_reset_ptr<SwDLL>(uno::Reference<lang::XComponent>( frame::Desktop::create(comphelper::getProcessComponentContext()), uno::UNO_QUERY_THROW), new SwDLL)
         {
         }
     };
diff --git a/xmloff/inc/RDFaImportHelper.hxx b/xmloff/inc/RDFaImportHelper.hxx
index 75c10dd..ceb4c2e 100644
--- a/xmloff/inc/RDFaImportHelper.hxx
+++ b/xmloff/inc/RDFaImportHelper.hxx
@@ -20,10 +20,9 @@
 #ifndef INCLUDED_XMLOFF_INC_RDFAIMPORTHELPER_HXX
 #define INCLUDED_XMLOFF_INC_RDFAIMPORTHELPER_HXX
 
+#include <memory>
 #include <vector>
 
-#include <boost/shared_ptr.hpp>
-
 #include <com/sun/star/uno/Reference.h>
 #include <rtl/ustring.hxx>
 
@@ -59,7 +58,7 @@ public:
     ~RDFaImportHelper();
 
     /** Parse RDFa attributes */
-    ::boost::shared_ptr<ParsedRDFaAttributes> ParseRDFa(
+    std::shared_ptr<ParsedRDFaAttributes> ParseRDFa(
         OUString const & i_rAbout,
         OUString const & i_rProperty,
         OUString const & i_rContent,
@@ -69,7 +68,7 @@ public:
     void AddRDFa(
         ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XMetadatable>
             const & i_xObject,
-        ::boost::shared_ptr<ParsedRDFaAttributes> & i_pRDFaAttributes);
+        std::shared_ptr<ParsedRDFaAttributes> & i_pRDFaAttributes);
 
     /** Parse and add a RDFa statement; parameters are XML attribute values */
     void ParseAndAddRDFa(
diff --git a/xmloff/source/chart/SchXMLTools.cxx b/xmloff/source/chart/SchXMLTools.cxx
index cf195df..6430427 100644
--- a/xmloff/source/chart/SchXMLTools.cxx
+++ b/xmloff/source/chart/SchXMLTools.cxx
@@ -47,6 +47,7 @@
 #include <com/sun/star/lang/XServiceName.hpp>
 
 #include <comphelper/processfactory.hxx>
+#include <algorithm>
 
 using namespace com::sun::star;

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list