Kaydet (Commit) 1aa69bd5 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:countusersofdefaultparams in sd..slideshow

Change-Id: Iaf10935d8f231676333018a5954d97defe35acf6
üst 967436ba
...@@ -151,7 +151,7 @@ protected: ...@@ -151,7 +151,7 @@ protected:
public: public:
SdPage(SdDrawDocument& rNewDoc, bool bMasterPage=false); SdPage(SdDrawDocument& rNewDoc, bool bMasterPage);
virtual ~SdPage() override; virtual ~SdPage() override;
virtual SdrPage* Clone() const override; virtual SdrPage* Clone() const override;
virtual SdrPage* Clone(SdrModel* pNewModel) const override; virtual SdrPage* Clone(SdrModel* pNewModel) const override;
......
...@@ -69,7 +69,7 @@ bool SdFiltersTest::load(const OUString &rFilter, const OUString &rURL, ...@@ -69,7 +69,7 @@ bool SdFiltersTest::load(const OUString &rFilter, const OUString &rURL,
rUserData, OUString() )); rUserData, OUString() ));
const_cast<SfxFilter*>(pFilter.get())->SetVersion(nFilterVersion); const_cast<SfxFilter*>(pFilter.get())->SetVersion(nFilterVersion);
::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(); ::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(SfxObjectCreateMode::EMBEDDED, false);
SfxMedium* pSrcMed = new SfxMedium(rURL, StreamMode::STD_READ); SfxMedium* pSrcMed = new SfxMedium(rURL, StreamMode::STD_READ);
pSrcMed->SetFilter(pFilter); pSrcMed->SetFilter(pFilter);
bool bLoaded = xDocShRef->DoLoad(pSrcMed); bool bLoaded = xDocShRef->DoLoad(pSrcMed);
......
...@@ -134,7 +134,7 @@ protected: ...@@ -134,7 +134,7 @@ protected:
pFilter->SetVersion(SOFFICE_FILEFORMAT_CURRENT); pFilter->SetVersion(SOFFICE_FILEFORMAT_CURRENT);
std::shared_ptr<const SfxFilter> pFilt(pFilter); std::shared_ptr<const SfxFilter> pFilt(pFilter);
::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(); ::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(SfxObjectCreateMode::EMBEDDED, false);
SfxMedium* pSrcMed = new SfxMedium(rURL, StreamMode::STD_READ, pFilt, pParams); SfxMedium* pSrcMed = new SfxMedium(rURL, StreamMode::STD_READ, pFilt, pParams);
if ( !xDocShRef->DoLoad(pSrcMed) || !xDocShRef.Is() ) if ( !xDocShRef->DoLoad(pSrcMed) || !xDocShRef.Is() )
{ {
......
...@@ -2772,7 +2772,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportPPT(const OUString &rURL ...@@ -2772,7 +2772,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportPPT(const OUString &rURL
xDocStream->SetVersion(xStorage->GetVersion()); xDocStream->SetVersion(xStorage->GetVersion());
xDocStream->SetCryptMaskKey(xStorage->GetKey()); xDocStream->SetCryptMaskKey(xStorage->GetKey());
::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(); ::sd::DrawDocShellRef xDocShRef = new ::sd::DrawDocShell(SfxObjectCreateMode::EMBEDDED, false);
SdDrawDocument *pDoc = xDocShRef->GetDoc(); SdDrawDocument *pDoc = xDocShRef->GetDoc();
bool bRet = ImportPPT(pDoc, *xDocStream, *xStorage, aSrcMed); bool bRet = ImportPPT(pDoc, *xDocStream, *xStorage, aSrcMed);
......
...@@ -142,7 +142,7 @@ class STLPropertySet; ...@@ -142,7 +142,7 @@ class STLPropertySet;
class CustomAnimationDialog : public TabDialog class CustomAnimationDialog : public TabDialog
{ {
public: public:
CustomAnimationDialog(vcl::Window* pParent, STLPropertySet* pSet, const OString& Page = OString()); CustomAnimationDialog(vcl::Window* pParent, STLPropertySet* pSet, const OString& Page);
virtual ~CustomAnimationDialog() override; virtual ~CustomAnimationDialog() override;
virtual void dispose() override; virtual void dispose() override;
......
...@@ -58,19 +58,19 @@ private: ...@@ -58,19 +58,19 @@ private:
public: public:
DrawDocShell ( DrawDocShell (
SfxObjectCreateMode eMode = SfxObjectCreateMode::EMBEDDED, SfxObjectCreateMode eMode,
bool bSdDataObj=false, bool bSdDataObj,
DocumentType=DocumentType::Impress); DocumentType=DocumentType::Impress);
DrawDocShell ( DrawDocShell (
SfxModelFlags nModelCreationFlags, SfxModelFlags nModelCreationFlags,
bool bSdDataObj=false, bool bSdDataObj,
DocumentType=DocumentType::Impress); DocumentType=DocumentType::Impress);
DrawDocShell ( DrawDocShell (
SdDrawDocument* pDoc, SdDrawDocument* pDoc,
SfxObjectCreateMode eMode = SfxObjectCreateMode::EMBEDDED, SfxObjectCreateMode eMode,
bool bSdDataObj=false, bool bSdDataObj,
DocumentType=DocumentType::Impress); DocumentType=DocumentType::Impress);
virtual ~DrawDocShell() override; virtual ~DrawDocShell() override;
......
...@@ -88,8 +88,8 @@ public: ...@@ -88,8 +88,8 @@ public:
SfxViewFrame* pFrame, SfxViewFrame* pFrame,
ViewShellBase& rViewShellBase, ViewShellBase& rViewShellBase,
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
PageKind ePageKind = PageKind::Standard, PageKind ePageKind,
FrameView* pFrameView = nullptr); FrameView* pFrameView);
virtual ~DrawViewShell() override; virtual ~DrawViewShell() override;
......
...@@ -46,13 +46,13 @@ public: ...@@ -46,13 +46,13 @@ public:
SFX_DECL_OBJECTFACTORY(); SFX_DECL_OBJECTFACTORY();
GraphicDocShell ( GraphicDocShell (
SfxObjectCreateMode eMode = SfxObjectCreateMode::EMBEDDED, SfxObjectCreateMode eMode,
bool bSdDataObj=false, bool bSdDataObj,
DocumentType=DocumentType::Draw); DocumentType=DocumentType::Draw);
GraphicDocShell ( GraphicDocShell (
SfxModelFlags nModelCreationFlags, SfxModelFlags nModelCreationFlags,
bool bSdDataObj=false, bool bSdDataObj,
DocumentType=DocumentType::Draw); DocumentType=DocumentType::Draw);
virtual ~GraphicDocShell() override; virtual ~GraphicDocShell() override;
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
SfxViewFrame* pFrame, SfxViewFrame* pFrame,
ViewShellBase& rViewShellBase, ViewShellBase& rViewShellBase,
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
FrameView* pFrameView = nullptr); FrameView* pFrameView);
virtual ~GraphicViewShell() override; virtual ~GraphicViewShell() override;
......
...@@ -56,7 +56,7 @@ public: ...@@ -56,7 +56,7 @@ public:
SfxViewFrame* pFrame, SfxViewFrame* pFrame,
ViewShellBase& rViewShellBase, ViewShellBase& rViewShellBase,
vcl::Window* pParentWindow, vcl::Window* pParentWindow,
FrameView* pFrameView = nullptr); FrameView* pFrameView);
virtual ~OutlineViewShell() override; virtual ~OutlineViewShell() override;
......
...@@ -38,7 +38,7 @@ private: ...@@ -38,7 +38,7 @@ private:
static void InitInterface_Impl(); static void InitInterface_Impl();
public: public:
PresentationViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBase, vcl::Window* pParentWindow, FrameView* pFrameView = nullptr); PresentationViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBase, vcl::Window* pParentWindow, FrameView* pFrameView);
virtual ~PresentationViewShell() override; virtual ~PresentationViewShell() override;
/** This method is used by a simple class that passes some /** This method is used by a simple class that passes some
......
...@@ -43,7 +43,7 @@ private: ...@@ -43,7 +43,7 @@ private:
sal_uInt16 mnTransparence; sal_uInt16 mnTransparence;
public: public:
SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage = true ); SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage );
virtual ~SdPageDlg() override {}; virtual ~SdPageDlg() override {};
virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage) override; virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage) override;
......
...@@ -144,7 +144,7 @@ class SD_DLLPUBLIC SdOptionsLayoutItem : public SfxPoolItem ...@@ -144,7 +144,7 @@ class SD_DLLPUBLIC SdOptionsLayoutItem : public SfxPoolItem
public: public:
explicit SdOptionsLayoutItem(); explicit SdOptionsLayoutItem();
SdOptionsLayoutItem( SdOptions* pOpts, ::sd::FrameView* pView = nullptr ); SdOptionsLayoutItem( SdOptions* pOpts, ::sd::FrameView* pView );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override; virtual bool operator==( const SfxPoolItem& ) const override;
...@@ -177,7 +177,7 @@ class SD_DLLPUBLIC SdOptionsContentsItem : public SfxPoolItem ...@@ -177,7 +177,7 @@ class SD_DLLPUBLIC SdOptionsContentsItem : public SfxPoolItem
{ {
public: public:
SdOptionsContentsItem( SdOptions* pOpts, ::sd::FrameView* pView = nullptr ); SdOptionsContentsItem( SdOptions* pOpts, ::sd::FrameView* pView );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override; virtual bool operator==( const SfxPoolItem& ) const override;
...@@ -324,7 +324,7 @@ class SD_DLLPUBLIC SdOptionsMiscItem : public SfxPoolItem ...@@ -324,7 +324,7 @@ class SD_DLLPUBLIC SdOptionsMiscItem : public SfxPoolItem
public: public:
explicit SdOptionsMiscItem(); explicit SdOptionsMiscItem();
SdOptionsMiscItem( SdOptions* pOpts, ::sd::FrameView* pView = nullptr ); SdOptionsMiscItem( SdOptions* pOpts, ::sd::FrameView* pView );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override; virtual bool operator==( const SfxPoolItem& ) const override;
...@@ -393,7 +393,7 @@ class SD_DLLPUBLIC SdOptionsSnapItem : public SfxPoolItem ...@@ -393,7 +393,7 @@ class SD_DLLPUBLIC SdOptionsSnapItem : public SfxPoolItem
public: public:
explicit SdOptionsSnapItem(); explicit SdOptionsSnapItem();
SdOptionsSnapItem( SdOptions* pOpts, ::sd::FrameView* pView = nullptr ); SdOptionsSnapItem( SdOptions* pOpts, ::sd::FrameView* pView );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool operator==( const SfxPoolItem& ) const override; virtual bool operator==( const SfxPoolItem& ) const override;
......
...@@ -131,8 +131,8 @@ private: ...@@ -131,8 +131,8 @@ private:
sd::DrawViewShell* GetViewShell(); sd::DrawViewShell* GetViewShell();
public: public:
SdXImpressDocument( ::sd::DrawDocShell* pShell, bool bClipBoard = false ) throw(); SdXImpressDocument( ::sd::DrawDocShell* pShell, bool bClipBoard ) throw();
SdXImpressDocument( SdDrawDocument* pDoc, bool bClipBoard = false ) throw(); SdXImpressDocument( SdDrawDocument* pDoc, bool bClipBoard ) throw();
virtual ~SdXImpressDocument() throw() override; virtual ~SdXImpressDocument() throw() override;
static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument* pDoc ); static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument* pDoc );
......
...@@ -680,7 +680,7 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper, ...@@ -680,7 +680,7 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper,
if( aDataHelper.GetSotStorageStream( SotClipboardFormatId::DRAWING, xStm ) ) if( aDataHelper.GetSotStorageStream( SotClipboardFormatId::DRAWING, xStm ) )
{ {
DrawDocShellRef xShell = new DrawDocShell(SfxObjectCreateMode::INTERNAL); DrawDocShellRef xShell = new DrawDocShell(SfxObjectCreateMode::INTERNAL, false);
xShell->DoInitNew(); xShell->DoInitNew();
SdDrawDocument* pModel = xShell->GetDoc(); SdDrawDocument* pModel = xShell->GetDoc();
......
...@@ -565,7 +565,7 @@ class SfxAddHelpBookmarkDialog_Impl : public ModalDialog ...@@ -565,7 +565,7 @@ class SfxAddHelpBookmarkDialog_Impl : public ModalDialog
private: private:
VclPtr<Edit> m_pTitleED; VclPtr<Edit> m_pTitleED;
public: public:
SfxAddHelpBookmarkDialog_Impl( vcl::Window* pParent, bool bRename = true ); SfxAddHelpBookmarkDialog_Impl( vcl::Window* pParent, bool bRename );
virtual ~SfxAddHelpBookmarkDialog_Impl() override; virtual ~SfxAddHelpBookmarkDialog_Impl() override;
virtual void dispose() override; virtual void dispose() override;
......
...@@ -105,7 +105,7 @@ protected: ...@@ -105,7 +105,7 @@ protected:
SvTreeListEntry* pTarget, SvTreeListEntry* pEntry, SvTreeListEntry* pTarget, SvTreeListEntry* pEntry,
SvTreeListEntry*& rpNewParent, sal_uIntPtr& rNewChildPos) override; SvTreeListEntry*& rpNewParent, sal_uIntPtr& rNewChildPos) override;
public: public:
StyleTreeListBox_Impl( SfxCommonTemplateDialog_Impl* pParent, WinBits nWinStyle = 0); StyleTreeListBox_Impl( SfxCommonTemplateDialog_Impl* pParent, WinBits nWinStyle);
void Recalc(); void Recalc();
......
...@@ -47,7 +47,7 @@ protected: ...@@ -47,7 +47,7 @@ protected:
class BoxSnakesWipe : public SpiralWipe class BoxSnakesWipe : public SpiralWipe
{ {
public: public:
BoxSnakesWipe( sal_Int32 nElements, bool fourBox = false ) BoxSnakesWipe( sal_Int32 nElements, bool fourBox )
: SpiralWipe(nElements), m_fourBox(fourBox) {} : SpiralWipe(nElements), m_fourBox(fourBox) {}
virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override; virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override;
private: private:
......
...@@ -31,7 +31,7 @@ namespace internal { ...@@ -31,7 +31,7 @@ namespace internal {
class WaterfallWipe : public ParametricPolyPolygon class WaterfallWipe : public ParametricPolyPolygon
{ {
public: public:
WaterfallWipe( sal_Int32 nElements, bool flipOnYAxis = false ); WaterfallWipe( sal_Int32 nElements, bool flipOnYAxis );
virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override; virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override;
private: private:
bool m_flipOnYAxis; bool m_flipOnYAxis;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment