Kaydet (Commit) 84a56eac authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in sw part7

Change-Id: Iaace9c024649481b2f7cdd67aaf1e86624fe0d4a
Reviewed-on: https://gerrit.libreoffice.org/40811Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 8ef6be73
......@@ -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
......
......@@ -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; }
......
......@@ -34,7 +34,7 @@ public:
SwBezierShell(SwView &rView);
void GetState(SfxItemSet &);
void Execute(SfxRequest &);
void Execute(SfxRequest const &);
};
#endif
......
......@@ -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;
......
......@@ -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
......
......@@ -36,7 +36,7 @@ public:
SwDrawFormShell(SwView &rView);
virtual ~SwDrawFormShell() override;
void Execute(SfxRequest &);
void Execute(SfxRequest const &);
void GetState(SfxItemSet &);
};
......
......@@ -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);
......
......@@ -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();
};
......
......@@ -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);
};
......
......@@ -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);
......
......@@ -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 );
......
......@@ -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 );
......
......@@ -31,7 +31,7 @@ private:
static void InitInterface_Impl();
public:
void ExecMedia(SfxRequest &);
void ExecMedia(SfxRequest const &);
void GetMediaState(SfxItemSet &);
SwMediaShell(SwView &rView);
......
......@@ -26,7 +26,7 @@ public:
SwNavigationShell(SwView &rView);
void GetState(SfxItemSet &);
void Execute(SfxRequest &);
void Execute(SfxRequest const &);
};
#endif
......
......@@ -156,7 +156,7 @@ public:
SwRedlineAcceptChild( vcl::Window* ,
sal_uInt16 nId,
SfxBindings*,
SfxChildWinInfo* );
SfxChildWinInfo const * );
SFX_DECL_CHILDWINDOW_WITHID( SwRedlineAcceptChild );
......
......@@ -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);
};
......
......@@ -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 &);
......
......@@ -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) );
......
......@@ -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();
......
......@@ -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 )
{
......
......@@ -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 )
{
......
......@@ -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 )
......
......@@ -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();
......
......@@ -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();
......
......@@ -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();
......
......@@ -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;
......
......@@ -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();
......
......@@ -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;
......
......@@ -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 )
{
......
......@@ -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())
{
......
......@@ -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;
......
......@@ -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();
......
......@@ -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;
......
......@@ -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();
......
......@@ -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();
......
......@@ -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();
......
......@@ -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;
......
......@@ -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() );
......
......@@ -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();
......
......@@ -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 )
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment