summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 10:23:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-03 11:06:54 +0200
commitdafae0fe31353a8092334328d499bc108d39e44c (patch)
tree7c7d58067996627f163e2f65f7faae86dd91615a /sd
parenteba883c8a2ce045fc7bd3848d796ca10b7f4ba51 (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')
-rw-r--r--sd/inc/Annotation.hxx4
-rw-r--r--sd/inc/CustomAnimationEffect.hxx2
-rw-r--r--sd/inc/EffectMigration.hxx6
-rw-r--r--sd/inc/OutlinerIterator.hxx2
-rw-r--r--sd/inc/TransitionPreset.hxx2
-rw-r--r--sd/inc/animations.hxx2
-rw-r--r--sd/inc/drawdoc.hxx18
-rw-r--r--sd/inc/notifydocumentevent.hxx4
-rw-r--r--sd/inc/sdmod.hxx4
-rw-r--r--sd/inc/sdpage.hxx6
-rw-r--r--sd/inc/stlpool.hxx6
-rw-r--r--sd/inc/stlsheet.hxx2
-rw-r--r--sd/inc/textapi.hxx2
-rw-r--r--sd/qa/unit/import-tests.cxx4
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx6
-rw-r--r--sd/source/core/EffectMigration.cxx12
-rw-r--r--sd/source/core/TransitionPreset.cxx2
-rw-r--r--sd/source/core/annotations/Annotation.cxx6
-rw-r--r--sd/source/core/drawdoc2.cxx8
-rw-r--r--sd/source/core/drawdoc3.cxx8
-rw-r--r--sd/source/core/drawdoc4.cxx6
-rw-r--r--sd/source/core/sdpage.cxx6
-rw-r--r--sd/source/core/sdpage_animations.cxx6
-rw-r--r--sd/source/core/stlpool.cxx8
-rw-r--r--sd/source/core/stlsheet.cxx4
-rw-r--r--sd/source/core/text/textapi.cxx6
-rw-r--r--sd/source/filter/eppt/eppt.cxx16
-rw-r--r--sd/source/filter/eppt/eppt.hxx16
-rw-r--r--sd/source/filter/eppt/epptooxml.hxx2
-rw-r--r--sd/source/filter/eppt/epptso.cxx6
-rw-r--r--sd/source/filter/eppt/escherex.cxx2
-rw-r--r--sd/source/filter/eppt/escherex.hxx2
-rw-r--r--sd/source/filter/eppt/grouptable.hxx4
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx2
-rw-r--r--sd/source/filter/eppt/pptx-grouptable.cxx2
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx4
-rw-r--r--sd/source/filter/eppt/text.hxx4
-rw-r--r--sd/source/filter/html/htmlattr.cxx4
-rw-r--r--sd/source/filter/html/htmlattr.hxx4
-rw-r--r--sd/source/filter/html/htmlex.cxx16
-rw-r--r--sd/source/filter/html/htmlex.hxx16
-rw-r--r--sd/source/filter/ppt/pptinanimations.cxx2
-rw-r--r--sd/source/filter/ppt/pptinanimations.hxx2
-rw-r--r--sd/source/filter/xml/sdtransform.cxx4
-rw-r--r--sd/source/filter/xml/sdxmlwrp.cxx4
-rw-r--r--sd/source/ui/animations/CustomAnimationDialog.cxx8
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx6
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.hxx6
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx2
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx22
-rw-r--r--sd/source/ui/annotations/annotationmanagerimpl.hxx16
-rw-r--r--sd/source/ui/annotations/annotationtag.cxx2
-rw-r--r--sd/source/ui/annotations/annotationtag.hxx2
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx2
-rw-r--r--sd/source/ui/app/optsitem.cxx10
-rw-r--r--sd/source/ui/app/sdmod1.cxx8
-rw-r--r--sd/source/ui/app/sdmod2.cxx4
-rw-r--r--sd/source/ui/controller/displaymodecontroller.cxx4
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx4
-rw-r--r--sd/source/ui/dlg/NavigatorChildWindow.cxx2
-rw-r--r--sd/source/ui/dlg/TemplateScanner.cxx2
-rw-r--r--sd/source/ui/dlg/animobjs.cxx2
-rw-r--r--sd/source/ui/dlg/custsdlg.cxx4
-rw-r--r--sd/source/ui/dlg/dlgpage.cxx2
-rw-r--r--sd/source/ui/dlg/dlgsnap.cxx2
-rw-r--r--sd/source/ui/dlg/headerfooterdlg.cxx8
-rw-r--r--sd/source/ui/dlg/prltempl.cxx2
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
-rw-r--r--sd/source/ui/dlg/tabtempl.cxx2
-rw-r--r--sd/source/ui/dlg/tpaction.cxx2
-rw-r--r--sd/source/ui/dlg/vectdlg.cxx6
-rw-r--r--sd/source/ui/docshell/docshel2.cxx2
-rw-r--r--sd/source/ui/framework/module/CenterViewFocusModule.cxx2
-rw-r--r--sd/source/ui/framework/module/CenterViewFocusModule.hxx2
-rw-r--r--sd/source/ui/framework/module/DrawModule.cxx2
-rw-r--r--sd/source/ui/framework/module/ImpressModule.cxx2
-rw-r--r--sd/source/ui/framework/module/PresentationModule.cxx2
-rw-r--r--sd/source/ui/framework/module/ShellStackGuard.cxx2
-rw-r--r--sd/source/ui/framework/module/ShellStackGuard.hxx2
-rw-r--r--sd/source/ui/framework/tools/FrameworkHelper.cxx2
-rw-r--r--sd/source/ui/func/fubullet.cxx6
-rw-r--r--sd/source/ui/func/fucon3d.cxx2
-rw-r--r--sd/source/ui/func/fuconrec.cxx4
-rw-r--r--sd/source/ui/func/fuformatpaintbrush.cxx2
-rw-r--r--sd/source/ui/func/futext.cxx2
-rw-r--r--sd/source/ui/inc/DrawDocShell.hxx2
-rw-r--r--sd/source/ui/inc/DrawViewShell.hxx16
-rw-r--r--sd/source/ui/inc/EventMultiplexer.hxx2
-rw-r--r--sd/source/ui/inc/FrameView.hxx2
-rw-r--r--sd/source/ui/inc/GraphicObjectBar.hxx2
-rw-r--r--sd/source/ui/inc/MediaObjectBar.hxx2
-rw-r--r--sd/source/ui/inc/OutlineView.hxx12
-rw-r--r--sd/source/ui/inc/OutlineViewShell.hxx2
-rw-r--r--sd/source/ui/inc/RemoteServer.hxx2
-rw-r--r--sd/source/ui/inc/TemplateScanner.hxx2
-rw-r--r--sd/source/ui/inc/View.hxx8
-rw-r--r--sd/source/ui/inc/ViewClipboard.hxx2
-rw-r--r--sd/source/ui/inc/ViewShell.hxx2
-rw-r--r--sd/source/ui/inc/ViewShellBase.hxx2
-rw-r--r--sd/source/ui/inc/ViewShellImplementation.hxx2
-rw-r--r--sd/source/ui/inc/ViewShellManager.hxx6
-rw-r--r--sd/source/ui/inc/animobjs.hxx2
-rw-r--r--sd/source/ui/inc/annotationmanager.hxx2
-rw-r--r--sd/source/ui/inc/custsdlg.hxx4
-rw-r--r--sd/source/ui/inc/dlgpage.hxx2
-rw-r--r--sd/source/ui/inc/dlgsnap.hxx2
-rw-r--r--sd/source/ui/inc/framework/DrawModule.hxx2
-rw-r--r--sd/source/ui/inc/framework/FrameworkHelper.hxx2
-rw-r--r--sd/source/ui/inc/framework/ImpressModule.hxx2
-rw-r--r--sd/source/ui/inc/framework/PresentationModule.hxx2
-rw-r--r--sd/source/ui/inc/fubullet.hxx4
-rw-r--r--sd/source/ui/inc/fucon3d.hxx2
-rw-r--r--sd/source/ui/inc/fuconrec.hxx2
-rw-r--r--sd/source/ui/inc/fuformatpaintbrush.hxx2
-rw-r--r--sd/source/ui/inc/optsitem.hxx10
-rw-r--r--sd/source/ui/inc/prltempl.hxx2
-rw-r--r--sd/source/ui/inc/sdtreelb.hxx2
-rw-r--r--sd/source/ui/inc/slideshow.hxx18
-rw-r--r--sd/source/ui/inc/tabtempl.hxx2
-rw-r--r--sd/source/ui/inc/tools/SlotStateListener.hxx2
-rw-r--r--sd/source/ui/inc/tpaction.hxx2
-rw-r--r--sd/source/ui/inc/unomodel.hxx4
-rw-r--r--sd/source/ui/inc/unopage.hxx4
-rw-r--r--sd/source/ui/inc/unosrch.hxx2
-rw-r--r--sd/source/ui/inc/vectdlg.hxx6
-rw-r--r--sd/source/ui/remotecontrol/Server.cxx2
-rw-r--r--sd/source/ui/sidebar/DocumentHelper.cxx12
-rw-r--r--sd/source/ui/sidebar/DocumentHelper.hxx12
-rw-r--r--sd/source/ui/slideshow/showwin.cxx2
-rw-r--r--sd/source/ui/slideshow/showwindow.hxx2
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx16
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx6
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.hxx4
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx2
-rw-r--r--sd/source/ui/slidesorter/controller/SlsPageSelector.cxx4
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx8
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx2
-rw-r--r--sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx2
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx2
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx4
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx2
-rw-r--r--sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx2
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx2
-rw-r--r--sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlideSorterView.cxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx4
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayouter.cxx10
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx4
-rw-r--r--sd/source/ui/table/tablefunction.cxx2
-rw-r--r--sd/source/ui/tools/EventMultiplexer.cxx12
-rw-r--r--sd/source/ui/tools/SlotStateListener.cxx2
-rw-r--r--sd/source/ui/uitest/uiobject.cxx2
-rw-r--r--sd/source/ui/unoidl/unolayer.cxx4
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx10
-rw-r--r--sd/source/ui/unoidl/unopage.cxx10
-rw-r--r--sd/source/ui/unoidl/unosrch.cxx2
-rw-r--r--sd/source/ui/unoidl/unowcntr.cxx2
-rw-r--r--sd/source/ui/unoidl/unowcntr.hxx4
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx2
-rw-r--r--sd/source/ui/view/GraphicObjectBar.cxx2
-rw-r--r--sd/source/ui/view/MediaObjectBar.cxx2
-rw-r--r--sd/source/ui/view/OutlinerIterator.cxx2
-rw-r--r--sd/source/ui/view/ToolBarManager.cxx4
-rw-r--r--sd/source/ui/view/ViewClipboard.cxx2
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx2
-rw-r--r--sd/source/ui/view/ViewShellImplementation.cxx2
-rw-r--r--sd/source/ui/view/ViewShellManager.cxx10
-rw-r--r--sd/source/ui/view/drviews2.cxx2
-rw-r--r--sd/source/ui/view/drviews4.cxx2
-rw-r--r--sd/source/ui/view/drviews6.cxx2
-rw-r--r--sd/source/ui/view/drviews9.cxx2
-rw-r--r--sd/source/ui/view/drviewsa.cxx4
-rw-r--r--sd/source/ui/view/drviewse.cxx6
-rw-r--r--sd/source/ui/view/drviewsg.cxx2
-rw-r--r--sd/source/ui/view/frmview.cxx2
-rw-r--r--sd/source/ui/view/outlnvsh.cxx2
-rw-r--r--sd/source/ui/view/outlview.cxx12
-rw-r--r--sd/source/ui/view/sdview2.cxx2
-rw-r--r--sd/source/ui/view/sdview3.cxx4
-rw-r--r--sd/source/ui/view/sdview4.cxx2
-rw-r--r--sd/source/ui/view/sdview5.cxx2
-rw-r--r--sd/source/ui/view/viewshel.cxx4
183 files changed, 404 insertions, 404 deletions
diff --git a/sd/inc/Annotation.hxx b/sd/inc/Annotation.hxx
index d13496cbdcc9..68c343866913 100644
--- a/sd/inc/Annotation.hxx
+++ b/sd/inc/Annotation.hxx
@@ -46,10 +46,10 @@ sal_uInt32 getAnnotationId(const css::uno::Reference <css::office::XAnnotation>&
const SdPage* getAnnotationPage(const css::uno::Reference<css::office::XAnnotation>& xAnnotation);
void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell,
- css::uno::Reference<css::office::XAnnotation>& rxAnnotation);
+ css::uno::Reference<css::office::XAnnotation> const & rxAnnotation);
void LOKCommentNotifyAll(CommentNotificationType nType,
- css::uno::Reference<css::office::XAnnotation>& rxAnnotation);
+ css::uno::Reference<css::office::XAnnotation> const & rxAnnotation);
}
#endif
diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx
index 187437f90b7d..9d292a055845 100644
--- a/sd/inc/CustomAnimationEffect.hxx
+++ b/sd/inc/CustomAnimationEffect.hxx
@@ -232,7 +232,7 @@ public:
CustomAnimationTextGroup( const css::uno::Reference< css::drawing::XShape >& rTarget, sal_Int32 nGroupId );
void reset();
- void addEffect( CustomAnimationEffectPtr& pEffect );
+ void addEffect( CustomAnimationEffectPtr const & pEffect );
const EffectSequence& getEffects() const { return maEffects; }
diff --git a/sd/inc/EffectMigration.hxx b/sd/inc/EffectMigration.hxx
index f1702b1d7f8f..9dc388c0ecb2 100644
--- a/sd/inc/EffectMigration.hxx
+++ b/sd/inc/EffectMigration.hxx
@@ -63,12 +63,12 @@ public:
static bool GetDimPrevious( SvxShape* pShape );
static void SetPresentationOrder( SvxShape* pShape, sal_Int32 nNewPos );
static sal_Int32 GetPresentationOrder( SvxShape* pShape );
- static void UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo* pInfo );
+ static void UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo const * pInfo );
static OUString GetSoundFile( SvxShape* pShape );
static bool GetSoundOn( SvxShape* pShape );
- static void SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj );
- static void CreateAnimatedGroup(SdrObjGroup& rGroupObj, SdPage& rPage);
+ static void SetAnimationPath( SvxShape* pShape, SdrPathObj const * pPathObj );
+ static void CreateAnimatedGroup(SdrObjGroup const & rGroupObj, SdPage& rPage);
static void DocumentLoaded(SdDrawDocument & rDoc);
};
diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx
index 0bb838b75d7e..206b00a12d9f 100644
--- a/sd/inc/OutlinerIterator.hxx
+++ b/sd/inc/OutlinerIterator.hxx
@@ -265,7 +265,7 @@ private:
This specifies at which object the iterator points initially.
*/
static sal_Int32 GetPageIndex (
- SdDrawDocument* pDocument,
+ SdDrawDocument const * pDocument,
const std::shared_ptr<ViewShell>& rpViewShell,
PageKind ePageKind,
EditMode eEditMode,
diff --git a/sd/inc/TransitionPreset.hxx b/sd/inc/TransitionPreset.hxx
index 1d696d515dd7..922901c4d1d0 100644
--- a/sd/inc/TransitionPreset.hxx
+++ b/sd/inc/TransitionPreset.hxx
@@ -70,7 +70,7 @@ private:
OUString maVariantLabel;
static bool importTransitionsFile( TransitionPresetList& rList,
- css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceFactory,
+ css::uno::Reference< css::lang::XMultiServiceFactory > const & xServiceFactory,
const OUString& aFilename );
};
diff --git a/sd/inc/animations.hxx b/sd/inc/animations.hxx
index 4d7755f4ccbf..7d5081c774ef 100644
--- a/sd/inc/animations.hxx
+++ b/sd/inc/animations.hxx
@@ -42,7 +42,7 @@ typedef std::list< AfterEffectNode > AfterEffectNodeList;
/** inserts the animation node in the given AfterEffectNode at the correct position
in the timing hierarchy of its master */
-SD_DLLPUBLIC void stl_process_after_effect_node_func(AfterEffectNode& rNode);
+SD_DLLPUBLIC void stl_process_after_effect_node_func(AfterEffectNode const & rNode);
} // namespace sd;
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 591fe2fedad1..e0836dcdee7b 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -177,8 +177,8 @@ private:
::std::unique_ptr<ImpMasterPageListWatcher> mpMasterPageListWatcher;
SAL_DLLPRIVATE void UpdatePageObjectsInNotes(sal_uInt16 nStartPos);
- SAL_DLLPRIVATE void UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_Int32 nIncrement);
- SAL_DLLPRIVATE void FillOnlineSpellingList(SdPage* pPage);
+ SAL_DLLPRIVATE void UpdatePageRelativeURLs(SdPage const * pPage, sal_uInt16 nPos, sal_Int32 nIncrement);
+ SAL_DLLPRIVATE void FillOnlineSpellingList(SdPage const * pPage);
SAL_DLLPRIVATE void SpellObject(SdrTextObj* pObj);
DECL_DLLPRIVATE_LINK(WorkStartupHdl, Timer *, void);
@@ -236,7 +236,7 @@ public:
If a reference document is given, the sizes and border settings of that document are used
for newly created slides.
*/
- void CreateFirstPages( SdDrawDocument* pRefDocument = nullptr );
+ void CreateFirstPages( SdDrawDocument const * pRefDocument = nullptr );
bool CreateMissingNotesAndHandoutPages();
SAL_DLLPRIVATE void MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos) override;
@@ -258,7 +258,7 @@ public:
std::vector<OUString> &rExchangeList, bool bLink,
bool bReplace, sal_uInt16 nPgPos,
::sd::DrawDocShell* pBookmarkDocSh,
- Point* pObjPos);
+ Point const * pObjPos);
SAL_DLLPRIVATE bool IsStartWithPresentation() const { return mbStartWithPresentation;}
SAL_DLLPRIVATE void SetStartWithPresentation( bool bStartWithPresentation );
@@ -332,7 +332,7 @@ public:
SAL_DLLPRIVATE bool InsertBookmarkAsObject(const std::vector<OUString> &rBookmarkList,
const std::vector<OUString> &rExchangeList,
::sd::DrawDocShell* pBookmarkDocSh,
- Point* pObjPos, bool bCalcObjCount);
+ Point const * pObjPos, bool bCalcObjCount);
void CloseBookmarkDoc();
@@ -371,7 +371,7 @@ public:
sal_uInt16 GetActiveSdPageCount() const;
- SAL_DLLPRIVATE sal_uInt16 GetMasterPageUserCount(SdrPage* pMaster) const;
+ SAL_DLLPRIVATE sal_uInt16 GetMasterPageUserCount(SdrPage const * pMaster) const;
SAL_DLLPRIVATE const sd::PresentationSettings& getPresentationSettings() const { return maPresentationSettings; }
SAL_DLLPRIVATE sd::PresentationSettings& getPresentationSettings() { return maPresentationSettings; }
@@ -408,7 +408,7 @@ public:
SAL_DLLPRIVATE void StopOnlineSpelling();
SAL_DLLPRIVATE void StartOnlineSpelling(bool bForceSpelling=true);
- SAL_DLLPRIVATE void ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl);
+ SAL_DLLPRIVATE void ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner const * pOutl);
SAL_DLLPRIVATE void InsertObject(SdrObject* pObj);
SAL_DLLPRIVATE void RemoveObject(SdrObject* pObj);
@@ -441,7 +441,7 @@ public:
static SdAnimationInfo* GetShapeUserData(SdrObject& rObject, bool bCreate = false );
- SAL_DLLPRIVATE static SdIMapInfo* GetIMapInfo( SdrObject* pObject );
+ SAL_DLLPRIVATE static SdIMapInfo* GetIMapInfo( SdrObject const * pObject );
SAL_DLLPRIVATE static IMapObject* GetHitIMapObject( SdrObject* pObject, const Point& rWinPoint );
SAL_DLLPRIVATE CharClass* GetCharClass() const { return mpCharClass; }
@@ -653,7 +653,7 @@ private:
page.
*/
SAL_DLLPRIVATE void SetupNewPage (
- SdPage* pPreviousPage,
+ SdPage const * pPreviousPage,
SdPage* pPage,
const OUString& sPageName,
sal_uInt16 nInsertionPoint,
diff --git a/sd/inc/notifydocumentevent.hxx b/sd/inc/notifydocumentevent.hxx
index 1a0689834fb2..c16f16c13e5b 100644
--- a/sd/inc/notifydocumentevent.hxx
+++ b/sd/inc/notifydocumentevent.hxx
@@ -24,9 +24,9 @@
class SdDrawDocument;
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName );
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName );
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource );
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource );
#endif
diff --git a/sd/inc/sdmod.hxx b/sd/inc/sdmod.hxx
index 3e50eec0f2f6..397bfc292fb3 100644
--- a/sd/inc/sdmod.hxx
+++ b/sd/inc/sdmod.hxx
@@ -138,7 +138,7 @@ protected:
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
private:
- SfxFrame* ExecuteNewDocument( SfxRequest& rReq );
+ SfxFrame* ExecuteNewDocument( SfxRequest const & rReq );
static SfxFrame* CreateEmptyDocument( const css::uno::Reference< css::frame::XFrame >& i_rFrame );
static SfxFrame* CreateFromTemplate( const OUString& rTemplatePath, const css::uno::Reference< css::frame::XFrame >& i_rFrame );
@@ -151,7 +151,7 @@ private:
This typically is the unmodified request from a execute()
function from where this function is called.
*/
- static bool OutlineToImpress(SfxRequest& rRequest);
+ static bool OutlineToImpress(SfxRequest const & rRequest);
/** Add an eventlistener as soon as possible in sd, allows to use
remote devices to start the slideshow elegantly, and respecting
diff --git a/sd/inc/sdpage.hxx b/sd/inc/sdpage.hxx
index 4fef9099de04..b4b72390b6bf 100644
--- a/sd/inc/sdpage.hxx
+++ b/sd/inc/sdpage.hxx
@@ -301,7 +301,7 @@ public:
@throws css::uno::RuntimeException
*/
- void setAnimationNode( css::uno::Reference< css::animations::XAnimationNode >& xNode );
+ void setAnimationNode( css::uno::Reference< css::animations::XAnimationNode > const & xNode );
/// @return a helper class to manipulate effects inside the main sequence
std::shared_ptr< sd::MainSequence > const & getMainSequence();
@@ -338,10 +338,10 @@ public:
bool bEdit ) override;
/** callback from the sd::View when a new paragraph for one object on this page is created */
- void onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj );
+ void onParagraphInserted( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj );
/** callback from the sd::View when a paragraph from one object on this page is removed */
- void onParagraphRemoving( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj );
+ void onParagraphRemoving( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj );
/** callback from the sd::View when an object just left text edit mode */
void onEndTextEdit( SdrObject* pObj );
diff --git a/sd/inc/stlpool.hxx b/sd/inc/stlpool.hxx
index dd412963bd84..90041c847372 100644
--- a/sd/inc/stlpool.hxx
+++ b/sd/inc/stlpool.hxx
@@ -79,9 +79,9 @@ public:
void CopyLayoutSheets(const OUString& rLayoutName, SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets );
void CopyGraphicSheets(SdStyleSheetPool& rSourcePool);
void CopyCellSheets(SdStyleSheetPool& rSourcePool);
- void CopyTableStyles(SdStyleSheetPool& rSourcePool);
+ void CopyTableStyles(SdStyleSheetPool const & rSourcePool);
void CopyCellSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets);
- void RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix);
+ void RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString const &rRenameSuffix);
void CreatePseudosIfNecessary();
void UpdateStdNames();
@@ -90,7 +90,7 @@ public:
SdDrawDocument* GetDoc() const { return mpDoc; }
- static SdStyleSheetVector CreateChildList( SdStyleSheet* pSheet );
+ static SdStyleSheetVector CreateChildList( SdStyleSheet const * pSheet );
static void setDefaultOutlineNumberFormatBulletAndIndent(sal_uInt16 i, SvxNumberFormat &rNumberFormat);
diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx
index 29e6f4a4698b..7d4e29b20466 100644
--- a/sd/inc/stlsheet.hxx
+++ b/sd/inc/stlsheet.hxx
@@ -78,7 +78,7 @@ public:
//Broadcast that a SdStyleSheet has changed, taking into account outline sublevels
//which need to be explicitly broadcast as changing if their parent style was
//the one that changed
- static void BroadcastSdStyleSheetChange(SfxStyleSheetBase* pStyleSheet, PresentationObjects ePO,
+ static void BroadcastSdStyleSheetChange(SfxStyleSheetBase const * pStyleSheet, PresentationObjects ePO,
SfxStyleSheetBasePool* pSSPool);
// XInterface
diff --git a/sd/inc/textapi.hxx b/sd/inc/textapi.hxx
index 02240acffcf2..32c89a9bbe30 100644
--- a/sd/inc/textapi.hxx
+++ b/sd/inc/textapi.hxx
@@ -46,7 +46,7 @@ public:
void SAL_CALL dispose();
OutlinerParaObject* CreateText();
- void SetText( OutlinerParaObject& rText );
+ void SetText( OutlinerParaObject const & rText );
OUString GetText();
static TextApiObject* getImplementation( const css::uno::Reference< css::text::XText >& );
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx
index dab76b1dde7d..33d4a5a711f8 100644
--- a/sd/qa/unit/import-tests.cxx
+++ b/sd/qa/unit/import-tests.cxx
@@ -165,7 +165,7 @@ public:
void testSmartArt1();
void testTdf109223();
- bool checkPattern(sd::DrawDocShellRef& rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
+ bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected);
void testPatternImport();
CPPUNIT_TEST_SUITE(SdImportTest);
@@ -1856,7 +1856,7 @@ bool checkPatternValues(std::vector<sal_uInt8>& rExpected, Bitmap& rBitmap)
} // end anonymous namespace
-bool SdImportTest::checkPattern(sd::DrawDocShellRef& rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected)
+bool SdImportTest::checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected)
{
uno::Reference<beans::XPropertySet> xShape(getShapeFromPage(nShapeNumber, 0, rDocRef));
CPPUNIT_ASSERT_MESSAGE("Not a shape", xShape.is());
diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx
index 52e3e52f5145..451debc49a45 100644
--- a/sd/source/core/CustomAnimationEffect.cxx
+++ b/sd/source/core/CustomAnimationEffect.cxx
@@ -1929,7 +1929,7 @@ bool stl_CustomAnimationEffect_search_node_predict::operator()( const CustomAnim
}
/// @throws Exception
-static bool implFindNextContainer( Reference< XTimeContainer >& xParent, Reference< XTimeContainer >& xCurrent, Reference< XTimeContainer >& xNext )
+static bool implFindNextContainer( Reference< XTimeContainer > const & xParent, Reference< XTimeContainer > const & xCurrent, Reference< XTimeContainer >& xNext )
{
Reference< XEnumerationAccess > xEnumerationAccess( xParent, UNO_QUERY_THROW );
Reference< XEnumeration > xEnumeration( xEnumerationAccess->createEnumeration() );
@@ -1948,7 +1948,7 @@ static bool implFindNextContainer( Reference< XTimeContainer >& xParent, Referen
return xNext.is();
}
-void stl_process_after_effect_node_func(AfterEffectNode& rNode)
+void stl_process_after_effect_node_func(AfterEffectNode const & rNode)
{
try
{
@@ -2238,7 +2238,7 @@ void CustomAnimationTextGroup::reset()
maEffects.clear();
}
-void CustomAnimationTextGroup::addEffect( CustomAnimationEffectPtr& pEffect )
+void CustomAnimationTextGroup::addEffect( CustomAnimationEffectPtr const & pEffect )
{
maEffects.push_back( pEffect );
diff --git a/sd/source/core/EffectMigration.cxx b/sd/source/core/EffectMigration.cxx
index 11158e8c017b..1bda3529685e 100644
--- a/sd/source/core/EffectMigration.cxx
+++ b/sd/source/core/EffectMigration.cxx
@@ -390,7 +390,7 @@ const deprecated_AnimationEffect_conversion_table[] =
{ AnimationEffect_NONE, nullptr, nullptr }
};
-EffectSequence::iterator ImplFindEffect( MainSequencePtr& pMainSequence, const Reference< XShape >& rShape, sal_Int16 nSubItem )
+EffectSequence::iterator ImplFindEffect( MainSequencePtr const & pMainSequence, const Reference< XShape >& rShape, sal_Int16 nSubItem )
{
EffectSequence::iterator aIter;
@@ -404,7 +404,7 @@ EffectSequence::iterator ImplFindEffect( MainSequencePtr& pMainSequence, const R
return aIter;
}
-static bool implIsInsideGroup( SdrObject* pObj )
+static bool implIsInsideGroup( SdrObject const * pObj )
{
return pObj && pObj->GetObjList() && pObj->GetObjList()->GetUpList();
}
@@ -1203,7 +1203,7 @@ sal_Int32 EffectMigration::GetPresentationOrder( SvxShape* pShape )
return nFound;
}
-void EffectMigration::UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo* pInfo )
+void EffectMigration::UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo const * pInfo )
{
if( pInfo )
{
@@ -1277,7 +1277,7 @@ bool EffectMigration::GetSoundOn( SvxShape* pShape )
return !GetSoundFile( pShape ).isEmpty();
}
-void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj )
+void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj const * pPathObj )
{
if( pShape && pPathObj )
{
@@ -1298,7 +1298,7 @@ void EffectMigration::SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj )
}
// #i42894# helper which creates the needed XAnimate for changing visibility and all the (currently) needed embeddings
-void createVisibilityOnOffNode(Reference< XTimeContainer >& rxParentContainer, SdrObject& rCandidate, bool bVisible, bool bOnClick, double fDuration)
+void createVisibilityOnOffNode(Reference< XTimeContainer > const & rxParentContainer, SdrObject& rCandidate, bool bVisible, bool bOnClick, double fDuration)
{
Reference< XMultiServiceFactory > xMsf(::comphelper::getProcessServiceFactory());
@@ -1356,7 +1356,7 @@ void createVisibilityOnOffNode(Reference< XTimeContainer >& rxParentContainer, S
// fallback will create the needed SMIL animation stuff. Unfortunately the members of the group
// have to be moved directly to the page, else the (explained to be generic, thus I expected this to
// work) animations will not work in slideshow
-void EffectMigration::CreateAnimatedGroup(SdrObjGroup& rGroupObj, SdPage& rPage)
+void EffectMigration::CreateAnimatedGroup(SdrObjGroup const & rGroupObj, SdPage& rPage)
{
// aw080 will give a vector immediately
SdrObjListIter aIter(rGroupObj);
diff --git a/sd/source/core/TransitionPreset.cxx b/sd/source/core/TransitionPreset.cxx
index 17496dd95972..766fd6931f4c 100644
--- a/sd/source/core/TransitionPreset.cxx
+++ b/sd/source/core/TransitionPreset.cxx
@@ -87,7 +87,7 @@ TransitionPreset::TransitionPreset( const css::uno::Reference< css::animations::
}
bool TransitionPreset::importTransitionsFile( TransitionPresetList& rList,
- Reference< XMultiServiceFactory >& xServiceFactory,
+ Reference< XMultiServiceFactory > const & xServiceFactory,
const OUString& aURL )
{
SAL_INFO("sd.transitions", "Importing " << aURL);
diff --git a/sd/source/core/annotations/Annotation.cxx b/sd/source/core/annotations/Annotation.cxx
index 96d31feb2204..ebee78520f2b 100644
--- a/sd/source/core/annotations/Annotation.cxx
+++ b/sd/source/core/annotations/Annotation.cxx
@@ -412,7 +412,7 @@ const SdPage* getAnnotationPage(const Reference<XAnnotation>& xAnnotation)
namespace
{
-std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XAnnotation>& rxAnnotation)
+std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XAnnotation> const & rxAnnotation)
{
boost::property_tree::ptree aAnnotation;
aAnnotation.put("action", (nType == CommentNotificationType::Add ? "Add" :
@@ -439,7 +439,7 @@ std::string lcl_LOKGetCommentPayload(CommentNotificationType nType, Reference<XA
}
} // anonymous ns
-void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell, Reference<XAnnotation>& rxAnnotation)
+void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewShell, Reference<XAnnotation> const & rxAnnotation)
{
// callbacks only if tiled annotations are explicitly turned off by LOK client
if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
@@ -449,7 +449,7 @@ void LOKCommentNotify(CommentNotificationType nType, const SfxViewShell* pViewSh
pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_COMMENT, aPayload.c_str());
}
-void LOKCommentNotifyAll(CommentNotificationType nType, Reference<XAnnotation>& rxAnnotation)
+void LOKCommentNotifyAll(CommentNotificationType nType, Reference<XAnnotation> const & rxAnnotation)
{
// callbacks only if tiled annotations are explicitly turned off by LOK client
if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 5c8b25cf8b27..ea68d0694a08 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -322,7 +322,7 @@ void SdDrawDocument::UpdatePageRelativeURLs(const OUString& rOldName, const OUSt
}
}
-void SdDrawDocument::UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_Int32 nIncrement)
+void SdDrawDocument::UpdatePageRelativeURLs(SdPage const * pPage, sal_uInt16 nPos, sal_Int32 nIncrement)
{
bool bNotes = (pPage->GetPageKind() == PageKind::Notes);
@@ -515,7 +515,7 @@ void SdDrawDocument::SetSelected(SdPage* pPage, bool bSelect)
}
// If no pages exist yet, create them now
-void SdDrawDocument::CreateFirstPages( SdDrawDocument* pRefDocument /* = 0 */ )
+void SdDrawDocument::CreateFirstPages( SdDrawDocument const * pRefDocument /* = 0 */ )
{
// If no page exists yet in the model, (File -> New), insert a page
sal_uInt16 nPageCount = GetPageCount();
@@ -1011,7 +1011,7 @@ SdAnimationInfo* SdDrawDocument::GetShapeUserData(SdrObject& rObject, bool bCrea
return pRet;
}
-SdIMapInfo* SdDrawDocument::GetIMapInfo( SdrObject* pObject )
+SdIMapInfo* SdDrawDocument::GetIMapInfo( SdrObject const * pObject )
{
DBG_ASSERT(pObject, "Without an object there is no IMapInfo");
@@ -1466,7 +1466,7 @@ sal_uInt16 SdDrawDocument::InsertPageSet (
}
void SdDrawDocument::SetupNewPage (
- SdPage* pPreviousPage,
+ SdPage const * pPreviousPage,
SdPage* pPage,
const OUString& sPageName,
sal_uInt16 nInsertionPoint,
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 90049120dd9e..a567d700c099 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -74,12 +74,12 @@ class InsertBookmarkAsPage_FindDuplicateLayouts
public:
explicit InsertBookmarkAsPage_FindDuplicateLayouts( std::vector<OUString> &rLayoutsToTransfer )
: mrLayoutsToTransfer(rLayoutsToTransfer) {}
- void operator()( SdDrawDocument&, SdPage*, bool, SdDrawDocument* );
+ void operator()( SdDrawDocument&, SdPage const *, bool, SdDrawDocument* );
private:
std::vector<OUString> &mrLayoutsToTransfer;
};
-void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc, SdPage* pBMMPage, bool bRenameDuplicates, SdDrawDocument* pBookmarkDoc )
+void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc, SdPage const * pBMMPage, bool bRenameDuplicates, SdDrawDocument* pBookmarkDoc )
{
// now check for duplicate masterpage and layout names
@@ -284,7 +284,7 @@ void SdDrawDocument::InsertBookmark(
bool bReplace, // Replace current default and notes pages?
sal_uInt16 nInsertPos, // Insertion position of pages
::sd::DrawDocShell* pBookmarkDocSh, // If set, this is the source document
- Point* pObjPos) // Insertion position of objects
+ Point const * pObjPos) // Insertion position of objects
{
bool bOK = true;
bool bInsertPages = false;
@@ -977,7 +977,7 @@ bool SdDrawDocument::InsertBookmarkAsObject(
const std::vector<OUString> &rBookmarkList,
const std::vector<OUString> &rExchangeList, // List of names to use
::sd::DrawDocShell* pBookmarkDocSh,
- Point* pObjPos,
+ Point const * pObjPos,
bool bCalcObjCount)
{
bool bOK = true;
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 7870ff056f3a..e667d7eb8337 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -693,7 +693,7 @@ void SdDrawDocument::CreateDefaultCellStyles()
}
// Number of pages that reference a master page
-sal_uInt16 SdDrawDocument::GetMasterPageUserCount(SdrPage* pMaster) const
+sal_uInt16 SdDrawDocument::GetMasterPageUserCount(SdrPage const * pMaster) const
{
sal_uInt16 nResult = 0;
sal_uInt16 nPage;
@@ -774,7 +774,7 @@ void SdDrawDocument::StartOnlineSpelling(bool bForceSpelling)
}
// Fill OnlineSpelling list
-void SdDrawDocument::FillOnlineSpellingList(SdPage* pPage)
+void SdDrawDocument::FillOnlineSpellingList(SdPage const * pPage)
{
SdrObjListIter aIter(*pPage, SdrIterMode::Flat);
@@ -957,7 +957,7 @@ IMPL_LINK(SdDrawDocument, OnlineSpellEventHdl, EditStatus&, rEditStat, void)
// Callback for ExecuteSpellPopup()
// removed link and replaced with Imp method
-void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner* pOutl)
+void SdDrawDocument::ImpOnlineSpellCallback(SpellCallbackInfo* pInfo, SdrObject* pObj, SdrOutliner const * pOutl)
{
delete mpOnlineSearchItem;
mpOnlineSearchItem = nullptr;
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx
index 5156ca1b4272..392be76b07ed 100644
--- a/sd/source/core/sdpage.cxx
+++ b/sd/source/core/sdpage.cxx
@@ -146,7 +146,7 @@ SdPage::SdPage(SdDrawDocument& rNewDoc, bool bMasterPage)
namespace
{
- void clearChildNodes(css::uno::Reference<css::animations::XAnimationNode>& rAnimationNode)
+ void clearChildNodes(css::uno::Reference<css::animations::XAnimationNode> const & rAnimationNode)
{
css::uno::Reference<css::container::XEnumerationAccess > xEnumerationAccess(rAnimationNode, UNO_QUERY);
if (!xEnumerationAccess.is())
@@ -190,7 +190,7 @@ SdPage::~SdPage()
struct OrdNumSorter
{
- bool operator()( SdrObject* p1, SdrObject* p2 )
+ bool operator()( SdrObject const * p1, SdrObject const * p2 )
{
return p1->GetOrdNum() < p2->GetOrdNum();
}
@@ -1340,7 +1340,7 @@ rtl::OUString enumtoString(AutoLayout aut)
return retstr;
}
-static void CalcAutoLayoutRectangles( SdPage& rPage,::tools::Rectangle* rRectangle ,const rtl::OUString& sLayoutType )
+static void CalcAutoLayoutRectangles( SdPage const & rPage,::tools::Rectangle* rRectangle ,const rtl::OUString& sLayoutType )
{
::tools::Rectangle aTitleRect;
::tools::Rectangle aLayoutRect;
diff --git a/sd/source/core/sdpage_animations.cxx b/sd/source/core/sdpage_animations.cxx
index c5a3bc043cee..3ce92cb30a93 100644
--- a/sd/source/core/sdpage_animations.cxx
+++ b/sd/source/core/sdpage_animations.cxx
@@ -60,7 +60,7 @@ Reference< XAnimationNode > const & SdPage::getAnimationNode()
return mxAnimationNode;
}
-void SdPage::setAnimationNode( Reference< XAnimationNode >& xNode )
+void SdPage::setAnimationNode( Reference< XAnimationNode > const & xNode )
{
mxAnimationNode = xNode;
if( mpMainSequence.get() )
@@ -97,7 +97,7 @@ FadeEffect SdPage::GetFadeEffect() const
}
/** callback from the sd::View when a new paragraph for one object on this page is created */
-void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj )
+void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
{
if( mxAnimationNode.is() )
{
@@ -112,7 +112,7 @@ void SdPage::onParagraphInserted( ::Outliner* pOutliner, Paragraph* pPara, SdrOb
}
/** callback from the sd::View when a paragraph from one object on this page is removed */
-void SdPage::onParagraphRemoving( ::Outliner* pOutliner, Paragraph* pPara, SdrObject* pObj )
+void SdPage::onParagraphRemoving( ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
{
if( mxAnimationNode.is() )
{
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 8d3d3b697b7b..8065d00a9bf4 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -79,7 +79,7 @@ using namespace ::com::sun::star::container;
namespace
{
-OUString lcl_findRenamedStyleName(std::vector< std::pair< OUString, OUString > > &rRenamedList, OUString& aOriginalName )
+OUString lcl_findRenamedStyleName(std::vector< std::pair< OUString, OUString > > &rRenamedList, OUString const & aOriginalName )
{
std::vector< std::pair< OUString, OUString > >::iterator aIter;
for( aIter = rRenamedList.begin(); aIter != rRenamedList.end(); ++aIter )
@@ -529,7 +529,7 @@ void SdStyleSheetPool::CopyCellSheets(SdStyleSheetPool& rSourcePool)
CopySheets( rSourcePool, SD_STYLE_FAMILY_CELL );
}
-void SdStyleSheetPool::CopyTableStyles(SdStyleSheetPool& rSourcePool)
+void SdStyleSheetPool::CopyTableStyles(SdStyleSheetPool const & rSourcePool)
{
Reference< XIndexAccess > xSource( rSourcePool.mxTableFamily, UNO_QUERY );
Reference< XNameContainer > xTarget( mxTableFamily, UNO_QUERY );
@@ -591,7 +591,7 @@ void SdStyleSheetPool::CopyCellSheets(SdStyleSheetPool& rSourcePool, SdStyleShee
CopySheets( rSourcePool, SD_STYLE_FAMILY_CELL, rCreatedSheets );
}
-void SdStyleSheetPool::RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString &rRenameSuffix)
+void SdStyleSheetPool::RenameAndCopyGraphicSheets(SdStyleSheetPool& rSourcePool, SdStyleSheetVector& rCreatedSheets, OUString const &rRenameSuffix)
{
CopySheets( rSourcePool, SD_STYLE_FAMILY_GRAPHICS, rCreatedSheets, rRenameSuffix );
}
@@ -1397,7 +1397,7 @@ void SAL_CALL SdStyleSheetPool::removeEventListener( const Reference< XEventList
{
}
-SdStyleSheetVector SdStyleSheetPool::CreateChildList( SdStyleSheet* pSheet )
+SdStyleSheetVector SdStyleSheetPool::CreateChildList( SdStyleSheet const * pSheet )
{
SdStyleSheetVector aResult;
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 99639f66e672..cbf3475fd9a1 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -1309,10 +1309,10 @@ const SfxItemPropertySimpleEntry* SdStyleSheet::getPropertyMapEntry( const OUStr
//Broadcast that a SdStyleSheet has changed, taking into account outline sublevels
//which need to be explicitly broadcast as changing if their parent style was
//the one that changed
-void SdStyleSheet::BroadcastSdStyleSheetChange(SfxStyleSheetBase* pStyleSheet,
+void SdStyleSheet::BroadcastSdStyleSheetChange(SfxStyleSheetBase const * pStyleSheet,
PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool)
{
- SdStyleSheet* pRealSheet = static_cast<SdStyleSheet*>(pStyleSheet)->GetRealStyleSheet();
+ SdStyleSheet* pRealSheet = static_cast<SdStyleSheet const *>(pStyleSheet)->GetRealStyleSheet();
pRealSheet->Broadcast(SfxHint(SfxHintId::DataChanged));
if( (ePO >= PO_OUTLINE_1) && (ePO <= PO_OUTLINE_8) )
diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx
index 11537e656673..782eee7bd46d 100644
--- a/sd/source/core/text/textapi.cxx
+++ b/sd/source/core/text/textapi.cxx
@@ -102,7 +102,7 @@ public:
explicit TextAPIEditSource(SdDrawDocument* pDoc);
void Dispose();
- void SetText( OutlinerParaObject& rText );
+ void SetText( OutlinerParaObject const & rText );
OutlinerParaObject* CreateText();
OUString GetText();
SdDrawDocument* GetDoc() { return m_xImpl->mpDoc; }
@@ -160,7 +160,7 @@ OutlinerParaObject* TextApiObject::CreateText()
return mpSource->CreateText();
}
-void TextApiObject::SetText( OutlinerParaObject& rText )
+void TextApiObject::SetText( OutlinerParaObject const & rText )
{
SdrModel* pModel = mpSource->GetDoc();
if( pModel && pModel->IsUndoEnabled() )
@@ -237,7 +237,7 @@ SvxTextForwarder* TextAPIEditSource::GetTextForwarder()
return m_xImpl->mpTextForwarder;
}
-void TextAPIEditSource::SetText( OutlinerParaObject& rText )
+void TextAPIEditSource::SetText( OutlinerParaObject const & rText )
{
if (m_xImpl->mpDoc)
{
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index b5754b73064e..ffcbd606cf03 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -72,9 +72,9 @@ using ::com::sun::star::beans::XPropertySet;
//============================ PPTWriter ==================================
-PPTWriter::PPTWriter( tools::SvRef<SotStorage>& rSvStorage,
- css::uno::Reference< css::frame::XModel > & rXModel,
- css::uno::Reference< css::task::XStatusIndicator > & rXStatInd,
+PPTWriter::PPTWriter( tools::SvRef<SotStorage> const & rSvStorage,
+ css::uno::Reference< css::frame::XModel > const & rXModel,
+ css::uno::Reference< css::task::XStatusIndicator > const & rXStatInd,
SvMemoryStream* pVBA, sal_uInt32 nCnvrtFlags ) :
PPTWriterBase ( rXModel, rXStatInd ),
mnCnvrtFlags ( nCnvrtFlags ),
@@ -553,7 +553,7 @@ void PPTWriter::ImplWriteExtParaHeader( SvMemoryStream& rSt, sal_uInt32 nRef, sa
}
}
-void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet )
+void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet )
{
if ( rXPagePropSet.is() )
{
@@ -577,7 +577,7 @@ void PPTWriter::ImplCreateHeaderFooterStrings( SvStream& rStrm, css::uno::Refere
}
}
-void PPTWriter::ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet )
+void PPTWriter::ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet )
{
if ( rXPagePropSet.is() )
{
@@ -1426,9 +1426,9 @@ bool PPTWriter::ImplWriteAtomEnding()
// - exported function -
extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL ExportPPT( const std::vector< css::beans::PropertyValue >& rMediaData,
- tools::SvRef<SotStorage>& rSvStorage,
- css::uno::Reference< css::frame::XModel > & rXModel,
- css::uno::Reference< css::task::XStatusIndicator > & rXStatInd,
+ tools::SvRef<SotStorage> const & rSvStorage,
+ css::uno::Reference< css::frame::XModel > const & rXModel,
+ css::uno::Reference< css::task::XStatusIndicator > const & rXStatInd,
SvMemoryStream* pVBA,
sal_uInt32 nCnvrtFlags )
{
diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx
index 076548084987..dd342569566c 100644
--- a/sd/source/filter/eppt/eppt.hxx
+++ b/sd/source/filter/eppt/eppt.hxx
@@ -137,8 +137,8 @@ struct TextRuleEntry
class TextObjBinary : public TextObj
{
public:
- TextObjBinary( css::uno::Reference< css::text::XSimpleText > &
- rXText, int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv ) : TextObj( rXText, nInstance, rFontCollection, rBuProv ) {}
+ TextObjBinary( css::uno::Reference< css::text::XSimpleText > const & rXText,
+ int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv ) : TextObj( rXText, nInstance, rFontCollection, rBuProv ) {}
void Write( SvStream* pStrm );
void WriteTextSpecInfo( SvStream* pStrm );
};
@@ -204,8 +204,8 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
bool ImplCreateDocumentSummaryInformation();
bool ImplCreateCurrentUserStream();
static void ImplCreateHeaderFooterStrings( SvStream& rOut,
- css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet );
- void ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet >& rXPagePropSet );
+ css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet );
+ void ImplCreateHeaderFooters( css::uno::Reference< css::beans::XPropertySet > const & rXPagePropSet );
virtual bool ImplCreateDocument() override;
void ImplCreateHyperBlob( SvMemoryStream& rStream );
sal_uInt32 ImplInsertBookmarkURL( const OUString& rBookmark, const sal_uInt32 nType,
@@ -239,7 +239,7 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
bool bMaster,
int nPageNumber = 0 );
bool ImplCreateCellBorder( const CellBorder* pCellBorder, sal_Int32 nX1, sal_Int32 nY1, sal_Int32 nX2, sal_Int32 nY2 );
- void ImplCreateTable( css::uno::Reference< css::drawing::XShape >& rXShape, EscherSolverContainer& aSolverContainer,
+ void ImplCreateTable( css::uno::Reference< css::drawing::XShape > const & rXShape, EscherSolverContainer& aSolverContainer,
EscherPropertyContainer& aPropOpt );
bool ImplCloseDocument(); // we write the font, hyper and sound list
@@ -250,9 +250,9 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
virtual void ImplWriteSlideMaster( sal_uInt32 nPageNum, css::uno::Reference< css::beans::XPropertySet > const & aXBackgroundPropSet ) override;
public:
- PPTWriter( tools::SvRef<SotStorage>& rSvStorage,
- css::uno::Reference< css::frame::XModel > & rModel,
- css::uno::Reference< css::task::XStatusIndicator > & rStatInd,
+ PPTWriter( tools::SvRef<SotStorage> const & rSvStorage,
+ css::uno::Reference< css::frame::XModel > const & rModel,
+ css::uno::Reference< css::task::XStatusIndicator > const & rStatInd,
SvMemoryStream* pVBA, sal_uInt32 nCnvrtFlags );
virtual ~PPTWriter() override;
diff --git a/sd/source/filter/eppt/epptooxml.hxx b/sd/source/filter/eppt/epptooxml.hxx
index aa27ad8adf19..41f7b393bf53 100644
--- a/sd/source/filter/eppt/epptooxml.hxx
+++ b/sd/source/filter/eppt/epptooxml.hxx
@@ -99,7 +99,7 @@ protected:
static void WriteAnimateTo( const ::sax_fastparser::FSHelperPtr& pFS, const css::uno::Any& rValue, const OUString& rAttributeName );
static void WriteAnimateValues( const ::sax_fastparser::FSHelperPtr& pFS, const css::uno::Reference< css::animations::XAnimate >& rXAnimate );
- static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, css::uno::Any& rAny, bool bWriteEvent, bool bMainSeqChild );
+ static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, css::uno::Any const & rAny, bool bWriteEvent, bool bMainSeqChild );
static void WriteAnimationCondition( const ::sax_fastparser::FSHelperPtr& pFS, const char* pDelay, const char* pEvent, double fDelay, bool bHasFDelay );
void WriteAnimations( const ::sax_fastparser::FSHelperPtr& pFS );
static void WriteAnimationAttributeName( const ::sax_fastparser::FSHelperPtr& pFS, const OUString& rAttributeName );
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 80727694b15f..d05734aecdb4 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -2961,7 +2961,7 @@ bool PPTWriter::ImplCreateCellBorder( const CellBorder* pCellBorder, sal_Int32 n
sal_Int32 GetCellRight( sal_Int32 nColumn,
::tools::Rectangle& rect,
std::vector< std::pair< sal_Int32, sal_Int32 > >& aColumns,
- uno::Reference< table::XMergeableCell >& xCell )
+ uno::Reference< table::XMergeableCell > const & xCell )
{
sal_Int32 nRight = aColumns[ nColumn ].first + aColumns[ nColumn ].second;
for ( sal_Int32 nColumnSpan = 1; nColumnSpan < xCell->getColumnSpan(); nColumnSpan++ )
@@ -2978,7 +2978,7 @@ sal_Int32 GetCellRight( sal_Int32 nColumn,
sal_Int32 GetCellBottom( sal_Int32 nRow,
::tools::Rectangle& rect,
std::vector< std::pair< sal_Int32, sal_Int32 > >& aRows,
- uno::Reference< table::XMergeableCell >& xCell )
+ uno::Reference< table::XMergeableCell > const & xCell )
{
sal_Int32 nBottom = aRows[nRow].first + aRows[nRow].second;
for ( sal_Int32 nRowSpan = 1; nRowSpan < xCell->getRowSpan(); nRowSpan++ )
@@ -3020,7 +3020,7 @@ public:
}
};
-void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, EscherSolverContainer& aSolverContainer,
+void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape > const & rXShape, EscherSolverContainer& aSolverContainer,
EscherPropertyContainer& aPropOpt )
{
try
diff --git a/sd/source/filter/eppt/escherex.cxx b/sd/source/filter/eppt/escherex.cxx
index a5a950147e1d..dc8844a87f76 100644
--- a/sd/source/filter/eppt/escherex.cxx
+++ b/sd/source/filter/eppt/escherex.cxx
@@ -203,7 +203,7 @@ void PptEscherEx::CloseContainer()
}
}
-sal_uInt32 PptEscherEx::EnterGroup( ::tools::Rectangle* pBoundRect, SvMemoryStream* pClientData )
+sal_uInt32 PptEscherEx::EnterGroup( ::tools::Rectangle const * pBoundRect, SvMemoryStream* pClientData )
{
sal_uInt32 nShapeId = 0;
/* SJ: #Issue 26747#
diff --git a/sd/source/filter/eppt/escherex.hxx b/sd/source/filter/eppt/escherex.hxx
index d03c987282ea..58b48fa7379d 100644
--- a/sd/source/filter/eppt/escherex.hxx
+++ b/sd/source/filter/eppt/escherex.hxx
@@ -54,7 +54,7 @@ class PptEscherEx : public EscherEx
void OpenContainer( sal_uInt16 n_EscherContainer, int nRecInstance = 0 ) override;
void CloseContainer() override;
- sal_uInt32 EnterGroup( ::tools::Rectangle* pBoundRect, SvMemoryStream* pClientData );
+ sal_uInt32 EnterGroup( ::tools::Rectangle const * pBoundRect, SvMemoryStream* pClientData );
sal_uInt32 DrawingGroupContainerSize();
void WriteDrawingGroupContainer( SvStream& rSt );
diff --git a/sd/source/filter/eppt/grouptable.hxx b/sd/source/filter/eppt/grouptable.hxx
index 09139fcf1888..d792072479cb 100644
--- a/sd/source/filter/eppt/grouptable.hxx
+++ b/sd/source/filter/eppt/grouptable.hxx
@@ -30,7 +30,7 @@ struct GroupEntry
sal_uInt32 mnCount;
css::uno::Reference< css::container::XIndexAccess > mXIndexAccess;
- explicit GroupEntry( css::uno::Reference< css::container::XIndexAccess > & rIndex )
+ explicit GroupEntry( css::uno::Reference< css::container::XIndexAccess > const & rIndex )
{
mXIndexAccess = rIndex;
mnCount =mXIndexAccess->getCount();
@@ -62,7 +62,7 @@ class GroupTable
sal_uInt32 GetGroupsClosed();
void ResetGroupTable( sal_uInt32 nCount );
void ClearGroupTable();
- bool EnterGroup( css::uno::Reference< css::container::XIndexAccess > & rIndex );
+ bool EnterGroup( css::uno::Reference< css::container::XIndexAccess > const & rIndex );
bool GetNextGroupEntry();
GroupTable();
~GroupTable();
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index ebf122d8a34c..338da53bb7a1 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1027,7 +1027,7 @@ void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, const ch
}
}
-void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, Any& rAny, bool bWriteEvent, bool bMainSeqChild )
+void PowerPointExport::WriteAnimationCondition( const FSHelperPtr& pFS, Any const & rAny, bool bWriteEvent, bool bMainSeqChild )
{
bool bHasFDelay = false;
double fDelay = 0;
diff --git a/sd/source/filter/eppt/pptx-grouptable.cxx b/sd/source/filter/eppt/pptx-grouptable.cxx
index 98105a7e6fb6..1f743df45911 100644
--- a/sd/source/filter/eppt/pptx-grouptable.cxx
+++ b/sd/source/filter/eppt/pptx-grouptable.cxx
@@ -32,7 +32,7 @@ GroupTable::~GroupTable()
{
}
-bool GroupTable::EnterGroup( css::uno::Reference< css::container::XIndexAccess >& rXIndexAccessRef )
+bool GroupTable::EnterGroup( css::uno::Reference< css::container::XIndexAccess > const & rXIndexAccessRef )
{
bool bRet = false;
if ( rXIndexAccessRef.is() )
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index f105358ec107..76adf02d3842 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -677,7 +677,7 @@ ParagraphObj::ParagraphObj(const css::uno::Reference< css::beans::XPropertySet >
ImplGetParagraphValues( pProv, false );
}
-ParagraphObj::ParagraphObj(css::uno::Reference< css::text::XTextContent > & rXTextContent,
+ParagraphObj::ParagraphObj(css::uno::Reference< css::text::XTextContent > const & rXTextContent,
ParaFlags aParaFlags, FontCollection& rFontCollection, PPTExBulletProvider& rProv )
: PropStateValue()
, SOParagraph()
@@ -1298,7 +1298,7 @@ ImplTextObj::~ImplTextObj()
delete *it;
}
-TextObj::TextObj( css::uno::Reference< css::text::XSimpleText > & rXTextRef,
+TextObj::TextObj( css::uno::Reference< css::text::XSimpleText > const & rXTextRef,
int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rProv ):
mpImplTextObj(new ImplTextObj(nInstance))
{
diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx
index d215a80bbd18..7051125735fa 100644
--- a/sd/source/filter/eppt/text.hxx
+++ b/sd/source/filter/eppt/text.hxx
@@ -215,7 +215,7 @@ class ParagraphObj : public PropStateValue, public SOParagraph
bool mbParagraphPunctation;
sal_uInt16 mnBiDi;
- ParagraphObj( css::uno::Reference< css::text::XTextContent > & rXTextContentRef,
+ ParagraphObj( css::uno::Reference< css::text::XTextContent > const & rXTextContentRef,
ParaFlags, FontCollection& rFontCollection,
PPTExBulletProvider& rBuProv );
ParagraphObj( const ParagraphObj& rParargraphObj );
@@ -246,7 +246,7 @@ class TextObj
void ImplCalculateTextPositions();
public:
- TextObj( css::uno::Reference< css::text::XSimpleText > &
+ TextObj( css::uno::Reference< css::text::XSimpleText > const &
rXText, int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv );
ParagraphObj* GetParagraph(int idx);
diff --git a/sd/source/filter/html/htmlattr.cxx b/sd/source/filter/html/htmlattr.cxx
index d845494d1801..5ac6e737ae5f 100644
--- a/sd/source/filter/html/htmlattr.cxx
+++ b/sd/source/filter/html/htmlattr.cxx
@@ -64,8 +64,8 @@ void SdHtmlAttrPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools:
rRenderContext.DrawText(aTextRect, SdResId(STR_HTMLATTR_VLINK), DrawTextFlags::Center | DrawTextFlags::VCenter);
}
-void SdHtmlAttrPreview::SetColors(Color& aBack, Color& aText, Color& aLink,
- Color& aVLink, Color& aALink)
+void SdHtmlAttrPreview::SetColors(Color const & aBack, Color const & aText, Color const & aLink,
+ Color const & aVLink, Color const & aALink)
{
m_aBackColor = aBack;
m_aTextColor = aText;
diff --git a/sd/source/filter/html/htmlattr.hxx b/sd/source/filter/html/htmlattr.hxx
index a681040d5d29..3faa4363591f 100644
--- a/sd/source/filter/html/htmlattr.hxx
+++ b/sd/source/filter/html/htmlattr.hxx
@@ -36,8 +36,8 @@ public:
virtual void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle& rRect) override;
- void SetColors( Color& aBack, Color& aText, Color& aLink,
- Color& aVLink, Color& aALink );
+ void SetColors( Color const & aBack, Color const & aText, Color const & aLink,
+ Color const & aVLink, Color const & aALink );
};
#endif // INCLUDED_SD_SOURCE_FILTER_HTML_HTMLATTR_HXX
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index f72c6206b297..cad6091ffb1b 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -1031,7 +1031,7 @@ bool HtmlExport::CreateImagesForPresPages( bool bThumbnail)
}
// get SdrTextObject with layout text of this page
-SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage* pPage)
+SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage const * pPage)
{
const size_t nObjectCount = pPage->GetObjCount();
SdrTextObj* pResult = nullptr;
@@ -1206,7 +1206,7 @@ OUString HtmlExport::CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage,
}
// creates a outliner text for a page
-OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage* pPage,
+OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage const * pPage,
bool bHeadLine, const Color& rBackgroundColor)
{
OUStringBuffer aStr;
@@ -1264,7 +1264,7 @@ OUString HtmlExport::CreateTextForPage(SdrOutliner* pOutliner, SdPage* pPage,
return aStr.makeStringAndClear();
}
-void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj* pTableObject, SdrOutliner* pOutliner, const Color& rBackgroundColor)
+void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj const * pTableObject, SdrOutliner* pOutliner, const Color& rBackgroundColor)
{
CellPos aStart, aEnd;
@@ -1292,7 +1292,7 @@ void HtmlExport::WriteTable(OUStringBuffer& aStr, SdrTableObj* pTableObject, Sdr
aStr.append("</table>\r\n");
}
-void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGroup, SdrOutliner* pOutliner,
+void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup const * pObjectGroup, SdrOutliner* pOutliner,
const Color& rBackgroundColor, bool bHeadLine)
{
SdrObjListIter aGroupIterator(*pObjectGroup->GetSubList(), SdrIterMode::DeepNoGroups);
@@ -1316,7 +1316,7 @@ void HtmlExport::WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGrou
}
void HtmlExport::WriteOutlinerParagraph(OUStringBuffer& aStr, SdrOutliner* pOutliner,
- OutlinerParaObject* pOutlinerParagraphObject,
+ OutlinerParaObject const * pOutlinerParagraphObject,
const Color& rBackgroundColor, bool bHeadLine)
{
if (pOutlinerParagraphObject == nullptr)
@@ -1405,7 +1405,7 @@ OUString HtmlExport::CreateTextForNotesPage( SdrOutliner* pOutliner,
}
// converts a paragraph of the outliner to html
-OUString HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nPara, const Color& rBackgroundColor )
+OUString HtmlExport::ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_Int32 nPara, const Color& rBackgroundColor )
{
OUStringBuffer aStr;
@@ -1450,7 +1450,7 @@ OUString HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nP
// Depending on the attributes of the specified set and the specified
// HtmlState, it creates the needed html tags in order to get the
// attributes
-OUString HtmlExport::TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState, const Color& rBackgroundColor )
+OUString HtmlExport::TextAttribToHTMLString( SfxItemSet const * pSet, HtmlState* pState, const Color& rBackgroundColor )
{
OUStringBuffer aStr;
@@ -3052,7 +3052,7 @@ bool HtmlExport::CopyFile( const OUString& rSourceFile, const OUString& rDestFil
}
}
-bool HtmlExport::checkFileExists( Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess, OUString const & aFileName )
+bool HtmlExport::checkFileExists( Reference< css::ucb::XSimpleFileAccess3 > const & xFileAccess, OUString const & aFileName )
{
try
{
diff --git a/sd/source/filter/html/htmlex.hxx b/sd/source/filter/html/htmlex.hxx
index 24e850abd132..fae392e19643 100644
--- a/sd/source/filter/html/htmlex.hxx
+++ b/sd/source/filter/html/htmlex.hxx
@@ -143,7 +143,7 @@ class HtmlExport final
std::unique_ptr< ButtonSet > mpButtonSet;
- static SdrTextObj* GetLayoutTextObject(SdrPage* pPage);
+ static SdrTextObj* GetLayoutTextObject(SdrPage const * pPage);
void SetDocColors( SdPage* pPage = nullptr );
@@ -164,7 +164,7 @@ class HtmlExport final
bool CreateImageNumberFile();
bool checkForExistingFiles();
- bool checkFileExists( css::uno::Reference< css::ucb::XSimpleFileAccess3 >& xFileAccess, OUString const & aFileName );
+ bool checkFileExists( css::uno::Reference< css::ucb::XSimpleFileAccess3 > const & xFileAccess, OUString const & aFileName );
OUString const & getDocumentTitle();
bool SavePresentation();
@@ -175,11 +175,11 @@ class HtmlExport final
OUString CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const;
OUString CreateBodyTag() const;
- OUString ParagraphToHTMLString( SdrOutliner* pOutliner, sal_Int32 nPara, const Color& rBackgroundColor );
- OUString TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState, const Color& rBackgroundColor );
+ OUString ParagraphToHTMLString( SdrOutliner const * pOutliner, sal_Int32 nPara, const Color& rBackgroundColor );
+ OUString TextAttribToHTMLString( SfxItemSet const * pSet, HtmlState* pState, const Color& rBackgroundColor );
OUString CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage, const Color& rBackgroundColor );
- OUString CreateTextForPage( SdrOutliner* pOutliner, SdPage* pPage, bool bHeadLine, const Color& rBackgroundColor );
+ OUString CreateTextForPage( SdrOutliner* pOutliner, SdPage const * pPage, bool bHeadLine, const Color& rBackgroundColor );
OUString CreateTextForNotesPage( SdrOutliner* pOutliner, SdPage* pPage, const Color& rBackgroundColor );
static OUString CreateHTMLCircleArea( sal_uLong nRadius, sal_uLong nCenterX,
@@ -213,13 +213,13 @@ class HtmlExport final
static OUString GetButtonName( int nButton );
void WriteOutlinerParagraph(OUStringBuffer& aStr, SdrOutliner* pOutliner,
- OutlinerParaObject* pOutlinerParagraphObject,
+ OutlinerParaObject const * pOutlinerParagraphObject,
const Color& rBackgroundColor, bool bHeadLine);
- void WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup* pObjectGroup,
+ void WriteObjectGroup(OUStringBuffer& aStr, SdrObjGroup const * pObjectGroup,
SdrOutliner* pOutliner, const Color& rBackgroundColor, bool bHeadLine);
- void WriteTable(OUStringBuffer& aStr, sdr::table::SdrTableObj* pTableObject,
+ void WriteTable(OUStringBuffer& aStr, sdr::table::SdrTableObj const * pTableObject,
SdrOutliner* pOutliner, const Color& rBackgroundColor);
public:
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx
index e4039d42cf50..57f43bb336f7 100644
--- a/sd/source/filter/ppt/pptinanimations.cxx
+++ b/sd/source/filter/ppt/pptinanimations.cxx
@@ -868,7 +868,7 @@ bool AnimationImporter::convertAnimationValue( oox::ppt::MS_AttributeNames eAttr
return bRet;
}
-void AnimationImporter::fillNode( Reference< XAnimationNode >& xNode, const AnimationNode& rNode, const PropertySet& rSet )
+void AnimationImporter::fillNode( Reference< XAnimationNode > const & xNode, const AnimationNode& rNode, const PropertySet& rSet )
{
bool bAfterEffect = false;
diff --git a/sd/source/filter/ppt/pptinanimations.hxx b/sd/source/filter/ppt/pptinanimations.hxx
index a9e9e9fe2d16..77e599a72833 100644
--- a/sd/source/filter/ppt/pptinanimations.hxx
+++ b/sd/source/filter/ppt/pptinanimations.hxx
@@ -74,7 +74,7 @@ private:
void importAttributeNamesContainer( const Atom* pAtom, OUString& rAttributeNames );
void importTargetElementContainer( const Atom* pAtom, css::uno::Any& rTarget, sal_Int16& nSubType );
- static void fillNode( css::uno::Reference< css::animations::XAnimationNode >& xTiming, const AnimationNode& rNode, const PropertySet& rSet );
+ static void fillNode( css::uno::Reference< css::animations::XAnimationNode > const & xTiming, const AnimationNode& rNode, const PropertySet& rSet );
static css::uno::Reference< css::animations::XAnimationNode > createNode( const Atom* pAtom, const AnimationNode& rNode );
bool convertAnimationNode( const css::uno::Reference< css::animations::XAnimationNode >& xNode, const css::uno::Reference< css::animations::XAnimationNode >& xParent );
diff --git a/sd/source/filter/xml/sdtransform.cxx b/sd/source/filter/xml/sdtransform.cxx
index 99918dae0050..7f76feb75346 100644
--- a/sd/source/filter/xml/sdtransform.cxx
+++ b/sd/source/filter/xml/sdtransform.cxx
@@ -50,7 +50,7 @@ public:
void transformStyles( SfxStyleFamily eFam );
void transformStyle( SfxStyleSheetBase& rSheet );
- void transformShapes( SdrObjList& rShapes );
+ void transformShapes( SdrObjList const & rShapes );
void transformShape( SdrObject& rObj );
void transformTextShape( SdrTextObj& rTextShape );
@@ -152,7 +152,7 @@ void SdTransformOOo2xDocument::transformStyle( SfxStyleSheetBase& rSheet )
removeAlienAttributes( rSet );
}
-void SdTransformOOo2xDocument::transformShapes( SdrObjList& rShapes )
+void SdTransformOOo2xDocument::transformShapes( SdrObjList const & rShapes )
{
const size_t nShapeCount = rShapes.GetObjCount();
for( size_t nShape = 0; nShape < nShapeCount; ++nShape )
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx
index 0017fcbb4006..56a1368d78aa 100644
--- a/sd/source/filter/xml/sdxmlwrp.cxx
+++ b/sd/source/filter/xml/sdxmlwrp.cxx
@@ -171,7 +171,7 @@ ErrCode ReadThroughComponent(
const Reference<io::XInputStream>& xInputStream,
const Reference<XComponent>& xModelComponent,
const OUString& rStreamName,
- Reference<uno::XComponentContext> & rxContext,
+ Reference<uno::XComponentContext> const & rxContext,
const sal_Char* pFilterName,
const Sequence<Any>& rFilterArguments,
const OUString& rName,
@@ -297,7 +297,7 @@ ErrCode ReadThroughComponent(
const Reference<XComponent>& xModelComponent,
const sal_Char* pStreamName,
const sal_Char* pCompatibilityStreamName,
- Reference<uno::XComponentContext> & rxContext,
+ Reference<uno::XComponentContext> const & rxContext,
const sal_Char* pFilterName,
const Sequence<Any>& rFilterArguments,
const OUString& rName,
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx
index 5fa19192edf7..03b20553026f 100644
--- a/sd/source/ui/animations/CustomAnimationDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationDialog.cxx
@@ -990,7 +990,7 @@ public:
void update( STLPropertySet* pSet );
DECL_LINK( implSelectHdl, ListBox&, void );
DECL_LINK( implClickHdl, Button*, void );
- void implHdl(Control*);
+ void implHdl(Control const *);
private:
void updateControlStates();
@@ -1282,7 +1282,7 @@ IMPL_LINK( CustomAnimationEffectTabPage, implSelectHdl, ListBox&, rListBox, void
implHdl(&rListBox);
}
-void CustomAnimationEffectTabPage::implHdl(Control* pControl )
+void CustomAnimationEffectTabPage::implHdl(Control const * pControl )
{
if( pControl == mpLBTextAnim )
{
@@ -1558,7 +1558,7 @@ public:
DECL_LINK( implControlHdl, ListBox&, void );
DECL_LINK( implClickHdl, Button*, void );
DECL_LINK( DurationModifiedHdl, Edit&, void );
- void implHdl(Control*);
+ void implHdl(Control const *);
private:
const STLPropertySet* mpSet;
@@ -1786,7 +1786,7 @@ IMPL_LINK_NOARG(CustomAnimationDurationTabPage, DurationModifiedHdl, Edit&, void
}
}
-void CustomAnimationDurationTabPage::implHdl( Control* pControl )
+void CustomAnimationDurationTabPage::implHdl( Control const * pControl )
{
if( pControl == mpLBTrigger )
{
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 6100c21c5a31..b0f8e63faed7 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -1246,7 +1246,7 @@ STLPropertySet* CustomAnimationPane::createSelectionSet()
return pSet;
}
-void CustomAnimationPane::changeSelection( STLPropertySet* pResultSet, STLPropertySet* pOldSet )
+void CustomAnimationPane::changeSelection( STLPropertySet const * pResultSet, STLPropertySet const * pOldSet )
{
// change selected effect
bool bChanged = false;
@@ -1895,7 +1895,7 @@ void CustomAnimationPane::onRemove()
}
}
-void CustomAnimationPane::remove( CustomAnimationEffectPtr& pEffect )
+void CustomAnimationPane::remove( CustomAnimationEffectPtr const & pEffect )
{
if( pEffect->getEffectSequence() )
{
@@ -2257,7 +2257,7 @@ IMPL_LINK( CustomAnimationPane, implControlListBoxHdl, ListBox&, rListBox, void
}
/// this link is called when one of the controls is modified
-void CustomAnimationPane::implControlHdl(Control* pControl )
+void CustomAnimationPane::implControlHdl(Control const * pControl )
{
if( pControl == mpPBAddEffect )
onAdd();
diff --git a/sd/source/ui/animations/CustomAnimationPane.hxx b/sd/source/ui/animations/CustomAnimationPane.hxx
index 71a20cbb8021..400668c13ceb 100644
--- a/sd/source/ui/animations/CustomAnimationPane.hxx
+++ b/sd/source/ui/animations/CustomAnimationPane.hxx
@@ -79,7 +79,7 @@ public:
// methods
void preview( const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode );
- void remove( CustomAnimationEffectPtr& pEffect );
+ void remove( CustomAnimationEffectPtr const & pEffect );
// Control
virtual void StateChanged( StateChangedType nStateChange ) override;
@@ -110,7 +110,7 @@ private:
void onPreview( bool bForcePreview );
STLPropertySet* createSelectionSet();
- void changeSelection( STLPropertySet* pResultSet, STLPropertySet* pOldSet );
+ void changeSelection( STLPropertySet const * pResultSet, STLPropertySet const * pOldSet );
static css::uno::Any getProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect );
bool setProperty1Value( sal_Int32 nType, const CustomAnimationEffectPtr& pEffect, const css::uno::Any& rValue );
@@ -129,7 +129,7 @@ private:
DECL_LINK( DelayLoseFocusHdl, Control&, void );
DECL_LINK( UpdateAnimationLB, ListBox&, void );
DECL_LINK( AnimationSelectHdl, ListBox&, void );
- void implControlHdl(Control*);
+ void implControlHdl(Control const *);
private:
ViewShellBase& mrBase;
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index bc863e410d8c..aec1d09e893f 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -231,7 +231,7 @@ void lcl_ApplyToPages(
void lcl_CreateUndoForPages(
const ::sd::slidesorter::SharedPageSelection& rpPages,
- ::sd::ViewShellBase& rBase )
+ ::sd::ViewShellBase const & rBase )
{
::sd::DrawDocShell* pDocSh = rBase.GetDocShell();
if (!pDocSh)
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 8880df777366..fd351bb87d24 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -119,7 +119,7 @@ SfxItemPool* GetAnnotationPool()
return s_pAnnotationPool;
}
-static SfxBindings* getBindings( ViewShellBase& rBase )
+static SfxBindings* getBindings( ViewShellBase const & rBase )
{
if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
return &rBase.GetMainViewShell()->GetViewFrame()->GetBindings();
@@ -127,7 +127,7 @@ static SfxBindings* getBindings( ViewShellBase& rBase )
return nullptr;
}
-static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
+static SfxDispatcher* getDispatcher( ViewShellBase const & rBase )
{
if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
return rBase.GetMainViewShell()->GetViewFrame()->GetDispatcher();
@@ -300,7 +300,7 @@ void AnnotationManagerImpl::ShowAnnotations( bool bShow )
}
}
-void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest& rReq )
+void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest const & rReq )
{
switch( rReq.GetSlot() )
{
@@ -328,7 +328,7 @@ void AnnotationManagerImpl::ExecuteAnnotation(SfxRequest& rReq )
}
}
-void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest const & rReq)
{
if (!comphelper::LibreOfficeKit::isActive() || comphelper::LibreOfficeKit::isTiledAnnotations())
ShowAnnotations(true);
@@ -347,7 +347,7 @@ void AnnotationManagerImpl::ExecuteInsertAnnotation(SfxRequest& rReq)
InsertAnnotation(sText);
}
-void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest const & rReq)
{
ShowAnnotations( true );
@@ -395,7 +395,7 @@ void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest& rReq)
UpdateTags();
}
-void AnnotationManagerImpl::ExecuteEditAnnotation(SfxRequest& rReq)
+void AnnotationManagerImpl::ExecuteEditAnnotation(SfxRequest const & rReq)
{
const SfxItemSet* pArgs = rReq.GetArgs();
Reference< XAnnotation > xAnnotation;
@@ -527,7 +527,7 @@ void AnnotationManagerImpl::InsertAnnotation(const OUString& rText)
}
}
-void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest& rReq )
+void AnnotationManagerImpl::ExecuteReplyToAnnotation( SfxRequest const & rReq )
{
Reference< XAnnotation > xAnnotation;
const SfxItemSet* pArgs = rReq.GetArgs();
@@ -846,13 +846,13 @@ void AnnotationManagerImpl::SelectNextAnnotation(bool bForeward)
while( true );
}
-void AnnotationManagerImpl::onTagSelected( AnnotationTag& rTag )
+void AnnotationManagerImpl::onTagSelected( AnnotationTag const & rTag )
{
mxSelectedAnnotation = rTag.GetAnnotation();
invalidateSlots();
}
-void AnnotationManagerImpl::onTagDeselected( AnnotationTag& rTag )
+void AnnotationManagerImpl::onTagDeselected( AnnotationTag const & rTag )
{
if( rTag.GetAnnotation() == mxSelectedAnnotation )
{
@@ -1258,7 +1258,7 @@ Color AnnotationManagerImpl::GetColorDark(sal_uInt16 aAuthorIndex)
return Color(COL_WHITE);
}
-SdPage* AnnotationManagerImpl::GetNextPage( SdPage* pPage, bool bForward )
+SdPage* AnnotationManagerImpl::GetNextPage( SdPage const * pPage, bool bForward )
{
if( pPage == nullptr )
{
@@ -1333,7 +1333,7 @@ AnnotationManager::~AnnotationManager()
mxImpl->dispose();
}
-void AnnotationManager::ExecuteAnnotation(SfxRequest& rRequest)
+void AnnotationManager::ExecuteAnnotation(SfxRequest const & rRequest)
{
mxImpl->ExecuteAnnotation( rRequest );
}
diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx
index 16312b233425..5f5ed8e65d77 100644
--- a/sd/source/ui/annotations/annotationmanagerimpl.hxx
+++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx
@@ -61,13 +61,13 @@ public:
virtual void SAL_CALL notifyEvent( const css::document::EventObject& Event ) override;
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
- void ExecuteAnnotation (SfxRequest& rRequest);
+ void ExecuteAnnotation (SfxRequest const & rRequest);
void GetAnnotationState (SfxItemSet& rItemSet);
- void ExecuteInsertAnnotation(SfxRequest& rReq);
- void ExecuteDeleteAnnotation(SfxRequest& rReq);
- void ExecuteEditAnnotation(SfxRequest& rReq);
- void ExecuteReplyToAnnotation(SfxRequest& rReq);
+ void ExecuteInsertAnnotation(SfxRequest const & rReq);
+ void ExecuteDeleteAnnotation(SfxRequest const & rReq);
+ void ExecuteEditAnnotation(SfxRequest const & rReq);
+ void ExecuteReplyToAnnotation(SfxRequest const & rReq);
void SelectNextAnnotation(bool bForeward);
@@ -86,8 +86,8 @@ public:
static Color GetColor(sal_uInt16 aAuthorIndex);
// callbacks
- void onTagSelected( AnnotationTag& rTag );
- void onTagDeselected( AnnotationTag& rTag );
+ void onTagSelected( AnnotationTag const & rTag );
+ void onTagDeselected( AnnotationTag const & rTag );
void onSelectionChanged();
@@ -103,7 +103,7 @@ public:
void CreateTags();
void DisposeTags();
- SdPage* GetNextPage( SdPage* pPage, bool bForeward );
+ SdPage* GetNextPage( SdPage const * pPage, bool bForeward );
SdPage* GetCurrentPage();
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx
index 659141df6968..8aa487925d6c 100644
--- a/sd/source/ui/annotations/annotationtag.cxx
+++ b/sd/source/ui/annotations/annotationtag.cxx
@@ -244,7 +244,7 @@ bool AnnotationHdl::isMarkable() const
return false;
}
-AnnotationTag::AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const Reference< XAnnotation >& xAnnotation, Color& rColor, int nIndex, const vcl::Font& rFont )
+AnnotationTag::AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const Reference< XAnnotation >& xAnnotation, Color const & rColor, int nIndex, const vcl::Font& rFont )
: SmartTag( rView )
, mrManager( rManager )
, mxAnnotation( xAnnotation )
diff --git a/sd/source/ui/annotations/annotationtag.hxx b/sd/source/ui/annotations/annotationtag.hxx
index 9419efc0fd2e..7a5da127635b 100644
--- a/sd/source/ui/annotations/annotationtag.hxx
+++ b/sd/source/ui/annotations/annotationtag.hxx
@@ -34,7 +34,7 @@ class AnnotationWindow;
class AnnotationTag : public SmartTag
{
public:
- AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const css::uno::Reference< css::office::XAnnotation >& xAnnotation, Color& rColor, int nIndex, const vcl::Font& rFont );
+ AnnotationTag( AnnotationManagerImpl& rManager, ::sd::View& rView, const css::uno::Reference< css::office::XAnnotation >& xAnnotation, Color const & rColor, int nIndex, const vcl::Font& rFont );
virtual ~AnnotationTag() override;
/// @return true if the SmartTag handled the event.
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 7b2349ac2493..6d96fc1d26af 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -99,7 +99,7 @@ using namespace ::com::sun::star::text;
namespace sd {
-Color ColorFromAlphaColor(sal_uInt8 aTransparency, Color &aFront, Color &aBack )
+Color ColorFromAlphaColor(sal_uInt8 aTransparency, Color const &aFront, Color const &aBack )
{
return Color((sal_uInt8)(aFront.GetRed() * aTransparency/(double)255 + aBack.GetRed() * (1-aTransparency/(double)255)),
(sal_uInt8)(aFront.GetGreen() * aTransparency/(double)255 + aBack.GetGreen() * (1-aTransparency/(double)255)),
diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index e474494baa87..3e38c6e963a8 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -279,7 +279,7 @@ SdOptionsLayoutItem::SdOptionsLayoutItem()
{
}
-SdOptionsLayoutItem::SdOptionsLayoutItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsLayoutItem::SdOptionsLayoutItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
: SfxPoolItem ( ATTR_OPTIONS_LAYOUT )
, maOptionsLayout ( false, false )
{
@@ -646,7 +646,7 @@ SdOptionsMiscItem::SdOptionsMiscItem()
{
}
-SdOptionsMiscItem::SdOptionsMiscItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsMiscItem::SdOptionsMiscItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
: SfxPoolItem ( ATTR_OPTIONS_MISC )
, maOptionsMisc ( false, false )
{
@@ -857,7 +857,7 @@ SdOptionsSnapItem::SdOptionsSnapItem()
{
}
-SdOptionsSnapItem::SdOptionsSnapItem( SdOptions* pOpts, ::sd::FrameView* pView )
+SdOptionsSnapItem::SdOptionsSnapItem( SdOptions const * pOpts, ::sd::FrameView const * pView )
: SfxPoolItem ( ATTR_OPTIONS_SNAP )
, maOptionsSnap ( false, false )
{
@@ -1097,7 +1097,7 @@ bool SdOptionsGrid::WriteData( Any* pValues ) const
|*
\************************************************************************/
-SdOptionsGridItem::SdOptionsGridItem( SdOptions* pOpts ) :
+SdOptionsGridItem::SdOptionsGridItem( SdOptions const * pOpts ) :
SvxGridItem( SID_ATTR_GRID_OPTIONS )
{
SetSynchronize( pOpts->IsSynchronize() );
@@ -1314,7 +1314,7 @@ SdOptionsPrintItem::SdOptionsPrintItem()
{
}
-SdOptionsPrintItem::SdOptionsPrintItem( SdOptions* pOpts )
+SdOptionsPrintItem::SdOptionsPrintItem( SdOptions const * pOpts )
: SfxPoolItem ( ATTR_OPTIONS_PRINT )
, maOptionsPrint ( false, false )
{
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 368431a5e2f8..6e64d2285a1d 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -77,7 +77,7 @@ public:
OutlineToImpressFinalizer (
::sd::ViewShellBase& rBase,
SdDrawDocument& rDocument,
- SvLockBytes& rBytes);
+ SvLockBytes const & rBytes);
void operator() (bool bEventSeen);
private:
::sd::ViewShellBase& mrBase;
@@ -248,7 +248,7 @@ void SdModule::Execute(SfxRequest& rReq)
}
}
-bool SdModule::OutlineToImpress(SfxRequest& rRequest)
+bool SdModule::OutlineToImpress(SfxRequest const & rRequest)
{
const SfxItemSet* pSet = rRequest.GetArgs();
@@ -450,7 +450,7 @@ SfxFrame* SdModule::CreateFromTemplate( const OUString& rTemplatePath, const Ref
}
-SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
+SfxFrame* SdModule::ExecuteNewDocument( SfxRequest const & rReq )
{
SfxFrame* pFrame = nullptr;
if ( SvtModuleOptions().IsImpress() )
@@ -532,7 +532,7 @@ namespace {
OutlineToImpressFinalizer::OutlineToImpressFinalizer (
::sd::ViewShellBase& rBase,
SdDrawDocument& rDocument,
- SvLockBytes& rBytes)
+ SvLockBytes const & rBytes)
: mrBase(rBase),
mrDocument(rDocument),
mpStream()
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 5a8b19bf842d..6a2cf38a53c8 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -71,7 +71,7 @@
/** retrieves the page that is currently painted. This will only be the master page
if the current drawn view only shows the master page*/
-static SdPage* GetCurrentPage( sd::ViewShell* pViewSh, EditFieldInfo* pInfo, bool& bMasterView )
+static SdPage* GetCurrentPage( sd::ViewShell const * pViewSh, EditFieldInfo const * pInfo, bool& bMasterView )
{
if( !pInfo )
return nullptr;
@@ -91,7 +91,7 @@ static SdPage* GetCurrentPage( sd::ViewShell* pViewSh, EditFieldInfo* pInfo, boo
// first try to check if we are inside the outline view
sd::OutlineView* pSdView = nullptr;
if( dynamic_cast<const sd::OutlineViewShell* >(pViewSh) != nullptr )
- pSdView = static_cast<sd::OutlineView*> (static_cast<sd::OutlineViewShell*>(pViewSh)->GetView());
+ pSdView = static_cast<sd::OutlineView*> (static_cast<sd::OutlineViewShell const *>(pViewSh)->GetView());
if (pSdView != nullptr && (pOutliner == &pSdView->GetOutliner()))
{
diff --git a/sd/source/ui/controller/displaymodecontroller.cxx b/sd/source/ui/controller/displaymodecontroller.cxx
index 8897fc61a634..fb18c1d91107 100644
--- a/sd/source/ui/controller/displaymodecontroller.cxx
+++ b/sd/source/ui/controller/displaymodecontroller.cxx
@@ -59,7 +59,7 @@ public:
protected:
DECL_LINK( SelectToolbarMenuHdl, ToolbarMenu*, void );
DECL_LINK( SelectValueSetHdl, ValueSet*, void );
- void SelectHdl(void*);
+ void SelectHdl(void const *);
private:
DisplayModeController& mrController;
@@ -199,7 +199,7 @@ IMPL_LINK( DisplayModeToolbarMenu, SelectToolbarMenuHdl, ToolbarMenu *, pControl
SelectHdl(pControl);
}
-void DisplayModeToolbarMenu::SelectHdl(void * pControl)
+void DisplayModeToolbarMenu::SelectHdl(void const * pControl)
{
if ( IsInPopupMode() )
EndPopupMode();
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index 2e60c895d80f..a8a95202a8cd 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -70,7 +70,7 @@ public:
protected:
DECL_LINK( SelectToolbarMenuHdl, ToolbarMenu*, void );
DECL_LINK( SelectValueSetHdl, ValueSet*, void );
- void SelectHdl(void*);
+ void SelectHdl(void const *);
private:
SlideLayoutController& mrController;
bool mbInsertPage;
@@ -272,7 +272,7 @@ IMPL_LINK( LayoutToolbarMenu, SelectToolbarMenuHdl, ToolbarMenu *, pControl, voi
SelectHdl(pControl);
}
-void LayoutToolbarMenu::SelectHdl(void* pControl)
+void LayoutToolbarMenu::SelectHdl(void const * pControl)
{
if ( IsInPopupMode() )
EndPopupMode();
diff --git a/sd/source/ui/dlg/NavigatorChildWindow.cxx b/sd/source/ui/dlg/NavigatorChildWindow.cxx
index 4f55f39f13ca..44ad4a659f00 100644
--- a/sd/source/ui/dlg/NavigatorChildWindow.cxx
+++ b/sd/source/ui/dlg/NavigatorChildWindow.cxx
@@ -30,7 +30,7 @@ namespace sd {
SFX_IMPL_CHILDWINDOWCONTEXT(NavigatorChildWindow, SID_NAVIGATOR)
-void RequestNavigatorUpdate (SfxBindings* pBindings)
+void RequestNavigatorUpdate (SfxBindings const * pBindings)
{
if (pBindings != nullptr
&& pBindings->GetDispatcher() != nullptr)
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx
index 83f5b9929d2d..d6a447c36c14 100644
--- a/sd/source/ui/dlg/TemplateScanner.cxx
+++ b/sd/source/ui/dlg/TemplateScanner.cxx
@@ -112,7 +112,7 @@ TemplateEntryCompare::TemplateEntryCompare():
::comphelper::getProcessComponentContext(),
Application::GetSettings().GetLanguageTag().getLocale())) {}
-bool TemplateEntryCompare::operator()(TemplateEntry* pA, TemplateEntry* pB) const
+bool TemplateEntryCompare::operator()(TemplateEntry const * pA, TemplateEntry const * pB) const
{
return 0 > mpStringSorter->compare(pA->msTitle, pB->msTitle);
}
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx
index 2ef96aa2de1c..92b8d48b4dcb 100644
--- a/sd/source/ui/dlg/animobjs.cxx
+++ b/sd/source/ui/dlg/animobjs.cxx
@@ -66,7 +66,7 @@ SdDisplay::~SdDisplay()
{
}
-void SdDisplay::SetBitmapEx( BitmapEx* pBmpEx )
+void SdDisplay::SetBitmapEx( BitmapEx const * pBmpEx )
{
if( pBmpEx )
{
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx
index cba70a630de0..fbb407396bca 100644
--- a/sd/source/ui/dlg/custsdlg.cxx
+++ b/sd/source/ui/dlg/custsdlg.cxx
@@ -126,7 +126,7 @@ IMPL_LINK( SdCustomShowDlg, SelectListBoxHdl, ListBox&, rListBox, void )
SelectHdl(&rListBox);
}
-void SdCustomShowDlg::SelectHdl(void *p)
+void SdCustomShowDlg::SelectHdl(void const *p)
{
// new CustomShow
if( p == m_pBtnNew )
@@ -399,7 +399,7 @@ IMPL_LINK( SdDefineCustomShowDlg, ClickButtonEditHdl, Edit&, rEdit, void )
ClickButtonHdl2(&rEdit);
}
// ButtonHdl()
-void SdDefineCustomShowDlg::ClickButtonHdl2(void* p)
+void SdDefineCustomShowDlg::ClickButtonHdl2(void const * p)
{
if( p == m_pBtnAdd )
{
diff --git a/sd/source/ui/dlg/dlgpage.cxx b/sd/source/ui/dlg/dlgpage.cxx
index f047e36d705e..2d7e7d022d22 100644
--- a/sd/source/ui/dlg/dlgpage.cxx
+++ b/sd/source/ui/dlg/dlgpage.cxx
@@ -33,7 +33,7 @@
/**
* Constructor of tab dialog: appends pages to the dialog
*/
-SdPageDlg::SdPageDlg( SfxObjectShell* pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ) :
+SdPageDlg::SdPageDlg( SfxObjectShell const * pDocSh, vcl::Window* pParent, const SfxItemSet* pAttr, bool bAreaPage ) :
SfxTabDialog ( pParent
,"DrawPageDialog"
,"modules/sdraw/ui/drawpagedialog.ui"
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx
index c59dac16c704..a46a1f040c11 100644
--- a/sd/source/ui/dlg/dlgsnap.cxx
+++ b/sd/source/ui/dlg/dlgsnap.cxx
@@ -34,7 +34,7 @@
SdSnapLineDlg::SdSnapLineDlg(
vcl::Window* pWindow,
const SfxItemSet& rInAttrs,
- ::sd::View* pView)
+ ::sd::View const * pView)
: ModalDialog(pWindow, "SnapObjectDialog", "modules/sdraw/ui/dlgsnap.ui")
, eUIUnit(pView->GetDoc().GetUIUnit())
, aUIScale(pView->GetDoc().GetUIScale())
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 06421b0851f7..c6eb9cd55e10 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -71,7 +71,7 @@ private:
::tools::Rectangle maOutRect;
private:
- void Paint(vcl::RenderContext& rRenderContext, SdrTextObj* pObj, bool bVisible, bool bDotted = false);
+ void Paint(vcl::RenderContext& rRenderContext, SdrTextObj const * pObj, bool bVisible, bool bDotted = false);
public:
explicit PresLayoutPreview(vcl::Window* pParent);
@@ -80,7 +80,7 @@ public:
virtual Size GetOptimalSize() const override;
void init(SdPage* pMaster);
- void update(HeaderFooterSettings& rSettings);
+ void update(HeaderFooterSettings const & rSettings);
};
}
@@ -706,13 +706,13 @@ void PresLayoutPreview::init( SdPage *pMaster )
maPageSize = pMaster->GetSize();
}
-void PresLayoutPreview::update( HeaderFooterSettings& rSettings )
+void PresLayoutPreview::update( HeaderFooterSettings const & rSettings )
{
maSettings = rSettings;
Invalidate();
}
-void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, SdrTextObj* pObj, bool bVisible, bool bDotted /* = false*/ )
+void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, SdrTextObj const * pObj, bool bVisible, bool bDotted /* = false*/ )
{
// get object transformation
basegfx::B2DHomMatrix aObjectTransform;
diff --git a/sd/source/ui/dlg/prltempl.cxx b/sd/source/ui/dlg/prltempl.cxx
index 681c65880edd..afa7e0f99f4b 100644
--- a/sd/source/ui/dlg/prltempl.cxx
+++ b/sd/source/ui/dlg/prltempl.cxx
@@ -48,7 +48,7 @@
/**
* Constructor of Tab dialog: appends pages to the dialog
*/
-SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell* pDocSh,
+SdPresLayoutTemplateDlg::SdPresLayoutTemplateDlg( SfxObjectShell const * pDocSh,
vcl::Window* pParent,
bool bBackground,
SfxStyleSheetBase& rStyleBase,
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 942a391d4b04..695f148c8010 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1302,7 +1302,7 @@ SvTreeListEntry* SdPageObjsTLB::GetDropTarget (const Point& rLocation)
return pEntry;
}
-bool SdPageObjsTLB::IsDropAllowed (SvTreeListEntry* pEntry)
+bool SdPageObjsTLB::IsDropAllowed (SvTreeListEntry const * pEntry)
{
if (pEntry == nullptr)
return false;
diff --git a/sd/source/ui/dlg/tabtempl.cxx b/sd/source/ui/dlg/tabtempl.cxx
index 4c3c38bb1908..afe136f5c17e 100644
--- a/sd/source/ui/dlg/tabtempl.cxx
+++ b/sd/source/ui/dlg/tabtempl.cxx
@@ -50,7 +50,7 @@
SdTabTemplateDlg::SdTabTemplateDlg( vcl::Window* pParent,
const SfxObjectShell* pDocShell,
SfxStyleSheetBase& rStyleBase,
- SdrModel* pModel,
+ SdrModel const * pModel,
SdrView* pView )
: SfxStyleDialog(pParent, "TemplateDialog",
"modules/simpress/ui/templatedialog.ui",
diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx
index 2aae8a2bd5ef..9f0d25a4641c 100644
--- a/sd/source/ui/dlg/tpaction.cxx
+++ b/sd/source/ui/dlg/tpaction.cxx
@@ -75,7 +75,7 @@ using namespace com::sun::star::lang;
* Constructor of the Tab dialog: appends the pages to the dialog
*/
SdActionDlg::SdActionDlg (
- vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View* pView )
+ vcl::Window* pParent, const SfxItemSet* pAttr, ::sd::View const * pView )
: SfxSingleTabDialog(pParent, *pAttr, "InteractionDialog",
"modules/simpress/ui/interactiondialog.ui")
, rOutAttrs(*pAttr)
diff --git a/sd/source/ui/dlg/vectdlg.cxx b/sd/source/ui/dlg/vectdlg.cxx
index 203a423e09a8..e9b511cc9db6 100644
--- a/sd/source/ui/dlg/vectdlg.cxx
+++ b/sd/source/ui/dlg/vectdlg.cxx
@@ -129,7 +129,7 @@ void SdVectorizeDlg::InitPreviewBmp()
m_pBmpWin->SetGraphic( aPreviewBmp );
}
-Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
+Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap const & rBmp, Fraction& rScale )
{
Bitmap aNew( rBmp );
const Size aSizePix( aNew.GetSizePixel() );
@@ -148,7 +148,7 @@ Bitmap SdVectorizeDlg::GetPreparedBitmap( Bitmap& rBmp, Fraction& rScale )
return aNew;
}
-void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
+void SdVectorizeDlg::Calculate( Bitmap const & rBmp, GDIMetaFile& rMtf )
{
mpDocSh->SetWaitCursor( true );
m_pPrgs->SetValue( 0 );
@@ -220,7 +220,7 @@ void SdVectorizeDlg::Calculate( Bitmap& rBmp, GDIMetaFile& rMtf )
mpDocSh->SetWaitCursor( false );
}
-void SdVectorizeDlg::AddTile( BitmapReadAccess* pRAcc, GDIMetaFile& rMtf,
+void SdVectorizeDlg::AddTile( BitmapReadAccess const * pRAcc, GDIMetaFile& rMtf,
long nPosX, long nPosY, long nWidth, long nHeight )
{
sal_uLong nSumR = 0UL, nSumG = 0UL, nSumB = 0UL;
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx
index 325b0750a2f5..770d2e5f2192 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -157,7 +157,7 @@ void DrawDocShell::Connect(ViewShell* pViewSh)
mpViewShell = pViewSh;
}
-void DrawDocShell::Disconnect(ViewShell* pViewSh)
+void DrawDocShell::Disconnect(ViewShell const * pViewSh)
{
if (mpViewShell == pViewSh)
{
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index fa097d700643..b4304ec0b6ef 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
@@ -44,7 +44,7 @@ namespace sd { namespace framework {
//===== CenterViewFocusModule ====================================================
-CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController>& rxController)
+CenterViewFocusModule::CenterViewFocusModule (Reference<frame::XController> const & rxController)
: CenterViewFocusModuleInterfaceBase(MutexOwner::maMutex),
mbValid(false),
mxConfigurationController(),
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.hxx b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
index 1511d0232db6..f7fe1efe4f5a 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.hxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.hxx
@@ -50,7 +50,7 @@ class CenterViewFocusModule
{
public:
explicit CenterViewFocusModule (
- css::uno::Reference<css::frame::XController>& rxController);
+ css::uno::Reference<css::frame::XController> const & rxController);
virtual ~CenterViewFocusModule() override;
virtual void SAL_CALL disposing() override;
diff --git a/sd/source/ui/framework/module/DrawModule.cxx b/sd/source/ui/framework/module/DrawModule.cxx
index a0babd6e2950..ac313bb94df8 100644
--- a/sd/source/ui/framework/module/DrawModule.cxx
+++ b/sd/source/ui/framework/module/DrawModule.cxx
@@ -29,7 +29,7 @@ using namespace ::com::sun::star::uno;
namespace sd { namespace framework {
-void DrawModule::Initialize (Reference<frame::XController>& rxController)
+void DrawModule::Initialize (Reference<frame::XController> const & rxController)
{
new sd::framework::CenterViewFocusModule(rxController);
new sd::framework::SlideSorterModule(
diff --git a/sd/source/ui/framework/module/ImpressModule.cxx b/sd/source/ui/framework/module/ImpressModule.cxx
index 2c240d8ed131..42d43965ff12 100644
--- a/sd/source/ui/framework/module/ImpressModule.cxx
+++ b/sd/source/ui/framework/module/ImpressModule.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::uno;
namespace sd { namespace framework {
-void ImpressModule::Initialize (Reference<frame::XController>& rxController)
+void ImpressModule::Initialize (Reference<frame::XController> const & rxController)
{
new CenterViewFocusModule(rxController);
new ViewTabBarModule(
diff --git a/sd/source/ui/framework/module/PresentationModule.cxx b/sd/source/ui/framework/module/PresentationModule.cxx
index 4c05c227648b..10d9ba7cc3ac 100644
--- a/sd/source/ui/framework/module/PresentationModule.cxx
+++ b/sd/source/ui/framework/module/PresentationModule.cxx
@@ -27,7 +27,7 @@ using namespace ::com::sun::star::uno;
namespace sd { namespace framework {
-void PresentationModule::Initialize (Reference<frame::XController>& rxController)
+void PresentationModule::Initialize (Reference<frame::XController> const & rxController)
{
new sd::framework::CenterViewFocusModule(rxController);
}
diff --git a/sd/source/ui/framework/module/ShellStackGuard.cxx b/sd/source/ui/framework/module/ShellStackGuard.cxx
index f86d95075016..80858eee689e 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.cxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.cxx
@@ -38,7 +38,7 @@ namespace sd { namespace framework {
//===== CenterViewFocusModule ====================================================
-ShellStackGuard::ShellStackGuard (Reference<frame::XController>& rxController)
+ShellStackGuard::ShellStackGuard (Reference<frame::XController> const & rxController)
: ShellStackGuardInterfaceBase(m_aMutex),
mxConfigurationController(),
mpBase(nullptr),
diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx
index bb506e3a5004..959515e76df7 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.hxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.hxx
@@ -60,7 +60,7 @@ class ShellStackGuard
public ShellStackGuardInterfaceBase
{
public:
- explicit ShellStackGuard (css::uno::Reference<css::frame::XController>& rxController);
+ explicit ShellStackGuard (css::uno::Reference<css::frame::XController> const & rxController);
virtual ~ShellStackGuard() override;
virtual void SAL_CALL disposing() override;
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx
index 163ee147e400..ed25bcc026f5 100644
--- a/sd/source/ui/framework/tools/FrameworkHelper.cxx
+++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx
@@ -549,7 +549,7 @@ void asyncUpdateEditMode(FrameworkHelper* const pHelper, const EditMode eEMode)
void FrameworkHelper::HandleModeChangeSlot (
sal_uLong nSlotId,
- SfxRequest& rRequest)
+ SfxRequest const & rRequest)
{
if ( ! mxConfigurationController.is())
return;
diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx
index 1ef5ac6276ad..498f0fa79a62 100644
--- a/sd/source/ui/func/fubullet.cxx
+++ b/sd/source/ui/func/fubullet.cxx
@@ -148,7 +148,7 @@ void FuBullet::InsertFormattingMark( sal_Unicode cMark )
}
}
-void FuBullet::InsertSpecialCharacter( SfxRequest& rReq )
+void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq )
{
const SfxItemSet *pArgs = rReq.GetArgs();
const SfxPoolItem* pItem = nullptr;
@@ -291,7 +291,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest& rReq )
}
}
-void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFrame* pViewFrame )
+void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell const * pViewShell, SfxViewFrame* pViewFrame )
{
if( SfxItemState::DEFAULT == rSet.GetItemState( SID_CHARMAP ) ||
SfxItemState::DEFAULT == rSet.GetItemState( FN_INSERT_SOFT_HYPHEN ) ||
@@ -319,7 +319,7 @@ void FuBullet::GetSlotState( SfxItemSet& rSet, ViewShell* pViewShell, SfxViewFra
rSet.DisableItem(SID_INSERT_ZWSP);
}
- if( !bTextEdit && (dynamic_cast<OutlineViewShell*>( pViewShell ) == nullptr) )
+ if( !bTextEdit && (dynamic_cast<OutlineViewShell const *>( pViewShell ) == nullptr) )
rSet.DisableItem(SID_CHARMAP);
if(!bTextEdit || !bCtlEnabled )
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx
index 7db884efeefe..ff60c40925e4 100644
--- a/sd/source/ui/func/fucon3d.cxx
+++ b/sd/source/ui/func/fucon3d.cxx
@@ -235,7 +235,7 @@ E3dCompoundObject* FuConstruct3dObject::ImpCreateBasic3DShape()
return p3DObj;
}
-void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject* p3DObj, E3dScene *pScene)
+void FuConstruct3dObject::ImpPrepareBasic3DShape(E3dCompoundObject const * p3DObj, E3dScene *pScene)
{
Camera3D aCamera = pScene->GetCamera ();
diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx
index 3871611bde24..5b6173deba0a 100644
--- a/sd/source/ui/func/fuconrec.cxx
+++ b/sd/source/ui/func/fuconrec.cxx
@@ -499,7 +499,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj)
/**
* set line starts and ends for the object to be created
*/
-::basegfx::B2DPolyPolygon getPolygon(const char* pResId, SdrModel* pDoc)
+::basegfx::B2DPolyPolygon getPolygon(const char* pResId, SdrModel const * pDoc)
{
::basegfx::B2DPolyPolygon aRetval;
XLineEndListRef pLineEndList = pDoc->GetLineEndList();
@@ -523,7 +523,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj)
return aRetval;
}
-void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject* pObj)
+void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject const * pObj)
{
if ( (pObj->GetObjIdentifier() == OBJ_EDGE &&
nSlotId != SID_TOOL_CONNECTOR &&
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index a44b2f6f4a97..b14e6e5d755b 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -263,7 +263,7 @@ void FuFormatPaintBrush::Paste( bool bNoCharacterFormats, bool bNoParagraphForma
}
}
-/* static */ void FuFormatPaintBrush::GetMenuState( DrawViewShell& rDrawViewShell, SfxItemSet &rSet )
+/* static */ void FuFormatPaintBrush::GetMenuState( DrawViewShell const & rDrawViewShell, SfxItemSet &rSet )
{
const SdrMarkList& rMarkList = rDrawViewShell.GetDrawView()->GetMarkedObjectList();
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
index 1690404032ef..5e2d82e1331e 100644
--- a/sd/source/ui/func/futext.cxx
+++ b/sd/source/ui/func/futext.cxx
@@ -1357,7 +1357,7 @@ bool FuText::cancel()
}
/// Is rCell covered by the rFirst - rLast selection?
-static bool IsInSelection(const sdr::table::CellPos& rFirst, const sdr::table::CellPos& rLast, sdr::table::CellPos& rCell)
+static bool IsInSelection(const sdr::table::CellPos& rFirst, const sdr::table::CellPos& rLast, sdr::table::CellPos const & rCell)
{
if (rCell.mnCol < rFirst.mnCol)
return false;
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 );
diff --git a/sd/source/ui/remotecontrol/Server.cxx b/sd/source/ui/remotecontrol/Server.cxx
index 125b8d832108..0c0106855eb4 100644
--- a/sd/source/ui/remotecontrol/Server.cxx
+++ b/sd/source/ui/remotecontrol/Server.cxx
@@ -219,7 +219,7 @@ void RemoteServer::presentationStopped()
}
}
-void RemoteServer::removeCommunicator( Communicator* mCommunicator )
+void RemoteServer::removeCommunicator( Communicator const * mCommunicator )
{
if ( !spServer )
return;
diff --git a/sd/source/ui/sidebar/DocumentHelper.cxx b/sd/source/ui/sidebar/DocumentHelper.cxx
index bb2a3d853e66..da1699ae53fc 100644
--- a/sd/source/ui/sidebar/DocumentHelper.cxx
+++ b/sd/source/ui/sidebar/DocumentHelper.cxx
@@ -155,7 +155,7 @@ SdPage* DocumentHelper::CopyMasterPageToLocalDocument (
return pNewMasterPage;
}
-SdPage* DocumentHelper::GetSlideForMasterPage (SdPage* pMasterPage)
+SdPage* DocumentHelper::GetSlideForMasterPage (SdPage const * pMasterPage)
{
SdPage* pCandidate = nullptr;
@@ -203,7 +203,7 @@ SdPage* DocumentHelper::GetSlideForMasterPage (SdPage* pMasterPage)
SdPage* DocumentHelper::AddMasterPage (
SdDrawDocument& rTargetDocument,
- SdPage* pMasterPage)
+ SdPage const * pMasterPage)
{
SdPage* pClonedMasterPage = nullptr;
@@ -248,9 +248,9 @@ SdPage* DocumentHelper::AddMasterPage (
}
void DocumentHelper::ProvideStyles (
- SdDrawDocument& rSourceDocument,
+ SdDrawDocument const & rSourceDocument,
SdDrawDocument& rTargetDocument,
- SdPage* pPage)
+ SdPage const * pPage)
{
// Get the layout name of the given page.
OUString sLayoutName (pPage->GetLayoutName());
@@ -344,7 +344,7 @@ void DocumentHelper::AssignMasterPageToPageList (
SdPage* DocumentHelper::AddMasterPage (
SdDrawDocument& rTargetDocument,
- SdPage* pMasterPage,
+ SdPage const * pMasterPage,
sal_uInt16 nInsertionIndex)
{
SdPage* pClonedMasterPage = nullptr;
@@ -399,7 +399,7 @@ SdPage* DocumentHelper::AddMasterPage (
inserted into the target document.
*/
void DocumentHelper::AssignMasterPageToPage (
- SdPage* pMasterPage,
+ SdPage const * pMasterPage,
const OUString& rsBaseLayoutName,
SdPage* pPage)
{
diff --git a/sd/source/ui/sidebar/DocumentHelper.hxx b/sd/source/ui/sidebar/DocumentHelper.hxx
index 3df43fc3364b..0d935b9e5edf 100644
--- a/sd/source/ui/sidebar/DocumentHelper.hxx
+++ b/sd/source/ui/sidebar/DocumentHelper.hxx
@@ -43,15 +43,15 @@ public:
/** Return and, when not yet present, create a slide that uses the given
master page.
*/
- static SdPage* GetSlideForMasterPage (SdPage* pMasterPage);
+ static SdPage* GetSlideForMasterPage (SdPage const * pMasterPage);
/** Copy the styles used by the given page from the source document to
the target document.
*/
static void ProvideStyles (
- SdDrawDocument& rSourceDocument,
+ SdDrawDocument const & rSourceDocument,
SdDrawDocument& rTargetDocument,
- SdPage* pPage);
+ SdPage const * pPage);
/** Assign the given master page to the list of pages.
@param rTargetDocument
@@ -71,10 +71,10 @@ public:
private:
static SdPage* AddMasterPage (
SdDrawDocument& rTargetDocument,
- SdPage* pMasterPage);
+ SdPage const * pMasterPage);
static SdPage* AddMasterPage (
SdDrawDocument& rTargetDocument,
- SdPage* pMasterPage,
+ SdPage const * pMasterPage,
sal_uInt16 nInsertionIndex);
static SdPage* ProvideMasterPage (
SdDrawDocument& rTargetDocument,
@@ -96,7 +96,7 @@ private:
or a master page itself.
*/
static void AssignMasterPageToPage (
- SdPage* pMasterPage,
+ SdPage const * pMasterPage,
const OUString& rsBaseLayoutName,
SdPage* pPage);
};
diff --git a/sd/source/ui/slideshow/showwin.cxx b/sd/source/ui/slideshow/showwin.cxx
index fcdbc11f8aec..d37034f21d63 100644
--- a/sd/source/ui/slideshow/showwin.cxx
+++ b/sd/source/ui/slideshow/showwin.cxx
@@ -307,7 +307,7 @@ void ShowWindow::SetEndMode()
}
}
-bool ShowWindow::SetPauseMode( sal_Int32 nTimeout, Graphic* pLogo )
+bool ShowWindow::SetPauseMode( sal_Int32 nTimeout, Graphic const * pLogo )
{
rtl::Reference< SlideShow > xSlideShow;
diff --git a/sd/source/ui/slideshow/showwindow.hxx b/sd/source/ui/slideshow/showwindow.hxx
index ed23d046513d..c5b2651ff7d7 100644
--- a/sd/source/ui/slideshow/showwindow.hxx
+++ b/sd/source/ui/slideshow/showwindow.hxx
@@ -54,7 +54,7 @@ public:
virtual void dispose() override;
void SetEndMode();
- bool SetPauseMode( sal_Int32 nTimeoutSec, Graphic* pLogo = nullptr );
+ bool SetPauseMode( sal_Int32 nTimeoutSec, Graphic const * pLogo = nullptr );
bool SetBlankMode( sal_Int32 nPageIndexToRestart, const Color& rBlankColor );
const Color& GetBlankColor() const { return maShowBackground.GetColor(); }
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 574db3f4b826..345b1b6a932a 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -145,7 +145,7 @@ rtl::Reference< SlideShow > SlideShow::Create( SdDrawDocument* pDoc )
return new SlideShow( pDoc );
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument const * pDocument )
{
rtl::Reference< SlideShow > xRet;
@@ -155,18 +155,18 @@ rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
return xRet;
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument& rDocument )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument const & rDocument )
{
return rtl::Reference< SlideShow >(
dynamic_cast< SlideShow* >( rDocument.getPresentation().get() ) );
}
-rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase& rBase )
+rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase const & rBase )
{
return GetSlideShow( rBase.GetDocument() );
}
-css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSlideShowController(ViewShellBase& rBase )
+css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSlideShowController(ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
@@ -177,7 +177,7 @@ css::uno::Reference< css::presentation::XSlideShowController > SlideShow::GetSli
return xRet;
}
-bool SlideShow::StartPreview( ViewShellBase& rBase,
+bool SlideShow::StartPreview( ViewShellBase const & rBase,
const css::uno::Reference< css::drawing::XDrawPage >& xDrawPage,
const css::uno::Reference< css::animations::XAnimationNode >& xAnimationNode )
{
@@ -188,14 +188,14 @@ bool SlideShow::StartPreview( ViewShellBase& rBase,
return false;
}
-void SlideShow::Stop( ViewShellBase& rBase )
+void SlideShow::Stop( ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
if( xSlideShow.is() )
xSlideShow->end();
}
-bool SlideShow::IsRunning( ViewShellBase& rBase )
+bool SlideShow::IsRunning( ViewShellBase const & rBase )
{
rtl::Reference< SlideShow > xSlideShow( GetSlideShow( rBase ) );
return xSlideShow.is() && xSlideShow->isRunning();
@@ -1159,7 +1159,7 @@ sal_Int32 SlideShow::GetDisplay()
return nDisplay;
}
-bool SlideShow::dependsOn( ViewShellBase* pViewShellBase )
+bool SlideShow::dependsOn( ViewShellBase const * pViewShellBase )
{
return mxController.is() && (pViewShellBase == mpCurrentViewShellBase) && mpFullScreenViewShellBase;
}
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index ef249c60ac3d..007b445fa862 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -718,7 +718,7 @@ void SAL_CALL SlideshowImpl::disposing()
bool SlideshowImpl::startPreview(
const Reference< XDrawPage >& xDrawPage,
const Reference< XAnimationNode >& xAnimationNode,
- vcl::Window* pParent )
+ vcl::Window * pParent )
{
bool bRet = false;
@@ -1240,7 +1240,7 @@ void SlideshowImpl::registerShapeEvents(sal_Int32 nSlideNumber)
}
}
-void SlideshowImpl::registerShapeEvents( Reference< XShapes >& xShapes )
+void SlideshowImpl::registerShapeEvents( Reference< XShapes > const & xShapes )
{
try
{
@@ -3022,7 +3022,7 @@ PresentationSettingsEx::PresentationSettingsEx( const PresentationSettingsEx& r
{
}
-PresentationSettingsEx::PresentationSettingsEx( PresentationSettings& r )
+PresentationSettingsEx::PresentationSettingsEx( PresentationSettings const & r )
: PresentationSettings( r )
, mbRehearseTimings(false)
, mbPreview(false)
diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx
index 2d528edd3e39..6c910c27a856 100644
--- a/sd/source/ui/slideshow/slideshowimpl.hxx
+++ b/sd/source/ui/slideshow/slideshowimpl.hxx
@@ -97,7 +97,7 @@ struct PresentationSettingsEx : public PresentationSettings
css::uno::Reference< css::animations::XAnimationNode > mxAnimationNode;
PresentationSettingsEx( const PresentationSettingsEx& );
- explicit PresentationSettingsEx( PresentationSettings& );
+ explicit PresentationSettingsEx( PresentationSettings const & );
/// @throws css::lang::IllegalArgumentException
void SetArguments( const css::uno::Sequence< css::beans::PropertyValue >& rArguments );
@@ -303,7 +303,7 @@ private:
void removeShapeEvents();
void registerShapeEvents( sal_Int32 nSlideNumber );
/// @throws css::uno::Exception
- void registerShapeEvents( css::uno::Reference< css::drawing::XShapes >& xShapes );
+ void registerShapeEvents( css::uno::Reference< css::drawing::XShapes > const & xShapes );
static css::uno::Reference< css::presentation::XSlideShow > createSlideShow();
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index 217fa0658a7f..a1985f744fe3 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -796,7 +796,7 @@ sal_Int8 Clipboard::ExecuteDrop (
}
bool Clipboard::IsInsertionTrivial (
- SdTransferable* pTransferable,
+ SdTransferable const * pTransferable,
const sal_Int8 nDndAction) const
{
std::shared_ptr<TransferableData> pSlideSorterTransferable (
diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
index bf35f39e54a8..4f9e91473a35 100644
--- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
@@ -331,7 +331,7 @@ void PageSelector::UpdateCurrentPage (const bool bUpdateOnlyWhenPending)
//===== PageSelector::UpdateLock ==============================================
-PageSelector::UpdateLock::UpdateLock (SlideSorter& rSlideSorter)
+PageSelector::UpdateLock::UpdateLock (SlideSorter const & rSlideSorter)
: mpSelector(&rSlideSorter.GetController().GetPageSelector())
{
++mpSelector->mnUpdateLockCount;
@@ -363,7 +363,7 @@ void PageSelector::UpdateLock::Release()
//===== PageSelector::BroadcastLock ==============================================
-PageSelector::BroadcastLock::BroadcastLock (SlideSorter& rSlideSorter)
+PageSelector::BroadcastLock::BroadcastLock (SlideSorter const & rSlideSorter)
: mrSelector(rSlideSorter.GetController().GetPageSelector())
{
mrSelector.DisableBroadcasting();
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index 565eac564e18..5eea4cd46dde 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -115,12 +115,12 @@ public:
EventDescriptor (
sal_uInt32 nEventType,
const MouseEvent& rEvent,
- SlideSorter& rSlideSorter);
+ SlideSorter const & rSlideSorter);
EventDescriptor (
sal_uInt32 nEventType,
const AcceptDropEvent& rEvent,
const sal_Int8 nDragAction,
- SlideSorter& rSlideSorter);
+ SlideSorter const & rSlideSorter);
private:
/** Compute a numerical code that describes a mouse event and that can
@@ -757,7 +757,7 @@ void SelectionFunction::ResetMouseAnchor()
SelectionFunction::EventDescriptor::EventDescriptor (
const sal_uInt32 nEventType,
const MouseEvent& rEvent,
- SlideSorter& rSlideSorter)
+ SlideSorter const & rSlideSorter)
: maMousePosition(rEvent.GetPosPixel()),
maMouseModelPosition(),
mpHitDescriptor(),
@@ -788,7 +788,7 @@ SelectionFunction::EventDescriptor::EventDescriptor (
const sal_uInt32 nEventType,
const AcceptDropEvent& rEvent,
const sal_Int8 nDragAction,
- SlideSorter& rSlideSorter)
+ SlideSorter const & rSlideSorter)
: maMousePosition(rEvent.maPosPixel),
maMouseModelPosition(),
mpHitDescriptor(),
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx
index cf1ed111faaf..33f5da8b11bf 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionObserver.cxx
@@ -30,7 +30,7 @@
namespace sd { namespace slidesorter { namespace controller {
-SelectionObserver::Context::Context (SlideSorter& rSlideSorter)
+SelectionObserver::Context::Context (SlideSorter const & rSlideSorter)
: mpSelectionObserver(
rSlideSorter.GetController().GetSelectionManager()->GetSelectionObserver())
{
diff --git a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
index f6dff9e7d4cd..1c84ec86160a 100644
--- a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx
@@ -201,7 +201,7 @@ void VisibleAreaManager::MakeVisible()
//===== VisibleAreaManager::TemporaryDisabler =================================
-VisibleAreaManager::TemporaryDisabler::TemporaryDisabler (SlideSorter& rSlideSorter)
+VisibleAreaManager::TemporaryDisabler::TemporaryDisabler (SlideSorter const & rSlideSorter)
: mrVisibleAreaManager(rSlideSorter.GetController().GetVisibleAreaManager())
{
++mrVisibleAreaManager.mnDisableCount;
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
index f20133a137c6..6e53e22e0564 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx
@@ -215,7 +215,7 @@ private:
trivial, ie would not change either source nor target document.
*/
bool IsInsertionTrivial (
- SdTransferable* pTransferable,
+ SdTransferable const * pTransferable,
const sal_Int8 nDndAction) const;
/** Asynchronous part of DragFinished. The argument is the sal_Int8
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
index 8e04f8ac7f4f..d2e8b20c18c1 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsPageSelector.hxx
@@ -158,7 +158,7 @@ public:
class UpdateLock
{
public:
- UpdateLock (SlideSorter& rSlideSorter);
+ UpdateLock (SlideSorter const & rSlideSorter);
UpdateLock (PageSelector& rPageSelector);
~UpdateLock();
void Release();
@@ -169,7 +169,7 @@ public:
class BroadcastLock
{
public:
- BroadcastLock (SlideSorter& rSlideSorter);
+ BroadcastLock (SlideSorter const & rSlideSorter);
BroadcastLock (PageSelector& rPageSelector);
~BroadcastLock();
private:
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx b/sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx
index cbe007271abd..457f18422724 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsSelectionObserver.hxx
@@ -56,7 +56,7 @@ public:
class Context
{
public:
- Context (SlideSorter& rSlideSorter);
+ Context (SlideSorter const & rSlideSorter);
~Context();
void Abort();
private:
diff --git a/sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx b/sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx
index fec1640d6850..91610eaf7ede 100644
--- a/sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx
+++ b/sd/source/ui/slidesorter/inc/controller/SlsVisibleAreaManager.hxx
@@ -58,7 +58,7 @@ public:
class TemporaryDisabler
{
public:
- explicit TemporaryDisabler (SlideSorter& rSlideSorter);
+ explicit TemporaryDisabler (SlideSorter const & rSlideSorter);
~TemporaryDisabler();
private:
VisibleAreaManager& mrVisibleAreaManager;
diff --git a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
index 5daf2d4efc89..4e852081de01 100644
--- a/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlideSorterView.hxx
@@ -193,7 +193,7 @@ public:
class DrawLock
{
public:
- DrawLock (SlideSorter& rSlideSorter);
+ DrawLock (SlideSorter const & rSlideSorter);
~DrawLock();
/** When the DrawLock is disposed then it will not request a repaint
on destruction.
diff --git a/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx b/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
index 948af27cfb7c..cfcb49c52512 100644
--- a/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
+++ b/sd/source/ui/slidesorter/inc/view/SlsLayouter.hxx
@@ -179,7 +179,7 @@ public:
InsertPosition GetInsertPosition (
const Point& rModelPosition,
const Size& rIndicatorSize,
- model::SlideSorterModel& rModel) const;
+ model::SlideSorterModel const & rModel) const;
Range GetValidHorizontalSizeRange() const;
Range GetValidVerticalSizeRange() const;
diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index 4f480dba0637..7b444e35f23f 100644
--- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx
+++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
@@ -830,7 +830,7 @@ std::shared_ptr<PageObjectPainter> const & SlideSorterView::GetPageObjectPainter
//===== SlideSorterView::DrawLock =============================================
-SlideSorterView::DrawLock::DrawLock (SlideSorter& rSlideSorter)
+SlideSorterView::DrawLock::DrawLock (SlideSorter const & rSlideSorter)
: mrView(rSlideSorter.GetView()),
mpWindow(rSlideSorter.GetContentWindow())
{
diff --git a/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx b/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
index 7677b9015d0e..26cc9928ffb5 100644
--- a/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
+++ b/sd/source/ui/slidesorter/view/SlsInsertAnimator.cxx
@@ -138,7 +138,7 @@ private:
InsertPosition maInsertPosition;
SharedPageObjectRun GetRun (
- view::Layouter& rLayouter,
+ view::Layouter const & rLayouter,
const InsertPosition& rInsertPosition);
RunContainer::const_iterator FindRun (const sal_Int32 nRunIndex) const;
};
@@ -203,7 +203,7 @@ void InsertAnimator::Implementation::SetInsertPosition (
}
SharedPageObjectRun InsertAnimator::Implementation::GetRun (
- view::Layouter& rLayouter,
+ view::Layouter const & rLayouter,
const InsertPosition& rInsertPosition)
{
const sal_Int32 nRow (rInsertPosition.GetRow());
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
index 75402f6eb9db..ba82286969c0 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
@@ -59,7 +59,7 @@ private:
void DeviceCopy (
vcl::RenderContext& rTargetDevice,
- vcl::RenderContext& rSourceDevice,
+ vcl::RenderContext const & rSourceDevice,
const ::tools::Rectangle& rBox)
{
rTargetDevice.DrawOutDev(
diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
index dbe5f4053b53..cb28f28b9024 100644
--- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx
@@ -163,13 +163,13 @@ public:
InsertPosition& rPosition,
const Size& rIndicatorSize,
const bool bIsVertical,
- model::SlideSorterModel& rModel) const;
+ model::SlideSorterModel const & rModel) const;
/** Return the bounding box of the preview or, when selected, of the page
object. Thus, it returns something like a visual bounding box.
*/
::tools::Rectangle GetInnerBoundingBox (
- model::SlideSorterModel& rModel,
+ model::SlideSorterModel const & rModel,
const sal_Int32 nIndex) const;
Range GetValidHorizontalSizeRange() const;
@@ -358,7 +358,7 @@ Size Layouter::GetPageObjectSize() const
InsertPosition Layouter::GetInsertPosition (
const Point& rModelPosition,
const Size& rIndicatorSize,
- model::SlideSorterModel& rModel) const
+ model::SlideSorterModel const & rModel) const
{
InsertPosition aPosition;
mpImplementation->CalculateLogicalInsertPosition(
@@ -668,7 +668,7 @@ void Layouter::Implementation::CalculateGeometricPosition (
InsertPosition& rPosition,
const Size& rIndicatorSize,
const bool bIsVertical,
- model::SlideSorterModel& rModel) const
+ model::SlideSorterModel const & rModel) const
{
// 1. Determine right/bottom of the leading page and the left/top of the
// trailing page object and how to distribute the missing space.
@@ -782,7 +782,7 @@ void Layouter::Implementation::CalculateGeometricPosition (
}
::tools::Rectangle Layouter::Implementation::GetInnerBoundingBox (
- model::SlideSorterModel& rModel,
+ model::SlideSorterModel const & rModel,
const sal_Int32 nIndex) const
{
model::SharedPageDescriptor pDescriptor (rModel.GetPageDescriptor(nIndex));
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index feba064cdd19..7b1da043af68 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -140,7 +140,7 @@ TableDesignWidget::~TableDesignWidget()
removeListener();
}
-static SfxBindings* getBindings( ViewShellBase& rBase )
+static SfxBindings* getBindings( ViewShellBase const & rBase )
{
if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
return &rBase.GetMainViewShell()->GetViewFrame()->GetBindings();
@@ -148,7 +148,7 @@ static SfxBindings* getBindings( ViewShellBase& rBase )
return nullptr;
}
-static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
+static SfxDispatcher* getDispatcher( ViewShellBase const & rBase )
{
if( rBase.GetMainViewShell().get() && rBase.GetMainViewShell()->GetViewFrame() )
return rBase.GetMainViewShell()->GetViewFrame()->GetDispatcher();
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index f4e6a4b546c3..756604addde0 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -80,7 +80,7 @@ using namespace ::com::sun::star::linguistic2;
namespace sd
{
-static void apply_table_style( SdrTableObj* pObj, SdrModel* pModel, const OUString& sTableStyle )
+static void apply_table_style( SdrTableObj* pObj, SdrModel const * pModel, const OUString& sTableStyle )
{
if( pModel && pObj )
{
diff --git a/sd/source/ui/tools/EventMultiplexer.cxx b/sd/source/ui/tools/EventMultiplexer.cxx
index 8a7597395b09..b82363b10610 100644
--- a/sd/source/ui/tools/EventMultiplexer.cxx
+++ b/sd/source/ui/tools/EventMultiplexer.cxx
@@ -132,7 +132,7 @@ private:
void CallListeners (
EventMultiplexerEventId eId,
- void* pUserData = nullptr);
+ void const * pUserData = nullptr);
DECL_LINK(SlideSorterSelectionChangeListener, LinkParamNone*, void);
};
@@ -175,7 +175,7 @@ void EventMultiplexer::RemoveEventListener (
void EventMultiplexer::MultiplexEvent(
EventMultiplexerEventId eEventId,
- void* pUserData )
+ void const * pUserData )
{
EventMultiplexerEvent aEvent(eEventId, pUserData);
mpImpl->CallListeners(aEvent);
@@ -605,17 +605,17 @@ void EventMultiplexer::Implementation::Notify (
case SdrHintKind::ObjectChange:
CallListeners(EventMultiplexerEventId::ShapeChanged,
- const_cast<void*>(static_cast<const void*>(pSdrHint->GetPage())));
+ static_cast<const void*>(pSdrHint->GetPage()));
break;
case SdrHintKind::ObjectInserted:
CallListeners(EventMultiplexerEventId::ShapeInserted,
- const_cast<void*>(static_cast<const void*>(pSdrHint->GetPage())));
+ static_cast<const void*>(pSdrHint->GetPage()));
break;
case SdrHintKind::ObjectRemoved:
CallListeners(EventMultiplexerEventId::ShapeRemoved,
- const_cast<void*>(static_cast<const void*>(pSdrHint->GetPage())));
+ static_cast<const void*>(pSdrHint->GetPage()));
break;
default:
break;
@@ -630,7 +630,7 @@ void EventMultiplexer::Implementation::Notify (
void EventMultiplexer::Implementation::CallListeners (
EventMultiplexerEventId eId,
- void* pUserData)
+ void const * pUserData)
{
EventMultiplexerEvent aEvent(eId, pUserData);
CallListeners(aEvent);
diff --git a/sd/source/ui/tools/SlotStateListener.cxx b/sd/source/ui/tools/SlotStateListener.cxx
index 5005fb49a07e..c1b0339b708d 100644
--- a/sd/source/ui/tools/SlotStateListener.cxx
+++ b/sd/source/ui/tools/SlotStateListener.cxx
@@ -31,7 +31,7 @@ using namespace ::com::sun::star;
namespace sd { namespace tools {
SlotStateListener::SlotStateListener (
- Link<const OUString&,void>& rCallback,
+ Link<const OUString&,void> const & rCallback,
const uno::Reference<frame::XDispatchProvider>& rxDispatchProvider,
const OUString& rSlotName)
: SlotStateListenerInterfaceBase(maMutex),
diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx
index a17f98bb5ad7..dbae38486236 100644
--- a/sd/source/ui/uitest/uiobject.cxx
+++ b/sd/source/ui/uitest/uiobject.cxx
@@ -39,7 +39,7 @@ sd::DrawViewShell* getViewShell(const VclPtr<sd::Window>& xWindow)
return pViewShell;
}
-OUString getObjectName(SdrObject* pObject)
+OUString getObjectName(SdrObject const * pObject)
{
if (pObject->GetName().isEmpty())
return "Unnamed Drawinglayer object " + OUString::number(pObject->GetOrdNum());
diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx
index a03a8260f29c..152351398c84 100644
--- a/sd/source/ui/unoidl/unolayer.cxx
+++ b/sd/source/ui/unoidl/unolayer.cxx
@@ -710,7 +710,7 @@ namespace
@return
Return </True> if both pointers point to the same object.
*/
-bool compare_layers (const uno::WeakReference<uno::XInterface>& xRef, void* pSearchData)
+bool compare_layers (const uno::WeakReference<uno::XInterface>& xRef, void const * pSearchData)
{
uno::Reference<uno::XInterface> xLayer (xRef);
if (xLayer.is())
@@ -719,7 +719,7 @@ bool compare_layers (const uno::WeakReference<uno::XInterface>& xRef, void* pSea
if (pSdLayer != nullptr)
{
SdrLayer* pSdrLayer = pSdLayer->GetSdrLayer ();
- if (pSdrLayer == static_cast<SdrLayer*>(pSearchData))
+ if (pSdrLayer == static_cast<SdrLayer const *>(pSearchData))
return true;
}
}
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index a7c4d0663734..4ec29d00a94f 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -1546,7 +1546,7 @@ ImplRenderPaintProc::ImplRenderPaintProc( const SdrLayerAdmin& rLA, SdrPageView*
{
}
-sal_Int32 ImplPDFGetBookmarkPage( const OUString& rBookmark, SdDrawDocument& rDoc )
+sal_Int32 ImplPDFGetBookmarkPage( const OUString& rBookmark, SdDrawDocument const & rDoc )
{
sal_Int32 nPage = -1;
@@ -1848,7 +1848,7 @@ bool ImplRenderPaintProc::IsPrintable( const SdrObject* pObj ) const
namespace
{
- sal_Int16 CalcOutputPageNum(vcl::PDFExtOutDevData* pPDFExtOutDevData, SdDrawDocument *pDoc, sal_Int16 nPageNumber)
+ sal_Int16 CalcOutputPageNum(vcl::PDFExtOutDevData const * pPDFExtOutDevData, SdDrawDocument const *pDoc, sal_Int16 nPageNumber)
{
//export all pages, simple one to one case
if (pPDFExtOutDevData && pPDFExtOutDevData->GetIsExportHiddenSlides())
@@ -3451,7 +3451,7 @@ uno::Sequence< OUString > SAL_CALL SdDocLinkTargets::getSupportedServiceNames()
return aSeq;
}
-rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocument* pDocument )
+rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocument const * pDocument )
{
rtl::Reference< SdXImpressDocument > xRet;
if( pDocument )
@@ -3468,7 +3468,7 @@ rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocumen
return xRet;
}
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName )
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName )
{
rtl::Reference< SdXImpressDocument > xModel( SdXImpressDocument::GetModel( pDocument ) );
@@ -3480,7 +3480,7 @@ void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName
}
}
-void NotifyDocumentEvent( SdDrawDocument* pDocument, const OUString& rEventName, const uno::Reference< uno::XInterface >& xSource )
+void NotifyDocumentEvent( SdDrawDocument const * pDocument, const OUString& rEventName, const uno::Reference< uno::XInterface >& xSource )
{
rtl::Reference< SdXImpressDocument > xModel( SdXImpressDocument::GetModel( pDocument ) );
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 9758152bee97..bcb9b06f4e0b 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1555,7 +1555,7 @@ OUString SdGenericDrawPage::getBookmarkURL() const
return aRet.makeStringAndClear();
}
-void SdGenericDrawPage::setBookmarkURL( OUString& rURL )
+void SdGenericDrawPage::setBookmarkURL( OUString const & rURL )
{
if( SvxFmDrawPage::mpPage )
{
@@ -2128,12 +2128,12 @@ Sequence< sal_Int8 > SAL_CALL SdDrawPage::getImplementationId()
return css::uno::Sequence<sal_Int8>();
}
-OUString SdDrawPage::getPageApiName( SdPage* pPage )
+OUString SdDrawPage::getPageApiName( SdPage const * pPage )
{
return ::getPageApiName( pPage );
}
-OUString getPageApiName( SdPage* pPage )
+OUString getPageApiName( SdPage const * pPage )
{
OUString aPageName;
@@ -2590,7 +2590,7 @@ void SdGenericDrawPage::setNavigationOrder( const Any& rValue )
class SdNavigationOrderAccess : public ::cppu::WeakImplHelper< XIndexAccess >
{
public:
- explicit SdNavigationOrderAccess(SdrPage* pPage);
+ explicit SdNavigationOrderAccess(SdrPage const * pPage);
// XIndexAccess
virtual sal_Int32 SAL_CALL getCount( ) override;
@@ -2604,7 +2604,7 @@ private:
std::vector< Reference< XShape > > maShapes;
};
-SdNavigationOrderAccess::SdNavigationOrderAccess( SdrPage* pPage )
+SdNavigationOrderAccess::SdNavigationOrderAccess( SdrPage const * pPage )
: maShapes( pPage ? pPage->GetObjCount() : 0 )
{
if( pPage )
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index 98f966079017..6db2a88e0d42 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -786,7 +786,7 @@ void SAL_CALL SdUnoSearchReplaceDescriptor::removeVetoableChangeListener( const
/* ================================================================= */
-SdUnoFindAllAccess::SdUnoFindAllAccess( uno::Sequence< uno::Reference< uno::XInterface > >& rSequence ) throw()
+SdUnoFindAllAccess::SdUnoFindAllAccess( uno::Sequence< uno::Reference< uno::XInterface > > const & rSequence ) throw()
:maSequence( rSequence )
{
}
diff --git a/sd/source/ui/unoidl/unowcntr.cxx b/sd/source/ui/unoidl/unowcntr.cxx
index 759d7ecaabec..6397af28c1d7 100644
--- a/sd/source/ui/unoidl/unowcntr.cxx
+++ b/sd/source/ui/unoidl/unowcntr.cxx
@@ -61,7 +61,7 @@ void SvUnoWeakContainer::insert( const uno::WeakReference< uno::XInterface >& xR
*/
bool SvUnoWeakContainer::findRef(
uno::WeakReference< uno::XInterface >& rRef,
- void* pSearchData,
+ void const * pSearchData,
weakref_searchfunc pSearchFunc
)
{
diff --git a/sd/source/ui/unoidl/unowcntr.hxx b/sd/source/ui/unoidl/unowcntr.hxx
index 53a5e98c1c8e..15cca90bda85 100644
--- a/sd/source/ui/unoidl/unowcntr.hxx
+++ b/sd/source/ui/unoidl/unowcntr.hxx
@@ -23,7 +23,7 @@
#include <cppuhelper/weakref.hxx>
#include <list>
-typedef bool (*weakref_searchfunc)( const css::uno::WeakReference< css::uno::XInterface >& xRef, void* pSearchData );
+typedef bool (*weakref_searchfunc)( const css::uno::WeakReference< css::uno::XInterface >& xRef, void const * pSearchData );
typedef ::std::list< css::uno::WeakReference< css::uno::XInterface >* > WeakRefList;
@@ -42,7 +42,7 @@ public:
/** searches the container for a ref that returns true on the given
search function
*/
- bool findRef( css::uno::WeakReference< css::uno::XInterface >& rRef, void* pSearchData, weakref_searchfunc pSearchFunc );
+ bool findRef( css::uno::WeakReference< css::uno::XInterface >& rRef, void const * pSearchData, weakref_searchfunc pSearchFunc );
void dispose();
};
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index 358a17ea0879..363d46dc4b05 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -290,7 +290,7 @@ namespace {
Printer& rPrinter,
::sd::View& rPrintView,
SdPage& rPage,
- View* pView,
+ View const * pView,
const bool bPrintMarkedOnly,
const SdrLayerIDSet& rVisibleLayers,
const SdrLayerIDSet& rPrintableLayers)
diff --git a/sd/source/ui/view/GraphicObjectBar.cxx b/sd/source/ui/view/GraphicObjectBar.cxx
index 07f322bd7385..e0cf21783ff6 100644
--- a/sd/source/ui/view/GraphicObjectBar.cxx
+++ b/sd/source/ui/view/GraphicObjectBar.cxx
@@ -111,7 +111,7 @@ void GraphicObjectBar::GetFilterState( SfxItemSet& rSet )
SvxGraphicFilter::DisableGraphicFilterSlots( rSet );
}
-void GraphicObjectBar::ExecuteFilter( SfxRequest& rReq )
+void GraphicObjectBar::ExecuteFilter( SfxRequest const & rReq )
{
const SdrMarkList& rMarkList = mpView->GetMarkedObjectList();
diff --git a/sd/source/ui/view/MediaObjectBar.cxx b/sd/source/ui/view/MediaObjectBar.cxx
index 60a74ebf16bf..ee89507515c6 100644
--- a/sd/source/ui/view/MediaObjectBar.cxx
+++ b/sd/source/ui/view/MediaObjectBar.cxx
@@ -106,7 +106,7 @@ void MediaObjectBar::GetState( SfxItemSet& rSet )
}
}
-void MediaObjectBar::Execute( SfxRequest& rReq )
+void MediaObjectBar::Execute( SfxRequest const & rReq )
{
if( SID_AVMEDIA_TOOLBOX == rReq.GetSlot() )
{
diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx
index 88c66acb4ca4..3eed4739df26 100644
--- a/sd/source/ui/view/OutlinerIterator.cxx
+++ b/sd/source/ui/view/OutlinerIterator.cxx
@@ -285,7 +285,7 @@ Iterator OutlinerContainer::CreateDocumentIterator (
}
sal_Int32 OutlinerContainer::GetPageIndex (
- SdDrawDocument* pDocument,
+ SdDrawDocument const * pDocument,
const std::shared_ptr<ViewShell>& rpViewShell,
PageKind ePageKind,
EditMode eEditMode,
diff --git a/sd/source/ui/view/ToolBarManager.cxx b/sd/source/ui/view/ToolBarManager.cxx
index 0d9e7bd5406d..7fa2e7530942 100644
--- a/sd/source/ui/view/ToolBarManager.cxx
+++ b/sd/source/ui/view/ToolBarManager.cxx
@@ -193,7 +193,7 @@ public:
/** This method calls MainViewShellChanged() and SelectionHasChanged()
for the current main view shell and its view.
*/
- void Update (ViewShellBase& rBase);
+ void Update (ViewShellBase const & rBase);
/** Reset all tool bars in all groups and add tool bars and tool bar
shells to the ToolBarGroup::Permanent group for the specified ViewShell type.
@@ -951,7 +951,7 @@ ToolBarRules::ToolBarRules (
{
}
-void ToolBarRules::Update (ViewShellBase& rBase)
+void ToolBarRules::Update (ViewShellBase const & rBase)
{
ViewShell* pMainViewShell = rBase.GetMainViewShell().get();
if (pMainViewShell != nullptr)
diff --git a/sd/source/ui/view/ViewClipboard.cxx b/sd/source/ui/view/ViewClipboard.cxx
index 8c1cf4e6bfc9..73bf04093d03 100644
--- a/sd/source/ui/view/ViewClipboard.cxx
+++ b/sd/source/ui/view/ViewClipboard.cxx
@@ -112,7 +112,7 @@ SdPage* ViewClipboard::GetFirstMasterPage (const SdTransferable& rTransferable)
void ViewClipboard::AssignMasterPage (
const SdTransferable& rTransferable,
- SdPage* pMasterPage)
+ SdPage const * pMasterPage)
{
if (pMasterPage == nullptr)
return;
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index bac491e9a1f5..9899c6f0314a 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -389,7 +389,7 @@ std::shared_ptr<ViewShell> ViewShellBase::GetMainViewShell() const
return pMainViewShell;
}
-ViewShellBase* ViewShellBase::GetViewShellBase (SfxViewFrame* pViewFrame)
+ViewShellBase* ViewShellBase::GetViewShellBase (SfxViewFrame const * pViewFrame)
{
ViewShellBase* pBase = nullptr;
diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx
index b07dc1b13927..fd3832ed1546 100644
--- a/sd/source/ui/view/ViewShellImplementation.cxx
+++ b/sd/source/ui/view/ViewShellImplementation.cxx
@@ -229,7 +229,7 @@ void ViewShell::Implementation::ProcessModifyPageSlot (
rRequest.Done ();
}
-void ViewShell::Implementation::AssignLayout ( SfxRequest& rRequest, PageKind ePageKind )
+void ViewShell::Implementation::AssignLayout ( SfxRequest const & rRequest, PageKind ePageKind )
{
const SfxUInt32Item* pWhatPage = rRequest.GetArg<SfxUInt32Item>(ID_VAL_WHATPAGE);
const SfxUInt32Item* pWhatLayout = rRequest.GetArg<SfxUInt32Item>(ID_VAL_WHATLAYOUT);
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx
index 54d79200213f..451c1fc071a3 100644
--- a/sd/source/ui/view/ViewShellManager.cxx
+++ b/sd/source/ui/view/ViewShellManager.cxx
@@ -212,7 +212,7 @@ private:
static void Deactivate (SfxShell* pShell);
ShellDescriptor CreateSubShell (
- SfxShell* pShell,
+ SfxShell const * pShell,
ShellId nShellId);
void DestroyViewShell (ShellDescriptor& rDescriptor);
static void DestroySubShell (const ShellDescriptor& rDescriptor);
@@ -231,7 +231,7 @@ ViewShellManager::~ViewShellManager()
}
void ViewShellManager::AddSubShellFactory (
- ViewShell* pViewShell,
+ ViewShell const * pViewShell,
const SharedShellFactory& rpFactory)
{
if (mbValid)
@@ -239,7 +239,7 @@ void ViewShellManager::AddSubShellFactory (
}
void ViewShellManager::RemoveSubShellFactory (
- ViewShell* pViewShell,
+ ViewShell const * pViewShell,
const SharedShellFactory& rpFactory)
{
if (mbValid)
@@ -279,7 +279,7 @@ void ViewShellManager::DeactivateSubShell (const ViewShell& rViewShell, ShellId
mpImpl->DeactivateSubShell(rViewShell,nId);
}
-void ViewShellManager::InvalidateAllSubShells (ViewShell* pViewShell)
+void ViewShellManager::InvalidateAllSubShells (ViewShell const * pViewShell)
{
if (mbValid)
mpImpl->InvalidateAllSubShells(pViewShell);
@@ -982,7 +982,7 @@ IMPL_LINK(ViewShellManager::Implementation, WindowEventHandler, VclWindowEvent&,
}
ShellDescriptor ViewShellManager::Implementation::CreateSubShell (
- SfxShell* pParentShell,
+ SfxShell const * pParentShell,
ShellId nShellId)
{
::osl::MutexGuard aGuard (maMutex);
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index e817dcfc4757..0cb862c35122 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -3136,7 +3136,7 @@ SdPage* DrawViewShell::CreateOrDuplicatePage (
return pNewPage;
}
-void DrawViewShell::ExecutePropPanelAttr (SfxRequest& rReq)
+void DrawViewShell::ExecutePropPanelAttr (SfxRequest const & rReq)
{
if(SlideShow::IsRunning( GetViewShellBase() ))
return;
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index eef78d859c61..ee2cd73d432d 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -779,7 +779,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
}
void DrawViewShell::ShowMousePosInfo(const ::tools::Rectangle& rRect,
- ::sd::Window* pWin)
+ ::sd::Window const * pWin)
{
if (mbHasRulers && pWin )
{
diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx
index 4dbc8054ab66..dc144d3429e3 100644
--- a/sd/source/ui/view/drviews6.cxx
+++ b/sd/source/ui/view/drviews6.cxx
@@ -252,7 +252,7 @@ void DrawViewShell::SetChildWindowState( SfxItemSet& rSet )
/**
* Handle SfxRequests for pipette
*/
-void DrawViewShell::ExecBmpMask( SfxRequest& rReq )
+void DrawViewShell::ExecBmpMask( SfxRequest const & rReq )
{
// nothing is executed during a slide show!
if (HasCurrentFunction(SID_PRESENTATION))
diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx
index 775ce699bf4d..8c0944a0d5ee 100644
--- a/sd/source/ui/view/drviews9.cxx
+++ b/sd/source/ui/view/drviews9.cxx
@@ -67,7 +67,7 @@ using namespace com::sun::star;
namespace sd {
-void DrawViewShell::ExecGallery(SfxRequest& rReq)
+void DrawViewShell::ExecGallery(SfxRequest const & rReq)
{
// nothing is executed during a slide show!
if(HasCurrentFunction(SID_PRESENTATION))
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 74d6e39bafb3..7104afae7928 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -410,7 +410,7 @@ void DrawViewShell::CheckLineTo(SfxRequest& rReq)
/**
* Change page parameter if SID_PAGESIZE or SID_PAGEMARGIN
*/
-void DrawViewShell::SetupPage (Size &rSize,
+void DrawViewShell::SetupPage (Size const &rSize,
long nLeft,
long nRight,
long nUpper,
@@ -738,7 +738,7 @@ void DrawViewShell::Notify (SfxBroadcaster&, const SfxHint& rHint)
}
-void DrawViewShell::ExecuteAnnotation (SfxRequest& rRequest)
+void DrawViewShell::ExecuteAnnotation (SfxRequest const & rRequest)
{
if( mpAnnotationManager.get() )
mpAnnotationManager->ExecuteAnnotation( rRequest );
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index 90251e98b302..83c20ccbd5a5 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -105,7 +105,7 @@ namespace sd {
// Permanent Functions
-void ImpAddPrintableCharactersToTextEdit(SfxRequest& rReq, ::sd::View* pView)
+void ImpAddPrintableCharactersToTextEdit(SfxRequest const & rReq, ::sd::View* pView)
{
// evtl. feed characters to activated textedit
const SfxItemSet* pSet = rReq.GetArgs();
@@ -1399,7 +1399,7 @@ void DrawViewShell::FuSupport(SfxRequest& rReq)
}
}
-void DrawViewShell::FuSupportRotate(SfxRequest &rReq)
+void DrawViewShell::FuSupportRotate(SfxRequest const &rReq)
{
if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE )
{
@@ -1576,7 +1576,7 @@ void DrawViewShell::ShowUIControls (bool bVisible)
namespace slideshowhelp
{
- void ShowSlideShow(SfxRequest& rReq, SdDrawDocument &rDoc)
+ void ShowSlideShow(SfxRequest const & rReq, SdDrawDocument &rDoc)
{
Reference< XPresentation2 > xPresentation( rDoc.getPresentation() );
if( xPresentation.is() )
diff --git a/sd/source/ui/view/drviewsg.cxx b/sd/source/ui/view/drviewsg.cxx
index 4123cc44ccae..22c8d42b77d3 100644
--- a/sd/source/ui/view/drviewsg.cxx
+++ b/sd/source/ui/view/drviewsg.cxx
@@ -41,7 +41,7 @@
namespace sd {
-void DrawViewShell::ExecIMap( SfxRequest& rReq )
+void DrawViewShell::ExecIMap( SfxRequest const & rReq )
{
// during a slide show, nothing is executed!
if(HasCurrentFunction(SID_PRESENTATION) )
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 8db33b353ae2..e96d9cc45299 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -269,7 +269,7 @@ void FrameView::Disconnect()
/**
* Update with data from the specified SdOptions
*/
-void FrameView::Update(SdOptions* pOptions)
+void FrameView::Update(SdOptions const * pOptions)
{
if (pOptions)
{
diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx
index de3d07070f00..5e921c5fdd13 100644
--- a/sd/source/ui/view/outlnvsh.cxx
+++ b/sd/source/ui/view/outlnvsh.cxx
@@ -1567,7 +1567,7 @@ void OutlineViewShell::UpdatePreview( SdPage* pPage, bool )
}
}
-void OutlineViewShell::UpdateTitleObject( SdPage* pPage, Paragraph* pPara )
+void OutlineViewShell::UpdateTitleObject( SdPage* pPage, Paragraph const * pPara )
{
DBG_ASSERT( pPage, "sd::OutlineViewShell::UpdateTitleObject(), pPage == 0?" );
DBG_ASSERT( pPara, "sd::OutlineViewShell::UpdateTitleObject(), pPara == 0?" );
diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx
index 3688e7461f01..1401cb24448f 100644
--- a/sd/source/ui/view/outlview.cxx
+++ b/sd/source/ui/view/outlview.cxx
@@ -210,7 +210,7 @@ void OutlineView::DisconnectFromApplication()
Application::RemoveEventListener(LINK(this, OutlineView, AppEventListenerHdl));
}
-void OutlineView::Paint(const ::tools::Rectangle& rRect, ::sd::Window* pWin)
+void OutlineView::Paint(const ::tools::Rectangle& rRect, ::sd::Window const * pWin)
{
OutlinerView* pOlView = GetViewByWindow(pWin);
@@ -292,7 +292,7 @@ void OutlineView::DeleteWindowFromPaintView(OutputDevice* pWin)
/**
* Return a pointer to the OutlinerView corresponding to the window
*/
-OutlinerView* OutlineView::GetViewByWindow (vcl::Window* pWin) const
+OutlinerView* OutlineView::GetViewByWindow (vcl::Window const * pWin) const
{
OutlinerView* pOlView = nullptr;
for (OutlinerView* pView : mpOutlinerView)
@@ -905,7 +905,7 @@ IMPL_LINK( OutlineView, EndMovingHdl, ::Outliner *, pOutliner, void )
/**
* Look for the title text object in one page of the model
*/
-SdrTextObj* OutlineView::GetTitleTextObject(SdrPage* pPage)
+SdrTextObj* OutlineView::GetTitleTextObject(SdrPage const * pPage)
{
const size_t nObjectCount = pPage->GetObjCount();
SdrTextObj* pResult = nullptr;
@@ -926,7 +926,7 @@ SdrTextObj* OutlineView::GetTitleTextObject(SdrPage* pPage)
/**
* Look for the outline text object in one page of the model
*/
-SdrTextObj* OutlineView::GetOutlineTextObject(SdrPage* pPage)
+SdrTextObj* OutlineView::GetOutlineTextObject(SdrPage const * pPage)
{
const size_t nObjectCount = pPage->GetObjCount();
SdrTextObj* pResult = nullptr;
@@ -1225,7 +1225,7 @@ SdPage* OutlineView::GetPageForParagraph( Paragraph* pPara )
return nullptr;
}
-Paragraph* OutlineView::GetParagraphForPage( ::Outliner& rOutl, SdPage* pPage )
+Paragraph* OutlineView::GetParagraphForPage( ::Outliner const & rOutl, SdPage const * pPage )
{
// get the number of paragraphs with ident 0 we need to skip before
// we finde the actual page
@@ -1254,7 +1254,7 @@ Paragraph* OutlineView::GetParagraphForPage( ::Outliner& rOutl, SdPage* pPage )
}
/** selects the paragraph for the given page at the outliner view*/
-void OutlineView::SetActualPage( SdPage* pActual )
+void OutlineView::SetActualPage( SdPage const * pActual )
{
if( pActual && dynamic_cast<SdOutliner&>(mrOutliner).GetIgnoreCurrentPageChangesLevel()==0 && !mbFirstPaint)
{
diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx
index 2221554cd12e..81ddb27a7a36 100644
--- a/sd/source/ui/view/sdview2.cxx
+++ b/sd/source/ui/view/sdview2.cxx
@@ -263,7 +263,7 @@ void View::DoCopy()
}
}
-void View::DoPaste (vcl::Window* pWindow)
+void View::DoPaste (vcl::Window const * pWindow)
{
TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( mpViewSh->GetActiveWindow() ) );
if( !aDataHelper.GetTransferable().is() )
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index 88763dab7a74..5f5d9f5f7c3c 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -103,7 +103,7 @@ struct ImpRememberOrigAndClone
SdrObject* pClone;
};
-SdrObject* ImpGetClone(std::vector<ImpRememberOrigAndClone*>& aConnectorContainer, SdrObject* pConnObj)
+SdrObject* ImpGetClone(std::vector<ImpRememberOrigAndClone*>& aConnectorContainer, SdrObject const * pConnObj)
{
for(ImpRememberOrigAndClone* p : aConnectorContainer)
{
@@ -145,7 +145,7 @@ void ImpCheckInsertPos(Point& rPos, const Size& rSize, const ::tools::Rectangle&
}
}
-bool View::InsertMetaFile( TransferableDataHelper& rDataHelper, const Point& rPos, ImageMap* pImageMap, bool bOptimize )
+bool View::InsertMetaFile( TransferableDataHelper& rDataHelper, const Point& rPos, ImageMap const * pImageMap, bool bOptimize )
{
GDIMetaFile aMtf;
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index a2e4a106f395..bf5307449eb5 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -74,7 +74,7 @@ namespace sd {
* position, we create a new object and return a pointer to it.
*/
SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
- const Point& rPos, SdrObject* pObj, ImageMap* pImageMap )
+ const Point& rPos, SdrObject* pObj, ImageMap const * pImageMap )
{
SdrEndTextEdit();
mnAction = rAction;
diff --git a/sd/source/ui/view/sdview5.cxx b/sd/source/ui/view/sdview5.cxx
index 4e0a340e07ed..617e8ecb861c 100644
--- a/sd/source/ui/view/sdview5.cxx
+++ b/sd/source/ui/view/sdview5.cxx
@@ -53,7 +53,7 @@ SdPage* View::GetPage()
}
// returns selected object in case there's just one object in the selection
-SdrObject* View::GetSelectedSingleObject(SdPage* pPage)
+SdrObject* View::GetSelectedSingleObject(SdPage const * pPage)
{
SdrObject* pRet = nullptr;
if( pPage )
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index df0359ce3fcb..ff65c31b0140 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -739,7 +739,7 @@ void ViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin)
}
}
-bool ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
+bool ViewShell::Notify(NotifyEvent const & rNEvt, ::sd::Window* pWin)
{
// handle scroll commands when they arrived at child windows
bool bRet = false;
@@ -1260,7 +1260,7 @@ class KeepSlideSorterInSyncWithPageChanges
sd::slidesorter::controller::SelectionObserver::Context m_aContext;
public:
- explicit KeepSlideSorterInSyncWithPageChanges(sd::slidesorter::SlideSorter& rSlideSorter)
+ explicit KeepSlideSorterInSyncWithPageChanges(sd::slidesorter::SlideSorter const & rSlideSorter)
: m_aDrawLock(rSlideSorter)
, m_aModelLock(rSlideSorter.GetController())
, m_aUpdateLock(rSlideSorter)