summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-06 20:12:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-06 21:52:20 +0200
commit84a56eac83f220fd917a5433fe9da4b7815dfff6 (patch)
treef02806412cb23061828ca6209ddb91a8d662b986 /sw
parent8ef6be73325dbb6761b247ff187c709ba0f81bfb (diff)
loplugin:constparams in sw part7
Change-Id: Iaace9c024649481b2f7cdd67aaf1e86624fe0d4a Reviewed-on: https://gerrit.libreoffice.org/40811 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/inc/annotsh.hxx10
-rw-r--r--sw/source/uibase/inc/basesh.hxx2
-rw-r--r--sw/source/uibase/inc/beziersh.hxx2
-rw-r--r--sw/source/uibase/inc/concustomshape.hxx4
-rw-r--r--sw/source/uibase/inc/drawsh.hxx4
-rw-r--r--sw/source/uibase/inc/drformsh.hxx2
-rw-r--r--sw/source/uibase/inc/drwbassh.hxx2
-rw-r--r--sw/source/uibase/inc/drwtxtsh.hxx12
-rw-r--r--sw/source/uibase/inc/frmsh.hxx6
-rw-r--r--sw/source/uibase/inc/grfsh.hxx4
-rw-r--r--sw/source/uibase/inc/inputwin.hxx4
-rw-r--r--sw/source/uibase/inc/langhelper.hxx12
-rw-r--r--sw/source/uibase/inc/mediash.hxx2
-rw-r--r--sw/source/uibase/inc/navsh.hxx2
-rw-r--r--sw/source/uibase/inc/redlndlg.hxx2
-rw-r--r--sw/source/uibase/inc/tabsh.hxx2
-rw-r--r--sw/source/uibase/inc/textsh.hxx12
-rw-r--r--sw/source/uibase/misc/redlndlg.cxx2
-rw-r--r--sw/source/uibase/ribbar/concustomshape.cxx4
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx4
-rw-r--r--sw/source/uibase/shells/annotsh.cxx10
-rw-r--r--sw/source/uibase/shells/basesh.cxx6
-rw-r--r--sw/source/uibase/shells/beziersh.cxx2
-rw-r--r--sw/source/uibase/shells/drawdlg.cxx2
-rw-r--r--sw/source/uibase/shells/drawsh.cxx2
-rw-r--r--sw/source/uibase/shells/drformsh.cxx2
-rw-r--r--sw/source/uibase/shells/drwbassh.cxx2
-rw-r--r--sw/source/uibase/shells/drwtxtex.cxx2
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx10
-rw-r--r--sw/source/uibase/shells/frmsh.cxx8
-rw-r--r--sw/source/uibase/shells/grfsh.cxx4
-rw-r--r--sw/source/uibase/shells/grfshex.cxx2
-rw-r--r--sw/source/uibase/shells/langhelper.cxx12
-rw-r--r--sw/source/uibase/shells/mediash.cxx2
-rw-r--r--sw/source/uibase/shells/navsh.cxx2
-rw-r--r--sw/source/uibase/shells/tabsh.cxx2
-rw-r--r--sw/source/uibase/shells/textidx.cxx2
-rw-r--r--sw/source/uibase/shells/textsh.cxx4
-rw-r--r--sw/source/uibase/shells/textsh2.cxx2
-rw-r--r--sw/source/uibase/shells/txtnum.cxx2
-rw-r--r--sw/source/uibase/sidebar/StylePresetsPanel.cxx6
41 files changed, 90 insertions, 90 deletions
diff --git a/sw/source/uibase/inc/annotsh.hxx b/sw/source/uibase/inc/annotsh.hxx
index 0c08dfcf84f1..53c99e160710 100644
--- a/sw/source/uibase/inc/annotsh.hxx
+++ b/sw/source/uibase/inc/annotsh.hxx
@@ -47,17 +47,17 @@ public:
void GetState(SfxItemSet &);
void StateInsert(SfxItemSet &rSet);
- void NoteExec(SfxRequest &);
+ void NoteExec(SfxRequest const &);
void GetNoteState(SfxItemSet &);
void ExecLingu(SfxRequest &rReq);
void GetLinguState(SfxItemSet &);
- void ExecClpbrd(SfxRequest &rReq);
+ void ExecClpbrd(SfxRequest const &rReq);
void StateClpbrd(SfxItemSet &rSet);
- void ExecTransliteration(SfxRequest &);
- void ExecRotateTransliteration(SfxRequest &);
+ void ExecTransliteration(SfxRequest const &);
+ void ExecRotateTransliteration(SfxRequest const &);
void ExecUndo(SfxRequest &rReq);
void StateUndo(SfxItemSet &rSet);
@@ -72,7 +72,7 @@ public:
virtual ::svl::IUndoManager*
GetUndoManager() override;
- static SfxItemPool* GetAnnotationPool(SwView& rV);
+ static SfxItemPool* GetAnnotationPool(SwView const & rV);
};
#endif
diff --git a/sw/source/uibase/inc/basesh.hxx b/sw/source/uibase/inc/basesh.hxx
index 7056be521576..04c2db8e9034 100644
--- a/sw/source/uibase/inc/basesh.hxx
+++ b/sw/source/uibase/inc/basesh.hxx
@@ -107,7 +107,7 @@ public:
void EditRegionDialog(SfxRequest const & rReq);
void InsertRegionDialog(SfxRequest& rReq);
- void ExecField(SfxRequest& rReq);
+ void ExecField(SfxRequest const & rReq);
static void SetFrameMode( FlyMode eMode, SwWrtShell *pShell ); // with update!
static void SetFrameMode_( FlyMode eMode ) { eFrameMode = eMode; }
diff --git a/sw/source/uibase/inc/beziersh.hxx b/sw/source/uibase/inc/beziersh.hxx
index ad943b25ba45..abf64aa65533 100644
--- a/sw/source/uibase/inc/beziersh.hxx
+++ b/sw/source/uibase/inc/beziersh.hxx
@@ -34,7 +34,7 @@ public:
SwBezierShell(SwView &rView);
void GetState(SfxItemSet &);
- void Execute(SfxRequest &);
+ void Execute(SfxRequest const &);
};
#endif
diff --git a/sw/source/uibase/inc/concustomshape.hxx b/sw/source/uibase/inc/concustomshape.hxx
index 80de599e227f..4d67a00dd8f2 100644
--- a/sw/source/uibase/inc/concustomshape.hxx
+++ b/sw/source/uibase/inc/concustomshape.hxx
@@ -36,7 +36,7 @@ class ConstCustomShape : public SwDrawBase
public:
- ConstCustomShape( SwWrtShell* pSh, SwEditWin* pWin, SwView* pView, SfxRequest& rReq );
+ ConstCustomShape( SwWrtShell* pSh, SwEditWin* pWin, SwView* pView, SfxRequest const & rReq );
// Mouse- & Key-Events
virtual bool MouseButtonDown(const MouseEvent& rMEvt) override;
@@ -44,7 +44,7 @@ class ConstCustomShape : public SwDrawBase
virtual void Activate(const sal_uInt16 nSlotId) override; // activate function
const OUString& GetShapeType() const;
- static OUString GetShapeTypeFromRequest( SfxRequest& rReq );
+ static OUString GetShapeTypeFromRequest( SfxRequest const & rReq );
virtual void CreateDefaultObject() override;
diff --git a/sw/source/uibase/inc/drawsh.hxx b/sw/source/uibase/inc/drawsh.hxx
index 8d7fa6c657c1..e0fd449e4bf8 100644
--- a/sw/source/uibase/inc/drawsh.hxx
+++ b/sw/source/uibase/inc/drawsh.hxx
@@ -38,10 +38,10 @@ public:
void Execute(SfxRequest &);
void GetState(SfxItemSet &);
void ExecDrawDlg(SfxRequest& rReq);
- void ExecDrawAttrArgs(SfxRequest& rReq);
+ void ExecDrawAttrArgs(SfxRequest const & rReq);
void GetDrawAttrState(SfxItemSet &rSet);
- void ExecFormText(SfxRequest& rReq);
+ void ExecFormText(SfxRequest const & rReq);
void GetFormTextState(SfxItemSet& rSet);
// #i123922# added helper methods to handle applying graphic data to draw objects
diff --git a/sw/source/uibase/inc/drformsh.hxx b/sw/source/uibase/inc/drformsh.hxx
index d0cad184ff98..9c8602d149ba 100644
--- a/sw/source/uibase/inc/drformsh.hxx
+++ b/sw/source/uibase/inc/drformsh.hxx
@@ -36,7 +36,7 @@ public:
SwDrawFormShell(SwView &rView);
virtual ~SwDrawFormShell() override;
- void Execute(SfxRequest &);
+ void Execute(SfxRequest const &);
void GetState(SfxItemSet &);
};
diff --git a/sw/source/uibase/inc/drwbassh.hxx b/sw/source/uibase/inc/drwbassh.hxx
index 78e02bbbc5dd..e75576dec2a0 100644
--- a/sw/source/uibase/inc/drwbassh.hxx
+++ b/sw/source/uibase/inc/drwbassh.hxx
@@ -43,7 +43,7 @@ private:
static void InitInterface_Impl();
public:
- void Execute(SfxRequest &);
+ void Execute(SfxRequest const &);
void GetState(SfxItemSet &);
void GetDrawAttrStateForIFBX( SfxItemSet& rSet );
void DisableState(SfxItemSet &rSet);
diff --git a/sw/source/uibase/inc/drwtxtsh.hxx b/sw/source/uibase/inc/drwtxtsh.hxx
index ff737f2b38c9..ab4e2ec898e2 100644
--- a/sw/source/uibase/inc/drwtxtsh.hxx
+++ b/sw/source/uibase/inc/drwtxtsh.hxx
@@ -63,18 +63,18 @@ public:
void GetState(SfxItemSet &);
void GetDrawTextCtrlState(SfxItemSet&);
- void ExecFontWork(SfxRequest& rReq);
+ void ExecFontWork(SfxRequest const & rReq);
void StateFontWork(SfxItemSet& rSet);
- void ExecFormText(SfxRequest& rReq);
+ void ExecFormText(SfxRequest const & rReq);
void GetFormTextState(SfxItemSet& rSet);
- void ExecDrawLingu(SfxRequest &rReq);
+ void ExecDrawLingu(SfxRequest const &rReq);
void ExecUndo(SfxRequest &rReq);
void StateUndo(SfxItemSet &rSet);
- void ExecClpbrd(SfxRequest &rReq);
+ void ExecClpbrd(SfxRequest const &rReq);
void StateClpbrd(SfxItemSet &rSet);
void StateInsert(SfxItemSet &rSet);
- void ExecTransliteration(SfxRequest &);
- void ExecRotateTransliteration(SfxRequest &);
+ void ExecTransliteration(SfxRequest const &);
+ void ExecRotateTransliteration(SfxRequest const &);
void Init();
};
diff --git a/sw/source/uibase/inc/frmsh.hxx b/sw/source/uibase/inc/frmsh.hxx
index 3965ca82cfa8..f86e0d06501f 100644
--- a/sw/source/uibase/inc/frmsh.hxx
+++ b/sw/source/uibase/inc/frmsh.hxx
@@ -36,14 +36,14 @@ public:
void Execute(SfxRequest &);
void GetState(SfxItemSet &);
- void ExecFrameStyle(SfxRequest& rReq);
+ void ExecFrameStyle(SfxRequest const & rReq);
void GetLineStyleState(SfxItemSet &rSet);
void StateInsert(SfxItemSet &rSet);
void GetDrawAttrStateTextFrame(SfxItemSet &rSet);
- void ExecDrawAttrArgsTextFrame(SfxRequest& rReq);
+ void ExecDrawAttrArgsTextFrame(SfxRequest const & rReq);
- void ExecDrawDlgTextFrame(SfxRequest& rReq);
+ void ExecDrawDlgTextFrame(SfxRequest const & rReq);
void DisableStateTextFrame(SfxItemSet &rSet);
};
diff --git a/sw/source/uibase/inc/grfsh.hxx b/sw/source/uibase/inc/grfsh.hxx
index b58be7a763ff..139a7a8dfd12 100644
--- a/sw/source/uibase/inc/grfsh.hxx
+++ b/sw/source/uibase/inc/grfsh.hxx
@@ -36,10 +36,10 @@ private:
public:
void Execute(SfxRequest& rRequest);
- void ExecAttr(SfxRequest& rRequest);
+ void ExecAttr(SfxRequest const & rRequest);
void GetAttrState(SfxItemSet& rRequest);
- void ExecuteRotation(SfxRequest &rRequest);
+ void ExecuteRotation(SfxRequest const &rRequest);
void GetAttrStateForRotation(SfxItemSet& rRequest);
SwGrfShell(SwView &rView);
diff --git a/sw/source/uibase/inc/inputwin.hxx b/sw/source/uibase/inc/inputwin.hxx
index 047078799b0f..8ec5e58ca205 100644
--- a/sw/source/uibase/inc/inputwin.hxx
+++ b/sw/source/uibase/inc/inputwin.hxx
@@ -77,7 +77,7 @@ protected:
void CancelFormula();
public:
- SwInputWindow(vcl::Window* pParent, SfxDispatcher* pDispatcher);
+ SwInputWindow(vcl::Window* pParent, SfxDispatcher const * pDispatcher);
virtual ~SwInputWindow() override;
virtual void dispose() override;
@@ -95,7 +95,7 @@ class SwInputChild : public SfxChildWindow
public:
SwInputChild( vcl::Window* ,
sal_uInt16 nId,
- SfxBindings*,
+ SfxBindings const *,
SfxChildWinInfo* );
virtual ~SwInputChild() override;
SFX_DECL_CHILDWINDOW_WITHID( SwInputChild );
diff --git a/sw/source/uibase/inc/langhelper.hxx b/sw/source/uibase/inc/langhelper.hxx
index 3e38e4badffa..a3f5405c78bf 100644
--- a/sw/source/uibase/inc/langhelper.hxx
+++ b/sw/source/uibase/inc/langhelper.hxx
@@ -31,21 +31,21 @@ enum class SvtScriptType;
namespace SwLangHelper
{
extern sal_uInt16 GetLanguageStatus( OutlinerView* pOLV, SfxItemSet& rSet );
- extern bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView &rView, SwWrtShell &rSh );
+ extern bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh );
extern void SetLanguage( SwWrtShell &rWrtSh, const OUString &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
- extern void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, const ESelection& rSelection, const OUString &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
+ extern void SetLanguage( SwWrtShell &rWrtSh, OutlinerView const * pOLV, const ESelection& rSelection, const OUString &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet );
extern void SetLanguage_None( SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet );
- extern void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, const ESelection& rSelection, bool bIsForSelection, SfxItemSet &rCoreSet );
- extern void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV = nullptr );
+ extern void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView const * pOLV, const ESelection& rSelection, bool bIsForSelection, SfxItemSet &rCoreSet );
+ extern void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView const * pOLV = nullptr );
// document
extern void SelectCurrentPara( SwWrtShell &rWrtSh );
// EditView
extern void SelectPara( EditView &rEditView, const ESelection &rCurSel );
- extern OUString GetTextForLanguageGuessing(EditEngine* rEditEngine, const ESelection& rDocSelection);
- extern OUString GetTextForLanguageGuessing(SwWrtShell &rSh);
+ extern OUString GetTextForLanguageGuessing(EditEngine const * rEditEngine, const ESelection& rDocSelection);
+ extern OUString GetTextForLanguageGuessing(SwWrtShell const &rSh);
extern LanguageType GetLanguage( SfxItemSet const & aSet, sal_uInt16 nLangWhichId );
extern LanguageType GetLanguage( SwWrtShell &rSh, sal_uInt16 nLangWhichId );
diff --git a/sw/source/uibase/inc/mediash.hxx b/sw/source/uibase/inc/mediash.hxx
index eb9897a8bc37..68f13ca215fe 100644
--- a/sw/source/uibase/inc/mediash.hxx
+++ b/sw/source/uibase/inc/mediash.hxx
@@ -31,7 +31,7 @@ private:
static void InitInterface_Impl();
public:
- void ExecMedia(SfxRequest &);
+ void ExecMedia(SfxRequest const &);
void GetMediaState(SfxItemSet &);
SwMediaShell(SwView &rView);
diff --git a/sw/source/uibase/inc/navsh.hxx b/sw/source/uibase/inc/navsh.hxx
index 940a124c0b72..287c0acb2cad 100644
--- a/sw/source/uibase/inc/navsh.hxx
+++ b/sw/source/uibase/inc/navsh.hxx
@@ -26,7 +26,7 @@ public:
SwNavigationShell(SwView &rView);
void GetState(SfxItemSet &);
- void Execute(SfxRequest &);
+ void Execute(SfxRequest const &);
};
#endif
diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx
index e08b39f69b5c..d623d94ffdab 100644
--- a/sw/source/uibase/inc/redlndlg.hxx
+++ b/sw/source/uibase/inc/redlndlg.hxx
@@ -156,7 +156,7 @@ public:
SwRedlineAcceptChild( vcl::Window* ,
sal_uInt16 nId,
SfxBindings*,
- SfxChildWinInfo* );
+ SfxChildWinInfo const * );
SFX_DECL_CHILDWINDOW_WITHID( SwRedlineAcceptChild );
diff --git a/sw/source/uibase/inc/tabsh.hxx b/sw/source/uibase/inc/tabsh.hxx
index 607a65b0de99..fe940d486199 100644
--- a/sw/source/uibase/inc/tabsh.hxx
+++ b/sw/source/uibase/inc/tabsh.hxx
@@ -45,7 +45,7 @@ public:
void GetLineStyleState(SfxItemSet &rSet);
void ExecTableStyle(SfxRequest& rReq);
- void ExecNumberFormat(SfxRequest& rReq);
+ void ExecNumberFormat(SfxRequest const & rReq);
SwTableShell(SwView &rView);
};
diff --git a/sw/source/uibase/inc/textsh.hxx b/sw/source/uibase/inc/textsh.hxx
index b99290e632d5..4f64ff6b92f9 100644
--- a/sw/source/uibase/inc/textsh.hxx
+++ b/sw/source/uibase/inc/textsh.hxx
@@ -34,7 +34,7 @@ class SW_DLLPUBLIC SwTextShell: public SwBaseShell
void InsertSymbol( SfxRequest& );
void InsertHyperlink( const SvxHyperlinkItem& rHlnkItem );
- bool InsertMediaDlg( SfxRequest& );
+ bool InsertMediaDlg( SfxRequest const & );
public:
SFX_DECL_INTERFACE(SW_TEXTSHELL)
@@ -61,9 +61,9 @@ public:
void ExecMoveLingu(SfxRequest &);
void ExecMoveMisc(SfxRequest &);
void ExecField(SfxRequest &rReq);
- void ExecSetNumber(SfxRequest &);
+ void ExecSetNumber(SfxRequest const &);
void StateField(SfxItemSet &);
- void ExecIdx(SfxRequest &);
+ void ExecIdx(SfxRequest const &);
void GetIdxState(SfxItemSet &);
void ExecGlossary(SfxRequest &);
@@ -71,9 +71,9 @@ public:
void ExecCharAttrArgs(SfxRequest &);
void ExecParaAttr(SfxRequest &);
void ExecParaAttrArgs(SfxRequest &);
- void ExecDB(SfxRequest &);
- void ExecTransliteration(SfxRequest &);
- void ExecRotateTransliteration(SfxRequest &);
+ void ExecDB(SfxRequest const &);
+ void ExecTransliteration(SfxRequest const &);
+ void ExecRotateTransliteration(SfxRequest const &);
void GetAttrState(SfxItemSet &);
diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx
index f3406795c179..4785e25b8906 100644
--- a/sw/source/uibase/misc/redlndlg.cxx
+++ b/sw/source/uibase/misc/redlndlg.cxx
@@ -62,7 +62,7 @@ static bool bSortDir = true;
SwRedlineAcceptChild::SwRedlineAcceptChild( vcl::Window* _pParent,
sal_uInt16 nId,
SfxBindings* pBindings,
- SfxChildWinInfo* pInfo ) :
+ SfxChildWinInfo const * pInfo ) :
SwChildWinWrapper( _pParent, nId )
{
SetWindow( VclPtr<SwModelessRedlineAcceptDlg>::Create( pBindings, this, _pParent) );
diff --git a/sw/source/uibase/ribbar/concustomshape.cxx b/sw/source/uibase/ribbar/concustomshape.cxx
index a0a3c061ade4..be8e19e092ab 100644
--- a/sw/source/uibase/ribbar/concustomshape.cxx
+++ b/sw/source/uibase/ribbar/concustomshape.cxx
@@ -47,7 +47,7 @@
using namespace com::sun::star;
-ConstCustomShape::ConstCustomShape( SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView, SfxRequest& rReq )
+ConstCustomShape::ConstCustomShape( SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView, SfxRequest const & rReq )
: SwDrawBase( pWrtShell, pEditWin, pSwView )
{
aCustomShape = ConstCustomShape::GetShapeTypeFromRequest( rReq );
@@ -58,7 +58,7 @@ const OUString& ConstCustomShape::GetShapeType() const
return aCustomShape;
}
-OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest& rReq )
+OUString ConstCustomShape::GetShapeTypeFromRequest( SfxRequest const & rReq )
{
OUString aRet;
const SfxItemSet* pArgs = rReq.GetArgs();
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index 345697ab8e4b..b7d4c95d047e 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -59,7 +59,7 @@
SFX_IMPL_POS_CHILDWINDOW_WITHID( SwInputChild, FN_EDIT_FORMULA, SFX_OBJECTBAR_OBJECT )
-SwInputWindow::SwInputWindow(vcl::Window* pParent, SfxDispatcher* pDispatcher)
+SwInputWindow::SwInputWindow(vcl::Window* pParent, SfxDispatcher const * pDispatcher)
: ToolBox(pParent, WB_3DLOOK|WB_BORDER)
, aPos(VclPtr<Edit>::Create(this, WB_3DLOOK|WB_CENTER|WB_BORDER|WB_READONLY))
, aEdit(VclPtr<InputEdit>::Create(this, WB_3DLOOK|WB_TABSTOP|WB_BORDER|WB_NOHIDESELECTION))
@@ -568,7 +568,7 @@ void InputEdit::UpdateRange(const OUString& rBoxes,
SwInputChild::SwInputChild(vcl::Window* _pParent,
sal_uInt16 nId,
- SfxBindings* pBindings,
+ SfxBindings const * pBindings,
SfxChildWinInfo* ) :
SfxChildWindow( _pParent, nId )
{
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index ab78fad7aabc..d42942362890 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -144,7 +144,7 @@ void SwAnnotationShell::InitInterface_Impl()
}
-SfxItemPool* SwAnnotationShell::GetAnnotationPool(SwView& rV)
+SfxItemPool* SwAnnotationShell::GetAnnotationPool(SwView const & rV)
{
SwWrtShell &rSh = rV.GetWrtShell();
return rSh.GetAttrPool().GetSecondaryPool();
@@ -893,7 +893,7 @@ void SwAnnotationShell::StateSearch(SfxItemSet &rSet)
rView.StateSearch(rSet);
}
-void SwAnnotationShell::ExecClpbrd(SfxRequest &rReq)
+void SwAnnotationShell::ExecClpbrd(SfxRequest const &rReq)
{
SwPostItMgr* pPostItMgr = rView.GetPostItMgr();
if ( !pPostItMgr || !pPostItMgr->HasActiveSidebarWin() )
@@ -1102,7 +1102,7 @@ void SwAnnotationShell::StateInsert(SfxItemSet &rSet)
}
}
-void SwAnnotationShell::NoteExec(SfxRequest &rReq)
+void SwAnnotationShell::NoteExec(SfxRequest const &rReq)
{
SwPostItMgr* pPostItMgr = rView.GetPostItMgr();
if ( !pPostItMgr )
@@ -1417,7 +1417,7 @@ void SwAnnotationShell::GetLinguState(SfxItemSet &rSet)
}
}
-void SwAnnotationShell::ExecTransliteration(SfxRequest &rReq)
+void SwAnnotationShell::ExecTransliteration(SfxRequest const &rReq)
{
SwPostItMgr* pPostItMgr = rView.GetPostItMgr();
if (!pPostItMgr || !pPostItMgr->HasActiveSidebarWin())
@@ -1468,7 +1468,7 @@ void SwAnnotationShell::ExecTransliteration(SfxRequest &rReq)
pOLV->TransliterateText( nMode );
}
-void SwAnnotationShell::ExecRotateTransliteration( SfxRequest & rReq )
+void SwAnnotationShell::ExecRotateTransliteration( SfxRequest const & rReq )
{
if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE )
{
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 79570ab3b9bc..483ee0a003a8 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -129,7 +129,7 @@ static sal_uInt8 nFooterPos;
namespace
{
- SvxContourDlg* GetContourDlg(SwView &rView)
+ SvxContourDlg* GetContourDlg(SwView const &rView)
{
SfxChildWindow *pChildWindow = rView.GetViewFrame()->GetChildWindow(
SvxContourDlgChildWindow::GetChildWindowId());
@@ -137,7 +137,7 @@ namespace
return pChildWindow ? static_cast<SvxContourDlg*>(pChildWindow->GetWindow()) : nullptr;
}
- SvxIMapDlg* GetIMapDlg(SwView &rView)
+ SvxIMapDlg* GetIMapDlg(SwView const &rView)
{
SfxChildWindow* pWnd = rView.GetViewFrame()->GetChildWindow(SvxIMapDlgChildWindow::GetChildWindowId());
return pWnd ? static_cast<SvxIMapDlg*>(pWnd->GetWindow()) : nullptr;
@@ -2858,7 +2858,7 @@ void SwBaseShell::ExecuteGallery(SfxRequest &rReq)
rReq.Done();
}
-void SwBaseShell::ExecField( SfxRequest& rReq )
+void SwBaseShell::ExecField( SfxRequest const & rReq )
{
sal_uInt16 nSlot = rReq.GetSlot();
switch( nSlot )
diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx
index 5cb353f6c91a..b5f06236d9b9 100644
--- a/sw/source/uibase/shells/beziersh.cxx
+++ b/sw/source/uibase/shells/beziersh.cxx
@@ -64,7 +64,7 @@ SwBezierShell::SwBezierShell(SwView &_rView):
SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Draw));
}
-void SwBezierShell::Execute(SfxRequest &rReq)
+void SwBezierShell::Execute(SfxRequest const &rReq)
{
SwWrtShell *pSh = &GetShell();
SdrView* pSdrView = pSh->GetDrawView();
diff --git a/sw/source/uibase/shells/drawdlg.cxx b/sw/source/uibase/shells/drawdlg.cxx
index 9f0007ee5da0..e771ad55f286 100644
--- a/sw/source/uibase/shells/drawdlg.cxx
+++ b/sw/source/uibase/shells/drawdlg.cxx
@@ -164,7 +164,7 @@ void SwDrawShell::ExecDrawDlg(SfxRequest& rReq)
pDoc->SetChanged();
}
-void SwDrawShell::ExecDrawAttrArgs(SfxRequest& rReq)
+void SwDrawShell::ExecDrawAttrArgs(SfxRequest const & rReq)
{
SwWrtShell* pSh = &GetShell();
SdrView* pView = pSh->GetDrawView();
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx
index 9e705171b10e..b73a4f3e1ded 100644
--- a/sw/source/uibase/shells/drawsh.cxx
+++ b/sw/source/uibase/shells/drawsh.cxx
@@ -540,7 +540,7 @@ SwDrawShell::SwDrawShell(SwView &_rView) :
// Edit SfxRequests for FontWork
-void SwDrawShell::ExecFormText(SfxRequest& rReq)
+void SwDrawShell::ExecFormText(SfxRequest const & rReq)
{
SwWrtShell &rSh = GetShell();
SdrView* pDrView = rSh.GetDrawView();
diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx
index 3ebfcb1063c7..0c606e342637 100644
--- a/sw/source/uibase/shells/drformsh.cxx
+++ b/sw/source/uibase/shells/drformsh.cxx
@@ -66,7 +66,7 @@ void SwDrawFormShell::InitInterface_Impl()
}
-void SwDrawFormShell::Execute(SfxRequest &rReq)
+void SwDrawFormShell::Execute(SfxRequest const &rReq)
{
SwWrtShell &rSh = GetShell();
const SfxPoolItem* pItem = nullptr;
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx
index 026b988aeed1..cd1cf3df4cf3 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -94,7 +94,7 @@ SwDrawBaseShell::~SwDrawBaseShell()
SwTransferable::ClearSelection( GetShell() );
}
-void SwDrawBaseShell::Execute(SfxRequest &rReq)
+void SwDrawBaseShell::Execute(SfxRequest const &rReq)
{
SwWrtShell *pSh = &GetShell();
SdrView* pSdrView = pSh->GetDrawView();
diff --git a/sw/source/uibase/shells/drwtxtex.cxx b/sw/source/uibase/shells/drwtxtex.cxx
index 99edb77400df..990a35094fcb 100644
--- a/sw/source/uibase/shells/drwtxtex.cxx
+++ b/sw/source/uibase/shells/drwtxtex.cxx
@@ -980,7 +980,7 @@ void SwDrawTextShell::GetDrawTextCtrlState(SfxItemSet& rSet)
}
}
-void SwDrawTextShell::ExecClpbrd(SfxRequest &rReq)
+void SwDrawTextShell::ExecClpbrd(SfxRequest const &rReq)
{
if (!IsTextEdit()) // Otherwise crash!
return;
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index af34bbf45445..96b553b49914 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -176,7 +176,7 @@ bool SwDrawTextShell::IsTextEdit()
return pSdrView->IsTextEdit();
}
-void SwDrawTextShell::ExecFontWork(SfxRequest& rReq)
+void SwDrawTextShell::ExecFontWork(SfxRequest const & rReq)
{
SwWrtShell &rSh = GetShell();
FieldUnit eMetric = ::GetDfltMetric( dynamic_cast<SwWebView*>( &rSh.GetView()) != nullptr );
@@ -202,7 +202,7 @@ void SwDrawTextShell::StateFontWork(SfxItemSet& rSet)
// Edit SfxRequests for FontWork
-void SwDrawTextShell::ExecFormText(SfxRequest& rReq)
+void SwDrawTextShell::ExecFormText(SfxRequest const & rReq)
{
SwWrtShell &rSh = GetShell();
SdrView* pDrView = rSh.GetDrawView();
@@ -267,7 +267,7 @@ void SwDrawTextShell::GetFormTextState(SfxItemSet& rSet)
}
}
-void SwDrawTextShell::ExecDrawLingu(SfxRequest &rReq)
+void SwDrawTextShell::ExecDrawLingu(SfxRequest const &rReq)
{
SwWrtShell &rSh = GetShell();
OutlinerView* pOutlinerView = pSdrView->GetTextEditOutlinerView();
@@ -601,7 +601,7 @@ void SwDrawTextShell::StateUndo(SfxItemSet &rSet)
}
}
-void SwDrawTextShell::ExecTransliteration( SfxRequest & rReq )
+void SwDrawTextShell::ExecTransliteration( SfxRequest const & rReq )
{
if (!pSdrView)
return;
@@ -657,7 +657,7 @@ void SwDrawTextShell::ExecTransliteration( SfxRequest & rReq )
}
}
-void SwDrawTextShell::ExecRotateTransliteration( SfxRequest & rReq )
+void SwDrawTextShell::ExecRotateTransliteration( SfxRequest const & rReq )
{
if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE )
{
diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx
index 04da98d8dd1f..4464f69bd4b7 100644
--- a/sw/source/uibase/shells/frmsh.cxx
+++ b/sw/source/uibase/shells/frmsh.cxx
@@ -92,7 +92,7 @@ using namespace ::com::sun::star::uno;
// Prototypes
static void lcl_FrameGetMaxLineWidth(const SvxBorderLine* pBorderLine, SvxBorderLine& rBorderLine);
-static const SwFrameFormat* lcl_GetFrameFormatByName(SwWrtShell& rSh, const OUString& rName)
+static const SwFrameFormat* lcl_GetFrameFormatByName(SwWrtShell const & rSh, const OUString& rName)
{
const size_t nCount = rSh.GetFlyCount(FLYCNTTYPE_FRM);
for( size_t i = 0; i < nCount; ++i )
@@ -973,7 +973,7 @@ SwFrameShell::~SwFrameShell()
SwTransferable::ClearSelection( GetShell(), this );
}
-void SwFrameShell::ExecFrameStyle(SfxRequest& rReq)
+void SwFrameShell::ExecFrameStyle(SfxRequest const & rReq)
{
SwWrtShell &rSh = GetShell();
bool bDefault = false;
@@ -1220,7 +1220,7 @@ void SwFrameShell::GetDrawAttrStateTextFrame(SfxItemSet &rSet)
}
}
-void SwFrameShell::ExecDrawAttrArgsTextFrame(SfxRequest& rReq)
+void SwFrameShell::ExecDrawAttrArgsTextFrame(SfxRequest const & rReq)
{
const SfxItemSet* pArgs = rReq.GetArgs();
SwWrtShell& rSh = GetShell();
@@ -1262,7 +1262,7 @@ void SwFrameShell::ExecDrawAttrArgsTextFrame(SfxRequest& rReq)
}
}
-void SwFrameShell::ExecDrawDlgTextFrame(SfxRequest& rReq)
+void SwFrameShell::ExecDrawDlgTextFrame(SfxRequest const & rReq)
{
switch(rReq.GetSlot())
{
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index d52e03d489bd..adcbaaf07f14 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -526,7 +526,7 @@ void SwGrfShell::Execute(SfxRequest &rReq)
}
}
-void SwGrfShell::ExecAttr( SfxRequest &rReq )
+void SwGrfShell::ExecAttr( SfxRequest const &rReq )
{
GraphicType nGrfType = GraphicType::NONE;
if (CNT_GRF == GetShell().GetCntType())
@@ -866,7 +866,7 @@ void SwGrfShell::GetAttrState(SfxItemSet &rSet)
SetGetStateSet( nullptr );
}
-void SwGrfShell::ExecuteRotation(SfxRequest &rReq)
+void SwGrfShell::ExecuteRotation(SfxRequest const &rReq)
{
sal_uInt16 aRotation;
diff --git a/sw/source/uibase/shells/grfshex.cxx b/sw/source/uibase/shells/grfshex.cxx
index ed3a269260c9..cf3c3589fc9a 100644
--- a/sw/source/uibase/shells/grfshex.cxx
+++ b/sw/source/uibase/shells/grfshex.cxx
@@ -56,7 +56,7 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::sfx2;
-bool SwTextShell::InsertMediaDlg( SfxRequest& rReq )
+bool SwTextShell::InsertMediaDlg( SfxRequest const & rReq )
{
OUString aURL;
const SfxItemSet* pReqArgs = rReq.GetArgs();
diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx
index 478c58351404..ca8feb6adcf2 100644
--- a/sw/source/uibase/shells/langhelper.cxx
+++ b/sw/source/uibase/shells/langhelper.cxx
@@ -100,7 +100,7 @@ namespace SwLangHelper
return 0;
}
- bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView &rView, SwWrtShell &rSh )
+ bool SetLanguageStatus( OutlinerView* pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh )
{
bool bRestoreSelection = false;
SfxItemSet aEditAttr(pOLV->GetAttribs());
@@ -229,7 +229,7 @@ namespace SwLangHelper
SetLanguage( rWrtSh, nullptr , ESelection(), rLangText, bIsForSelection, rCoreSet );
}
- void SetLanguage( SwWrtShell &rWrtSh, OutlinerView* pOLV, const ESelection& rSelection, const OUString &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet )
+ void SetLanguage( SwWrtShell &rWrtSh, OutlinerView const * pOLV, const ESelection& rSelection, const OUString &rLangText, bool bIsForSelection, SfxItemSet &rCoreSet )
{
const LanguageType nLang = SvtLanguageTable::GetLanguageType( rLangText );
if (nLang != LANGUAGE_DONTKNOW)
@@ -311,7 +311,7 @@ namespace SwLangHelper
SetLanguage_None( rWrtSh,nullptr,ESelection(),bIsForSelection,rCoreSet );
}
- void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView* pOLV, const ESelection& rSelection, bool bIsForSelection, SfxItemSet &rCoreSet )
+ void SetLanguage_None( SwWrtShell &rWrtSh, OutlinerView const * pOLV, const ESelection& rSelection, bool bIsForSelection, SfxItemSet &rCoreSet )
{
// EditEngine IDs
const sal_uInt16 aLangWhichId_EE[3] =
@@ -366,7 +366,7 @@ namespace SwLangHelper
}
}
- void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView* pOLV )
+ void ResetLanguages( SwWrtShell &rWrtSh, OutlinerView const * pOLV )
{
// reset language for current selection.
// The selection should already have been expanded to the whole paragraph or
@@ -526,7 +526,7 @@ namespace SwLangHelper
return nCurrentLang;
}
- OUString GetTextForLanguageGuessing( SwWrtShell &rSh )
+ OUString GetTextForLanguageGuessing( SwWrtShell const &rSh )
{
// string for guessing language
OUString aText;
@@ -548,7 +548,7 @@ namespace SwLangHelper
return aText;
}
- OUString GetTextForLanguageGuessing(EditEngine* rEditEngine, const ESelection& rDocSelection)
+ OUString GetTextForLanguageGuessing(EditEngine const * rEditEngine, const ESelection& rDocSelection)
{
// string for guessing language
OUString aText;
diff --git a/sw/source/uibase/shells/mediash.cxx b/sw/source/uibase/shells/mediash.cxx
index 1e67a043dd40..149579727a02 100644
--- a/sw/source/uibase/shells/mediash.cxx
+++ b/sw/source/uibase/shells/mediash.cxx
@@ -77,7 +77,7 @@ void SwMediaShell::InitInterface_Impl()
GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Invisible, ToolbarId::Media_Toolbox);
}
-void SwMediaShell::ExecMedia(SfxRequest &rReq)
+void SwMediaShell::ExecMedia(SfxRequest const &rReq)
{
SwWrtShell* pSh = &GetShell();
SdrView* pSdrView = pSh->GetDrawView();
diff --git a/sw/source/uibase/shells/navsh.cxx b/sw/source/uibase/shells/navsh.cxx
index 0340b8432ba1..8ae56c034970 100644
--- a/sw/source/uibase/shells/navsh.cxx
+++ b/sw/source/uibase/shells/navsh.cxx
@@ -40,7 +40,7 @@ SwNavigationShell::SwNavigationShell(SwView &_rView)
SetName("Navigation");
}
-void SwNavigationShell::Execute(SfxRequest &rReq)
+void SwNavigationShell::Execute(SfxRequest const &rReq)
{
SwWrtShell *pSh = &GetShell();
SdrView* pSdrView = pSh->GetDrawView();
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx
index f4abe109509e..3e87a38d3035 100644
--- a/sw/source/uibase/shells/tabsh.cxx
+++ b/sw/source/uibase/shells/tabsh.cxx
@@ -1458,7 +1458,7 @@ void SwTableShell::GetLineStyleState(SfxItemSet &rSet)
rSet.Put( aLine );
}
-void SwTableShell::ExecNumberFormat(SfxRequest& rReq)
+void SwTableShell::ExecNumberFormat(SfxRequest const & rReq)
{
const SfxItemSet* pArgs = rReq.GetArgs();
SwWrtShell &rSh = GetShell();
diff --git a/sw/source/uibase/shells/textidx.cxx b/sw/source/uibase/shells/textidx.cxx
index 4450a049c148..e833e0f7e16f 100644
--- a/sw/source/uibase/shells/textidx.cxx
+++ b/sw/source/uibase/shells/textidx.cxx
@@ -40,7 +40,7 @@
#include <globals.hrc>
#include <memory>
-void SwTextShell::ExecIdx(SfxRequest &rReq)
+void SwTextShell::ExecIdx(SfxRequest const &rReq)
{
const SfxItemSet *pArgs = rReq.GetArgs();
const SfxPoolItem* pItem = nullptr;
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index c52ab289189a..3f9ac4f5285e 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -770,7 +770,7 @@ void SwTextShell::ExecDelete(SfxRequest &rReq)
rReq.Done();
}
-void SwTextShell::ExecTransliteration( SfxRequest & rReq )
+void SwTextShell::ExecTransliteration( SfxRequest const & rReq )
{
using namespace ::com::sun::star::i18n;
TransliterationFlags nMode = TransliterationFlags::NONE;
@@ -815,7 +815,7 @@ void SwTextShell::ExecTransliteration( SfxRequest & rReq )
GetShell().TransliterateText( nMode );
}
-void SwTextShell::ExecRotateTransliteration( SfxRequest & rReq )
+void SwTextShell::ExecRotateTransliteration( SfxRequest const & rReq )
{
if( rReq.GetSlot() == SID_TRANSLITERATE_ROTATE_CASE )
GetShell().TransliterateText( m_aRotateCase.getNextMode() );
diff --git a/sw/source/uibase/shells/textsh2.cxx b/sw/source/uibase/shells/textsh2.cxx
index 3e76669345a1..936c327bf849 100644
--- a/sw/source/uibase/shells/textsh2.cxx
+++ b/sw/source/uibase/shells/textsh2.cxx
@@ -75,7 +75,7 @@ struct DBTextStruct_Impl
Reference<XConnection> xConnection;
};
-void SwTextShell::ExecDB(SfxRequest &rReq)
+void SwTextShell::ExecDB(SfxRequest const &rReq)
{
const SfxItemSet *pArgs = rReq.GetArgs();
SwDBManager* pDBManager = GetShell().GetDBManager();
diff --git a/sw/source/uibase/shells/txtnum.cxx b/sw/source/uibase/shells/txtnum.cxx
index 718f538ba77c..95ea4e775478 100644
--- a/sw/source/uibase/shells/txtnum.cxx
+++ b/sw/source/uibase/shells/txtnum.cxx
@@ -239,7 +239,7 @@ void SwTextShell::ExecEnterNum(SfxRequest &rReq)
}
-void SwTextShell::ExecSetNumber(SfxRequest &rReq)
+void SwTextShell::ExecSetNumber(SfxRequest const &rReq)
{
const sal_uInt16 nSlot = rReq.GetSlot();
switch ( nSlot )
diff --git a/sw/source/uibase/sidebar/StylePresetsPanel.cxx b/sw/source/uibase/sidebar/StylePresetsPanel.cxx
index 5f58fef27cce..a69861794b30 100644
--- a/sw/source/uibase/sidebar/StylePresetsPanel.cxx
+++ b/sw/source/uibase/sidebar/StylePresetsPanel.cxx
@@ -43,7 +43,7 @@ namespace sw { namespace sidebar {
namespace {
void renderPreview(sfx2::StyleManager* pStyleManager, OutputDevice& aOutputDevice,
- OUString const & sName, sal_Int32 nHeight, tools::Rectangle& aRect)
+ OUString const & sName, sal_Int32 nHeight, tools::Rectangle const & aRect)
{
SfxStyleSheetBase* pStyleSheet = pStyleManager->Search(sName, SfxStyleFamily::Para);
@@ -56,7 +56,7 @@ void renderPreview(sfx2::StyleManager* pStyleManager, OutputDevice& aOutputDevic
}
}
-BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString& aName)
+BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString const & aName)
{
sfx2::StyleManager* pStyleManager = rSource.GetStyleManager();
@@ -125,7 +125,7 @@ BitmapEx GenerateStylePreview(SfxObjectShell& rSource, OUString& aName)
return pVirtualDev->GetBitmapEx(Point(), aSize);
}
-BitmapEx CreatePreview(OUString& aUrl, OUString& aName)
+BitmapEx CreatePreview(OUString const & aUrl, OUString& aName)
{
SfxMedium aMedium(aUrl, StreamMode::STD_READWRITE);
SfxObjectShell* pObjectShell = SfxObjectShell::Current();