diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-03 10:23:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-03 11:06:54 +0200 |
commit | dafae0fe31353a8092334328d499bc108d39e44c (patch) | |
tree | 7c7d58067996627f163e2f65f7faae86dd91615a /sd/source/ui/inc | |
parent | eba883c8a2ce045fc7bd3848d796ca10b7f4ba51 (diff) |
loplugin:constparams in sd
Change-Id: I833c6da99d5ccb8f6a8b5c905bee73b75fde0a89
Reviewed-on: https://gerrit.libreoffice.org/40700
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/inc')
40 files changed, 75 insertions, 75 deletions
diff --git a/sd/source/ui/inc/DrawDocShell.hxx b/sd/source/ui/inc/DrawDocShell.hxx index 20f215f5c74c..ecfb545be2fd 100644 --- a/sd/source/ui/inc/DrawDocShell.hxx +++ b/sd/source/ui/inc/DrawDocShell.hxx @@ -126,7 +126,7 @@ public: void GetState(SfxItemSet&); void Connect(sd::ViewShell* pViewSh); - void Disconnect(sd::ViewShell* pViewSh); + void Disconnect(sd::ViewShell const * pViewSh); void UpdateTablePointers(); bool GotoBookmark(const OUString& rBookmark); diff --git a/sd/source/ui/inc/DrawViewShell.hxx b/sd/source/ui/inc/DrawViewShell.hxx index 7a4836f308de..cc71ee554cbf 100644 --- a/sd/source/ui/inc/DrawViewShell.hxx +++ b/sd/source/ui/inc/DrawViewShell.hxx @@ -119,7 +119,7 @@ public: virtual void Resize() override; - void ShowMousePosInfo(const ::tools::Rectangle& rRect, ::sd::Window* pWin); + void ShowMousePosInfo(const ::tools::Rectangle& rRect, ::sd::Window const * pWin); virtual void ChangeEditMode (EditMode eMode, bool bIsLayerModeActive); @@ -182,7 +182,7 @@ public: void ExecNavigatorWin(SfxRequest& rReq); void GetNavigatorWinState(SfxItemSet& rSet); - void ExecutePropPanelAttr (SfxRequest& rReq); + void ExecutePropPanelAttr (SfxRequest const & rReq); void GetStatePropPanelAttr(SfxItemSet& rSet); void ExecEffectWin(SfxRequest& rReq); @@ -190,19 +190,19 @@ public: void Update3DWindow(); void AssignFrom3DWindow(); - void ExecGallery(SfxRequest& rReq); + void ExecGallery(SfxRequest const & rReq); - void ExecBmpMask( SfxRequest& rReq ); + void ExecBmpMask( SfxRequest const & rReq ); void GetBmpMaskState( SfxItemSet& rSet ); - void ExecIMap( SfxRequest& rReq ); + void ExecIMap( SfxRequest const & rReq ); void GetIMapState( SfxItemSet& rSet ); void FuTemporary(SfxRequest& rReq); void FuPermanent(SfxRequest& rReq); void FuSupport(SfxRequest& rReq); void FuDeleteSelectedObjects(); - void FuSupportRotate(SfxRequest& rReq); + void FuSupportRotate(SfxRequest const & rReq); void FuTable(SfxRequest& rReq); void AttrExec (SfxRequest& rReq); @@ -222,7 +222,7 @@ public: SD_DLLPUBLIC void ExecChar(SfxRequest& rReq); - void ExecuteAnnotation (SfxRequest& rRequest); + void ExecuteAnnotation (SfxRequest const & rRequest); void GetAnnotationState (SfxItemSet& rItemSet); void StartRulerDrag (const Ruler& rRuler, const MouseEvent& rMEvt); @@ -398,7 +398,7 @@ protected: virtual void UpdateVRuler() override; virtual void SetZoomFactor(const Fraction& rZoomX, const Fraction& rZoomY) override; - void SetupPage( Size &rSize, long nLeft, long nRight, long nUpper, long nLower, + void SetupPage( Size const &rSize, long nLeft, long nRight, long nUpper, long nLower, bool bSize, bool bMargin, bool bScaleAll ); void GetMenuStateSel(SfxItemSet& rSet); diff --git a/sd/source/ui/inc/EventMultiplexer.hxx b/sd/source/ui/inc/EventMultiplexer.hxx index 0878c16ccc50..6c002093ae67 100644 --- a/sd/source/ui/inc/EventMultiplexer.hxx +++ b/sd/source/ui/inc/EventMultiplexer.hxx @@ -169,7 +169,7 @@ public: */ void MultiplexEvent( EventMultiplexerEventId eEventId, - void* pUserData); + void const * pUserData); private: class Implementation; diff --git a/sd/source/ui/inc/FrameView.hxx b/sd/source/ui/inc/FrameView.hxx index 6ca75dbb04e9..77e439d92a37 100644 --- a/sd/source/ui/inc/FrameView.hxx +++ b/sd/source/ui/inc/FrameView.hxx @@ -43,7 +43,7 @@ public: void Connect(); void Disconnect(); - void Update(SdOptions* pOptions); + void Update(SdOptions const * pOptions); void SetStandardHelpLines(const SdrHelpLineList& rHelpLines) { maStandardHelpLines = rHelpLines; } diff --git a/sd/source/ui/inc/GraphicObjectBar.hxx b/sd/source/ui/inc/GraphicObjectBar.hxx index bb7cf3b07996..95a9aeba9738 100644 --- a/sd/source/ui/inc/GraphicObjectBar.hxx +++ b/sd/source/ui/inc/GraphicObjectBar.hxx @@ -47,7 +47,7 @@ public: void Execute( SfxRequest& rReq ); void GetFilterState( SfxItemSet& rSet ); - void ExecuteFilter( SfxRequest& rReq ); + void ExecuteFilter( SfxRequest const & rReq ); protected: ::sd::View* mpView; diff --git a/sd/source/ui/inc/MediaObjectBar.hxx b/sd/source/ui/inc/MediaObjectBar.hxx index 9e28051fc4c9..9b1b5880b3f8 100644 --- a/sd/source/ui/inc/MediaObjectBar.hxx +++ b/sd/source/ui/inc/MediaObjectBar.hxx @@ -45,7 +45,7 @@ public: virtual ~MediaObjectBar() override; void GetState( SfxItemSet& rSet ); - void Execute( SfxRequest& rReq ); + void Execute( SfxRequest const & rReq ); protected: ::sd::View* mpView; diff --git a/sd/source/ui/inc/OutlineView.hxx b/sd/source/ui/inc/OutlineView.hxx index 15869e25c454..945fcbae93c8 100644 --- a/sd/source/ui/inc/OutlineView.hxx +++ b/sd/source/ui/inc/OutlineView.hxx @@ -72,8 +72,8 @@ public: void DisconnectFromApplication(); - static SdrTextObj* GetTitleTextObject(SdrPage* pPage); - static SdrTextObj* GetOutlineTextObject(SdrPage* pPage); + static SdrTextObj* GetTitleTextObject(SdrPage const * pPage); + static SdrTextObj* GetOutlineTextObject(SdrPage const * pPage); static SdrTextObj* CreateTitleTextObject(SdPage* pPage); static SdrTextObj* CreateOutlineTextObject(SdPage* pPage); @@ -81,19 +81,19 @@ public: virtual void AddWindowToPaintView(OutputDevice* pWin, vcl::Window* pWindow) override; virtual void DeleteWindowFromPaintView(OutputDevice* pWin) override; - OutlinerView* GetViewByWindow(vcl::Window* pWin) const; + OutlinerView* GetViewByWindow(vcl::Window const * pWin) const; SdrOutliner& GetOutliner() { return mrOutliner; } Paragraph* GetPrevTitle(const Paragraph* pPara); Paragraph* GetNextTitle(const Paragraph* pPara); SdPage* GetActualPage(); SdPage* GetPageForParagraph( Paragraph* pPara ); - Paragraph* GetParagraphForPage( ::Outliner& rOutl, SdPage* pPage ); + Paragraph* GetParagraphForPage( ::Outliner const & rOutl, SdPage const * pPage ); /** selects the paragraph for the given page at the outliner view*/ - void SetActualPage( SdPage* pActual ); + void SetActualPage( SdPage const * pActual ); - void Paint (const ::tools::Rectangle& rRect, ::sd::Window* pWin); + void Paint (const ::tools::Rectangle& rRect, ::sd::Window const * pWin); // Callbacks for LINKs DECL_LINK( ParagraphInsertedHdl, ::Outliner::ParagraphHdlParam, void ); diff --git a/sd/source/ui/inc/OutlineViewShell.hxx b/sd/source/ui/inc/OutlineViewShell.hxx index 179853283af6..396fc360f332 100644 --- a/sd/source/ui/inc/OutlineViewShell.hxx +++ b/sd/source/ui/inc/OutlineViewShell.hxx @@ -145,7 +145,7 @@ public: */ void SetCurrentPage (SdPage* pPage); - void UpdateTitleObject( SdPage* pPage, Paragraph* pPara ); + void UpdateTitleObject( SdPage* pPage, Paragraph const * pPara ); void UpdateOutlineObject( SdPage* pPage, Paragraph* pPara ); private: diff --git a/sd/source/ui/inc/RemoteServer.hxx b/sd/source/ui/inc/RemoteServer.hxx index 00c58105aae6..a6ddf8003586 100644 --- a/sd/source/ui/inc/RemoteServer.hxx +++ b/sd/source/ui/inc/RemoteServer.hxx @@ -80,7 +80,7 @@ namespace sd SD_DLLPUBLIC static void restoreDiscoverable(); // For the communicator - static void removeCommunicator( Communicator* pCommunicator ); + static void removeCommunicator( Communicator const * pCommunicator ); private: RemoteServer(); virtual ~RemoteServer() override; diff --git a/sd/source/ui/inc/TemplateScanner.hxx b/sd/source/ui/inc/TemplateScanner.hxx index 29768ce035c6..aba6ed2c2f5a 100644 --- a/sd/source/ui/inc/TemplateScanner.hxx +++ b/sd/source/ui/inc/TemplateScanner.hxx @@ -61,7 +61,7 @@ class TemplateEntryCompare { public: TemplateEntryCompare(); - bool operator()(TemplateEntry* pA, TemplateEntry* pB) const; + bool operator()(TemplateEntry const * pA, TemplateEntry const * pB) const; private: std::shared_ptr<comphelper::string::NaturalStringSorter> mpStringSorter; diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index f98f263a4438..98c1f0100170 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -91,7 +91,7 @@ public: void SelectAll(); void DoCut(); void DoCopy(); - void DoPaste(vcl::Window* pWindow=nullptr); + void DoPaste(vcl::Window const * pWindow=nullptr); virtual void DoConnect(SdrOle2Obj* pOleObj) override; virtual bool SetStyleSheet(SfxStyleSheet* pStyleSheet, bool bDontRemoveHardAttr = false); void StartDrag( const Point& rStartPos, vcl::Window* pWindow ); @@ -141,10 +141,10 @@ public: */ bool InsertMetaFile( TransferableDataHelper& rDataHelper, const Point& rInsertPos, - ImageMap* pImageMap, bool bOptimize ); + ImageMap const * pImageMap, bool bOptimize ); SdrGrafObj* InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, const Point& rPos, - SdrObject* pSelectedObj, ImageMap* pImageMap ); + SdrObject* pSelectedObj, ImageMap const * pImageMap ); void InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction, const Point& rPos, const Size& rSize, bool const bLink ); @@ -226,7 +226,7 @@ public: SdrObject* GetEmptyPresentationObject( PresObjKind eKind ); SdPage* GetPage(); - SdrObject* GetSelectedSingleObject(SdPage* pPage); + SdrObject* GetSelectedSingleObject(SdPage const * pPage); void SetAuthor(const OUString& rAuthor) { m_sAuthor = rAuthor; } const OUString& GetAuthor() { return m_sAuthor; } diff --git a/sd/source/ui/inc/ViewClipboard.hxx b/sd/source/ui/inc/ViewClipboard.hxx index 0a33e16512b0..541e276726f2 100644 --- a/sd/source/ui/inc/ViewClipboard.hxx +++ b/sd/source/ui/inc/ViewClipboard.hxx @@ -56,7 +56,7 @@ protected: */ void AssignMasterPage ( const SdTransferable& rTransferable, - SdPage* pMasterPage); + SdPage const * pMasterPage); /** Return an index of a page after which the pages of the transferable are to be inserted into the target document. diff --git a/sd/source/ui/inc/ViewShell.hxx b/sd/source/ui/inc/ViewShell.hxx index 2d0cddea6b32..490f07f8e906 100644 --- a/sd/source/ui/inc/ViewShell.hxx +++ b/sd/source/ui/inc/ViewShell.hxx @@ -179,7 +179,7 @@ public: virtual void MouseButtonDown(const MouseEvent& rMEvt, ::sd::Window* pWin); virtual void Command(const CommandEvent& rCEvt, ::sd::Window* pWin); bool RequestHelp( const HelpEvent& rEvt ); - bool Notify( NotifyEvent& rNEvt, ::sd::Window* pWin ); + bool Notify( NotifyEvent const & rNEvt, ::sd::Window* pWin ); bool HandleScrollCommand(const CommandEvent& rCEvt, ::sd::Window* pWin); diff --git a/sd/source/ui/inc/ViewShellBase.hxx b/sd/source/ui/inc/ViewShellBase.hxx index c9761a5888f8..468b2bb007af 100644 --- a/sd/source/ui/inc/ViewShellBase.hxx +++ b/sd/source/ui/inc/ViewShellBase.hxx @@ -95,7 +95,7 @@ public: When the SfxViewShell of the given frame is not a ViewShellBase object then NULL is returned. */ - static ViewShellBase* GetViewShellBase (SfxViewFrame* pFrame); + static ViewShellBase* GetViewShellBase (SfxViewFrame const * pFrame); DrawDocShell* GetDocShell() const { return mpDocShell;} SdDrawDocument* GetDocument() const { return mpDocument;} diff --git a/sd/source/ui/inc/ViewShellImplementation.hxx b/sd/source/ui/inc/ViewShellImplementation.hxx index 40791a49cf78..2e2d797df415 100644 --- a/sd/source/ui/inc/ViewShellImplementation.hxx +++ b/sd/source/ui/inc/ViewShellImplementation.hxx @@ -110,7 +110,7 @@ public: @param pPage If a NULL pointer is given then this call is ignored. */ - void AssignLayout ( SfxRequest& rRequest, PageKind ePageKind ); + void AssignLayout ( SfxRequest const & rRequest, PageKind ePageKind ); /** Determine the view id of the view shell. This corresponds to the view id stored in the SfxViewFrame class. diff --git a/sd/source/ui/inc/ViewShellManager.hxx b/sd/source/ui/inc/ViewShellManager.hxx index da6fadb944b7..932d835a1eab 100644 --- a/sd/source/ui/inc/ViewShellManager.hxx +++ b/sd/source/ui/inc/ViewShellManager.hxx @@ -72,10 +72,10 @@ public: /** Set the factory for sub shells of the specified view shell. */ void AddSubShellFactory ( - ViewShell* pViewShell, + ViewShell const * pViewShell, const SharedShellFactory& rpFactory); void RemoveSubShellFactory ( - ViewShell* pViewShell, + ViewShell const * pViewShell, const SharedShellFactory& rpFactory); /** Activate the given view shell. @@ -131,7 +131,7 @@ public: call. This does not modify the shell stack. */ void InvalidateAllSubShells ( - ViewShell* pViewShell); + ViewShell const * pViewShell); /** Move the specified view shell to the top most position on the stack of view shells in relation to the other view shells. After this the diff --git a/sd/source/ui/inc/animobjs.hxx b/sd/source/ui/inc/animobjs.hxx index 8f576871cb5d..4d0a6695a317 100644 --- a/sd/source/ui/inc/animobjs.hxx +++ b/sd/source/ui/inc/animobjs.hxx @@ -69,7 +69,7 @@ public: virtual void Paint( vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect ) override; - void SetBitmapEx( BitmapEx* pBmpEx ); + void SetBitmapEx( BitmapEx const * pBmpEx ); void SetScale( const Fraction& rFrac ); virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; diff --git a/sd/source/ui/inc/annotationmanager.hxx b/sd/source/ui/inc/annotationmanager.hxx index 1b505c0cfdf1..423d9c3e57b4 100644 --- a/sd/source/ui/inc/annotationmanager.hxx +++ b/sd/source/ui/inc/annotationmanager.hxx @@ -36,7 +36,7 @@ public: AnnotationManager( ViewShellBase& rViewShellBase ); ~AnnotationManager(); - void ExecuteAnnotation (SfxRequest& rRequest); + void ExecuteAnnotation (SfxRequest const & rRequest); void GetAnnotationState (SfxItemSet& rItemSet); private: diff --git a/sd/source/ui/inc/custsdlg.hxx b/sd/source/ui/inc/custsdlg.hxx index 068d5d1e4bcc..5a40666a6e43 100644 --- a/sd/source/ui/inc/custsdlg.hxx +++ b/sd/source/ui/inc/custsdlg.hxx @@ -54,7 +54,7 @@ private: DECL_LINK( ClickButtonHdl, Button*, void ); DECL_LINK( SelectListBoxHdl, ListBox&, void ); DECL_LINK( StartShowHdl, Button*, void ); - void SelectHdl(void*); + void SelectHdl(void const *); public: SdCustomShowDlg( vcl::Window* pWindow, SdDrawDocument& rDrawDoc ); @@ -89,7 +89,7 @@ private: DECL_LINK( ClickButtonHdl3, SvTreeListBox*, void ); DECL_LINK( ClickButtonHdl4, ListBox&, void ); DECL_LINK( OKHdl, Button*, void ); - void ClickButtonHdl2(void*); + void ClickButtonHdl2(void const *); public: diff --git a/sd/source/ui/inc/dlgpage.hxx b/sd/source/ui/inc/dlgpage.hxx index bebbfbba99ad..632ae583ebfa 100644 --- a/sd/source/ui/inc/dlgpage.hxx +++ b/sd/source/ui/inc/dlgpage.hxx @@ -43,7 +43,7 @@ private: sal_uInt16 mnTransparence; public: - SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ); + SdPageDlg( SfxObjectShell const * pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ); virtual void PageCreated(sal_uInt16 nId, SfxTabPage& rPage) override; }; diff --git a/sd/source/ui/inc/dlgsnap.hxx b/sd/source/ui/inc/dlgsnap.hxx index a297795a5ae7..c7f1188909c7 100644 --- a/sd/source/ui/inc/dlgsnap.hxx +++ b/sd/source/ui/inc/dlgsnap.hxx @@ -58,7 +58,7 @@ private: DECL_LINK( ClickHdl, Button *, void ); public: - SdSnapLineDlg(vcl::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View* pView); + SdSnapLineDlg(vcl::Window* pWindow, const SfxItemSet& rInAttrs, ::sd::View const * pView); virtual ~SdSnapLineDlg() override; virtual void dispose() override; diff --git a/sd/source/ui/inc/framework/DrawModule.hxx b/sd/source/ui/inc/framework/DrawModule.hxx index bad14263be72..40d834726626 100644 --- a/sd/source/ui/inc/framework/DrawModule.hxx +++ b/sd/source/ui/inc/framework/DrawModule.hxx @@ -31,7 +31,7 @@ class DrawModule { public: static void Initialize ( - css::uno::Reference<css::frame::XController>& rxController); + css::uno::Reference<css::frame::XController> const & rxController); }; } } // end of namespace sd::framework diff --git a/sd/source/ui/inc/framework/FrameworkHelper.hxx b/sd/source/ui/inc/framework/FrameworkHelper.hxx index d834e3d35126..8c2dbef08631 100644 --- a/sd/source/ui/inc/framework/FrameworkHelper.hxx +++ b/sd/source/ui/inc/framework/FrameworkHelper.hxx @@ -206,7 +206,7 @@ public: */ void HandleModeChangeSlot ( sal_uLong nSlotId, - SfxRequest& rRequest); + SfxRequest const & rRequest); /** Run the given callback when the specified event is notified by the ConfigurationManager. When there are no pending requests and diff --git a/sd/source/ui/inc/framework/ImpressModule.hxx b/sd/source/ui/inc/framework/ImpressModule.hxx index 548f3fca7690..5446a6d09929 100644 --- a/sd/source/ui/inc/framework/ImpressModule.hxx +++ b/sd/source/ui/inc/framework/ImpressModule.hxx @@ -31,7 +31,7 @@ class ImpressModule { public: static void Initialize ( - css::uno::Reference<css::frame::XController>& rxController); + css::uno::Reference<css::frame::XController> const & rxController); }; } } // end of namespace sd::framework diff --git a/sd/source/ui/inc/framework/PresentationModule.hxx b/sd/source/ui/inc/framework/PresentationModule.hxx index 45c2858f07b5..13e4595d923f 100644 --- a/sd/source/ui/inc/framework/PresentationModule.hxx +++ b/sd/source/ui/inc/framework/PresentationModule.hxx @@ -31,7 +31,7 @@ class PresentationModule { public: static void Initialize ( - css::uno::Reference<css::frame::XController>& rxController); + css::uno::Reference<css::frame::XController> const & rxController); }; } } // end of namespace sd::framework diff --git a/sd/source/ui/inc/fubullet.hxx b/sd/source/ui/inc/fubullet.hxx index 55672cd669b3..058e66e321e6 100644 --- a/sd/source/ui/inc/fubullet.hxx +++ b/sd/source/ui/inc/fubullet.hxx @@ -36,7 +36,7 @@ public: static rtl::Reference<FuPoor> Create( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq ); virtual void DoExecute( SfxRequest& rReq ) override; - static void GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFrame* pViewFrame ); + static void GetSlotState( SfxItemSet& rSet, ViewShell const * pViewShell, SfxViewFrame* pViewFrame ); private: FuBullet ( @@ -46,7 +46,7 @@ private: SdDrawDocument* pDoc, SfxRequest& rReq); - void InsertSpecialCharacter( SfxRequest& rReq ); + void InsertSpecialCharacter( SfxRequest const & rReq ); void InsertFormattingMark( sal_Unicode cMark ); }; diff --git a/sd/source/ui/inc/fucon3d.hxx b/sd/source/ui/inc/fucon3d.hxx index 0b0d7db22dcd..dd9743f35565 100644 --- a/sd/source/ui/inc/fucon3d.hxx +++ b/sd/source/ui/inc/fucon3d.hxx @@ -53,7 +53,7 @@ private: SdDrawDocument* pDoc, SfxRequest& rReq); - void ImpPrepareBasic3DShape(E3dCompoundObject* p3DObj, E3dScene *pScene); + void ImpPrepareBasic3DShape(E3dCompoundObject const * p3DObj, E3dScene *pScene); E3dCompoundObject* ImpCreateBasic3DShape(); }; diff --git a/sd/source/ui/inc/fuconrec.hxx b/sd/source/ui/inc/fuconrec.hxx index 87cf6ef92d73..4402599851e2 100644 --- a/sd/source/ui/inc/fuconrec.hxx +++ b/sd/source/ui/inc/fuconrec.hxx @@ -48,7 +48,7 @@ public: virtual void Deactivate() override; void SetAttributes(SfxItemSet& rAttr, SdrObject* pObj); - void SetLineEnds(SfxItemSet& rAttr, SdrObject* pObj); + void SetLineEnds(SfxItemSet& rAttr, SdrObject const * pObj); virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle& rRectangle) override; diff --git a/sd/source/ui/inc/fuformatpaintbrush.hxx b/sd/source/ui/inc/fuformatpaintbrush.hxx index 4a3e3e83861e..043b4ef207b2 100644 --- a/sd/source/ui/inc/fuformatpaintbrush.hxx +++ b/sd/source/ui/inc/fuformatpaintbrush.hxx @@ -43,7 +43,7 @@ public: virtual void Activate() override; virtual void Deactivate() override; - static void GetMenuState( DrawViewShell& rDrawViewShell, SfxItemSet &rSet ); + static void GetMenuState( DrawViewShell const & rDrawViewShell, SfxItemSet &rSet ); private: FuFormatPaintBrush ( ViewShell* pViewSh, ::sd::Window* pWin, ::sd::View* pView, SdDrawDocument* pDoc, SfxRequest& rReq); diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index c748a1555520..bf1e3aabd903 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -148,7 +148,7 @@ class SD_DLLPUBLIC SdOptionsLayoutItem : public SfxPoolItem public: explicit SdOptionsLayoutItem(); - SdOptionsLayoutItem( SdOptions* pOpts, ::sd::FrameView* pView ); + SdOptionsLayoutItem( SdOptions const * pOpts, ::sd::FrameView const * pView ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; @@ -326,7 +326,7 @@ class SD_DLLPUBLIC SdOptionsMiscItem : public SfxPoolItem public: explicit SdOptionsMiscItem(); - SdOptionsMiscItem( SdOptions* pOpts, ::sd::FrameView* pView ); + SdOptionsMiscItem( SdOptions const * pOpts, ::sd::FrameView const * pView ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; @@ -394,7 +394,7 @@ class SD_DLLPUBLIC SdOptionsSnapItem : public SfxPoolItem public: explicit SdOptionsSnapItem(); - SdOptionsSnapItem( SdOptions* pOpts, ::sd::FrameView* pView ); + SdOptionsSnapItem( SdOptions const * pOpts, ::sd::FrameView const * pView ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; @@ -469,7 +469,7 @@ class SdOptionsGridItem : public SvxGridItem { public: - explicit SdOptionsGridItem( SdOptions* pOpts ); + explicit SdOptionsGridItem( SdOptions const * pOpts ); void SetOptions( SdOptions* pOpts ) const; }; @@ -562,7 +562,7 @@ class SD_DLLPUBLIC SdOptionsPrintItem : public SfxPoolItem public: explicit SdOptionsPrintItem(); - explicit SdOptionsPrintItem( SdOptions* pOpts ); + explicit SdOptionsPrintItem( SdOptions const * pOpts ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; diff --git a/sd/source/ui/inc/prltempl.hxx b/sd/source/ui/inc/prltempl.hxx index e2bf3747c07d..147f52b16534 100644 --- a/sd/source/ui/inc/prltempl.hxx +++ b/sd/source/ui/inc/prltempl.hxx @@ -69,7 +69,7 @@ private: using SfxTabDialog::GetOutputItemSet; public: - SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, bool bBackground, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ); + SdPresLayoutTemplateDlg( SfxObjectShell const * pDocSh, vcl::Window* pParent, bool bBackground, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ); virtual ~SdPresLayoutTemplateDlg() override; virtual void dispose() override; diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx index bf7e59b7581c..db218e950787 100644 --- a/sd/source/ui/inc/sdtreelb.hxx +++ b/sd/source/ui/inc/sdtreelb.hxx @@ -252,7 +252,7 @@ private: /** Return <TRUE/> when the current transferable may be dropped at the given list box entry. */ - bool IsDropAllowed (SvTreeListEntry* pEntry); + bool IsDropAllowed (SvTreeListEntry const * pEntry); /** This inner class is defined in sdtreelb.cxx and is basically a container for the icons used in the list box for the entries. diff --git a/sd/source/ui/inc/slideshow.hxx b/sd/source/ui/inc/slideshow.hxx index ce60b88c9d6e..b76c3a37c36f 100644 --- a/sd/source/ui/inc/slideshow.hxx +++ b/sd/source/ui/inc/slideshow.hxx @@ -85,20 +85,20 @@ public: static rtl::Reference< SlideShow > Create( SdDrawDocument* pDoc ); // static helper api - static rtl::Reference< SlideShow > GetSlideShow( SdDrawDocument* pDocument ); - static rtl::Reference< SlideShow > GetSlideShow( SdDrawDocument& rDocument ); - static rtl::Reference< SlideShow > GetSlideShow( ViewShellBase& rBase ); + static rtl::Reference< SlideShow > GetSlideShow( SdDrawDocument const * pDocument ); + static rtl::Reference< SlideShow > GetSlideShow( SdDrawDocument const & rDocument ); + static rtl::Reference< SlideShow > GetSlideShow( ViewShellBase const & rBase ); - static css::uno::Reference< css::presentation::XSlideShowController > GetSlideShowController(ViewShellBase& rBase ); + static css::uno::Reference< css::presentation::XSlideShowController > GetSlideShowController(ViewShellBase const & rBase ); - static bool StartPreview( ViewShellBase& rBase, + static bool StartPreview( ViewShellBase const & rBase, const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage, const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode ); - static void Stop( ViewShellBase& rBase ); + static void Stop( ViewShellBase const & rBase ); /// returns true if there is a running presentation for the given ViewShellBase - static bool IsRunning( ViewShellBase& rBase ); + static bool IsRunning( ViewShellBase const & rBase ); /// returns true if there is a running presentation inside the given ViewShell /// returns false even if there is a running presentation but in another ViewShell @@ -165,7 +165,7 @@ public: bool keyInput(const KeyEvent& rKEvt); - bool dependsOn( ViewShellBase* pViewShellBase ); + bool dependsOn( ViewShellBase const * pViewShellBase ); static sal_Int32 GetDisplay(); @@ -210,7 +210,7 @@ private: namespace slideshowhelp { - void ShowSlideShow(SfxRequest& rReq, SdDrawDocument &rDoc); + void ShowSlideShow(SfxRequest const & rReq, SdDrawDocument &rDoc); } } diff --git a/sd/source/ui/inc/tabtempl.hxx b/sd/source/ui/inc/tabtempl.hxx index f4a812baad2d..72cd73456bd7 100644 --- a/sd/source/ui/inc/tabtempl.hxx +++ b/sd/source/ui/inc/tabtempl.hxx @@ -60,7 +60,7 @@ public: SdTabTemplateDlg(vcl::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, - SdrModel* pModel, + SdrModel const * pModel, SdrView* pView); }; diff --git a/sd/source/ui/inc/tools/SlotStateListener.hxx b/sd/source/ui/inc/tools/SlotStateListener.hxx index 270bfb6c59ae..d6eed848f3c2 100644 --- a/sd/source/ui/inc/tools/SlotStateListener.hxx +++ b/sd/source/ui/inc/tools/SlotStateListener.hxx @@ -50,7 +50,7 @@ public: explanations about the parameters. */ SlotStateListener ( - Link<const OUString&,void>& rCallback, + Link<const OUString&,void> const & rCallback, const css::uno::Reference<css::frame::XDispatchProvider>& rxDispatchProvider, const OUString& rSlotName); diff --git a/sd/source/ui/inc/tpaction.hxx b/sd/source/ui/inc/tpaction.hxx index b42d9c2887ca..8ca9566ab438 100644 --- a/sd/source/ui/inc/tpaction.hxx +++ b/sd/source/ui/inc/tpaction.hxx @@ -43,7 +43,7 @@ class SdActionDlg : public SfxSingleTabDialog private: const SfxItemSet& rOutAttrs; public: - SdActionDlg(vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView); + SdActionDlg(vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView); }; /** diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index 60e14e173baa..404c34c49b72 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -62,7 +62,7 @@ class DrawDocShell; class DrawViewShell; } -extern OUString getPageApiName( SdPage* pPage ); +extern OUString getPageApiName( SdPage const * pPage ); extern OUString getPageApiNameFromUiName( const OUString& rUIName ); /*********************************************************************** @@ -133,7 +133,7 @@ public: SdXImpressDocument( SdDrawDocument* pDoc, bool bClipBoard ) throw(); virtual ~SdXImpressDocument() throw() override; - static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument* pDoc ); + static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument const * pDoc ); // intern bool operator==( const SdXImpressDocument& rModel ) const { return mpDoc == rModel.mpDoc; } diff --git a/sd/source/ui/inc/unopage.hxx b/sd/source/ui/inc/unopage.hxx index b930581413ad..ff6c0a614022 100644 --- a/sd/source/ui/inc/unopage.hxx +++ b/sd/source/ui/inc/unopage.hxx @@ -77,7 +77,7 @@ protected: virtual void getBackground( css::uno::Any& rValue ); OUString getBookmarkURL() const; - void setBookmarkURL( OUString& rURL ); + void setBookmarkURL( OUString const & rURL ); void SetLftBorder( sal_Int32 nValue ); void SetRgtBorder( sal_Int32 nValue ); @@ -179,7 +179,7 @@ public: UNO3_GETIMPLEMENTATION_DECL( SdDrawPage ) - static OUString getPageApiName( SdPage* pPage ); + static OUString getPageApiName( SdPage const * pPage ); static OUString getPageApiNameFromUiName( const OUString& rUIName ); static OUString getUiNameFromPageApiName( const OUString& rApiName ); diff --git a/sd/source/ui/inc/unosrch.hxx b/sd/source/ui/inc/unosrch.hxx index 884659b09814..f7b7921c0e34 100644 --- a/sd/source/ui/inc/unosrch.hxx +++ b/sd/source/ui/inc/unosrch.hxx @@ -124,7 +124,7 @@ protected: css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > maSequence; public: - SdUnoFindAllAccess( css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& rSequence ) throw(); + SdUnoFindAllAccess( css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > const & rSequence ) throw(); virtual ~SdUnoFindAllAccess() throw() override; // XIndexAccess diff --git a/sd/source/ui/inc/vectdlg.hxx b/sd/source/ui/inc/vectdlg.hxx index dbfeee16e9ce..9a6ddd2304b3 100644 --- a/sd/source/ui/inc/vectdlg.hxx +++ b/sd/source/ui/inc/vectdlg.hxx @@ -66,9 +66,9 @@ class SdVectorizeDlg : public ModalDialog void InitPreviewBmp(); static ::tools::Rectangle GetRect( const Size& rDispSize, const Size& rBmpSize ); - Bitmap GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale ); - void Calculate( Bitmap& rBmp, GDIMetaFile& rMtf ); - void AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf, + Bitmap GetPreparedBitmap( Bitmap const & rBmp, Fraction& rScale ); + void Calculate( Bitmap const & rBmp, GDIMetaFile& rMtf ); + void AddTile( BitmapReadAccess const * pRAcc, GDIMetaFile& rMtf, long nPosX, long nPosY, long nWidth, long nHeight ); DECL_LINK( ProgressHdl, long, void ); |