boost->std
Change-Id: I3fd9e1599c5ad812879a58cf1dabbcd393105e1c Reviewed-on: https://gerrit.libreoffice.org/18564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -103,7 +103,7 @@ VLCFrameGrabber::VLCFrameGrabber( wrapper::EventHandler& eh, const rtl::OUString
|
||||
|
||||
rtl::OUString url;
|
||||
osl::FileBase::getFileURLFromSystemPath( fileName, url );
|
||||
boost::shared_ptr<SvStream> stream( utl::UcbStreamHelper::CreateStream( url,
|
||||
std::shared_ptr<SvStream> stream( utl::UcbStreamHelper::CreateStream( url,
|
||||
STREAM_STD_READ ) );
|
||||
|
||||
vcl::PNGReader reader( *stream );
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef INCLUDED_AVMEDIA_SOURCE_VLC_VLCFRAMEGRABBER_HXX
|
||||
#define INCLUDED_AVMEDIA_SOURCE_VLC_VLCFRAMEGRABBER_HXX
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <com/sun/star/media/XFrameGrabber.hpp>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
#include "vlccommon.hxx"
|
||||
|
||||
@@ -396,7 +396,7 @@ void LanguageBox::FillBox()
|
||||
m_sCurrentText = GetSelectEntry();
|
||||
ClearBox();
|
||||
|
||||
boost::shared_ptr<LocalizationMgr> pCurMgr(GetShell()->GetCurLocalizationMgr());
|
||||
std::shared_ptr<LocalizationMgr> pCurMgr(GetShell()->GetCurLocalizationMgr());
|
||||
if ( pCurMgr->isLibraryLocalized() )
|
||||
{
|
||||
Enable();
|
||||
|
||||
@@ -73,8 +73,8 @@ friend class CodeCompleteListBox;
|
||||
private:
|
||||
class ChangesListener;
|
||||
|
||||
boost::scoped_ptr<ExtTextView> pEditView;
|
||||
boost::scoped_ptr<ExtTextEngine> pEditEngine;
|
||||
std::unique_ptr<ExtTextView> pEditView;
|
||||
std::unique_ptr<ExtTextEngine> pEditEngine;
|
||||
ModulWindow& rModulWindow;
|
||||
|
||||
rtl::Reference< ChangesListener > listener_;
|
||||
@@ -92,7 +92,7 @@ private:
|
||||
|
||||
// progress bar
|
||||
class ProgressInfo;
|
||||
boost::scoped_ptr<ProgressInfo> pProgress;
|
||||
std::unique_ptr<ProgressInfo> pProgress;
|
||||
|
||||
virtual void DataChanged(DataChangedEvent const & rDCEvt) SAL_OVERRIDE;
|
||||
|
||||
|
||||
@@ -221,8 +221,6 @@ private:
|
||||
|
||||
EditorWindow::EditorWindow (vcl::Window* pParent, ModulWindow* pModulWindow) :
|
||||
Window(pParent, WB_BORDER),
|
||||
pEditView(0),
|
||||
pEditEngine(0),
|
||||
rModulWindow(*pModulWindow),
|
||||
nCurTextWidth(0),
|
||||
aHighlighter(HIGHLIGHT_BASIC),
|
||||
|
||||
@@ -1088,7 +1088,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
|
||||
bool bCopyResourcesForDialog = true;
|
||||
if( bAddDialogLanguagesToLib )
|
||||
{
|
||||
boost::shared_ptr<LocalizationMgr> pCurMgr = pShell->GetCurLocalizationMgr();
|
||||
std::shared_ptr<LocalizationMgr> pCurMgr = pShell->GetCurLocalizationMgr();
|
||||
|
||||
lang::Locale aFirstLocale;
|
||||
aFirstLocale = aOnlyInImportLanguages[0];
|
||||
|
||||
@@ -557,7 +557,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq )
|
||||
break;
|
||||
case SID_BASICIDE_SHOWWINDOW:
|
||||
{
|
||||
boost::scoped_ptr< ScriptDocument > pDocument;
|
||||
std::unique_ptr< ScriptDocument > pDocument;
|
||||
|
||||
SFX_REQUEST_ARG( rReq, pDocumentItem, SfxStringItem, SID_BASICIDE_ARG_DOCUMENT, false );
|
||||
if ( pDocumentItem )
|
||||
@@ -906,7 +906,7 @@ void Shell::GetState(SfxItemSet &rSet)
|
||||
else
|
||||
{
|
||||
OUString aItemStr;
|
||||
boost::shared_ptr<LocalizationMgr> pCurMgr(GetCurLocalizationMgr());
|
||||
std::shared_ptr<LocalizationMgr> pCurMgr(GetCurLocalizationMgr());
|
||||
if ( pCurMgr->isLibraryLocalized() )
|
||||
{
|
||||
Sequence< lang::Locale > aLocaleSeq = pCurMgr->getStringResourceManager()->getLocales();
|
||||
|
||||
@@ -950,7 +950,7 @@ void Shell::SetCurLibForLocalization( const ScriptDocument& rDocument, const OUS
|
||||
catch (const container::NoSuchElementException& )
|
||||
{}
|
||||
|
||||
m_pCurLocalizationMgr = boost::shared_ptr<LocalizationMgr>(new LocalizationMgr(this, rDocument, aLibName, xStringResourceManager));
|
||||
m_pCurLocalizationMgr = std::shared_ptr<LocalizationMgr>(new LocalizationMgr(this, rDocument, aLibName, xStringResourceManager));
|
||||
m_pCurLocalizationMgr->handleTranslationbar();
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ bool localesAreEqual( const Locale& rLocaleLeft, const Locale& rLocaleRight )
|
||||
return bRet;
|
||||
}
|
||||
|
||||
ManageLanguageDialog::ManageLanguageDialog(vcl::Window* pParent, boost::shared_ptr<LocalizationMgr> xLMgr)
|
||||
ManageLanguageDialog::ManageLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr)
|
||||
: ModalDialog(pParent, "ManageLanguagesDialog", "modules/BasicIDE/ui/managelanguages.ui")
|
||||
, m_xLocalizationMgr(xLMgr)
|
||||
, m_sDefLangStr(IDE_RESSTR(RID_STR_DEF_LANG))
|
||||
@@ -230,7 +230,7 @@ IMPL_LINK_NOARG(ManageLanguageDialog, SelectHdl)
|
||||
|
||||
// class SetDefaultLanguageDialog -----------------------------------------------
|
||||
|
||||
SetDefaultLanguageDialog::SetDefaultLanguageDialog(vcl::Window* pParent, boost::shared_ptr<LocalizationMgr> xLMgr)
|
||||
SetDefaultLanguageDialog::SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr)
|
||||
: ModalDialog(pParent, "DefaultLanguageDialog", "modules/BasicIDE/ui/defaultlanguage.ui")
|
||||
, m_pCheckLangLB(NULL)
|
||||
, m_xLocalizationMgr(xLMgr)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <svx/ifaceids.hxx>
|
||||
#include <vcl/scrbar.hxx>
|
||||
#include <map>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
class SfxViewFactory;
|
||||
class SdrView;
|
||||
@@ -69,7 +69,7 @@ private:
|
||||
VclPtr<BaseWindow> pCurWin;
|
||||
ScriptDocument m_aCurDocument;
|
||||
OUString m_aCurLibName;
|
||||
boost::shared_ptr<LocalizationMgr> m_pCurLocalizationMgr;
|
||||
std::shared_ptr<LocalizationMgr> m_pCurLocalizationMgr;
|
||||
|
||||
VclPtr<ScrollBar> aHScrollBar;
|
||||
VclPtr<ScrollBar> aVScrollBar;
|
||||
@@ -160,7 +160,7 @@ public:
|
||||
BaseWindow* GetCurWindow() const { return pCurWin; }
|
||||
ScriptDocument const& GetCurDocument() const { return m_aCurDocument; }
|
||||
OUString const& GetCurLibName() const { return m_aCurLibName; }
|
||||
boost::shared_ptr<LocalizationMgr> GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; }
|
||||
std::shared_ptr<LocalizationMgr> GetCurLocalizationMgr() const { return m_pCurLocalizationMgr; }
|
||||
|
||||
TabBar& GetTabBar() { return *pTabBar; }
|
||||
WindowTable& GetWindowTable() { return aWindowTable; }
|
||||
|
||||
@@ -57,7 +57,7 @@ private:
|
||||
VclPtr<PushButton> m_pDeletePB;
|
||||
VclPtr<PushButton> m_pMakeDefPB;
|
||||
|
||||
boost::shared_ptr<LocalizationMgr> m_xLocalizationMgr;
|
||||
std::shared_ptr<LocalizationMgr> m_xLocalizationMgr;
|
||||
|
||||
OUString m_sDefLangStr;
|
||||
OUString m_sCreateLangStr;
|
||||
@@ -72,7 +72,7 @@ private:
|
||||
DECL_LINK(SelectHdl, void *);
|
||||
|
||||
public:
|
||||
ManageLanguageDialog( vcl::Window* pParent, boost::shared_ptr<LocalizationMgr> _pLMgr );
|
||||
ManageLanguageDialog( vcl::Window* pParent, std::shared_ptr<LocalizationMgr> _pLMgr );
|
||||
virtual ~ManageLanguageDialog();
|
||||
virtual void dispose() SAL_OVERRIDE;
|
||||
};
|
||||
@@ -87,12 +87,12 @@ private:
|
||||
VclPtr<FixedText> m_pDefinedFT;
|
||||
VclPtr<FixedText> m_pAddedFT;
|
||||
|
||||
boost::shared_ptr<LocalizationMgr> m_xLocalizationMgr;
|
||||
std::shared_ptr<LocalizationMgr> m_xLocalizationMgr;
|
||||
|
||||
void FillLanguageBox();
|
||||
|
||||
public:
|
||||
SetDefaultLanguageDialog(vcl::Window* pParent, boost::shared_ptr<LocalizationMgr> xLMgr);
|
||||
SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr);
|
||||
virtual ~SetDefaultLanguageDialog();
|
||||
virtual void dispose() SAL_OVERRIDE;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <com/sun/star/task/XStatusIndicator.hpp>
|
||||
#include <com/sun/star/io/XInputStreamProvider.hpp>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
class SfxListener;
|
||||
@@ -67,7 +67,7 @@ namespace basctl
|
||||
{
|
||||
private:
|
||||
class Impl;
|
||||
boost::shared_ptr<Impl> m_pImpl;
|
||||
std::shared_ptr<Impl> m_pImpl;
|
||||
|
||||
private:
|
||||
/** creates a ScriptDocument instance which operates on the application-wide
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
void registerComponentToBeDisposedForBasic( css::uno::Reference< css::lang::XComponent > xComponent, StarBASIC* pBasic );
|
||||
|
||||
@@ -110,7 +109,7 @@ class SbUnoObject: public SbxObject
|
||||
bool bNeedIntrospection;
|
||||
bool bNativeCOMObject;
|
||||
css::uno::Any maTmpUnoObj; // Only to save obj for doIntrospection!
|
||||
::boost::shared_ptr< SbUnoStructRefObject > maStructInfo;
|
||||
std::shared_ptr< SbUnoStructRefObject > maStructInfo;
|
||||
// help method to establish the dbg_-properties
|
||||
void implCreateDbgProperties();
|
||||
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
|
||||
#include <com/sun/star/rendering/XCanvas.hpp>
|
||||
#include <com/sun/star/rendering/XIntegerBitmap.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <basegfx/vector/b2ivector.hxx>
|
||||
#include <basegfx/point/b2dpoint.hxx>
|
||||
#include <basegfx/range/b2drange.hxx>
|
||||
#include <memory>
|
||||
#include "dx_winstuff.hxx"
|
||||
#include "dx_ibitmap.hxx"
|
||||
#include "dx_graphicsprovider.hxx"
|
||||
@@ -79,7 +79,7 @@ namespace dxcanvas
|
||||
bool mbAlpha;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< DXBitmap > DXBitmapSharedPtr;
|
||||
typedef std::shared_ptr< DXBitmap > DXBitmapSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_BITMAPPROVIDER_HXX
|
||||
|
||||
#include "dx_ibitmap.hxx"
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace dxcanvas
|
||||
{
|
||||
@@ -31,7 +31,7 @@ namespace dxcanvas
|
||||
virtual IBitmapSharedPtr getBitmap() const = 0;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<BitmapProvider> BitmapProviderSharedPtr;
|
||||
typedef std::shared_ptr<BitmapProvider> BitmapProviderSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
#include <com/sun/star/rendering/XBitmapCanvas.hpp>
|
||||
#include <com/sun/star/rendering/XIntegerBitmap.hpp>
|
||||
#include <com/sun/star/beans/XFastPropertySet.hpp>
|
||||
|
||||
#include <basegfx/vector/b2isize.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <cppuhelper/compbase.hxx>
|
||||
#include <comphelper/uno3.hxx>
|
||||
#include <canvas/base/basemutexhelper.hxx>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <rtl/ref.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
#include "dx_winstuff.hxx"
|
||||
@@ -40,8 +40,8 @@
|
||||
|
||||
namespace dxcanvas
|
||||
{
|
||||
typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::FontFamily > FontFamilySharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::Font > FontSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::FontFamily > FontFamilySharedPtr;
|
||||
|
||||
typedef ::cppu::WeakComponentImplHelper< css::rendering::XCanvasFont,
|
||||
css::lang::XServiceInfo > CanvasFont_Base;
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
|
||||
#include <basegfx/matrix/b2dhommatrix.hxx>
|
||||
@@ -50,7 +49,7 @@ namespace dxcanvas
|
||||
{
|
||||
namespace
|
||||
{
|
||||
typedef ::boost::shared_ptr< Gdiplus::PathGradientBrush > PathGradientBrushSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::PathGradientBrush > PathGradientBrushSharedPtr;
|
||||
|
||||
bool fillLinearGradient( GraphicsSharedPtr& rGraphics,
|
||||
const ::canvas::ParametricPolyPolygon::Values& /*rValues*/,
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_GDIPLUSUSER_HXX
|
||||
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
/* Definition of GDIPlusUser class */
|
||||
|
||||
@@ -31,7 +30,7 @@ namespace dxcanvas
|
||||
class GDIPlusUser
|
||||
{
|
||||
public:
|
||||
typedef ::boost::shared_ptr< GDIPlusUser > GDIPlusUserSharedPtr;
|
||||
typedef std::shared_ptr< GDIPlusUser > GDIPlusUserSharedPtr;
|
||||
|
||||
static GDIPlusUserSharedPtr createInstance();
|
||||
~GDIPlusUser();
|
||||
|
||||
@@ -21,9 +21,8 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_GRAPHICSPROVIDER_HXX
|
||||
|
||||
#include "dx_winstuff.hxx"
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace Gdiplus{ class Graphics; }
|
||||
|
||||
@@ -39,7 +38,7 @@ namespace dxcanvas
|
||||
virtual GraphicsSharedPtr getGraphics() = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< GraphicsProvider > GraphicsProviderSharedPtr;
|
||||
typedef std::shared_ptr< GraphicsProvider > GraphicsProviderSharedPtr;
|
||||
}
|
||||
|
||||
#endif // INCLUDED_CANVAS_SOURCE_DIRECTX_DX_GRAPHICSPROVIDER_HXX
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
|
||||
#include <com/sun/star/rendering/XCanvas.hpp>
|
||||
#include <com/sun/star/rendering/XIntegerBitmap.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <basegfx/vector/b2ivector.hxx>
|
||||
#include <basegfx/point/b2dpoint.hxx>
|
||||
#include <basegfx/range/b2drange.hxx>
|
||||
#include <memory>
|
||||
#include "dx_graphicsprovider.hxx"
|
||||
|
||||
namespace dxcanvas
|
||||
@@ -56,7 +56,7 @@ namespace dxcanvas
|
||||
const css::geometry::IntegerPoint2D& pos ) = 0;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<IBitmap> IBitmapSharedPtr;
|
||||
typedef std::shared_ptr<IBitmap> IBitmapSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <basegfx/polygon/b2dpolypolygon.hxx>
|
||||
#include <basegfx/numeric/ftools.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include "dx_canvasfont.hxx"
|
||||
|
||||
namespace basegfx
|
||||
@@ -106,11 +106,11 @@ namespace dxcanvas
|
||||
|
||||
bool drawGdiPlusBitmap( const GraphicsSharedPtr& rGraphics,
|
||||
const BitmapSharedPtr& rBitmap );
|
||||
bool drawDIBits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawDIBits( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const BITMAPINFO& rBI,
|
||||
const void* pBits );
|
||||
|
||||
bool drawRGBABits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawRGBABits( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const RawRGBABitmap& rRawRGBAData );
|
||||
|
||||
BitmapSharedPtr bitmapFromXBitmap( const css::uno::Reference< css::rendering::XBitmap >& xBitmap );
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <basegfx/vector/b2ivector.hxx>
|
||||
#include <basegfx/range/b2irectangle.hxx>
|
||||
#include <canvas/rendering/irendermodule.hxx>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include "dx_winstuff.hxx"
|
||||
|
||||
namespace vcl { class Window; }
|
||||
@@ -69,7 +69,7 @@ namespace dxcanvas
|
||||
virtual HWND getHWND() const = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr;
|
||||
typedef std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr;
|
||||
|
||||
|
||||
/** Factory method, to create an IRenderModule instance for the
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace dxcanvas
|
||||
bool mbAlpha;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< DXSurfaceBitmap > DXSurfaceBitmapSharedPtr;
|
||||
typedef std::shared_ptr< DXSurfaceBitmap > DXSurfaceBitmapSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef INCLUDED_CANVAS_SOURCE_DIRECTX_DX_TEXTLAYOUT_DRAWHELPER_HXX
|
||||
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_TEXTLAYOUT_DRAWHELPER_HXX
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
#include <com/sun/star/rendering/StringContext.hpp>
|
||||
@@ -46,7 +46,7 @@ namespace dxcanvas
|
||||
~TextLayoutDrawHelper();
|
||||
|
||||
// draw text
|
||||
void drawText( const boost::shared_ptr<Gdiplus::Graphics>& rGraphics,
|
||||
void drawText( const std::shared_ptr<Gdiplus::Graphics>& rGraphics,
|
||||
const css::rendering::ViewState& rViewState,
|
||||
const css::rendering::RenderState& rRenderState,
|
||||
const ::basegfx::B2ISize& rOutputOffset,
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace dxcanvas
|
||||
}
|
||||
|
||||
/// Draw DI bits to given Graphics
|
||||
bool drawDIBits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawDIBits( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const void* hDIB )
|
||||
{
|
||||
bool bRet( false );
|
||||
@@ -94,7 +94,7 @@ namespace dxcanvas
|
||||
Reference to bitmap. Might get modified, in such a way
|
||||
that it will hold a DIB after a successful function call.
|
||||
*/
|
||||
bool drawVCLBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawVCLBitmap( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
::Bitmap& rBmp )
|
||||
{
|
||||
BitmapSystemData aBmpSysData;
|
||||
@@ -467,7 +467,7 @@ namespace dxcanvas
|
||||
return aBmpData;
|
||||
}
|
||||
|
||||
bool drawVCLBitmapEx( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawVCLBitmapEx( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const ::BitmapEx& rBmpEx )
|
||||
{
|
||||
if( !rBmpEx.IsTransparent() )
|
||||
@@ -483,7 +483,7 @@ namespace dxcanvas
|
||||
}
|
||||
}
|
||||
|
||||
bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawVCLBitmapFromXBitmap( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const uno::Reference< rendering::XBitmap >& xBitmap )
|
||||
{
|
||||
// TODO(F2): add support for floating point bitmap formats
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <com/sun/star/util/TriState.hpp>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace Gdiplus { class Graphics; }
|
||||
|
||||
@@ -39,10 +37,10 @@ namespace dxcanvas
|
||||
{
|
||||
sal_Int32 mnWidth;
|
||||
sal_Int32 mnHeight;
|
||||
::boost::shared_ptr< sal_uInt8 > mpBitmapData;
|
||||
std::shared_ptr< sal_uInt8 > mpBitmapData;
|
||||
};
|
||||
|
||||
bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
bool drawVCLBitmapFromXBitmap( const std::shared_ptr< Gdiplus::Graphics >& rGraphics,
|
||||
const css::uno::Reference<
|
||||
css::rendering::XBitmap >& xBitmap );
|
||||
}
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_WINSTUFF_HXX
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
#include <basegfx/numeric/ftools.hxx>
|
||||
|
||||
@@ -72,13 +71,13 @@ typedef IDirect3DSurface9 surface_type;
|
||||
namespace dxcanvas
|
||||
{
|
||||
// some shared pointer typedefs to Gdiplus objects
|
||||
typedef ::boost::shared_ptr< Gdiplus::Graphics > GraphicsSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::GraphicsPath > GraphicsPathSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::Bitmap > BitmapSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::CachedBitmap > CachedBitmapSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::Brush > BrushSharedPtr;
|
||||
typedef ::boost::shared_ptr< Gdiplus::TextureBrush > TextureBrushSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::Graphics > GraphicsSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::GraphicsPath > GraphicsPathSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::Bitmap > BitmapSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::CachedBitmap > CachedBitmapSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::Font > FontSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::Brush > BrushSharedPtr;
|
||||
typedef std::shared_ptr< Gdiplus::TextureBrush > TextureBrushSharedPtr;
|
||||
|
||||
/** COM object RAII wrapper
|
||||
|
||||
|
||||
@@ -15,14 +15,8 @@
|
||||
|
||||
#include <basegfx/vector/b2isize.hxx>
|
||||
#include <basegfx/vector/b2dsize.hxx>
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <vector>
|
||||
|
||||
#include "ogl_canvashelper.hxx"
|
||||
|
||||
|
||||
namespace oglcanvas
|
||||
{
|
||||
/** Helper class for basic canvas functionality. */
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#include <GL/glew.h>
|
||||
|
||||
#include <sal/config.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace oglcanvas
|
||||
{
|
||||
@@ -31,7 +30,7 @@ namespace oglcanvas
|
||||
virtual GLuint getTextureId() = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr<IBufferContext> IBufferContextSharedPtr;
|
||||
typedef std::shared_ptr<IBufferContext> IBufferContextSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include <canvas/base/basemutexhelper.hxx>
|
||||
#include <basegfx/vector/b2isize.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "ogl_bitmapcanvashelper.hxx"
|
||||
#include "ogl_spritecanvas.hxx"
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
#include <rtl/ref.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include <canvas/elapsedtime.hxx>
|
||||
#include <com/sun/star/rendering/XGraphicDevice.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "ogl_buffercontext.hxx"
|
||||
|
||||
@@ -131,7 +130,7 @@ namespace oglcanvas
|
||||
/// For the frame counter timings
|
||||
::canvas::tools::ElapsedTime maLastUpdate;
|
||||
|
||||
boost::shared_ptr<TextureCache> mpTextureCache;
|
||||
std::shared_ptr<TextureCache> mpTextureCache;
|
||||
|
||||
unsigned int mnLinearTwoColorGradientProgram;
|
||||
unsigned int mnLinearMultiColorGradientProgram;
|
||||
|
||||
@@ -123,7 +123,7 @@ ElapsedTime::ElapsedTime()
|
||||
}
|
||||
|
||||
ElapsedTime::ElapsedTime(
|
||||
boost::shared_ptr<ElapsedTime> const & pTimeBase )
|
||||
std::shared_ptr<ElapsedTime> const & pTimeBase )
|
||||
: m_pTimeBase( pTimeBase ),
|
||||
m_fLastQueriedTime( 0.0 ),
|
||||
m_fStartTime( getCurrentTime() ),
|
||||
|
||||
@@ -27,15 +27,15 @@
|
||||
#include <canvas/rendering/isurface.hxx>
|
||||
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include "surfacerect.hxx"
|
||||
|
||||
namespace canvas
|
||||
{
|
||||
class PageFragment;
|
||||
|
||||
typedef ::boost::shared_ptr< PageFragment > FragmentSharedPtr;
|
||||
typedef std::shared_ptr< PageFragment > FragmentSharedPtr;
|
||||
|
||||
/** One page of IRenderModule-provided texture space
|
||||
*/
|
||||
@@ -62,7 +62,7 @@ namespace canvas
|
||||
bool isValidLocation( const SurfaceRect& r ) const;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< Page > PageSharedPtr;
|
||||
typedef std::shared_ptr< Page > PageSharedPtr;
|
||||
|
||||
|
||||
/** A part of a page, which gets allocated to a surface
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace canvas
|
||||
// PageManagerSharedPtr
|
||||
|
||||
|
||||
typedef ::boost::shared_ptr< PageManager > PageManagerSharedPtr;
|
||||
typedef std::shared_ptr< PageManager > PageManagerSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace canvas
|
||||
const ::basegfx::B2ISize& rSize ) const;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< Surface > SurfaceSharedPtr;
|
||||
typedef std::shared_ptr< Surface > SurfaceSharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace canvas
|
||||
canvas::IColorBufferSharedPtr mpBuffer;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< SurfaceProxy > SurfaceProxySharedPtr;
|
||||
typedef std::shared_ptr< SurfaceProxy > SurfaceProxySharedPtr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
#include <canvas/vclwrapper.hxx>
|
||||
#include "outdevprovider.hxx"
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace vclcanvas
|
||||
{
|
||||
@@ -54,7 +53,7 @@ namespace vclcanvas
|
||||
VclPtr< VirtualDevice > maVDev;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< BackBuffer > BackBufferSharedPtr;
|
||||
typedef std::shared_ptr< BackBuffer > BackBufferSharedPtr;
|
||||
}
|
||||
|
||||
#endif // INCLUDED_CANVAS_SOURCE_VCL_BACKBUFFER_HXX
|
||||
|
||||
@@ -26,8 +26,7 @@
|
||||
#include <canvas/vclwrapper.hxx>
|
||||
#include "outdevprovider.hxx"
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace vclcanvas
|
||||
{
|
||||
@@ -88,7 +87,7 @@ namespace vclcanvas
|
||||
mutable bool mbVDevContentIsCurrent;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< BitmapBackBuffer > BitmapBackBufferSharedPtr;
|
||||
typedef std::shared_ptr< BitmapBackBuffer > BitmapBackBufferSharedPtr;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -21,17 +21,15 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_VCL_CACHEDBITMAP_HXX
|
||||
|
||||
#include <canvas/base/cachedprimitivebase.hxx>
|
||||
|
||||
#include <svtools/grfmgr.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
|
||||
/* Definition of CachedBitmap class */
|
||||
|
||||
namespace vclcanvas
|
||||
{
|
||||
typedef ::boost::shared_ptr< GraphicObject > GraphicObjectSharedPtr;
|
||||
typedef std::shared_ptr< GraphicObject > GraphicObjectSharedPtr;
|
||||
|
||||
class CachedBitmap : public ::canvas::CachedPrimitiveBase
|
||||
{
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#define INCLUDED_CANVAS_SOURCE_VCL_OUTDEVPROVIDER_HXX
|
||||
|
||||
#include <sal/types.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class OutputDevice;
|
||||
|
||||
@@ -47,7 +46,7 @@ namespace vclcanvas
|
||||
virtual const OutputDevice& getOutDev() const = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< OutDevProvider > OutDevProviderSharedPtr;
|
||||
typedef std::shared_ptr< OutDevProvider > OutDevProviderSharedPtr;
|
||||
}
|
||||
|
||||
#endif // INCLUDED_CANVAS_SOURCE_VCL_OUTDEVPROVIDER_HXX
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <boost/current_function.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <memory>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cassert>
|
||||
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
||||
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
#include <comphelper/threadpool.hxx>
|
||||
|
||||
#include <rtl/instance.hxx>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <thread>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <thread>
|
||||
|
||||
namespace comphelper {
|
||||
|
||||
@@ -111,12 +111,12 @@ ThreadPool::~ThreadPool()
|
||||
waitAndCleanupWorkers();
|
||||
}
|
||||
|
||||
struct ThreadPoolStatic : public rtl::StaticWithInit< boost::shared_ptr< ThreadPool >,
|
||||
struct ThreadPoolStatic : public rtl::StaticWithInit< std::shared_ptr< ThreadPool >,
|
||||
ThreadPoolStatic >
|
||||
{
|
||||
boost::shared_ptr< ThreadPool > operator () () {
|
||||
std::shared_ptr< ThreadPool > operator () () {
|
||||
sal_Int32 nThreads = std::max( std::thread::hardware_concurrency(), 1U );
|
||||
return boost::shared_ptr< ThreadPool >( new ThreadPool( nThreads ) );
|
||||
return std::shared_ptr< ThreadPool >( new ThreadPool( nThreads ) );
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#define INCLUDED_CPPCANVAS_SOURCE_INC_ACTION_HXX
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace basegfx
|
||||
{
|
||||
@@ -146,7 +145,7 @@ namespace cppcanvas
|
||||
virtual sal_Int32 getActionCount() const = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< Action > ActionSharedPtr;
|
||||
typedef std::shared_ptr< Action > ActionSharedPtr;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
#define INCLUDED_CPPCANVAS_SOURCE_INC_IMPLRENDERER_HXX
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cppcanvas/renderer.hxx>
|
||||
#include <cppcanvas/canvas.hxx>
|
||||
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
|
||||
#include <com/sun/star/rendering/XBitmapCanvas.hpp>
|
||||
#include <com/sun/star/rendering/XBitmap.hpp>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <basegfx/vector/b2dsize.hxx>
|
||||
#include <cppcanvas/bitmapcanvas.hxx>
|
||||
|
||||
|
||||
@@ -21,13 +21,9 @@
|
||||
#define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLCOLOR_HXX
|
||||
|
||||
#include <com/sun/star/uno/Sequence.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <com/sun/star/rendering/XGraphicDevice.hpp>
|
||||
#include <cppcanvas/color.hxx>
|
||||
|
||||
|
||||
/* Definition of Color class */
|
||||
|
||||
namespace cppcanvas
|
||||
|
||||
@@ -21,15 +21,11 @@
|
||||
#define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLCUSTOMSPRITE_HXX
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cppcanvas/canvas.hxx>
|
||||
#include <cppcanvas/customsprite.hxx>
|
||||
|
||||
#include <implsprite.hxx>
|
||||
#include <implspritecanvas.hxx>
|
||||
|
||||
|
||||
namespace cppcanvas
|
||||
{
|
||||
namespace internal
|
||||
|
||||
@@ -21,13 +21,9 @@
|
||||
#define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLFONT_HXX
|
||||
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <com/sun/star/rendering/XCanvas.hpp>
|
||||
#include <cppcanvas/font.hxx>
|
||||
|
||||
|
||||
namespace com { namespace sun { namespace star { namespace rendering
|
||||
{
|
||||
class XCanvasFont;
|
||||
|
||||
@@ -23,13 +23,9 @@
|
||||
#include <com/sun/star/uno/Reference.hxx>
|
||||
#include <com/sun/star/rendering/XSpriteCanvas.hpp>
|
||||
#include <com/sun/star/rendering/XSprite.hpp>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cppcanvas/sprite.hxx>
|
||||
|
||||
#include <implspritecanvas.hxx>
|
||||
|
||||
|
||||
namespace cppcanvas
|
||||
{
|
||||
namespace internal
|
||||
|
||||
@@ -23,15 +23,9 @@
|
||||
#include <com/sun/star/rendering/XSpriteCanvas.hpp>
|
||||
#include <basegfx/vector/b2dsize.hxx>
|
||||
#include <basegfx/matrix/b2dhommatrix.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
|
||||
#include <cppcanvas/spritecanvas.hxx>
|
||||
|
||||
#include <implcanvas.hxx>
|
||||
|
||||
|
||||
namespace cppcanvas
|
||||
{
|
||||
namespace internal
|
||||
@@ -76,7 +70,7 @@ namespace cppcanvas
|
||||
::basegfx::B2DHomMatrix maTransformation;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< TransformationArbiter > TransformationArbiterSharedPtr;
|
||||
typedef std::shared_ptr< TransformationArbiter > TransformationArbiterSharedPtr;
|
||||
|
||||
private:
|
||||
ImplSpriteCanvas& operator=( const ImplSpriteCanvas& ) SAL_DELETED_FUNCTION;
|
||||
|
||||
@@ -21,13 +21,12 @@
|
||||
#define INCLUDED_CPPU_SOURCE_THREADPOOL_JOBQUEUE_HXX
|
||||
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <sal/types.h>
|
||||
|
||||
#include <osl/conditn.hxx>
|
||||
#include <osl/mutex.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace cppu_threadpool
|
||||
{
|
||||
extern "C" typedef void (SAL_CALL RequestFun)(void *);
|
||||
@@ -43,7 +42,7 @@ namespace cppu_threadpool
|
||||
typedef ::std::list < sal_Int64 > CallStackList;
|
||||
|
||||
class DisposedCallerAdmin;
|
||||
typedef boost::shared_ptr<DisposedCallerAdmin> DisposedCallerAdminHolder;
|
||||
typedef std::shared_ptr<DisposedCallerAdmin> DisposedCallerAdminHolder;
|
||||
|
||||
class JobQueue
|
||||
{
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <osl/diagnose.h>
|
||||
#include <uno/threadpool.h>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "sal/config.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include <unordered_map>
|
||||
|
||||
#include <osl/diagnose.h>
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
#include <rtl/ref.hxx>
|
||||
#include <salhelper/simplereferenceobject.hxx>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "jobqueue.hxx"
|
||||
|
||||
|
||||
@@ -80,7 +78,7 @@ namespace cppu_threadpool {
|
||||
typedef ::std::list < struct ::cppu_threadpool::WaitingThread * > WaitingThreadList;
|
||||
|
||||
class DisposedCallerAdmin;
|
||||
typedef boost::shared_ptr<DisposedCallerAdmin> DisposedCallerAdminHolder;
|
||||
typedef std::shared_ptr<DisposedCallerAdmin> DisposedCallerAdminHolder;
|
||||
|
||||
class DisposedCallerAdmin
|
||||
{
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
#include <algorithm>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <memory>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/weak_ptr.hpp>
|
||||
#include <cassert>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <com/sun/star/beans/Property.hpp>
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/weak_ptr.hpp>
|
||||
#include <com/sun/star/beans/NamedValue.hpp>
|
||||
#include <com/sun/star/beans/PropertyAttribute.hpp>
|
||||
#include <com/sun/star/container/ElementExistException.hpp>
|
||||
@@ -67,7 +65,7 @@ void insertImplementationMap(
|
||||
i != source.end(); ++i)
|
||||
{
|
||||
std::vector<
|
||||
boost::shared_ptr<
|
||||
std::shared_ptr<
|
||||
cppuhelper::ServiceManager::Data::Implementation > > & impls
|
||||
= (*destination)[i->first];
|
||||
impls.insert(impls.end(), i->second.begin(), i->second.end());
|
||||
@@ -77,7 +75,7 @@ void insertImplementationMap(
|
||||
void removeFromImplementationMap(
|
||||
cppuhelper::ServiceManager::Data::ImplementationMap * map,
|
||||
std::vector< rtl::OUString > const & elements,
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
const & implementation)
|
||||
{
|
||||
// The underlying data structures make this function somewhat inefficient,
|
||||
@@ -90,7 +88,7 @@ void removeFromImplementationMap(
|
||||
map->find(*i));
|
||||
assert(j != map->end());
|
||||
std::vector<
|
||||
boost::shared_ptr<
|
||||
std::shared_ptr<
|
||||
cppuhelper::ServiceManager::Data::Implementation > >::iterator
|
||||
k(std::find(j->second.begin(), j->second.end(), implementation));
|
||||
assert(k != j->second.end());
|
||||
@@ -129,7 +127,7 @@ private:
|
||||
rtl::OUString attrUri_;
|
||||
rtl::OUString attrEnvironment_;
|
||||
rtl::OUString attrPrefix_;
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
implementation_;
|
||||
};
|
||||
|
||||
@@ -495,7 +493,7 @@ class SingletonFactory:
|
||||
public:
|
||||
SingletonFactory(
|
||||
rtl::Reference< cppuhelper::ServiceManager > const & manager,
|
||||
boost::shared_ptr<
|
||||
std::shared_ptr<
|
||||
cppuhelper::ServiceManager::Data::Implementation > const &
|
||||
implementation):
|
||||
manager_(manager), implementation_(implementation)
|
||||
@@ -516,7 +514,7 @@ private:
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
rtl::Reference< cppuhelper::ServiceManager > manager_;
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
implementation_;
|
||||
};
|
||||
|
||||
@@ -549,7 +547,7 @@ class ImplementationWrapper:
|
||||
public:
|
||||
ImplementationWrapper(
|
||||
rtl::Reference< cppuhelper::ServiceManager > const & manager,
|
||||
boost::shared_ptr<
|
||||
std::shared_ptr<
|
||||
cppuhelper::ServiceManager::Data::Implementation > const &
|
||||
implementation):
|
||||
manager_(manager), implementation_(implementation)
|
||||
@@ -587,7 +585,7 @@ private:
|
||||
getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
||||
|
||||
rtl::Reference< cppuhelper::ServiceManager > manager_;
|
||||
boost::weak_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
std::weak_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
implementation_;
|
||||
};
|
||||
|
||||
@@ -596,7 +594,7 @@ ImplementationWrapper::createInstanceWithContext(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & Context)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
assert(impl);
|
||||
manager_->loadImplementation(Context, impl);
|
||||
return impl->createInstance(Context, false);
|
||||
@@ -608,7 +606,7 @@ ImplementationWrapper::createInstanceWithArgumentsAndContext(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & Context)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
assert(impl);
|
||||
manager_->loadImplementation(Context, impl);
|
||||
return impl->createInstanceWithArguments(
|
||||
@@ -634,7 +632,7 @@ ImplementationWrapper::createInstanceWithArguments(
|
||||
rtl::OUString ImplementationWrapper::getImplementationName()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
assert(impl);
|
||||
return impl->info->name;
|
||||
}
|
||||
@@ -649,7 +647,7 @@ css::uno::Sequence< rtl::OUString >
|
||||
ImplementationWrapper::getSupportedServiceNames()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation > impl = implementation_.lock();
|
||||
assert(impl);
|
||||
if (impl->info->services.size()
|
||||
> static_cast< sal_uInt32 >(SAL_MAX_INT32))
|
||||
@@ -773,7 +771,7 @@ void cppuhelper::ServiceManager::addSingletonContextEntries(
|
||||
|
||||
void cppuhelper::ServiceManager::loadImplementation(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context,
|
||||
boost::shared_ptr< Data::Implementation > & implementation)
|
||||
std::shared_ptr< Data::Implementation > & implementation)
|
||||
{
|
||||
assert(implementation.get() != 0);
|
||||
{
|
||||
@@ -1014,7 +1012,7 @@ cppuhelper::ServiceManager::createInstanceWithContext(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & Context)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< Data::Implementation > impl(
|
||||
std::shared_ptr< Data::Implementation > impl(
|
||||
findServiceImplementation(Context, aServiceSpecifier));
|
||||
return impl.get() == 0
|
||||
? css::uno::Reference< css::uno::XInterface >()
|
||||
@@ -1028,7 +1026,7 @@ cppuhelper::ServiceManager::createInstanceWithArgumentsAndContext(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & Context)
|
||||
throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
boost::shared_ptr< Data::Implementation > impl(
|
||||
std::shared_ptr< Data::Implementation > impl(
|
||||
findServiceImplementation(Context, ServiceSpecifier));
|
||||
return impl.get() == 0
|
||||
? css::uno::Reference< css::uno::XInterface >()
|
||||
@@ -1183,7 +1181,7 @@ cppuhelper::ServiceManager::createContentEnumeration(
|
||||
rtl::OUString const & aServiceName)
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
std::vector< boost::shared_ptr< Data::Implementation > > impls;
|
||||
std::vector< std::shared_ptr< Data::Implementation > > impls;
|
||||
{
|
||||
osl::MutexGuard g(rBHelper.rMutex);
|
||||
Data::ImplementationMap::const_iterator i(
|
||||
@@ -1194,7 +1192,7 @@ cppuhelper::ServiceManager::createContentEnumeration(
|
||||
}
|
||||
std::vector< css::uno::Any > factories;
|
||||
for (std::vector<
|
||||
boost::shared_ptr< Data::Implementation > >::const_iterator i(
|
||||
std::shared_ptr< Data::Implementation > >::const_iterator i(
|
||||
impls.begin());
|
||||
i != impls.end(); ++i)
|
||||
{
|
||||
@@ -1496,7 +1494,7 @@ bool cppuhelper::ServiceManager::readLegacyRdbFile(rtl::OUString const & uri) {
|
||||
assert(implKey.getName().match("/IMPLEMENTATIONS/"));
|
||||
rtl::OUString name(
|
||||
implKey.getName().copy(RTL_CONSTASCII_LENGTH("/IMPLEMENTATIONS/")));
|
||||
boost::shared_ptr< Data::Implementation > impl(
|
||||
std::shared_ptr< Data::Implementation > impl(
|
||||
new Data::Implementation(
|
||||
name, readLegacyRdbString(uri, implKey, "UNO/ACTIVATOR"),
|
||||
readLegacyRdbString(uri, implKey, "UNO/LOCATION"), "", "", "",
|
||||
@@ -1633,7 +1631,7 @@ void cppuhelper::ServiceManager::insertLegacyFactory(
|
||||
}
|
||||
css::uno::Reference< css::lang::XComponent > comp(
|
||||
factoryInfo, css::uno::UNO_QUERY);
|
||||
boost::shared_ptr< Data::Implementation > impl(
|
||||
std::shared_ptr< Data::Implementation > impl(
|
||||
new Data::Implementation(name, f1, f2, comp));
|
||||
Data extra;
|
||||
if (!name.isEmpty()) {
|
||||
@@ -1739,7 +1737,7 @@ void cppuhelper::ServiceManager::removeRdbFiles(
|
||||
// The underlying data structures make this function somewhat inefficient,
|
||||
// but the assumption is that it is rarely called (and that if it is called,
|
||||
// it is called with a uris vector of size one):
|
||||
std::vector< boost::shared_ptr< Data::Implementation > > clear;
|
||||
std::vector< std::shared_ptr< Data::Implementation > > clear;
|
||||
{
|
||||
osl::MutexGuard g(rBHelper.rMutex);
|
||||
for (std::vector< rtl::OUString >::const_iterator i(uris.begin());
|
||||
@@ -1774,7 +1772,7 @@ bool cppuhelper::ServiceManager::removeLegacyFactory(
|
||||
bool removeListener)
|
||||
{
|
||||
assert(factoryInfo.is());
|
||||
boost::shared_ptr< Data::Implementation > clear;
|
||||
std::shared_ptr< Data::Implementation > clear;
|
||||
css::uno::Reference< css::lang::XComponent > comp;
|
||||
{
|
||||
osl::MutexGuard g(rBHelper.rMutex);
|
||||
@@ -1807,7 +1805,7 @@ bool cppuhelper::ServiceManager::removeLegacyFactory(
|
||||
void cppuhelper::ServiceManager::removeImplementation(const rtl::OUString & name) {
|
||||
// The underlying data structures make this function somewhat inefficient,
|
||||
// but the assumption is that it is rarely called:
|
||||
boost::shared_ptr< Data::Implementation > clear;
|
||||
std::shared_ptr< Data::Implementation > clear;
|
||||
{
|
||||
osl::MutexGuard g(rBHelper.rMutex);
|
||||
if (isDisposed()) {
|
||||
@@ -1840,12 +1838,12 @@ void cppuhelper::ServiceManager::removeImplementation(const rtl::OUString & name
|
||||
}
|
||||
}
|
||||
|
||||
boost::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
std::shared_ptr< cppuhelper::ServiceManager::Data::Implementation >
|
||||
cppuhelper::ServiceManager::findServiceImplementation(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context,
|
||||
rtl::OUString const & specifier)
|
||||
{
|
||||
boost::shared_ptr< Data::Implementation > impl;
|
||||
std::shared_ptr< Data::Implementation > impl;
|
||||
bool loaded;
|
||||
{
|
||||
osl::MutexGuard g(rBHelper.rMutex);
|
||||
@@ -1856,7 +1854,7 @@ cppuhelper::ServiceManager::findServiceImplementation(
|
||||
data_.namedImplementations.find(specifier));
|
||||
if (j == data_.namedImplementations.end()) {
|
||||
SAL_INFO("cppuhelper", "No implementation for " << specifier);
|
||||
return boost::shared_ptr< Data::Implementation >();
|
||||
return std::shared_ptr< Data::Implementation >();
|
||||
}
|
||||
impl = j->second;
|
||||
} else {
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#include <com/sun/star/beans/XPropertySetInfo.hpp>
|
||||
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
|
||||
@@ -138,7 +138,7 @@ public:
|
||||
|
||||
enum Status { STATUS_NEW, STATUS_WRAPPER, STATUS_LOADED };
|
||||
|
||||
boost::shared_ptr< ImplementationInfo > info;
|
||||
std::shared_ptr< ImplementationInfo > info;
|
||||
ImplementationConstructorFn * constructor;
|
||||
css::uno::Reference< css::lang::XSingleComponentFactory > factory1;
|
||||
css::uno::Reference< css::lang::XSingleServiceFactory > factory2;
|
||||
@@ -155,19 +155,19 @@ public:
|
||||
css::uno::Reference<css::uno::XInterface> const & instance);
|
||||
};
|
||||
|
||||
typedef std::map< rtl::OUString, boost::shared_ptr< Implementation > >
|
||||
typedef std::map< rtl::OUString, std::shared_ptr< Implementation > >
|
||||
NamedImplementations;
|
||||
|
||||
typedef
|
||||
std::map<
|
||||
css::uno::Reference< css::lang::XServiceInfo >,
|
||||
boost::shared_ptr< Implementation > >
|
||||
std::shared_ptr< Implementation > >
|
||||
DynamicImplementations;
|
||||
|
||||
typedef
|
||||
std::map<
|
||||
rtl::OUString,
|
||||
std::vector< boost::shared_ptr< Implementation > > >
|
||||
std::vector< std::shared_ptr< Implementation > > >
|
||||
ImplementationMap;
|
||||
|
||||
NamedImplementations namedImplementations;
|
||||
@@ -201,7 +201,7 @@ public:
|
||||
|
||||
void loadImplementation(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context,
|
||||
boost::shared_ptr< Data::Implementation > & implementation);
|
||||
std::shared_ptr< Data::Implementation > & implementation);
|
||||
|
||||
private:
|
||||
virtual ~ServiceManager() {}
|
||||
@@ -371,7 +371,7 @@ private:
|
||||
|
||||
void removeImplementation(const rtl::OUString & name);
|
||||
|
||||
boost::shared_ptr< Data::Implementation > findServiceImplementation(
|
||||
std::shared_ptr< Data::Implementation > findServiceImplementation(
|
||||
css::uno::Reference< css::uno::XComponentContext > const & context,
|
||||
rtl::OUString const & specifier);
|
||||
|
||||
|
||||
@@ -61,11 +61,7 @@
|
||||
#include <basic/sbx.hxx>
|
||||
#include <basic/sbxmeth.hxx>
|
||||
#include <bitset>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <boost/ref.hpp>
|
||||
#include <memory>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <com/sun/star/awt/ContainerWindowProvider.hpp>
|
||||
|
||||
@@ -96,7 +96,6 @@
|
||||
#include <com/sun/star/util/thePathSettings.hpp>
|
||||
|
||||
#include "dlgname.hxx"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#define PRTSTR(x) OUStringToOString(x, RTL_TEXTENCODING_ASCII_US).pData->buffer
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace ::com::sun::star::uno;
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
#include <svtools/langtab.hxx>
|
||||
#include <comphelper/anytostring.hxx>
|
||||
#include <cppuhelper/exc_hlp.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace ::com::sun::star::uno;
|
||||
@@ -1469,7 +1468,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
|
||||
//text has been added on the right and only the 'error attribute has to be corrected
|
||||
if(pErrorAttrLeft)
|
||||
{
|
||||
boost::scoped_ptr<TextAttrib> pNewError(pErrorAttrLeft->GetAttr().Clone());
|
||||
std::unique_ptr<TextAttrib> pNewError(pErrorAttrLeft->GetAttr().Clone());
|
||||
const sal_Int32 nStart = pErrorAttrLeft->GetStart();
|
||||
sal_Int32 nEnd = pErrorAttrLeft->GetEnd();
|
||||
pTextEngine->RemoveAttrib( 0, *pErrorAttrLeft );
|
||||
@@ -1488,7 +1487,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
|
||||
//determine the change
|
||||
sal_Int32 nAddedChars = GetText().getLength() - nCurrentLen;
|
||||
|
||||
boost::scoped_ptr<TextAttrib> pNewError(pErrorAttr->GetAttr().Clone());
|
||||
std::unique_ptr<TextAttrib> pNewError(pErrorAttr->GetAttr().Clone());
|
||||
sal_Int32 nStart = pErrorAttr->GetStart();
|
||||
sal_Int32 nEnd = pErrorAttr->GetEnd();
|
||||
pTextEngine->RemoveAttrib( 0, *pErrorAttr );
|
||||
@@ -1504,7 +1503,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
|
||||
|
||||
if(pBackAttrLeft)
|
||||
{
|
||||
boost::scoped_ptr<TextAttrib> pNewBack(pBackAttrLeft->GetAttr().Clone());
|
||||
std::unique_ptr<TextAttrib> pNewBack(pBackAttrLeft->GetAttr().Clone());
|
||||
const sal_Int32 _nStart = pBackAttrLeft->GetStart();
|
||||
const sal_Int32 _nEnd = pBackAttrLeft->GetEnd();
|
||||
pTextEngine->RemoveAttrib( 0, *pBackAttrLeft );
|
||||
@@ -1530,7 +1529,7 @@ bool SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt )
|
||||
m_nErrorEnd = pFontColor->GetEnd();
|
||||
if(pErrorAttrib->GetStart() != m_nErrorStart || pErrorAttrib->GetEnd() != m_nErrorEnd)
|
||||
{
|
||||
boost::scoped_ptr<TextAttrib> pNewError(pErrorAttrib->GetAttr().Clone());
|
||||
std::unique_ptr<TextAttrib> pNewError(pErrorAttrib->GetAttr().Clone());
|
||||
pTextEngine->RemoveAttrib( 0, *pErrorAttr );
|
||||
SetAttrib( *pNewError, 0, m_nErrorStart, m_nErrorEnd );
|
||||
}
|
||||
@@ -1690,7 +1689,7 @@ void SentenceEditWindow_Impl::ChangeMarkedWord(const OUString& rNewWord, Languag
|
||||
// undo expanded attributes!
|
||||
if( pBackAttrib && pBackAttrib->GetStart() < m_nErrorStart && pBackAttrib->GetEnd() == m_nErrorEnd + nDiffLen)
|
||||
{
|
||||
boost::scoped_ptr<TextAttrib> pNewBackground(pBackAttrib->GetAttr().Clone());
|
||||
std::unique_ptr<TextAttrib> pNewBackground(pBackAttrib->GetAttr().Clone());
|
||||
const sal_Int32 nStart = pBackAttrib->GetStart();
|
||||
pTextEngine->RemoveAttrib(0, *pBackAttrib);
|
||||
pTextEngine->SetAttrib(*pNewBackground, 0, nStart, m_nErrorStart);
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <comphelper/string.hxx>
|
||||
#include <svx/svxdlg.hxx>
|
||||
#include <sal/macros.h>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace css::uno;
|
||||
using namespace css::i18n;
|
||||
@@ -356,7 +355,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnClickedSpecialSettings, Button*, pButton, void
|
||||
{
|
||||
if (m_ppbApproxSettings == pButton)
|
||||
{
|
||||
boost::scoped_ptr<AbstractSvxSearchSimilarityDialog> pDlg;
|
||||
std::unique_ptr<AbstractSvxSearchSimilarityDialog> pDlg;
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
if ( pFact )
|
||||
@@ -378,7 +377,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnClickedSpecialSettings, Button*, pButton, void
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
if(pFact)
|
||||
{
|
||||
boost::scoped_ptr<AbstractSvxJSearchOptionsDialog> aDlg(pFact->CreateSvxJSearchOptionsDialog( this, aSet, m_pSearchEngine->GetTransliterationFlags() ));
|
||||
std::unique_ptr<AbstractSvxJSearchOptionsDialog> aDlg(pFact->CreateSvxJSearchOptionsDialog( this, aSet, m_pSearchEngine->GetTransliterationFlags() ));
|
||||
DBG_ASSERT(aDlg, "Dialog creation failed!");
|
||||
aDlg->Execute();
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <svx/svxdlg.hxx>
|
||||
#include <cuires.hrc>
|
||||
#include <vcl/builderfactory.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::ucbhelper;
|
||||
|
||||
@@ -183,7 +182,7 @@ void SvxHyperlinkTabPageBase::InitStdControls ()
|
||||
SfxFrame* pFrame = pViewFrame ? &pViewFrame->GetTopFrame() : 0;
|
||||
if ( pFrame )
|
||||
{
|
||||
boost::scoped_ptr<TargetList> pList(new TargetList);
|
||||
std::unique_ptr<TargetList> pList(new TargetList);
|
||||
pFrame->GetTargetList(*pList);
|
||||
if( !pList->empty() )
|
||||
{
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <vcl/settings.hxx>
|
||||
|
||||
#include <dialmgr.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
SvPasteObjectDialog::SvPasteObjectDialog( vcl::Window* pParent )
|
||||
: ModalDialog(pParent, "PasteSpecialDialog", "cui/ui/pastespecial.ui")
|
||||
@@ -186,7 +185,7 @@ SotClipboardFormatId SvPasteObjectDialog::GetFormat( const TransferableDataHelpe
|
||||
|
||||
if( aTypeName.isEmpty() && aSourceName.isEmpty() )
|
||||
{
|
||||
boost::scoped_ptr<ResMgr> pMgr(ResMgr::CreateResMgr( "svt", Application::GetSettings().GetUILanguageTag() ));
|
||||
std::unique_ptr<ResMgr> pMgr(ResMgr::CreateResMgr( "svt", Application::GetSettings().GetUILanguageTag() ));
|
||||
// global resource from svtools (former so3 resource)
|
||||
if( pMgr )
|
||||
aSourceName = OUString( ResId( STR_UNKNOWN_SOURCE, *pMgr ) );
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
#include <tools/urlobj.hxx>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace css::uno;
|
||||
@@ -72,7 +71,7 @@ using namespace css::document;
|
||||
|
||||
void ShowErrorDialog( const Any& aException )
|
||||
{
|
||||
boost::scoped_ptr<SvxScriptErrorDialog> pDlg(new SvxScriptErrorDialog( NULL, aException ));
|
||||
std::unique_ptr<SvxScriptErrorDialog> pDlg(new SvxScriptErrorDialog( NULL, aException ));
|
||||
pDlg->Execute();
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
#include <vcl/msgbox.hxx>
|
||||
#include "cuicharmap.hxx"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
// hook to call special character dialog for edits
|
||||
// caution: needs C-Linkage since dynamically loaded via symbol name
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <vcl/fixed.hxx>
|
||||
|
||||
#include <vector>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
// forward ---------------------------------------------------------------
|
||||
|
||||
@@ -43,10 +42,10 @@ private:
|
||||
VclPtr<CheckBox> m_pUseDataCB;
|
||||
// rows
|
||||
struct Row;
|
||||
std::vector<boost::shared_ptr<Row> > vRows;
|
||||
std::vector<std::shared_ptr<Row> > vRows;
|
||||
// fields
|
||||
struct Field;
|
||||
std::vector<boost::shared_ptr<Field> > vFields;
|
||||
std::vector<std::shared_ptr<Field> > vFields;
|
||||
// "name" fields
|
||||
unsigned nNameRow;
|
||||
unsigned nShortNameField;
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include <unotools/textsearch.hxx>
|
||||
|
||||
#include <vector>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace svx;
|
||||
@@ -239,7 +238,7 @@ bool CuiAboutConfigTabPage::FillItemSet()
|
||||
{
|
||||
bool bModified = false;
|
||||
|
||||
std::vector< boost::shared_ptr< Prop_Impl > >::iterator pIter;
|
||||
std::vector< std::shared_ptr< Prop_Impl > >::iterator pIter;
|
||||
for( pIter = m_vectorOfModified.begin() ; pIter != m_vectorOfModified.end(); ++pIter )
|
||||
{
|
||||
Reference< XNameAccess > xUpdateAccess = getConfigAccess( (*pIter)->Name , true );
|
||||
@@ -511,7 +510,7 @@ Reference< XNameAccess > CuiAboutConfigTabPage::getConfigAccess( const OUString&
|
||||
return xNameAccess;
|
||||
}
|
||||
|
||||
void CuiAboutConfigTabPage::AddToModifiedVector( const boost::shared_ptr< Prop_Impl >& rProp )
|
||||
void CuiAboutConfigTabPage::AddToModifiedVector( const std::shared_ptr< Prop_Impl >& rProp )
|
||||
{
|
||||
bool isModifiedBefore = false;
|
||||
//Check if value modified before
|
||||
@@ -595,7 +594,7 @@ IMPL_LINK_NOARG_TYPED( CuiAboutConfigTabPage, StandardHdl_Impl, Button*, void )
|
||||
OUString sPropertyType = SvTabListBox::GetEntryText( pEntry, 2 );
|
||||
OUString sPropertyValue = SvTabListBox::GetEntryText( pEntry, 3 );
|
||||
|
||||
boost::shared_ptr< Prop_Impl > pProperty (new Prop_Impl( pUserData->sPropertyPath, sPropertyName, makeAny( sPropertyValue ) ) );
|
||||
std::shared_ptr< Prop_Impl > pProperty (new Prop_Impl( pUserData->sPropertyPath, sPropertyName, makeAny( sPropertyValue ) ) );
|
||||
bool bSaveChanges = false;
|
||||
|
||||
bool bOpenDialog = true;
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include <vcl/edit.hxx>
|
||||
|
||||
#include <vector>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace svx { class OptHeaderTabListBox; }
|
||||
class CuiAboutConfigTabPage;
|
||||
@@ -50,14 +48,14 @@ private:
|
||||
VclPtr<Edit> m_pSearchEdit;
|
||||
|
||||
SvTreeListEntries m_modifiedPrefBoxEntries;
|
||||
std::vector< boost::shared_ptr< Prop_Impl > > m_vectorOfModified;
|
||||
std::vector< std::shared_ptr< Prop_Impl > > m_vectorOfModified;
|
||||
VclPtr< SvSimpleTable > m_pPrefBox;
|
||||
|
||||
//for search
|
||||
css::util::SearchOptions m_options;
|
||||
SvTreeListEntries m_prefBoxEntries;
|
||||
|
||||
void AddToModifiedVector( const boost::shared_ptr< Prop_Impl >& rProp );
|
||||
void AddToModifiedVector( const std::shared_ptr< Prop_Impl >& rProp );
|
||||
static std::vector< OUString > commaStringToSequence( const OUString& rCommaSepString );
|
||||
void InsertEntry( SvTreeListEntry *pEntry);
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <svtools/miscopt.hxx>
|
||||
#include <iostream>
|
||||
#include <officecfg/Office/BasicIDE.hxx>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <cuires.hrc>
|
||||
|
||||
SvxBasicIDEOptionsPage::SvxBasicIDEOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet )
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
#include <vcl/msgbox.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <vcl/builderfactory.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <svx/svxdlg.hxx>
|
||||
#include <helpid.hrc>
|
||||
#include <dialmgr.hxx>
|
||||
@@ -253,9 +251,9 @@ private:
|
||||
};
|
||||
|
||||
// vChapters -- groups (group headers)
|
||||
std::vector<boost::shared_ptr<Chapter> > vChapters;
|
||||
std::vector<std::shared_ptr<Chapter> > vChapters;
|
||||
// vEntries -- color options
|
||||
std::vector<boost::shared_ptr<Entry> > vEntries;
|
||||
std::vector<std::shared_ptr<Entry> > vEntries;
|
||||
|
||||
// module options
|
||||
SvtModuleOptions aModuleOptions;
|
||||
@@ -551,7 +549,7 @@ void ColorConfigWindow_Impl::CreateEntries()
|
||||
for (unsigned i = 0; i != nGroupCount; ++i)
|
||||
{
|
||||
aModulesInstalled[i] = IsGroupVisible(vGroupInfo[i].eGroup);
|
||||
vChapters.push_back(boost::shared_ptr<Chapter>(
|
||||
vChapters.push_back(std::shared_ptr<Chapter>(
|
||||
new Chapter(get<FixedText>(vGroupInfo[i].pGroup), aModulesInstalled[i])));
|
||||
}
|
||||
|
||||
@@ -577,7 +575,7 @@ void ColorConfigWindow_Impl::CreateEntries()
|
||||
vEntries.reserve(ColorConfigEntryCount);
|
||||
for (unsigned i = 0; i < SAL_N_ELEMENTS(vEntryInfo); ++i)
|
||||
{
|
||||
vEntries.push_back(boost::shared_ptr<Entry>(new Entry(*this, i, nCheckBoxLabelOffset,
|
||||
vEntries.push_back(std::shared_ptr<Entry>(new Entry(*this, i, nCheckBoxLabelOffset,
|
||||
aModulesInstalled[vEntryInfo[i].eGroup])));
|
||||
}
|
||||
|
||||
@@ -589,7 +587,7 @@ void ColorConfigWindow_Impl::CreateEntries()
|
||||
for (unsigned j = 0; j != nExtGroupCount; ++j)
|
||||
{
|
||||
OUString const sComponentName = aExtConfig.GetComponentName(j);
|
||||
vChapters.push_back(boost::shared_ptr<Chapter>(new Chapter(
|
||||
vChapters.push_back(std::shared_ptr<Chapter>(new Chapter(
|
||||
m_pGrid, nLineNum,
|
||||
aExtConfig.GetComponentDisplayName(sComponentName)
|
||||
)));
|
||||
@@ -599,7 +597,7 @@ void ColorConfigWindow_Impl::CreateEntries()
|
||||
{
|
||||
ExtendedColorConfigValue const aColorEntry =
|
||||
aExtConfig.GetComponentColorConfigValue(sComponentName, i);
|
||||
vEntries.push_back(boost::shared_ptr<Entry>( new Entry (
|
||||
vEntries.push_back(std::shared_ptr<Entry>( new Entry (
|
||||
m_pGrid, nLineNum, aColorEntry, nCheckBoxLabelOffset
|
||||
)));
|
||||
++nLineNum;
|
||||
@@ -1194,7 +1192,7 @@ IMPL_LINK_TYPED(SvxColorOptionsTabPage, SaveDeleteHdl_Impl, Button*, pButton, vo
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> aNameDlg(pFact->CreateSvxNameDialog( pButton,
|
||||
std::unique_ptr<AbstractSvxNameDialog> aNameDlg(pFact->CreateSvxNameDialog( pButton,
|
||||
sName, CUI_RES(RID_SVXSTR_COLOR_CONFIG_SAVE2) ));
|
||||
DBG_ASSERT(aNameDlg, "Dialog creation failed!");
|
||||
aNameDlg->SetCheckNameHdl( LINK(this, SvxColorOptionsTabPage, CheckNameHdl_Impl));
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
#include <sfx2/tabdlg.hxx>
|
||||
#include <svx/langbox.hxx>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
class CanvasSettings;
|
||||
class SvtOptionsDrawinglayer;
|
||||
|
||||
@@ -110,7 +108,7 @@ private:
|
||||
SvtTabAppearanceCfg* pAppearanceCfg;
|
||||
CanvasSettings* pCanvasSettings;
|
||||
SvtOptionsDrawinglayer* mpDrawinglayerOpt;
|
||||
boost::scoped_ptr<svt::OpenGLCfg> mpOpenGLConfig;
|
||||
std::unique_ptr<svt::OpenGLCfg> mpOpenGLConfig;
|
||||
|
||||
std::vector<vcl::IconThemeInfo> mInstalledIconThemes;
|
||||
|
||||
|
||||
@@ -33,9 +33,6 @@
|
||||
#include <svx/dlgutil.hxx>
|
||||
#include <svx/svxids.hrc>
|
||||
|
||||
#include <boost/ref.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -262,7 +259,7 @@ void SvxGeneralTabPage::InitControls ()
|
||||
if (!(vRowInfo[iRow].nLangFlags & LangBit))
|
||||
continue;
|
||||
// creating row
|
||||
vRows.push_back(boost::make_shared<Row>(
|
||||
vRows.push_back(std::make_shared<Row>(
|
||||
get<FixedText>(vRowInfo[iRow].pTextId), eRow));
|
||||
Row& rRow = *vRows.back();
|
||||
// fields in the row
|
||||
@@ -275,7 +272,7 @@ void SvxGeneralTabPage::InitControls ()
|
||||
for ( ; iField != nFieldCount && vFieldInfo[iField].eRow == eRow; ++iField)
|
||||
{
|
||||
// creating edit field
|
||||
vFields.push_back(boost::make_shared<Field>(
|
||||
vFields.push_back(std::make_shared<Field>(
|
||||
get<Edit>(vFieldInfo[iField].pEditId), iField));
|
||||
// "short name" field?
|
||||
if (vFieldInfo[iField].nUserOptionsId == UserOptToken::ID)
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::ucbhelper;
|
||||
using namespace ::com::sun::star;
|
||||
@@ -1620,7 +1619,7 @@ IMPL_LINK_TYPED( SvxLinguTabPage, ClickHdl_Impl, Button *, pBtn, void )
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
if(pFact)
|
||||
{
|
||||
boost::scoped_ptr<AbstractSvxNewDictionaryDialog> aDlg(pFact->CreateSvxNewDictionaryDialog( this, xSpellChecker1 ));
|
||||
std::unique_ptr<AbstractSvxNewDictionaryDialog> aDlg(pFact->CreateSvxNewDictionaryDialog( this, xSpellChecker1 ));
|
||||
DBG_ASSERT(aDlg, "Dialog creation failed!");
|
||||
uno::Reference< XDictionary > xNewDic;
|
||||
if ( aDlg->Execute() == RET_OK )
|
||||
@@ -1655,7 +1654,7 @@ IMPL_LINK_TYPED( SvxLinguTabPage, ClickHdl_Impl, Button *, pBtn, void )
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
if(pFact)
|
||||
{
|
||||
boost::scoped_ptr<VclAbstractDialog> aDlg(pFact->CreateSvxEditDictionaryDialog( this, xDic->getName(), xSpellChecker1, RID_SFXDLG_EDITDICT ));
|
||||
std::unique_ptr<VclAbstractDialog> aDlg(pFact->CreateSvxEditDictionaryDialog( this, xDic->getName(), xSpellChecker1, RID_SFXDLG_EDITDICT ));
|
||||
DBG_ASSERT(aDlg, "Dialog creation failed!");
|
||||
aDlg->Execute();
|
||||
}
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
#include "optHeaderTabListbox.hxx"
|
||||
#include <vcl/help.hxx>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace css::beans;
|
||||
using namespace css::lang;
|
||||
using namespace css::ui::dialogs;
|
||||
@@ -551,7 +549,7 @@ IMPL_LINK_NOARG_TYPED(SvxPathTabPage, PathHdl_Impl, Button*, void)
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
if ( pFact )
|
||||
{
|
||||
boost::scoped_ptr<AbstractSvxMultiPathDialog> pMultiDlg(
|
||||
std::unique_ptr<AbstractSvxMultiPathDialog> pMultiDlg(
|
||||
pFact->CreateSvxMultiPathDialog( this ));
|
||||
DBG_ASSERT( pMultiDlg, "Dialog creation failed!" );
|
||||
|
||||
|
||||
@@ -107,8 +107,6 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace ::com::sun::star::beans;
|
||||
using namespace ::com::sun::star::container;
|
||||
@@ -2141,7 +2139,7 @@ void OfaTreeOptionsDialog::InsertNodes( const VectorOfNodes& rNodeList )
|
||||
|
||||
short OfaTreeOptionsDialog::Execute()
|
||||
{
|
||||
boost::scoped_ptr< SvxDicListChgClamp > pClamp;
|
||||
std::unique_ptr< SvxDicListChgClamp > pClamp;
|
||||
if ( !bIsFromExtensionManager )
|
||||
{
|
||||
// collect all DictionaryList Events while the dialog is executed
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
|
||||
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
TSAURLsDialog::TSAURLsDialog(vcl::Window* pParent)
|
||||
@@ -101,7 +99,7 @@ IMPL_LINK_NOARG_TYPED(TSAURLsDialog, AddHdl_Impl, Button*, void)
|
||||
OUString aDesc( get<FixedText>("enteraurl")->GetText() );
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( m_pAddBtn, aURL, aDesc));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( m_pAddBtn, aURL, aDesc));
|
||||
|
||||
if ( pDlg->Execute() == RET_OK )
|
||||
{
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
#include <editeng/unolingu.hxx>
|
||||
#include <dialmgr.hxx>
|
||||
#include <svx/svxids.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
static LanguageType eLastDialogLanguage = LANGUAGE_SYSTEM;
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
#include <svl/intitem.hxx>
|
||||
#include <sfx2/request.hxx>
|
||||
#include <svtools/grfmgr.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace css;
|
||||
|
||||
@@ -583,7 +582,7 @@ void SvxBackgroundTabPage::ResetFromWallpaperItem( const SfxItemSet& rSet )
|
||||
const SvxBrushItem* pBgdAttr = NULL;
|
||||
sal_uInt16 nSlot = SID_VIEW_FLD_PIC;
|
||||
sal_uInt16 nWhich = GetWhich( nSlot );
|
||||
boost::scoped_ptr<SvxBrushItem> pTemp;
|
||||
std::unique_ptr<SvxBrushItem> pTemp;
|
||||
|
||||
if ( rSet.GetItemState( nWhich, false ) >= SfxItemState::DEFAULT )
|
||||
{
|
||||
@@ -754,7 +753,7 @@ bool SvxBackgroundTabPage::FillItemSet( SfxItemSet* rCoreSet )
|
||||
}
|
||||
else
|
||||
{
|
||||
boost::scoped_ptr<SvxBrushItem> pTmpBrush;
|
||||
std::unique_ptr<SvxBrushItem> pTmpBrush;
|
||||
if ( m_pBtnLink->IsChecked() )
|
||||
{
|
||||
pTmpBrush.reset(new SvxBrushItem( aBgdGraphicPath,
|
||||
@@ -1328,7 +1327,7 @@ IMPL_LINK( SvxBackgroundTabPage, TblDestinationHdl_Impl, ListBox*, pBox )
|
||||
sal_Int32 nSelPos = pBox->GetSelectEntryPos();
|
||||
if( pTableBck_Impl && pTableBck_Impl->nActPos != nSelPos)
|
||||
{
|
||||
boost::scoped_ptr<SvxBrushItem> xItemHolder;
|
||||
std::unique_ptr<SvxBrushItem> xItemHolder;
|
||||
SvxBrushItem* pActItem = NULL;
|
||||
sal_uInt16 nWhich = 0;
|
||||
switch(pTableBck_Impl->nActPos)
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
#include <svl/intitem.hxx>
|
||||
#include <sfx2/request.hxx>
|
||||
#include "svx/flagsdef.hxx"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <vcl/builderfactory.hxx>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#define CM_1_TO_TWIP 567
|
||||
#define TWIP_TO_INCH 1440
|
||||
@@ -304,7 +303,7 @@ bool SvxGrfCropPage::FillItemSet(SfxItemSet *rSet)
|
||||
{
|
||||
sal_uInt16 nW = rPool.GetWhich( SID_ATTR_GRAF_CROP );
|
||||
FieldUnit eUnit = MapToFieldUnit( rSet->GetPool()->GetMetric( nW ));
|
||||
boost::scoped_ptr<SvxGrfCrop> pNew(static_cast<SvxGrfCrop*>(rSet->Get( nW ).Clone()));
|
||||
std::unique_ptr<SvxGrfCrop> pNew(static_cast<SvxGrfCrop*>(rSet->Get( nW ).Clone()));
|
||||
|
||||
pNew->SetLeft( lcl_GetValue( *m_pLeftMF, eUnit ) );
|
||||
pNew->SetRight( lcl_GetValue( *m_pRightMF, eUnit ) );
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
#include <svl/aeitem.hxx>
|
||||
#include <svl/stritem.hxx>
|
||||
#include <svl/slstitm.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#include <sfx2/filedlghelper.hxx>
|
||||
#include "svx/gallery1.hxx"
|
||||
#include "svx/galtheme.hxx"
|
||||
@@ -1030,7 +1029,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapPickTabPage, ClickAddBrowseHdl_Impl, Button*, voi
|
||||
{
|
||||
xSimpleFileAccess->copy( aUserImageURL, aUserGalleryURL );
|
||||
INetURLObject gURL( aUserGalleryURL );
|
||||
boost::scoped_ptr<SvStream> pIn(::utl::UcbStreamHelper::CreateStream(
|
||||
std::unique_ptr<SvStream> pIn(::utl::UcbStreamHelper::CreateStream(
|
||||
gURL.GetMainURL( INetURLObject::NO_DECODE ), StreamMode::READ ));
|
||||
if ( pIn )
|
||||
{
|
||||
|
||||
@@ -61,7 +61,6 @@
|
||||
#include <svx/unobrushitemhelper.hxx>
|
||||
|
||||
#include <numpages.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
// static ----------------------------------------------------------------
|
||||
|
||||
@@ -903,7 +902,7 @@ bool SvxPageDescPage::FillItemSet( SfxItemSet* rSet )
|
||||
(m_pRegisterCB->IsChecked() || m_pRegisterCB->IsValueChangedFromSaved()))
|
||||
{
|
||||
const SfxBoolItem& rRegItem = static_cast<const SfxBoolItem&>(rOldSet.Get(SID_SWREGISTER_MODE));
|
||||
boost::scoped_ptr<SfxBoolItem> pRegItem(static_cast<SfxBoolItem*>(rRegItem.Clone()));
|
||||
std::unique_ptr<SfxBoolItem> pRegItem(static_cast<SfxBoolItem*>(rRegItem.Clone()));
|
||||
bool bCheck = m_pRegisterCB->IsChecked();
|
||||
pRegItem->SetValue(bCheck);
|
||||
rSet->Put(*pRegItem);
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
#include <svl/eitem.hxx>
|
||||
#include <sfx2/request.hxx>
|
||||
#include <svl/intitem.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
const sal_uInt16 SvxStdParagraphTabPage::pStdRanges[] =
|
||||
{
|
||||
@@ -384,7 +383,7 @@ bool SvxStdParagraphTabPage::FillItemSet( SfxItemSet* rOutSet )
|
||||
*rOutSet, SID_ATTR_PARA_REGISTER));
|
||||
if (!pBoolItem)
|
||||
return bModified;
|
||||
boost::scoped_ptr<SfxBoolItem> pRegItem(static_cast<SfxBoolItem*>(pBoolItem->Clone()));
|
||||
std::unique_ptr<SfxBoolItem> pRegItem(static_cast<SfxBoolItem*>(pBoolItem->Clone()));
|
||||
sal_uInt16 _nWhich = GetWhich( SID_ATTR_PARA_REGISTER );
|
||||
bool bSet = pRegItem->GetValue();
|
||||
|
||||
@@ -2231,7 +2230,7 @@ bool SvxAsianTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
SfxItemPool* pPool = rSet->GetPool();
|
||||
if (m_pScriptSpaceCB->IsEnabled() && m_pScriptSpaceCB->IsValueChangedFromSaved())
|
||||
{
|
||||
boost::scoped_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
std::unique_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
pPool->GetWhich(SID_ATTR_PARA_SCRIPTSPACE)).Clone()));
|
||||
pNewItem->SetValue(m_pScriptSpaceCB->IsChecked());
|
||||
rSet->Put(*pNewItem);
|
||||
@@ -2239,7 +2238,7 @@ bool SvxAsianTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
}
|
||||
if (m_pHangingPunctCB->IsEnabled() && m_pHangingPunctCB->IsValueChangedFromSaved())
|
||||
{
|
||||
boost::scoped_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
std::unique_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
pPool->GetWhich(SID_ATTR_PARA_HANGPUNCTUATION)).Clone()));
|
||||
pNewItem->SetValue(m_pHangingPunctCB->IsChecked());
|
||||
rSet->Put(*pNewItem);
|
||||
@@ -2247,7 +2246,7 @@ bool SvxAsianTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
}
|
||||
if (m_pForbiddenRulesCB->IsEnabled() && m_pForbiddenRulesCB->IsValueChangedFromSaved())
|
||||
{
|
||||
boost::scoped_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
std::unique_ptr<SfxBoolItem> pNewItem(static_cast<SfxBoolItem*>(rSet->Get(
|
||||
pPool->GetWhich(SID_ATTR_PARA_FORBIDDEN_RULES)).Clone()));
|
||||
pNewItem->SetValue(m_pForbiddenRulesCB->IsChecked());
|
||||
rSet->Put(*pNewItem);
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <com/sun/star/text/VertOrientation.hpp>
|
||||
#include <com/sun/star/text/RelOrientation.hpp>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace ::com::sun::star::text;
|
||||
#define SwFPos SvxSwFramePosString
|
||||
@@ -891,7 +890,7 @@ bool SvxSwPosSizeTabPage::FillItemSet( SfxItemSet* rSet)
|
||||
const SfxPoolItem* pItem = GetItem( rOldSet, SID_SW_FOLLOW_TEXT_FLOW);
|
||||
if(pItem)
|
||||
{
|
||||
boost::scoped_ptr<SfxBoolItem> pFollow(static_cast<SfxBoolItem*>(pItem->Clone()));
|
||||
std::unique_ptr<SfxBoolItem> pFollow(static_cast<SfxBoolItem*>(pItem->Clone()));
|
||||
pFollow->SetValue(m_pFollowCB->IsChecked());
|
||||
bModified |= 0 != rSet->Put(*pFollow);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
//UUUU
|
||||
#include "sfx2/opengrf.hxx"
|
||||
#include <vcl/layout.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
@@ -1300,7 +1299,7 @@ bool SvxAreaTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
m_pTsbOriginal->IsEnabled() &&
|
||||
m_pTsbScale->GetSavedValue() != TRISTATE_TRUE ) )
|
||||
{
|
||||
boost::scoped_ptr<XFillBmpSizeLogItem> pItem;
|
||||
std::unique_ptr<XFillBmpSizeLogItem> pItem;
|
||||
if( m_pTsbScale->IsEnabled() )
|
||||
pItem.reset(new XFillBmpSizeLogItem( eState == TRISTATE_FALSE ));
|
||||
else if( m_pTsbOriginal->IsEnabled() && m_pTsbOriginal->GetState() == TRISTATE_TRUE )
|
||||
@@ -1320,7 +1319,7 @@ bool SvxAreaTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
//aMtrFldXSize
|
||||
OUString aStr = m_pMtrFldXSize->GetText();
|
||||
{
|
||||
boost::scoped_ptr<XFillBmpSizeXItem> pItem;
|
||||
std::unique_ptr<XFillBmpSizeXItem> pItem;
|
||||
TriState eScaleState = m_pTsbScale->GetState();
|
||||
|
||||
if( m_pMtrFldXSize->IsEnabled() &&
|
||||
@@ -1355,7 +1354,7 @@ bool SvxAreaTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
//aMtrFldYSize
|
||||
aStr = m_pMtrFldYSize->GetText();
|
||||
{
|
||||
boost::scoped_ptr<XFillBmpSizeYItem> pItem;
|
||||
std::unique_ptr<XFillBmpSizeYItem> pItem;
|
||||
TriState eScaleState = m_pTsbScale->GetState();
|
||||
|
||||
if( m_pMtrFldYSize->IsEnabled() &&
|
||||
@@ -2343,7 +2342,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyTileHdl_Impl)
|
||||
|
||||
if( m_pMtrFldXSize->IsEnabled() )
|
||||
{
|
||||
boost::scoped_ptr<XFillBmpSizeXItem> pItem;
|
||||
std::unique_ptr<XFillBmpSizeXItem> pItem;
|
||||
TriState eScaleState = m_pTsbScale->GetState();
|
||||
|
||||
if( eScaleState == TRISTATE_FALSE )
|
||||
@@ -2362,7 +2361,7 @@ IMPL_LINK_NOARG(SvxAreaTabPage, ModifyTileHdl_Impl)
|
||||
|
||||
if( m_pMtrFldYSize->IsEnabled() )
|
||||
{
|
||||
boost::scoped_ptr<XFillBmpSizeYItem> pItem;
|
||||
std::unique_ptr<XFillBmpSizeYItem> pItem;
|
||||
TriState eScaleState = m_pTsbScale->GetState();
|
||||
|
||||
if( eScaleState == TRISTATE_FALSE )
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include <dialmgr.hxx>
|
||||
#include "sfx2/opengrf.hxx"
|
||||
#include "paragrph.hrc"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
@@ -319,7 +318,7 @@ VclPtr<SfxTabPage> SvxBitmapTabPage::Create( vcl::Window* pWindow,
|
||||
|
||||
IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
|
||||
{
|
||||
boost::scoped_ptr<GraphicObject> pGraphicObject;
|
||||
std::unique_ptr<GraphicObject> pGraphicObject;
|
||||
int nPos(m_pLbBitmaps->GetSelectEntryPos());
|
||||
|
||||
if(LISTBOX_ENTRY_NOTFOUND != nPos)
|
||||
@@ -507,7 +506,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
ScopedVclPtr<MessageDialog> pWarnBox;
|
||||
sal_uInt16 nError(1);
|
||||
@@ -615,7 +614,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickImportHdl_Impl, Button*, void)
|
||||
INetURLObject aURL( aDlg.GetPath() );
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aURL.GetName().getToken( 0, '.' ), aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aURL.GetName().getToken( 0, '.' ), aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
nError = 1;
|
||||
|
||||
@@ -686,7 +685,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
|
||||
long nCount = m_pBitmapList->Count();
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#include <cuitabline.hxx>
|
||||
#include <svx/dialmgr.hxx>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
@@ -713,7 +712,7 @@ IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
}
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
ScopedVclPtr<MessageDialog> pWarnBox;
|
||||
sal_uInt16 nError = 1;
|
||||
|
||||
@@ -797,7 +796,7 @@ IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
aWarningBox->Execute();
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
bool bLoop = true;
|
||||
|
||||
while ( !bDifferent && bLoop && pDlg->Execute() == RET_OK )
|
||||
@@ -841,7 +840,7 @@ IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
IMPL_LINK_NOARG_TYPED(SvxColorTabPage, ClickWorkOnHdl_Impl, Button*, void)
|
||||
{
|
||||
boost::scoped_ptr<SvColorDialog> pColorDlg(new SvColorDialog( GetParentDialog() ));
|
||||
std::unique_ptr<SvColorDialog> pColorDlg(new SvColorDialog( GetParentDialog() ));
|
||||
|
||||
pColorDlg->SetColor (aCurrentColor);
|
||||
pColorDlg->SetMode( svtools::ColorPickerMode_MODIFY );
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
#include <svx/dialmgr.hxx>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include "paragrph.hrc"
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
@@ -340,7 +339,7 @@ bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
{
|
||||
// CheckChanges(); <-- duplicate inquiry ?
|
||||
|
||||
boost::scoped_ptr<XGradient> pXGradient;
|
||||
std::unique_ptr<XGradient> pXGradient;
|
||||
OUString aString;
|
||||
sal_Int32 nPos = m_pLbGradients->GetSelectEntryPos();
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND )
|
||||
@@ -453,7 +452,7 @@ IMPL_LINK_NOARG_TYPED(SvxGradientTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
}
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
ScopedVclPtr<MessageDialog> pWarnBox;
|
||||
sal_uInt16 nError = 1;
|
||||
|
||||
@@ -544,7 +543,7 @@ IMPL_LINK_NOARG_TYPED(SvxGradientTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
|
||||
long nCount = m_pGradientList->Count();
|
||||
@@ -806,7 +805,7 @@ IMPL_LINK_NOARG_TYPED(SvxGradientTabPage, ClickSaveHdl_Impl, Button*, void)
|
||||
|
||||
IMPL_LINK_NOARG(SvxGradientTabPage, ChangeGradientHdl_Impl)
|
||||
{
|
||||
boost::scoped_ptr<XGradient> pGradient;
|
||||
std::unique_ptr<XGradient> pGradient;
|
||||
int nPos = m_pLbGradients->GetSelectEntryPos();
|
||||
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND )
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include <svx/dialmgr.hxx>
|
||||
#include "paragrph.hrc"
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
@@ -307,7 +306,7 @@ bool SvxHatchTabPage::FillItemSet( SfxItemSet* rSet )
|
||||
{
|
||||
// CheckChanges(); <-- duplicate inquiry ?
|
||||
|
||||
boost::scoped_ptr<XHatch> pXHatch;
|
||||
std::unique_ptr<XHatch> pXHatch;
|
||||
OUString aString;
|
||||
sal_Int32 nPos = m_pLbHatchings->GetSelectEntryPos();
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND )
|
||||
@@ -402,7 +401,7 @@ IMPL_LINK( SvxHatchTabPage, ModifiedHdl_Impl, void *, p )
|
||||
|
||||
IMPL_LINK_NOARG(SvxHatchTabPage, ChangeHatchHdl_Impl)
|
||||
{
|
||||
boost::scoped_ptr<XHatch> pHatch;
|
||||
std::unique_ptr<XHatch> pHatch;
|
||||
int nPos = m_pLbHatchings->GetSelectEntryPos();
|
||||
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND )
|
||||
@@ -497,7 +496,7 @@ IMPL_LINK_NOARG_TYPED(SvxHatchTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
ScopedVclPtr<MessageDialog> pWarnBox;
|
||||
sal_uInt16 nError = 1;
|
||||
@@ -581,7 +580,7 @@ IMPL_LINK_NOARG_TYPED(SvxHatchTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
|
||||
long nCount = m_pHatchingList->Count();
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
#include <svx/dialmgr.hxx>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <vcl/settings.hxx>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#define MAX_BMP_WIDTH 16
|
||||
#define MAX_BMP_HEIGHT 16
|
||||
@@ -360,7 +359,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton)
|
||||
{
|
||||
ScopedVclPtrInstance< VirtualDevice > pVDev;
|
||||
pVDev->SetMapMode(MapMode(MAP_100TH_MM));
|
||||
boost::scoped_ptr<SdrModel> pModel(new SdrModel);
|
||||
std::unique_ptr<SdrModel> pModel(new SdrModel);
|
||||
pModel->GetItemPool().FreezeIdRanges();
|
||||
// Page
|
||||
SdrPage* pPage = new SdrPage( *pModel, false );
|
||||
@@ -368,7 +367,7 @@ void SvxLineTabPage::InitSymbols(MenuButton* pButton)
|
||||
pModel->InsertPage( pPage, 0 );
|
||||
{
|
||||
// 3D View
|
||||
boost::scoped_ptr<SdrView> pView(new SdrView( pModel.get(), pVDev ));
|
||||
std::unique_ptr<SdrView> pView(new SdrView( pModel.get(), pVDev ));
|
||||
pView->hideMarkHandles();
|
||||
pView->ShowSdrPage(pPage);
|
||||
|
||||
@@ -723,7 +722,7 @@ bool SvxLineTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND &&
|
||||
m_pLbLineStyle->IsValueChangedFromSaved() )
|
||||
{
|
||||
boost::scoped_ptr<XLineStyleItem> pStyleItem;
|
||||
std::unique_ptr<XLineStyleItem> pStyleItem;
|
||||
|
||||
if( nPos == 0 )
|
||||
pStyleItem.reset(new XLineStyleItem( drawing::LineStyle_NONE ));
|
||||
@@ -807,7 +806,7 @@ bool SvxLineTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
nPos = m_pLbStartStyle->GetSelectEntryPos();
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND && m_pLbStartStyle->IsValueChangedFromSaved() )
|
||||
{
|
||||
boost::scoped_ptr<XLineStartItem> pItem;
|
||||
std::unique_ptr<XLineStartItem> pItem;
|
||||
if( nPos == 0 )
|
||||
pItem.reset(new XLineStartItem());
|
||||
else if( m_pLineEndList->Count() > (long) ( nPos - 1 ) )
|
||||
@@ -823,7 +822,7 @@ bool SvxLineTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
nPos = m_pLbEndStyle->GetSelectEntryPos();
|
||||
if( nPos != LISTBOX_ENTRY_NOTFOUND && m_pLbEndStyle->IsValueChangedFromSaved() )
|
||||
{
|
||||
boost::scoped_ptr<XLineEndItem> pItem;
|
||||
std::unique_ptr<XLineEndItem> pItem;
|
||||
if( nPos == 0 )
|
||||
pItem.reset(new XLineEndItem());
|
||||
else if( m_pLineEndList->Count() > (long) ( nPos - 1 ) )
|
||||
@@ -879,7 +878,7 @@ bool SvxLineTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
nPos = m_pLBEdgeStyle->GetSelectEntryPos();
|
||||
if( LISTBOX_ENTRY_NOTFOUND != nPos && m_pLBEdgeStyle->IsValueChangedFromSaved() )
|
||||
{
|
||||
boost::scoped_ptr<XLineJointItem> pNew;
|
||||
std::unique_ptr<XLineJointItem> pNew;
|
||||
|
||||
switch(nPos)
|
||||
{
|
||||
@@ -921,7 +920,7 @@ bool SvxLineTabPage::FillItemSet( SfxItemSet* rAttrs )
|
||||
nPos = m_pLBCapStyle->GetSelectEntryPos();
|
||||
if( LISTBOX_ENTRY_NOTFOUND != nPos && m_pLBCapStyle->IsValueChangedFromSaved() )
|
||||
{
|
||||
boost::scoped_ptr<XLineCapItem> pNew;
|
||||
std::unique_ptr<XLineCapItem> pNew;
|
||||
|
||||
switch(nPos)
|
||||
{
|
||||
@@ -1154,13 +1153,13 @@ void SvxLineTabPage::Reset( const SfxItemSet* rAttrs )
|
||||
ScopedVclPtrInstance< VirtualDevice > pVDev;
|
||||
pVDev->SetMapMode(MapMode(MAP_100TH_MM));
|
||||
|
||||
boost::scoped_ptr<SdrModel> pModel(new SdrModel);
|
||||
std::unique_ptr<SdrModel> pModel(new SdrModel);
|
||||
pModel->GetItemPool().FreezeIdRanges();
|
||||
SdrPage* pPage = new SdrPage( *pModel, false );
|
||||
pPage->SetSize(Size(1000,1000));
|
||||
pModel->InsertPage( pPage, 0 );
|
||||
{
|
||||
boost::scoped_ptr<SdrView> pView(new SdrView( pModel.get(), pVDev ));
|
||||
std::unique_ptr<SdrView> pView(new SdrView( pModel.get(), pVDev ));
|
||||
pView->hideMarkHandles();
|
||||
pView->ShowSdrPage(pPage);
|
||||
SdrObject *pObj=NULL;
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "svx/dlgutil.hxx"
|
||||
#include <svx/dialmgr.hxx>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#define XOUT_WIDTH 150
|
||||
|
||||
@@ -568,7 +567,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineDefTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
bool bLoop = true;
|
||||
|
||||
@@ -644,7 +643,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineDefTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
|
||||
long nCount = pDashList->Count();
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#include <basegfx/polygon/b2dpolypolygontools.hxx>
|
||||
#include <basegfx/matrix/b2dhommatrixtools.hxx>
|
||||
#include <svx/dialogs.hrc>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
#define XOUT_WIDTH 150
|
||||
|
||||
@@ -348,7 +347,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineEndDefTabPage, ClickModifyHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
bool bLoop = true;
|
||||
|
||||
@@ -461,7 +460,7 @@ IMPL_LINK_NOARG_TYPED(SvxLineEndDefTabPage, ClickAddHdl_Impl, Button*, void)
|
||||
|
||||
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
|
||||
DBG_ASSERT(pFact, "Dialog creation failed!");
|
||||
boost::scoped_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
std::unique_ptr<AbstractSvxNameDialog> pDlg(pFact->CreateSvxNameDialog( GetParentDialog(), aName, aDesc ));
|
||||
DBG_ASSERT(pDlg, "Dialog creation failed!");
|
||||
bool bLoop = true;
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace drawinglayer
|
||||
const bool bOldModulate(getModulate()); mbModulate = rPrimitive.getModulate();
|
||||
const bool bOldFilter(getFilter()); mbFilter = rPrimitive.getFilter();
|
||||
const bool bOldSimpleTextureActive(getSimpleTextureActive());
|
||||
boost::shared_ptr< texture::GeoTexSvx > pOldTex = (bTransparence) ? mpTransparenceGeoTexSvx : mpGeoTexSvx;
|
||||
std::shared_ptr< texture::GeoTexSvx > pOldTex = (bTransparence) ? mpTransparenceGeoTexSvx : mpGeoTexSvx;
|
||||
|
||||
// create texture
|
||||
const attribute::FillGradientAttribute& rFillGradient = rPrimitive.getGradient();
|
||||
@@ -67,7 +67,7 @@ namespace drawinglayer
|
||||
const basegfx::BColor aStart(rFillGradient.getStartColor());
|
||||
const basegfx::BColor aEnd(rFillGradient.getEndColor());
|
||||
const sal_uInt32 nMaxSteps(sal_uInt32((aStart.getMaximumDistance(aEnd) * 127.5) + 0.5));
|
||||
boost::shared_ptr< texture::GeoTexSvx > pNewTex;
|
||||
std::shared_ptr< texture::GeoTexSvx > pNewTex;
|
||||
|
||||
if(nMaxSteps)
|
||||
{
|
||||
@@ -219,7 +219,7 @@ namespace drawinglayer
|
||||
// rescue values
|
||||
const bool bOldModulate(getModulate()); mbModulate = rPrimitive.getModulate();
|
||||
const bool bOldFilter(getFilter()); mbFilter = rPrimitive.getFilter();
|
||||
boost::shared_ptr< texture::GeoTexSvx > pOldTex = mpGeoTexSvx;
|
||||
std::shared_ptr< texture::GeoTexSvx > pOldTex = mpGeoTexSvx;
|
||||
|
||||
// calculate logic pixel size in object coordinates. Create transformation view
|
||||
// to object by inverting ObjectToView
|
||||
@@ -260,7 +260,7 @@ namespace drawinglayer
|
||||
// rescue values
|
||||
const bool bOldModulate(getModulate()); mbModulate = rPrimitive.getModulate();
|
||||
const bool bOldFilter(getFilter()); mbFilter = rPrimitive.getFilter();
|
||||
boost::shared_ptr< texture::GeoTexSvx > pOldTex = mpGeoTexSvx;
|
||||
std::shared_ptr< texture::GeoTexSvx > pOldTex = mpGeoTexSvx;
|
||||
|
||||
// create texture
|
||||
const attribute::FillGraphicAttribute& rFillGraphicAttribute = rPrimitive.getFillGraphicAttribute();
|
||||
|
||||
@@ -466,8 +466,8 @@ void ZBufferRasterConverter3D::processLineSpan(const basegfx::RasterConversionLi
|
||||
class RasterPrimitive3D
|
||||
{
|
||||
private:
|
||||
boost::shared_ptr< drawinglayer::texture::GeoTexSvx > mpGeoTexSvx;
|
||||
boost::shared_ptr< drawinglayer::texture::GeoTexSvx > mpTransparenceGeoTexSvx;
|
||||
std::shared_ptr< drawinglayer::texture::GeoTexSvx > mpGeoTexSvx;
|
||||
std::shared_ptr< drawinglayer::texture::GeoTexSvx > mpTransparenceGeoTexSvx;
|
||||
drawinglayer::attribute::MaterialAttribute3D maMaterial;
|
||||
basegfx::B3DPolyPolygon maPolyPolygon;
|
||||
double mfCenterZ;
|
||||
@@ -480,8 +480,8 @@ private:
|
||||
|
||||
public:
|
||||
RasterPrimitive3D(
|
||||
const boost::shared_ptr< drawinglayer::texture::GeoTexSvx >& pGeoTexSvx,
|
||||
const boost::shared_ptr< drawinglayer::texture::GeoTexSvx >& pTransparenceGeoTexSvx,
|
||||
const std::shared_ptr< drawinglayer::texture::GeoTexSvx >& pGeoTexSvx,
|
||||
const std::shared_ptr< drawinglayer::texture::GeoTexSvx >& pTransparenceGeoTexSvx,
|
||||
const drawinglayer::attribute::MaterialAttribute3D& rMaterial,
|
||||
const basegfx::B3DPolyPolygon& rPolyPolygon,
|
||||
bool bModulate,
|
||||
@@ -520,8 +520,8 @@ public:
|
||||
return mfCenterZ < rComp.mfCenterZ;
|
||||
}
|
||||
|
||||
const boost::shared_ptr< drawinglayer::texture::GeoTexSvx >& getGeoTexSvx() const { return mpGeoTexSvx; }
|
||||
const boost::shared_ptr< drawinglayer::texture::GeoTexSvx >& getTransparenceGeoTexSvx() const { return mpTransparenceGeoTexSvx; }
|
||||
const std::shared_ptr< drawinglayer::texture::GeoTexSvx >& getGeoTexSvx() const { return mpGeoTexSvx; }
|
||||
const std::shared_ptr< drawinglayer::texture::GeoTexSvx >& getTransparenceGeoTexSvx() const { return mpTransparenceGeoTexSvx; }
|
||||
const drawinglayer::attribute::MaterialAttribute3D& getMaterial() const { return maMaterial; }
|
||||
const basegfx::B3DPolyPolygon& getPolyPolygon() const { return maPolyPolygon; }
|
||||
bool getModulate() const { return mbModulate; }
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <comphelper/newarray.hxx>
|
||||
#include <ctype.h>
|
||||
#include <deque>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "hwpreader.hxx"
|
||||
#include <math.h>
|
||||
|
||||
@@ -1746,7 +1744,7 @@ void HwpReader::makePageStyle()
|
||||
if( hwpinfo.back_info.type == 2 ){
|
||||
rstartEl("office:binary-data", rList);
|
||||
pList->clear();
|
||||
boost::shared_ptr<char> pStr(base64_encode_string(reinterpret_cast<unsigned char *>(hwpinfo.back_info.data), hwpinfo.back_info.size ), Free<char>());
|
||||
std::shared_ptr<char> pStr(base64_encode_string(reinterpret_cast<unsigned char *>(hwpinfo.back_info.data), hwpinfo.back_info.size ), Free<char>());
|
||||
rchars(ascii(pStr.get()));
|
||||
rendEl("office:binary-data");
|
||||
}
|
||||
@@ -3907,7 +3905,7 @@ void HwpReader::makePicture(Picture * hbox)
|
||||
EmPicture *emp = hwpfile.GetEmPicture(hbox);
|
||||
if( emp )
|
||||
{
|
||||
boost::shared_ptr<char> pStr(base64_encode_string( emp->data, emp->size ), Free<char>());
|
||||
std::shared_ptr<char> pStr(base64_encode_string( emp->data, emp->size ), Free<char>());
|
||||
rchars(ascii(pStr.get()));
|
||||
}
|
||||
}
|
||||
@@ -3931,7 +3929,7 @@ void HwpReader::makePicture(Picture * hbox)
|
||||
rchars("");
|
||||
}
|
||||
else{
|
||||
boost::shared_ptr<char> pStr(base64_encode_string( (uchar *)pObj, strlen((char *)pObj)), Free<char>());
|
||||
std::shared_ptr<char> pStr(base64_encode_string( (uchar *)pObj, strlen((char *)pObj)), Free<char>());
|
||||
rchars(ascii(pStr.get()));
|
||||
pObj->Release();
|
||||
srcsto->Release();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#define INCLUDED_BASEBMP_DEBUG_HXX
|
||||
|
||||
#include <iostream>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <basebmp/basebmpdllapi.h>
|
||||
|
||||
namespace basebmp
|
||||
@@ -48,7 +48,7 @@ namespace basebmp
|
||||
debugDump( pMyDevice, output );
|
||||
</pre>
|
||||
*/
|
||||
void BASEBMP_DLLPUBLIC debugDump( const boost::shared_ptr< BitmapDevice >& rDevice,
|
||||
void BASEBMP_DLLPUBLIC debugDump( const std::shared_ptr< BitmapDevice >& rDevice,
|
||||
::std::ostream& rOutputStream );
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user