[Libreoffice-commits] core.git: compilerplugins/clang include/svx reportdesign/source svx/inc svx/source sw/source
Noel Grandin
noel.grandin at collabora.co.uk
Thu Jul 27 06:04:10 UTC 2017
compilerplugins/clang/constparams.cxx | 10 +
include/svx/ChildrenManager.hxx | 2
include/svx/colorwindow.hxx | 2
include/svx/dlgctrl.hxx | 2
include/svx/extrud3d.hxx | 2
include/svx/extrusionbar.hxx | 6
include/svx/float3d.hxx | 2
include/svx/fmgridcl.hxx | 2
include/svx/fmgridif.hxx | 4
include/svx/fmpage.hxx | 2
include/svx/fmview.hxx | 6
include/svx/fontworkbar.hxx | 6
include/svx/gallery1.hxx | 2
include/svx/galtheme.hxx | 2
include/svx/grafctrl.hxx | 2
include/svx/grfflt.hxx | 2
include/svx/gridctrl.hxx | 2
include/svx/lathe3d.hxx | 2
include/svx/numvset.hxx | 6
include/svx/obj3d.hxx | 2
include/svx/rubydialog.hxx | 4
include/svx/sdr/table/tablecontroller.hxx | 4
include/svx/sdrpaintwindow.hxx | 2
include/svx/sidebar/AreaTransparencyGradientPopup.hxx | 4
include/svx/srchdlg.hxx | 4
include/svx/svdedtv.hxx | 2
include/svx/svdedxv.hxx | 6
include/svx/svdmark.hxx | 4
include/svx/svdmodel.hxx | 2
include/svx/svdmrkv.hxx | 15 +-
include/svx/svdocapt.hxx | 8 -
include/svx/svdoedge.hxx | 2
include/svx/svdoole2.hxx | 2
include/svx/svdotext.hxx | 2
include/svx/svdpage.hxx | 4
include/svx/svdpagv.hxx | 2
include/svx/svdviter.hxx | 2
include/svx/unopool.hxx | 2
include/svx/unoshape.hxx | 4
include/svx/view3d.hxx | 10 -
include/svx/xmlgrhlp.hxx | 2
reportdesign/source/ui/report/SectionView.cxx | 2
svx/inc/sdr/contact/viewobjectcontactofgraphic.hxx | 2
svx/inc/svdibrow.hxx | 2
svx/source/accessibility/ChildrenManager.cxx | 2
svx/source/customshapes/EnhancedCustomShapeEngine.cxx | 2
svx/source/dialog/dlgctrl.cxx | 2
svx/source/dialog/fntctrl.cxx | 10 -
svx/source/dialog/grfflt.cxx | 2
svx/source/dialog/langbox.cxx | 2
svx/source/dialog/optgrid.cxx | 2
svx/source/dialog/srchdlg.cxx | 8 -
svx/source/dialog/svxbmpnumvalueset.cxx | 6
svx/source/engine3d/extrud3d.cxx | 2
svx/source/engine3d/float3d.cxx | 2
svx/source/engine3d/lathe3d.cxx | 2
svx/source/engine3d/obj3d.cxx | 2
svx/source/engine3d/view3d.cxx | 10 -
svx/source/fmcomp/fmgridcl.cxx | 2
svx/source/fmcomp/fmgridif.cxx | 4
svx/source/fmcomp/gridcell.cxx | 4
svx/source/fmcomp/gridctrl.cxx | 2
svx/source/form/datanavi.cxx | 6
svx/source/form/filtnav.cxx | 8 -
svx/source/form/fmexch.cxx | 4
svx/source/form/fmobjfac.cxx | 2
svx/source/form/fmpage.cxx | 2
svx/source/form/fmview.cxx | 8 -
svx/source/form/fmvwimp.cxx | 8 -
svx/source/form/navigatortree.cxx | 20 +--
svx/source/form/navigatortreemodel.cxx | 10 -
svx/source/form/tabwin.cxx | 2
svx/source/gallery2/gallery1.cxx | 2
svx/source/gallery2/galtheme.cxx | 2
svx/source/inc/datanavi.hxx | 4
svx/source/inc/filtnav.hxx | 6
svx/source/inc/fmexch.hxx | 4
svx/source/inc/fmexpl.hxx | 28 ++--
svx/source/inc/fmvwimp.hxx | 6
svx/source/inc/gridcell.hxx | 6
svx/source/inc/tabwin.hxx | 2
svx/source/sdr/contact/viewobjectcontactofgraphic.cxx | 2
svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx | 12 -
svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx | 4
svx/source/sidebar/line/LineWidthValueSet.cxx | 2
svx/source/sidebar/line/LineWidthValueSet.hxx | 2
svx/source/sidebar/text/TextUnderlineControl.cxx | 2
svx/source/sidebar/text/TextUnderlineControl.hxx | 2
svx/source/svdraw/gradtrns.cxx | 4
svx/source/svdraw/gradtrns.hxx | 6
svx/source/svdraw/sdrpaintwindow.cxx | 6
svx/source/svdraw/svddrgmt.cxx | 2
svx/source/svdraw/svdedtv.cxx | 2
svx/source/svdraw/svdedtv2.cxx | 2
svx/source/svdraw/svdedxv.cxx | 8 -
svx/source/svdraw/svdfmtf.cxx | 62 +++++-----
svx/source/svdraw/svdfmtf.hxx | 60 ++++-----
svx/source/svdraw/svdglev.cxx | 6
svx/source/svdraw/svdibrow.cxx | 2
svx/source/svdraw/svdmark.cxx | 4
svx/source/svdraw/svdmodel.cxx | 2
svx/source/svdraw/svdmrkv.cxx | 10 -
svx/source/svdraw/svdocapt.cxx | 8 -
svx/source/svdraw/svdocirc.cxx | 4
svx/source/svdraw/svdoedge.cxx | 2
svx/source/svdraw/svdomedia.cxx | 2
svx/source/svdraw/svdoole2.cxx | 2
svx/source/svdraw/svdopath.cxx | 28 ++--
svx/source/svdraw/svdotext.cxx | 4
svx/source/svdraw/svdouno.cxx | 2
svx/source/svdraw/svdpage.cxx | 4
svx/source/svdraw/svdpagv.cxx | 4
svx/source/svdraw/svdviter.cxx | 2
svx/source/table/cell.cxx | 6
svx/source/table/cell.hxx | 6
svx/source/table/tablecontroller.cxx | 6
svx/source/table/tablerow.cxx | 2
svx/source/table/tablerow.hxx | 2
svx/source/table/tablertfimporter.cxx | 4
svx/source/tbxctrls/bulletsnumbering.cxx | 4
svx/source/tbxctrls/extrusioncontrols.cxx | 4
svx/source/tbxctrls/extrusioncontrols.hxx | 4
svx/source/tbxctrls/grafctrl.cxx | 2
svx/source/tbxctrls/tbcontrl.cxx | 2
svx/source/toolbars/extrusionbar.cxx | 22 +--
svx/source/toolbars/fontworkbar.cxx | 18 +-
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx | 2
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx | 2
svx/source/unodraw/unomtabl.cxx | 4
svx/source/unodraw/unopool.cxx | 2
svx/source/unodraw/unoshap3.cxx | 2
svx/source/unodraw/unoshape.cxx | 8 -
svx/source/unogallery/unogaltheme.cxx | 2
svx/source/unogallery/unogaltheme.hxx | 2
svx/source/xml/xmlgrhlp.cxx | 4
sw/source/core/frmedt/feshview.cxx | 5
sw/source/uibase/wrtsh/wrtsh1.cxx | 7 -
137 files changed, 370 insertions(+), 371 deletions(-)
New commits:
commit 8ce64dbb3d7875c00963ae257d53f2b7b58fc4ad
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Wed Jul 26 14:11:32 2017 +0200
loplugin:constparams in svx
and fix a bug in the plugin itself when calling operator's like the one
on std::function<>
Change-Id: I1617607107eeff06785c1841f69e13ad2926218e
Reviewed-on: https://gerrit.libreoffice.org/40446
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx
index 15936c9e593d..9f43e90fdc02 100644
--- a/compilerplugins/clang/constparams.cxx
+++ b/compilerplugins/clang/constparams.cxx
@@ -111,6 +111,9 @@ bool ConstParams::VisitFunctionDecl(FunctionDecl * functionDecl)
|| name == "my_if_errors"
|| name == "my_eval_defined"
|| name == "my_eval_variable"
+ || name == "ImpGetEscDir"
+ || name == "ImpGetPercent"
+ || name == "ImpGetAlign"
// #ifdef win32
|| name == "convert_slashes"
// UNO component entry points
@@ -268,9 +271,10 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar
if (operatorCallExpr->getArg(0) == stmt) {
return calleeMethodDecl->isConst();
}
- if (operatorCallExpr->getArg(1) == stmt) {
- return isPointerOrReferenceToConst(calleeMethodDecl->getParamDecl(0)->getType());
- }
+ for (unsigned i = 1; i < operatorCallExpr->getNumArgs(); ++i)
+ if (operatorCallExpr->getArg(i) == stmt) {
+ return isPointerOrReferenceToConst(calleeMethodDecl->getParamDecl(i - 1)->getType());
+ }
} else {
const Expr* callee = operatorCallExpr->getCallee()->IgnoreParenImpCasts();
const DeclRefExpr* dr = dyn_cast<DeclRefExpr>(callee);
diff --git a/include/svx/ChildrenManager.hxx b/include/svx/ChildrenManager.hxx
index 2d1ada85d863..7023fd6467f3 100644
--- a/include/svx/ChildrenManager.hxx
+++ b/include/svx/ChildrenManager.hxx
@@ -177,7 +177,7 @@ public:
@param rShapeTreeInfo
The new info that replaces the current one.
*/
- void SetInfo (AccessibleShapeTreeInfo& rShapeTreeInfo);
+ void SetInfo (AccessibleShapeTreeInfo const & rShapeTreeInfo);
/** Update the SELECTED and FOCUSED states of all visible children
according to the given selection. This includes setting
diff --git a/include/svx/colorwindow.hxx b/include/svx/colorwindow.hxx
index 520a560880d1..3f826fa217e4 100644
--- a/include/svx/colorwindow.hxx
+++ b/include/svx/colorwindow.hxx
@@ -74,7 +74,7 @@ private:
DECL_LINK( OpenPickerClickHdl, Button*, void );
static bool SelectValueSetEntry(SvxColorValueSet* pColorSet, const Color& rColor);
- static NamedColor GetSelectEntryColor(ValueSet* pColorSet);
+ static NamedColor GetSelectEntryColor(ValueSet const * pColorSet);
NamedColor GetAutoColor() const;
public:
diff --git a/include/svx/dlgctrl.hxx b/include/svx/dlgctrl.hxx
index fd96b1ce247a..4fbbacde7361 100644
--- a/include/svx/dlgctrl.hxx
+++ b/include/svx/dlgctrl.hxx
@@ -304,7 +304,7 @@ protected:
void InitSettings(bool bForeground, bool bBackground);
// prepare buffered paint
- void LocalPrePaint(vcl::RenderContext& rRenderContext);
+ void LocalPrePaint(vcl::RenderContext const & rRenderContext);
// end and output buffered paint
void LocalPostPaint(vcl::RenderContext& rRenderContext);
diff --git a/include/svx/extrud3d.hxx b/include/svx/extrud3d.hxx
index d884674db66e..2c2d9d9e1b9e 100644
--- a/include/svx/extrud3d.hxx
+++ b/include/svx/extrud3d.hxx
@@ -41,7 +41,7 @@ private:
protected:
virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact() override;
virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties() override;
- void SetDefaultAttributes(E3dDefaultAttributes& rDefault);
+ void SetDefaultAttributes(E3dDefaultAttributes const & rDefault);
public:
diff --git a/include/svx/extrusionbar.hxx b/include/svx/extrusionbar.hxx
index 4aa902bf4fe2..5d8f515eb9a9 100644
--- a/include/svx/extrusionbar.hxx
+++ b/include/svx/extrusionbar.hxx
@@ -33,7 +33,7 @@ class SdrView;
namespace svx
{
-SVX_DLLPUBLIC bool checkForSelectedCustomShapes( SdrView* pSdrView, bool bOnlyExtruded );
+SVX_DLLPUBLIC bool checkForSelectedCustomShapes( SdrView const * pSdrView, bool bOnlyExtruded );
class SAL_WARN_UNUSED SVX_DLLPUBLIC ExtrusionBar : public SfxShell
{
@@ -48,8 +48,8 @@ public:
ExtrusionBar(SfxViewShell* pViewShell);
virtual ~ExtrusionBar() override;
- static void execute( SdrView* pSdrView, SfxRequest& rReq, SfxBindings& rBindings );
- static void getState( SdrView* pSdrView, SfxItemSet& rSet );
+ static void execute( SdrView* pSdrView, SfxRequest const & rReq, SfxBindings& rBindings );
+ static void getState( SdrView const * pSdrView, SfxItemSet& rSet );
};
}
diff --git a/include/svx/float3d.hxx b/include/svx/float3d.hxx
index 0064d80da21e..b79255a67b5d 100644
--- a/include/svx/float3d.hxx
+++ b/include/svx/float3d.hxx
@@ -220,7 +220,7 @@ public:
void InitColorLB();
bool IsUpdateMode() const { return bUpdate; }
- void Update( SfxItemSet& rSet );
+ void Update( SfxItemSet const & rSet );
void GetAttr( SfxItemSet& rSet );
void UpdatePreview(); // upward (private)
diff --git a/include/svx/fmgridcl.hxx b/include/svx/fmgridcl.hxx
index a47ef033d7a9..f82899aca673 100644
--- a/include/svx/fmgridcl.hxx
+++ b/include/svx/fmgridcl.hxx
@@ -191,7 +191,7 @@ protected:
@return
<TRUE/> if the column is selected, otherwise <FALSE/>
*/
- bool isColumnSelected(DbGridColumn* _pColumn);
+ bool isColumnSelected(DbGridColumn const * _pColumn);
};
#endif // INCLUDED_SVX_FMGRIDCL_HXX
diff --git a/include/svx/fmgridif.hxx b/include/svx/fmgridif.hxx
index f74fd79daad4..0982c0dd38f1 100644
--- a/include/svx/fmgridif.hxx
+++ b/include/svx/fmgridif.hxx
@@ -473,8 +473,8 @@ public:
virtual void SAL_CALL addContainerListener(const css::uno::Reference< css::container::XContainerListener >& l) override;
virtual void SAL_CALL removeContainerListener(const css::uno::Reference< css::container::XContainerListener >& l) override;
- void columnVisible(DbGridColumn* pColumn);
- void columnHidden(DbGridColumn* pColumn);
+ void columnVisible(DbGridColumn const * pColumn);
+ void columnHidden(DbGridColumn const * pColumn);
// css::awt::XView
virtual void SAL_CALL draw( sal_Int32 x, sal_Int32 y ) override;
diff --git a/include/svx/fmpage.hxx b/include/svx/fmpage.hxx
index 9d0771f0d01e..808d814452b1 100644
--- a/include/svx/fmpage.hxx
+++ b/include/svx/fmpage.hxx
@@ -71,7 +71,7 @@ public:
void SetName( const OUString& rName ) { m_sPageName = rName; }
static bool RequestHelp(
vcl::Window* pWin,
- SdrView* pView,
+ SdrView const * pView,
const HelpEvent& rEvt );
protected:
diff --git a/include/svx/fmview.hxx b/include/svx/fmview.hxx
index 6de1f3b3668d..92ca8585e2ef 100644
--- a/include/svx/fmview.hxx
+++ b/include/svx/fmview.hxx
@@ -86,7 +86,7 @@ public:
virtual void DeleteWindowFromPaintView(OutputDevice* pOldWin) override;
static void createControlLabelPair(
- OutputDevice* _pOutDev,
+ OutputDevice const * _pOutDev,
sal_Int32 _nXOffsetMM,
sal_Int32 _nYOffsetMM,
const css::uno::Reference< css::beans::XPropertySet >& _rxField,
@@ -122,8 +122,8 @@ public:
/// shortcut to "GetSdrPageView() ? PTR_CAST( FmFormPage, GetSdrPageView() ) : NULL"
FmFormPage* GetCurPage();
- SVX_DLLPRIVATE void ActivateControls(SdrPageView*);
- SVX_DLLPRIVATE void DeactivateControls(SdrPageView*);
+ SVX_DLLPRIVATE void ActivateControls(SdrPageView const *);
+ SVX_DLLPRIVATE void DeactivateControls(SdrPageView const *);
SVX_DLLPRIVATE void ChangeDesignMode(bool bDesign);
diff --git a/include/svx/fontworkbar.hxx b/include/svx/fontworkbar.hxx
index e2a38a6f0fb5..c9f0b78bb17a 100644
--- a/include/svx/fontworkbar.hxx
+++ b/include/svx/fontworkbar.hxx
@@ -33,7 +33,7 @@ class SdrView;
namespace svx
{
-bool SVX_DLLPUBLIC checkForSelectedFontWork( SdrView* pSdrView, sal_uInt32& nCheckStatus );
+bool SVX_DLLPUBLIC checkForSelectedFontWork( SdrView const * pSdrView, sal_uInt32& nCheckStatus );
class SAL_WARN_UNUSED SVX_DLLPUBLIC FontworkBar : public SfxShell
{
@@ -48,8 +48,8 @@ public:
FontworkBar(SfxViewShell* pViewShell);
virtual ~FontworkBar() override;
- static void execute( SdrView* pSdrView, SfxRequest& rReq, SfxBindings& rBindings );
- static void getState( SdrView* pSdrView, SfxItemSet& rSet );
+ static void execute( SdrView* pSdrView, SfxRequest const & rReq, SfxBindings& rBindings );
+ static void getState( SdrView const * pSdrView, SfxItemSet& rSet );
};
}
diff --git a/include/svx/gallery1.hxx b/include/svx/gallery1.hxx
index 1f8755742a88..ada646b08a02 100644
--- a/include/svx/gallery1.hxx
+++ b/include/svx/gallery1.hxx
@@ -107,7 +107,7 @@ private:
GalleryThemeEntry* ImplGetThemeEntry( const OUString& rThemeName );
SAL_DLLPRIVATE GalleryTheme* ImplGetCachedTheme( const GalleryThemeEntry* pThemeEntry );
- SAL_DLLPRIVATE void ImplDeleteCachedTheme( GalleryTheme* pTheme );
+ SAL_DLLPRIVATE void ImplDeleteCachedTheme( GalleryTheme const * pTheme );
Gallery( const OUString& rMultiPath );
virtual ~Gallery() override;
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index 2b6b15ce9236..ecdaea3a45ea 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -189,7 +189,7 @@ public:
bool GetModel( sal_uIntPtr nPos, SdrModel& rModel );
bool InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPos );
- SAL_DLLPRIVATE bool GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream>& rModelStreamRef );
+ SAL_DLLPRIVATE bool GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream> const & rModelStreamRef );
SAL_DLLPRIVATE bool InsertModelStream( const tools::SvRef<SotStorageStream>& rModelStream, sal_uIntPtr nInsertPos );
SAL_DLLPRIVATE bool GetURL( sal_uIntPtr nPos, INetURLObject& rURL );
diff --git a/include/svx/grafctrl.hxx b/include/svx/grafctrl.hxx
index f50df7df77b3..f2169ba9007c 100644
--- a/include/svx/grafctrl.hxx
+++ b/include/svx/grafctrl.hxx
@@ -114,7 +114,7 @@ class SVX_DLLPUBLIC SvxGrafAttrHelper
public:
static void ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView );
- static void GetGrafAttrState( SfxItemSet& rSet, SdrView& rView );
+ static void GetGrafAttrState( SfxItemSet& rSet, SdrView const & rView );
};
#endif // INCLUDED_SVX_GRAFCTRL_HXX
diff --git a/include/svx/grfflt.hxx b/include/svx/grfflt.hxx
index 278e093e24bc..fc60cd256a05 100644
--- a/include/svx/grfflt.hxx
+++ b/include/svx/grfflt.hxx
@@ -34,7 +34,7 @@ class SVX_DLLPUBLIC SvxGraphicFilter
{
public:
- static sal_uLong ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObject& rFilterObject );
+ static sal_uLong ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject );
static void DisableGraphicFilterSlots( SfxItemSet& rSet );
};
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index 5889af9bff89..319b5d97c896 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -560,7 +560,7 @@ protected:
sal_Int32 AlignSeekCursor();
bool SetCurrent(long nNewRow);
- OUString GetCurrentRowCellText(DbGridColumn* pCol,const DbGridRowRef& _rRow) const;
+ OUString GetCurrentRowCellText(DbGridColumn const * pCol,const DbGridRowRef& _rRow) const;
virtual void DeleteSelectedRows();
static bool IsValid(const DbGridRowRef& _xRow) { return _xRow.is() && _xRow->IsValid(); }
diff --git a/include/svx/lathe3d.hxx b/include/svx/lathe3d.hxx
index 39c28f6b6e45..d2dc16a76c54 100644
--- a/include/svx/lathe3d.hxx
+++ b/include/svx/lathe3d.hxx
@@ -41,7 +41,7 @@ private:
protected:
virtual sdr::contact::ViewContact* CreateObjectSpecificViewContact() override;
virtual sdr::properties::BaseProperties* CreateObjectSpecificProperties() override;
- void SetDefaultAttributes(E3dDefaultAttributes& rDefault);
+ void SetDefaultAttributes(E3dDefaultAttributes const & rDefault);
public:
E3dLatheObj(E3dDefaultAttributes& rDefault, const basegfx::B2DPolyPolygon& rPoly2D);
diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx
index eaba4507685e..299ed15a0e6b 100644
--- a/include/svx/numvset.hxx
+++ b/include/svx/numvset.hxx
@@ -83,13 +83,13 @@ public:
void SetNumberingSettings(
const css::uno::Sequence<
css::uno::Sequence<css::beans::PropertyValue> >& aNum,
- css::uno::Reference<css::text::XNumberingFormatter>& xFormatter,
+ css::uno::Reference<css::text::XNumberingFormatter> const & xFormatter,
const css::lang::Locale& rLocale );
void SetOutlineNumberingSettings(
css::uno::Sequence<
- css::uno::Reference<css::container::XIndexAccess> >& rOutline,
- css::uno::Reference<css::text::XNumberingFormatter>& xFormatter,
+ css::uno::Reference<css::container::XIndexAccess> > const & rOutline,
+ css::uno::Reference<css::text::XNumberingFormatter> const & xFormatter,
const css::lang::Locale& rLocale);
};
diff --git a/include/svx/obj3d.hxx b/include/svx/obj3d.hxx
index 22a3f9e5db8e..bb3ee1a50a67 100644
--- a/include/svx/obj3d.hxx
+++ b/include/svx/obj3d.hxx
@@ -160,7 +160,7 @@ public:
// Insert 3D object into the group; transfer to other owner!
void Insert3DObj(E3dObject* p3DObj);
- void Remove3DObj(E3dObject* p3DObj);
+ void Remove3DObj(E3dObject const * p3DObj);
E3dObject* GetParentObj() const;
virtual E3dScene* GetScene() const;
diff --git a/include/svx/rubydialog.hxx b/include/svx/rubydialog.hxx
index f3afb3f35868..d509c18b62d8 100644
--- a/include/svx/rubydialog.hxx
+++ b/include/svx/rubydialog.hxx
@@ -72,8 +72,8 @@ public:
: Edit(pParent, WB_BORDER)
{
}
- void SetScrollHdl(Link<sal_Int32,bool>& rLink) {aScrollHdl = rLink;}
- void SetJumpHdl(Link<sal_Int32,void>& rLink) {aJumpHdl = rLink;}
+ void SetScrollHdl(Link<sal_Int32,bool> const & rLink) {aScrollHdl = rLink;}
+ void SetJumpHdl(Link<sal_Int32,void> const & rLink) {aJumpHdl = rLink;}
};
diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx
index d08f5abc0ceb..5b9dd171710c 100644
--- a/include/svx/sdr/table/tablecontroller.hxx
+++ b/include/svx/sdr/table/tablecontroller.hxx
@@ -69,7 +69,7 @@ public:
SVX_DLLPRIVATE void onInsert( sal_uInt16 nSId, const SfxItemSet* pArgs = nullptr );
SVX_DLLPRIVATE void onDelete( sal_uInt16 nSId );
SVX_DLLPRIVATE void onSelect( sal_uInt16 nSId );
- SVX_DLLPRIVATE void onFormatTable( SfxRequest& rReq );
+ SVX_DLLPRIVATE void onFormatTable( SfxRequest const & rReq );
SVX_DLLPRIVATE void MergeMarkedCells();
SVX_DLLPRIVATE void SplitMarkedCells();
SVX_DLLPRIVATE void DistributeColumns();
@@ -135,7 +135,7 @@ private:
SVX_DLLPRIVATE void SetTableStyle( const SfxItemSet* pArgs );
SVX_DLLPRIVATE void SetTableStyleSettings( const SfxItemSet* pArgs );
- SVX_DLLPRIVATE bool PasteObject( SdrTableObj* pPasteTableObj );
+ SVX_DLLPRIVATE bool PasteObject( SdrTableObj const * pPasteTableObj );
SVX_DLLPRIVATE bool checkTableObject();
SVX_DLLPRIVATE const CellPos& getSelectionStart();
diff --git a/include/svx/sdrpaintwindow.hxx b/include/svx/sdrpaintwindow.hxx
index 970fdd7efc62..691837b2a5d5 100644
--- a/include/svx/sdrpaintwindow.hxx
+++ b/include/svx/sdrpaintwindow.hxx
@@ -41,7 +41,7 @@ namespace sdr
/// paint the transparent children of rWin that overlap rPixelRect
/// (for example, transparent form controls like check boxes)
void SVX_DLLPUBLIC
-PaintTransparentChildren(vcl::Window & rWindow, tools::Rectangle const& rPixelRect);
+PaintTransparentChildren(vcl::Window const & rWindow, tools::Rectangle const& rPixelRect);
class SdrPreRenderDevice
{
diff --git a/include/svx/sidebar/AreaTransparencyGradientPopup.hxx b/include/svx/sidebar/AreaTransparencyGradientPopup.hxx
index 833d6d8bb9f5..5f23aa4b06ed 100644
--- a/include/svx/sidebar/AreaTransparencyGradientPopup.hxx
+++ b/include/svx/sidebar/AreaTransparencyGradientPopup.hxx
@@ -46,7 +46,7 @@ private:
VclPtr<MetricField> maMtrTrgrEndValue;
VclPtr<MetricField> maMtrTrgrBorder;
- void InitStatus(XFillFloatTransparenceItem* pGradientItem);
+ void InitStatus(XFillFloatTransparenceItem const * pGradientItem);
void ExecuteValueModify(sal_uInt8 nStartCol, sal_uInt8 nEndCol);
DECL_LINK(ModifiedTrgrHdl_Impl, Edit&, void);
DECL_LINK(Left_Click45_Impl, ToolBox*, void);
@@ -54,7 +54,7 @@ private:
public:
AreaTransparencyGradientPopup(AreaPropertyPanelBase& rPanel);
virtual ~AreaTransparencyGradientPopup() override;
- void Rearrange (XFillFloatTransparenceItem* pItem);
+ void Rearrange (XFillFloatTransparenceItem const * pItem);
virtual void dispose() override;
};
diff --git a/include/svx/srchdlg.hxx b/include/svx/srchdlg.hxx
index 8042aaffe190..d1f46e013553 100644
--- a/include/svx/srchdlg.hxx
+++ b/include/svx/srchdlg.hxx
@@ -246,7 +246,7 @@ private:
DECL_LINK(NoFormatHdl_Impl, Button*, void);
DECL_LINK(AttributeHdl_Impl, Button*, void);
DECL_LINK( TimeoutHdl_Impl, Timer*, void );
- void ClickHdl_Impl(void* pCtrl);
+ void ClickHdl_Impl(void const * pCtrl);
void Construct_Impl();
void InitControls_Impl();
@@ -260,7 +260,7 @@ private:
void TemplatesChanged_Impl( SfxStyleSheetBasePool& rPool );
void EnableControls_Impl( const SearchOptionFlags nFlags );
- void EnableControl_Impl( Control* pCtrl );
+ void EnableControl_Impl( Control const * pCtrl );
void SetItem_Impl( const SvxSearchItem* pItem );
void SetModifyFlag_Impl( const Control* pCtrl );
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 039f56cae89b..ce94834724d6 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -149,7 +149,7 @@ protected:
static void ImpCrookObj(SdrObject* pO, const Point& rRef, const Point& rRad, SdrCrookMode eMode,
bool bVertical, bool bNoContortion, bool bRotate, const tools::Rectangle& rMarkRect);
static void ImpDistortObj(SdrObject* pO, const tools::Rectangle& rRef, const XPolygon& rDistortedRect, bool bNoContortion);
- bool ImpDelLayerCheck(SdrObjList* pOL, SdrLayerID nDelID) const;
+ bool ImpDelLayerCheck(SdrObjList const * pOL, SdrLayerID nDelID) const;
void ImpDelLayerDelObjs(SdrObjList* pOL, SdrLayerID nDelID);
// Removes all objects of the MarkList from their ObjLists including Undo.
diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx
index 58956b9d143c..8dd62ff0b3ec 100644
--- a/include/svx/svdedxv.hxx
+++ b/include/svx/svdedxv.hxx
@@ -106,13 +106,13 @@ protected:
TextChainCursorManager *ImpHandleMotionThroughBoxesKeyInput(const KeyEvent& rKEvt, bool *bOutHandled);
- OutlinerView* ImpFindOutlinerView(vcl::Window* pWin) const;
+ OutlinerView* ImpFindOutlinerView(vcl::Window const * pWin) const;
// Create a new OutlinerView at the heap and initialize all required parameters.
// pTextEditObj, pTextEditPV and pTextEditOutliner have to be initialized
OutlinerView* ImpMakeOutlinerView(vcl::Window* pWin, OutlinerView* pGivenView, SfxViewShell* pViewShell = nullptr) const;
void ImpPaintOutlinerView(OutlinerView& rOutlView, const tools::Rectangle& rRect, OutputDevice& rTargetDevice) const;
- void ImpInvalidateOutlinerView(OutlinerView& rOutlView) const;
+ void ImpInvalidateOutlinerView(OutlinerView const & rOutlView) const;
// Chaining
void ImpChainingEventHdl();
@@ -273,7 +273,7 @@ public:
void ApplyFormatPaintBrush( SfxItemSet& rFormatSet, bool bNoCharacterFormats, bool bNoParagraphFormats );
/** helper function for selections with multiple SdrText for one SdrTextObj (f.e. tables ) */
- static void ApplyFormatPaintBrushToText( SfxItemSet& rFormatSet, SdrTextObj& rTextObj, SdrText* pText, bool bNoCharacterFormats, bool bNoParagraphFormats );
+ static void ApplyFormatPaintBrushToText( SfxItemSet const & rFormatSet, SdrTextObj& rTextObj, SdrText* pText, bool bNoCharacterFormats, bool bNoParagraphFormats );
protected:
virtual void OnBeginPasteOrDrop( PasteOrDropInfos* pInfo );
diff --git a/include/svx/svdmark.hxx b/include/svx/svdmark.hxx
index f8c74d23a81c..0c438930bb45 100644
--- a/include/svx/svdmark.hxx
+++ b/include/svx/svdmark.hxx
@@ -217,8 +217,8 @@ public:
}
// pPage=0L: Selection of everything! Respect Pages
- bool TakeBoundRect(SdrPageView* pPageView, tools::Rectangle& rRect) const;
- bool TakeSnapRect(SdrPageView* pPageView, tools::Rectangle& rRect) const;
+ bool TakeBoundRect(SdrPageView const * pPageView, tools::Rectangle& rRect) const;
+ bool TakeSnapRect(SdrPageView const * pPageView, tools::Rectangle& rRect) const;
// All Entries are copied!
SdrMarkList& operator=(const SdrMarkList& rLst);
diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx
index b9210f5d072d..79ce5d78085c 100644
--- a/include/svx/svdmodel.hxx
+++ b/include/svx/svdmodel.hxx
@@ -266,7 +266,7 @@ public:
css::uno::Reference<
css::io::XInputStream >
GetDocumentStream(OUString const& rURL,
- ::comphelper::LifecycleProxy & rProxy) const;
+ ::comphelper::LifecycleProxy const & rProxy) const;
// Change the template attributes of the symbol objects to hard attributes
void BurnInStyleSheetAttributes();
// If you inherit from SdrPage you also need to inherit from SdrModel
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index dd2bd2ea3b4c..96b9b2343814 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -153,8 +153,8 @@ protected:
void ForceUndirtyMrkPnt() const { if (mbMrkPntDirty) UndirtyMrkPnt(); }
virtual SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObject* pObj, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay) const;
- SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList* pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj) const;
- SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList* pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj,const SdrMarkList * pMarkList) const;
+ SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList const * pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj) const;
+ SdrObject* CheckSingleSdrObjectHit(const Point& rPnt, sal_uInt16 nTol, SdrObjList const * pOL, SdrPageView* pPV, SdrSearchOptions nOptions, const SdrLayerIDSet* pMVisLay, SdrObject*& rpRootObj,const SdrMarkList * pMarkList) const;
bool ImpIsFrameHandles() const;
void ImpTakeDescriptionStr(const char* pStrCacheID, OUString& rStr, ImpTakeDescriptionOptions nOpt=ImpTakeDescriptionOptions::NONE) const;
@@ -180,7 +180,7 @@ public:
virtual void ClearPageView() override;
virtual void HideSdrPage() override;
- bool IsObjMarkable(SdrObject* pObj, SdrPageView* pPV) const;
+ bool IsObjMarkable(SdrObject const * pObj, SdrPageView const * pPV) const;
// Returns sal_True if objects, points or glue points are selected by drawing a frame
// (as long as the frame is drawn).
@@ -292,12 +292,11 @@ public:
void MarkObj(const tools::Rectangle& rRect, bool bUnmark);
void MarkObj(SdrObject* pObj, SdrPageView* pPV, bool bUnmark=false, bool bImpNoSetMarkHdl=false);
void MarkAllObj(SdrPageView* pPV=nullptr); // pPage=NULL => all displayed pages
- void UnmarkAllObj(SdrPageView* pPV=nullptr); // pPage=NULL => all displayed pages
+ void UnmarkAllObj(SdrPageView const * pPV=nullptr); // pPage=NULL => all displayed pages
// This function is time-consuming intensive, as the MarkList has to be scanned.
- bool IsObjMarked(SdrObject* pObj) const;
- // void MarkAll(SdrPageView* pPV=NULL) { MarkAllObj(pPV); } -> replace with inline
- void UnMarkAll(SdrPageView* pPV=nullptr) { UnmarkAllObj(pPV); }
+ bool IsObjMarked(SdrObject const * pObj) const;
+ void UnMarkAll(SdrPageView const * pPV=nullptr) { UnmarkAllObj(pPV); }
// Request/set the size of the marking handles. Declaration in Pixel.
// The value is meant to be the edge length ( link length ).
@@ -331,7 +330,7 @@ public:
// Search for the number of the suitable handle. In case of empty search result,
// SAL_MAX_SIZE is returned.
- size_t GetHdlNum(SdrHdl* pHdl) const { return maHdlList.GetHdlNum(pHdl); }
+ size_t GetHdlNum(SdrHdl const * pHdl) const { return maHdlList.GetHdlNum(pHdl); }
SdrHdl* GetHdl(size_t nHdlNum) const { return maHdlList.GetHdl(nHdlNum); }
const SdrHdlList& GetHdlList() const { return maHdlList; }
diff --git a/include/svx/svdocapt.hxx b/include/svx/svdocapt.hxx
index d1b0680010e9..3dd68293708a 100644
--- a/include/svx/svdocapt.hxx
+++ b/include/svx/svdocapt.hxx
@@ -66,10 +66,10 @@ private:
private:
SVX_DLLPRIVATE void ImpGetCaptParams(ImpCaptParams& rPara) const;
- SVX_DLLPRIVATE static void ImpCalcTail1(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle& rRect);
- SVX_DLLPRIVATE static void ImpCalcTail2(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle& rRect);
- SVX_DLLPRIVATE static void ImpCalcTail3(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle& rRect);
- SVX_DLLPRIVATE static void ImpCalcTail (const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle& rRect);
+ SVX_DLLPRIVATE static void ImpCalcTail1(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle const & rRect);
+ SVX_DLLPRIVATE static void ImpCalcTail2(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle const & rRect);
+ SVX_DLLPRIVATE static void ImpCalcTail3(const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle const & rRect);
+ SVX_DLLPRIVATE static void ImpCalcTail (const ImpCaptParams& rPara, tools::Polygon& rPoly, tools::Rectangle const & rRect);
SVX_DLLPRIVATE void ImpRecalcTail();
public:
diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx
index 670c7ff6894f..7246c9ff3134 100644
--- a/include/svx/svdoedge.hxx
+++ b/include/svx/svdoedge.hxx
@@ -180,7 +180,7 @@ protected:
const Point& rPt2, long nAngle2, const tools::Rectangle& rBoundRect2, const tools::Rectangle& rBewareRect2,
sal_uIntPtr* pnQuality, SdrEdgeInfoRec* pInfo) const;
static bool ImpFindConnector(const Point& rPt, const SdrPageView& rPV, SdrObjConnection& rCon, const SdrEdgeObj* pThis, OutputDevice* pOut=nullptr);
- static SdrEscapeDirection ImpCalcEscAngle(SdrObject* pObj, const Point& aPt2);
+ static SdrEscapeDirection ImpCalcEscAngle(SdrObject const * pObj, const Point& aPt2);
void ImpSetTailPoint(bool bTail1, const Point& rPt);
void ImpUndirtyEdgeTrack(); // potential recalculation of the connection track
void ImpDirtyEdgeTrack(); // invalidate connector path, so it will be recalculated next time
diff --git a/include/svx/svdoole2.hxx b/include/svx/svdoole2.hxx
index 80fb05ed1b9a..34c31c4590ba 100644
--- a/include/svx/svdoole2.hxx
+++ b/include/svx/svdoole2.hxx
@@ -87,7 +87,7 @@ public:
// The original size of the object (size of the icon for iconified object)
// no conversion is done if no target mode is provided
- Size GetOrigObjSize( MapMode* pTargetMapMode = nullptr ) const;
+ Size GetOrigObjSize( MapMode const * pTargetMapMode = nullptr ) const;
// #i118524# Allow suppress SetVisAreaSize in changing methods when call
// comes from OLE client
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index 6be7578d7d86..0269c88e5d39 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -607,7 +607,7 @@ public:
or if the given SdrOutliner contains no text.
Also checks for one empty paragraph.
*/
- static bool HasTextImpl( SdrOutliner* pOutliner );
+ static bool HasTextImpl( SdrOutliner const * pOutliner );
friend class ::SdrTextObjTest;
};
diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx
index a348c2c75e1f..696205e1ef6e 100644
--- a/include/svx/svdpage.hxx
+++ b/include/svx/svdpage.hxx
@@ -83,7 +83,7 @@ protected:
private:
/// simple ActionChildInserted forwarder to have it on a central place
- static void impChildInserted(SdrObject& rChild);
+ static void impChildInserted(SdrObject const & rChild);
public:
SdrObjList(SdrModel* pNewModel, SdrPage* pNewPage);
virtual ~SdrObjList();
@@ -498,7 +498,7 @@ public:
/** *deprecated* returns an averaged background color of this page */
// #i75566# GetBackgroundColor -> GetPageBackgroundColor and bScreenDisplay hint value
- Color GetPageBackgroundColor( SdrPageView* pView, bool bScreenDisplay = true) const;
+ Color GetPageBackgroundColor( SdrPageView const * pView, bool bScreenDisplay = true) const;
/** this method returns true if the object from the ViewObjectContact should
be visible on this page while rendering.
diff --git a/include/svx/svdpagv.hxx b/include/svx/svdpagv.hxx
index b068ecea8875..26b971f8496b 100644
--- a/include/svx/svdpagv.hxx
+++ b/include/svx/svdpagv.hxx
@@ -228,7 +228,7 @@ public:
/// it must not be locked
/// @returns
/// true, if the object's layer is visible and not locked
- bool IsObjMarkable(SdrObject* pObj) const;
+ bool IsObjMarkable(SdrObject const * pObj) const;
/// Entering (editing) an object group
/// After that, we have direct access to all member objects of the group.
diff --git a/include/svx/svdviter.hxx b/include/svx/svdviter.hxx
index 76d0ca49662c..679333065372 100644
--- a/include/svx/svdviter.hxx
+++ b/include/svx/svdviter.hxx
@@ -75,7 +75,7 @@ class SVX_DLLPUBLIC SdrViewIter
private:
SVX_DLLPRIVATE void ImpInitVars();
SVX_DLLPRIVATE SdrView* ImpFindView();
- SVX_DLLPRIVATE bool ImpCheckPageView(SdrPageView* pPV) const;
+ SVX_DLLPRIVATE bool ImpCheckPageView(SdrPageView const * pPV) const;
public:
SdrViewIter(const SdrPage* pPage);
diff --git a/include/svx/unopool.hxx b/include/svx/unopool.hxx
index b3d58103efe3..f7738f3fc5c1 100644
--- a/include/svx/unopool.hxx
+++ b/include/svx/unopool.hxx
@@ -79,7 +79,7 @@ protected:
void init();
/// @throws css::beans::UnknownPropertyException
- static void getAny( SfxItemPool* pPool, const comphelper::PropertyMapEntry* pEntry, css::uno::Any& rValue );
+ static void getAny( SfxItemPool const * pPool, const comphelper::PropertyMapEntry* pEntry, css::uno::Any& rValue );
/// @throws css::beans::UnknownPropertyException
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx
index 94a137c73ae8..7f6b618e8f25 100644
--- a/include/svx/unoshape.hxx
+++ b/include/svx/unoshape.hxx
@@ -146,7 +146,7 @@ protected:
void ForceMetricToItemPoolMetric(basegfx::B2DPolyPolygon& rPolyPolygon) const throw();
void ForceMetricTo100th_mm(basegfx::B2DPolyPolygon& rPolyPolygon) const throw();
- css::uno::Any GetAnyForItem( SfxItemSet& aSet, const SfxItemPropertySimpleEntry* pMap ) const;
+ css::uno::Any GetAnyForItem( SfxItemSet const & aSet, const SfxItemPropertySimpleEntry* pMap ) const;
bool SAL_CALL SetFillAttribute( sal_Int32 nWID, const OUString& rName );
@@ -216,7 +216,7 @@ public:
sal_uInt32 getShapeKind() const;
// styles need this
- static bool SAL_CALL SetFillAttribute( sal_Int32 nWID, const OUString& rName, SfxItemSet& rSet, SdrModel* pModel );
+ static bool SAL_CALL SetFillAttribute( sal_Int32 nWID, const OUString& rName, SfxItemSet& rSet, SdrModel const * pModel );
static bool SAL_CALL SetFillAttribute( sal_Int32 nWID, const OUString& rName, SfxItemSet& rSet );
/** same as SetFillAttribute but for property names instead of which ids,
diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx
index 0a25eef18051..48ff9b6f12b2 100644
--- a/include/svx/view3d.hxx
+++ b/include/svx/view3d.hxx
@@ -53,13 +53,13 @@ protected:
void InitView();
- void ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat);
- void ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat);
+ void ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix const & rLatheMat);
+ void ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix const & rLatheMat);
void ImpChangeSomeAttributesFor3DConversion(SdrObject* pObj);
void ImpChangeSomeAttributesFor3DConversion2(SdrObject* pObj);
void InitScene(E3dScene* pScene, double fW, double fH, double fCamZ);
- void ImpIsConvertTo3DPossible(SdrObject* pObj, bool& rAny3D, bool& rGroupSelected) const;
+ void ImpIsConvertTo3DPossible(SdrObject const * pObj, bool& rAny3D, bool& rGroupSelected) const;
void BreakSingle3DObj(E3dObject* pObj);
public:
@@ -87,13 +87,13 @@ public:
const SdrModel& rMod, const Point& rPos, SdrObjList* pLst, SdrInsertFlags nOptions) override;
// #83403# Service routine used from local Clone() and from SdrCreateView::EndCreateObj(...)
- bool ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDstScene, Point aOffset);
+ bool ImpCloneAll3DObjectsToDestScene(E3dScene const * pSrcScene, E3dScene* pDstScene, Point aOffset);
bool IsConvertTo3DObjPossible() const;
void ConvertMarkedObjTo3D(bool bExtrude=true, const basegfx::B2DPoint& rPnt1 = basegfx::B2DPoint(0.0, 0.0), const basegfx::B2DPoint& rPnt2 = basegfx::B2DPoint(0.0, 1.0));
// Means to create all Extrudes in a certain depth order.
- static void DoDepthArrange(E3dScene* pScene, double fDepth);
+ static void DoDepthArrange(E3dScene const * pScene, double fDepth);
void ConvertMarkedToPolyObj();
E3dScene* SetCurrent3DObj(E3dObject* p3DObj);
void Start3DCreation();
diff --git a/include/svx/xmlgrhlp.hxx b/include/svx/xmlgrhlp.hxx
index aa3bb25949f5..70128ebb87f6 100644
--- a/include/svx/xmlgrhlp.hxx
+++ b/include/svx/xmlgrhlp.hxx
@@ -78,7 +78,7 @@ private:
const OUString& rPictureStreamName,
const OUString& rGraphicId,
bool bUseGfxLink );
- SVX_DLLPRIVATE void ImplInsertGraphicURL( const OUString& rURLStr, sal_uInt32 nInsertPos, OUString& rRequestedFileName );
+ SVX_DLLPRIVATE void ImplInsertGraphicURL( const OUString& rURLStr, sal_uInt32 nInsertPos, OUString const & rRequestedFileName );
protected:
SvXMLGraphicHelper();
diff --git a/reportdesign/source/ui/report/SectionView.cxx b/reportdesign/source/ui/report/SectionView.cxx
index b179abc92811..2bf2ffe07473 100644
--- a/reportdesign/source/ui/report/SectionView.cxx
+++ b/reportdesign/source/ui/report/SectionView.cxx
@@ -132,7 +132,7 @@ void OSectionView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
const SdrObject* pObj = pSdrHint->GetObject();
const SdrHintKind eKind = pSdrHint->GetKind();
// check for change of selected object
- if(SdrHintKind::ObjectChange == eKind && pObj && IsObjMarked(const_cast<SdrObject*>(pObj)))
+ if(SdrHintKind::ObjectChange == eKind && pObj && IsObjMarked(pObj))
AdjustMarkHdl();
else if ( eKind == SdrHintKind::ObjectRemoved )
ObjectRemovedInAliveMode(pObj);
diff --git a/svx/inc/sdr/contact/viewobjectcontactofgraphic.hxx b/svx/inc/sdr/contact/viewobjectcontactofgraphic.hxx
index 46f6e4d32988..4ea4ed8e82c3 100644
--- a/svx/inc/sdr/contact/viewobjectcontactofgraphic.hxx
+++ b/svx/inc/sdr/contact/viewobjectcontactofgraphic.hxx
@@ -48,7 +48,7 @@ namespace sdr
void impPrepareGraphicWithAsynchroniousLoading();
void impPrepareGraphicWithSynchroniousLoading();
void doAsynchGraphicLoading();
- void forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent* pEvent);
+ void forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent const * pEvent);
protected:
const SdrGrafObj& getSdrGrafObj() const;
diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx
index 682333ad4401..76b855564c93 100644
--- a/svx/inc/svdibrow.hxx
+++ b/svx/inc/svdibrow.hxx
@@ -97,7 +97,7 @@ class SdrItemBrowser: public FloatingWindow {
Idle aIdle;
SdrView* pView;
bool bDirty;
- static vcl::Window* ImpGetViewWin(SdrView& rView);
+ static vcl::Window* ImpGetViewWin(SdrView const & rView);
DECL_LINK(IdleHdl, Timer *, void);
DECL_LINK(ChangedHdl, SdrItemBrowserControl&, void);
DECL_LINK(SetDirtyHdl, SdrItemBrowserControl&, void);
diff --git a/svx/source/accessibility/ChildrenManager.cxx b/svx/source/accessibility/ChildrenManager.cxx
index 972228117db5..31857d2ac29a 100644
--- a/svx/source/accessibility/ChildrenManager.cxx
+++ b/svx/source/accessibility/ChildrenManager.cxx
@@ -89,7 +89,7 @@ void ChildrenManager::ClearAccessibleShapeList()
mpImpl->ClearAccessibleShapeList ();
}
-void ChildrenManager::SetInfo (AccessibleShapeTreeInfo& rShapeTreeInfo)
+void ChildrenManager::SetInfo (AccessibleShapeTreeInfo const & rShapeTreeInfo)
{
mpImpl->SetInfo (rShapeTreeInfo);
}
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index a919f7c2c38e..a734d24c0c75 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -241,7 +241,7 @@ SdrObject* EnhancedCustomShapeEngine::ImplForceGroupWithText( const SdrObjCustom
return pRenderedShape;
}
-void SetTemporary( uno::Reference< drawing::XShape >& xShape )
+void SetTemporary( uno::Reference< drawing::XShape > const & xShape )
{
if ( xShape.is() )
{
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 74fe85448178..8786336dfb01 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -1498,7 +1498,7 @@ void SvxPreviewBase::dispose()
Control::dispose();
}
-void SvxPreviewBase::LocalPrePaint(vcl::RenderContext& rRenderContext)
+void SvxPreviewBase::LocalPrePaint(vcl::RenderContext const & rRenderContext)
{
// init BufferDevice
if (mpBufferDevice->GetOutputSizePixel() != GetOutputSizePixel())
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index bd5ff70a24ff..e5d9225450c8 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -84,7 +84,7 @@ using ::com::sun::star::i18n::BreakIterator;
namespace
{
-void scaleFontWidth(vcl::Font& rFont, vcl::RenderContext& rRenderContext,long& n100PercentFont)
+void scaleFontWidth(vcl::Font& rFont, vcl::RenderContext const & rRenderContext,long& n100PercentFont)
{
rFont.SetAverageFontWidth(0);
n100PercentFont = rRenderContext.GetFontMetric(rFont).GetAverageFontWidth();
@@ -195,13 +195,13 @@ public:
}
void CheckScript();
- Size CalcTextSize(vcl::RenderContext& rRenderContext, OutputDevice* pPrinter, const SvxFont& rFont);
+ Size CalcTextSize(vcl::RenderContext& rRenderContext, OutputDevice const * pPrinter, const SvxFont& rFont);
void DrawPrev(vcl::RenderContext& rRenderContext, Printer* pPrinter, Point& rPt, const SvxFont& rFont);
bool SetFontWidthScale(sal_uInt16 nScaleInPercent);
inline void Invalidate100PercentFontWidth();
inline bool Is100PercentFontWidthValid() const;
- void ScaleFontWidth(vcl::RenderContext& rRenderContext);
+ void ScaleFontWidth(vcl::RenderContext const & rRenderContext);
// scales rNonCJKFont and aCJKFont depending on nFontWidthScale and
// sets the 100%-Font-Widths
};
@@ -288,7 +288,7 @@ void FontPrevWin_Impl::CheckScript()
* The member nAscent is calculated to the maximal ascent of all used fonts.
*/
-Size FontPrevWin_Impl::CalcTextSize(vcl::RenderContext& rRenderContext, OutputDevice* _pPrinter, const SvxFont& rInFont)
+Size FontPrevWin_Impl::CalcTextSize(vcl::RenderContext& rRenderContext, OutputDevice const * _pPrinter, const SvxFont& rInFont)
{
sal_uInt16 nScript;
sal_uInt16 nIdx = 0;
@@ -435,7 +435,7 @@ bool FontPrevWin_Impl::SetFontWidthScale(sal_uInt16 nScale)
return false;
}
-void FontPrevWin_Impl::ScaleFontWidth(vcl::RenderContext& rOutDev)
+void FontPrevWin_Impl::ScaleFontWidth(vcl::RenderContext const & rOutDev)
{
if (!Is100PercentFontWidthValid())
{
diff --git a/svx/source/dialog/grfflt.cxx b/svx/source/dialog/grfflt.cxx
index 0ca19dfe68f3..0f9d7cbd1f0c 100644
--- a/svx/source/dialog/grfflt.cxx
+++ b/svx/source/dialog/grfflt.cxx
@@ -31,7 +31,7 @@
#include <memory>
-sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest& rReq, GraphicObject& rFilterObject )
+sal_uIntPtr SvxGraphicFilter::ExecuteGrfFilterSlot( SfxRequest const & rReq, GraphicObject& rFilterObject )
{
const Graphic& rGraphic = rFilterObject.GetGraphic();
sal_uIntPtr nRet = SVX_GRAPHICFILTER_UNSUPPORTED_GRAPHICTYPE;
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx
index 38b3ed4332d1..aaa28edeccca 100644
--- a/svx/source/dialog/langbox.cxx
+++ b/svx/source/dialog/langbox.cxx
@@ -71,7 +71,7 @@ OUString GetDicInfoStr( const OUString& rName, const LanguageType nLang, bool bN
// misc local helper functions
-static std::vector< LanguageType > lcl_LocaleSeqToLangSeq( Sequence< css::lang::Locale > &rSeq )
+static std::vector< LanguageType > lcl_LocaleSeqToLangSeq( Sequence< css::lang::Locale > const &rSeq )
{
const css::lang::Locale *pLocale = rSeq.getConstArray();
sal_Int32 nCount = rSeq.getLength();
diff --git a/svx/source/dialog/optgrid.cxx b/svx/source/dialog/optgrid.cxx
index 15897fbc3526..53521b4178bc 100644
--- a/svx/source/dialog/optgrid.cxx
+++ b/svx/source/dialog/optgrid.cxx
@@ -28,7 +28,7 @@
#include "svx/dlgutil.hxx"
// local functions
-static void lcl_GetMinMax(MetricField& rField, long& nFirst, long& nLast, long& nMin, long& nMax)
+static void lcl_GetMinMax(MetricField const & rField, long& nFirst, long& nLast, long& nMin, long& nMax)
{
nFirst = static_cast<long>(rField.Denormalize( rField.GetFirst( FUNIT_TWIP ) ));
nLast = static_cast<long>(rField.Denormalize( rField.GetLast( FUNIT_TWIP ) ));
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index fab2f3f9d459..ae8c1223b929 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -677,7 +677,7 @@ void SvxSearchDialog::InitControls_Impl()
namespace
{
- SvtModuleOptions::EFactory getModule(SfxBindings& rBindings)
+ SvtModuleOptions::EFactory getModule(SfxBindings const & rBindings)
{
SvtModuleOptions::EFactory eFactory(SvtModuleOptions::EFactory::UNKNOWN_FACTORY);
try
@@ -1128,10 +1128,10 @@ IMPL_LINK( SvxSearchDialog, FlagHdl_Impl, Button *, pCtrl, void )
ClickHdl_Impl(pCtrl);
}
-void SvxSearchDialog::ClickHdl_Impl(void* pCtrl)
+void SvxSearchDialog::ClickHdl_Impl(void const * pCtrl)
{
if ( pCtrl && !bSet )
- SetModifyFlag_Impl( static_cast<Control*>(pCtrl) );
+ SetModifyFlag_Impl( static_cast<Control const *>(pCtrl) );
else
bSet = false;
@@ -1780,7 +1780,7 @@ void SvxSearchDialog::EnableControls_Impl( const SearchOptionFlags nFlags )
}
-void SvxSearchDialog::EnableControl_Impl( Control* pCtrl )
+void SvxSearchDialog::EnableControl_Impl( Control const * pCtrl )
{
if (m_pSearchBtn == pCtrl && ( SearchOptionFlags::SEARCH & nOptions ) )
{
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx
index 7d73630c2925..61dddbfcde3b 100644
--- a/svx/source/dialog/svxbmpnumvalueset.cxx
+++ b/svx/source/dialog/svxbmpnumvalueset.cxx
@@ -452,7 +452,7 @@ void SvxNumValueSet::dispose()
void SvxNumValueSet::SetNumberingSettings(
const Sequence<Sequence<PropertyValue> >& aNum,
- Reference<XNumberingFormatter>& xFormat,
+ Reference<XNumberingFormatter> const & xFormat,
const Locale& rLocale )
{
aNumSettings = aNum;
@@ -469,8 +469,8 @@ void SvxNumValueSet::SetNumberingSettings(
}
void SvxNumValueSet::SetOutlineNumberingSettings(
- Sequence<Reference<XIndexAccess> >& rOutline,
- Reference<XNumberingFormatter>& xFormat,
+ Sequence<Reference<XIndexAccess> > const & rOutline,
+ Reference<XNumberingFormatter> const & xFormat,
const Locale& rLocale)
{
aOutlineSettings = rOutline;
diff --git a/svx/source/engine3d/extrud3d.cxx b/svx/source/engine3d/extrud3d.cxx
index a52678399973..709b1790d1df 100644
--- a/svx/source/engine3d/extrud3d.cxx
+++ b/svx/source/engine3d/extrud3d.cxx
@@ -79,7 +79,7 @@ E3dExtrudeObj::E3dExtrudeObj()
SetDefaultAttributes(aDefault);
}
-void E3dExtrudeObj::SetDefaultAttributes(E3dDefaultAttributes& rDefault)
+void E3dExtrudeObj::SetDefaultAttributes(E3dDefaultAttributes const & rDefault)
{
GetProperties().SetObjectItemDirect(Svx3DSmoothNormalsItem(rDefault.GetDefaultExtrudeSmoothed()));
GetProperties().SetObjectItemDirect(Svx3DSmoothLidsItem(rDefault.GetDefaultExtrudeSmoothFrontBack()));
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index 1ffa9081976e..0b29842e3284 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -460,7 +460,7 @@ void Svx3DWin::SetUILightState(PushButton& rBtn, bool bState)
rBtn.SetModeImage( bState ? aImgLightOn : aImgLightOff );
}
-void Svx3DWin::Update( SfxItemSet& rAttrs )
+void Svx3DWin::Update( SfxItemSet const & rAttrs )
{
// remember 2d attributes
if(mpRemember2DAttributes)
diff --git a/svx/source/engine3d/lathe3d.cxx b/svx/source/engine3d/lathe3d.cxx
index a93db14a763a..a13132697d07 100644
--- a/svx/source/engine3d/lathe3d.cxx
+++ b/svx/source/engine3d/lathe3d.cxx
@@ -90,7 +90,7 @@ E3dLatheObj::E3dLatheObj()
SetDefaultAttributes(aDefault);
}
-void E3dLatheObj::SetDefaultAttributes(E3dDefaultAttributes& rDefault)
+void E3dLatheObj::SetDefaultAttributes(E3dDefaultAttributes const & rDefault)
{
GetProperties().SetObjectItemDirect(Svx3DSmoothNormalsItem(rDefault.GetDefaultLatheSmoothed()));
GetProperties().SetObjectItemDirect(Svx3DSmoothLidsItem(rDefault.GetDefaultLatheSmoothFrontBack()));
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index 5bb9e66b2a6d..cff0d5a706d1 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -474,7 +474,7 @@ void E3dObject::Insert3DObj(E3dObject* p3DObj)
StructureChanged();
}
-void E3dObject::Remove3DObj(E3dObject* p3DObj)
+void E3dObject::Remove3DObj(E3dObject const * p3DObj)
{
DBG_ASSERT(p3DObj, "Remove3DObj with NULL-pointer!");
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index bb6f9dc0b1d1..1abac13458b3 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -495,7 +495,7 @@ bool E3dView::Paste(
}
// Service routine used from local Clone() and from SdrCreateView::EndCreateObj(...)
-bool E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene* pSrcScene, E3dScene* pDstScene, Point /*aOffset*/)
+bool E3dView::ImpCloneAll3DObjectsToDestScene(E3dScene const * pSrcScene, E3dScene* pDstScene, Point /*aOffset*/)
{
bool bRetval(false);
@@ -622,7 +622,7 @@ bool E3dView::IsConvertTo3DObjPossible() const
return bRetval;
}
-void E3dView::ImpIsConvertTo3DPossible(SdrObject* pObj, bool& rAny3D,
+void E3dView::ImpIsConvertTo3DPossible(SdrObject const * pObj, bool& rAny3D,
bool& rGroupSelected) const
{
if(pObj)
@@ -694,7 +694,7 @@ void E3dView::ImpChangeSomeAttributesFor3DConversion2(SdrObject* pObj)
}
}
-void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
+void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix const & rLatheMat)
{
// Single PathObject, transform this
SdrPathObj* pPath = dynamic_cast<SdrPathObj*>( pObj );
@@ -762,7 +762,7 @@ void E3dView::ImpCreateSingle3DObjectFlat(E3dScene* pScene, SdrObject* pObj, boo
}
}
-void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix& rLatheMat)
+void E3dView::ImpCreate3DObject(E3dScene* pScene, SdrObject* pObj, bool bExtrude, double fDepth, basegfx::B2DHomMatrix const & rLatheMat)
{
if(pObj)
{
@@ -1035,7 +1035,7 @@ struct E3dDepthLayer
}
};
-void E3dView::DoDepthArrange(E3dScene* pScene, double fDepth)
+void E3dView::DoDepthArrange(E3dScene const * pScene, double fDepth)
{
if(pScene && pScene->GetSubList() && pScene->GetSubList()->GetObjCount() > 1)
{
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 224d0d3dcaf6..5078e793481f 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -1744,7 +1744,7 @@ void FmGridControl::HideColumn(sal_uInt16 nId)
m_nMarkedColumnId = (sal_uInt16)-1;
}
-bool FmGridControl::isColumnSelected(DbGridColumn* _pColumn)
+bool FmGridControl::isColumnSelected(DbGridColumn const * _pColumn)
{
OSL_ENSURE(_pColumn,"Column can not be null!");
bool bSelected = false;
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 42bf7d6ad49b..0ca5e5922a49 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -2401,7 +2401,7 @@ sal_Bool FmXGridPeer::supportsMode(const OUString& Mode)
}
-void FmXGridPeer::columnVisible(DbGridColumn* pColumn)
+void FmXGridPeer::columnVisible(DbGridColumn const * pColumn)
{
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
@@ -2416,7 +2416,7 @@ void FmXGridPeer::columnVisible(DbGridColumn* pColumn)
}
-void FmXGridPeer::columnHidden(DbGridColumn* pColumn)
+void FmXGridPeer::columnHidden(DbGridColumn const * pColumn)
{
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 86c44d500897..9c16503bd11e 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -515,7 +515,7 @@ void DbGridColumn::Paint(OutputDevice& rDev,
}
-void DbGridColumn::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat )
+void DbGridColumn::ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat )
{
if ( m_pCell.is() )
m_pCell->ImplInitWindow( rParent, _eInitWhat );
@@ -704,7 +704,7 @@ bool DbCellControl::Commit()
}
-void DbCellControl::ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat )
+void DbCellControl::ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat )
{
vcl::Window* pWindows[] = { m_pPainter, m_pWindow };
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 79ffdeef4cbe..3d0e05864205 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -2665,7 +2665,7 @@ OUString DbGridControl::GetCellText(long _nRow, sal_uInt16 _nColId) const
return sRet;
}
-OUString DbGridControl::GetCurrentRowCellText(DbGridColumn* pColumn,const DbGridRowRef& _rRow) const
+OUString DbGridControl::GetCurrentRowCellText(DbGridColumn const * pColumn,const DbGridRowRef& _rRow) const
{
// text output for a single row
OUString aText;
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 341347147568..fceb54e286b7 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -264,7 +264,7 @@ namespace svxform
m_pXFormsPage->DoMenuAction(m_nRemoveId);
}
- void DataTreeListBox::RemoveEntry( SvTreeListEntry* _pEntry )
+ void DataTreeListBox::RemoveEntry( SvTreeListEntry const * _pEntry )
{
if ( _pEntry )
{
@@ -1445,7 +1445,7 @@ namespace svxform
{
ModelSelectHdl(&rBox);
}
- void DataNavigatorWindow::ModelSelectHdl(ListBox* pBox)
+ void DataNavigatorWindow::ModelSelectHdl(ListBox const * pBox)
{
sal_Int32 nPos = m_pModelsBox->GetSelectEntryPos();
// pBox == NULL, if you want to force a new fill.
@@ -2396,7 +2396,7 @@ namespace svxform
}
}
- void copyPropSet( const Reference< XPropertySet >& xFrom, Reference< XPropertySet >& xTo )
+ void copyPropSet( const Reference< XPropertySet >& xFrom, Reference< XPropertySet > const & xTo )
{
DBG_ASSERT( xFrom.is(), "copyPropSet(): no source" );
DBG_ASSERT( xTo.is(), "copyPropSet(): no target" );
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 33b8770b28d6..064fa09f1c81 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -809,7 +809,7 @@ void FmFilterModel::Remove( const ::std::vector<FmFilterData*>::iterator& rPos )
}
-bool FmFilterModel::ValidateText(FmFilterItem* pItem, OUString& rText, OUString& rErrorMsg) const
+bool FmFilterModel::ValidateText(FmFilterItem const * pItem, OUString& rText, OUString& rErrorMsg) const
{
FmFormItem* pFormItem = dynamic_cast<FmFormItem*>( pItem->GetParent()->GetParent() );
try
@@ -1317,7 +1317,7 @@ sal_Int8 FmFilterNavigator::AcceptDrop( const AcceptDropEvent& rEvt )
namespace
{
- FmFilterItems* getTargetItems(SvTreeListEntry* _pTarget)
+ FmFilterItems* getTargetItems(SvTreeListEntry const * _pTarget)
{
FmFilterData* pData = static_cast<FmFilterData*>(_pTarget->GetUserData());
FmFilterItems* pTargetItems = dynamic_cast<FmFilterItems*>(pData);
@@ -1465,7 +1465,7 @@ void FmFilterNavigator::Insert(FmFilterData* pItem, sal_uLong nPos)
}
-void FmFilterNavigator::Remove(FmFilterData* pItem)
+void FmFilterNavigator::Remove(FmFilterData const * pItem)
{
// the entry for the data
SvTreeListEntry* pEntry = FindEntry(pItem);
@@ -1826,7 +1826,7 @@ void FmFilterNavigatorWin::dispose()
}
-void FmFilterNavigatorWin::UpdateContent(FmFormShell* pFormShell)
+void FmFilterNavigatorWin::UpdateContent(FmFormShell const * pFormShell)
{
if (!m_pNavigator)
return;
diff --git a/svx/source/form/fmexch.cxx b/svx/source/form/fmexch.cxx
index 82096f99ad93..c43ad1da2ea0 100644
--- a/svx/source/form/fmexch.cxx
+++ b/svx/source/form/fmexch.cxx
@@ -210,7 +210,7 @@ namespace svxform
}
- void OControlTransferData::buildPathFormat(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot)
+ void OControlTransferData::buildPathFormat(SvTreeListBox const * pTreeBox, SvTreeListEntry const * pRoot)
{
m_aControlPaths.realloc(0);
@@ -252,7 +252,7 @@ namespace svxform
}
- void OControlTransferData::buildListFromPath(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot)
+ void OControlTransferData::buildListFromPath(SvTreeListBox const * pTreeBox, SvTreeListEntry* pRoot)
{
ListBoxEntrySet aEmpty;
m_aSelectedEntries.swap( aEmpty );
diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx
index 1b6a86649670..d1127ac7afa9 100644
--- a/svx/source/form/fmobjfac.cxx
+++ b/svx/source/form/fmobjfac.cxx
@@ -90,7 +90,7 @@ FmFormObjFactory::~FmFormObjFactory()
// create css::form::Form objects
namespace
{
- void lcl_initProperty( FmFormObj* _pObject, const OUString& _rPropName, const Any& _rValue )
+ void lcl_initProperty( FmFormObj const * _pObject, const OUString& _rPropName, const Any& _rValue )
{
try
{
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx
index 34e9670b7606..af29b8667527 100644
--- a/svx/source/form/fmpage.cxx
+++ b/svx/source/form/fmpage.cxx
@@ -148,7 +148,7 @@ const Reference< css::form::XForms > & FmFormPage::GetForms( bool _bForceCreate
}
-bool FmFormPage::RequestHelp( vcl::Window* pWindow, SdrView* pView,
+bool FmFormPage::RequestHelp( vcl::Window* pWindow, SdrView const * pView,
const HelpEvent& rEvt )
{
if( pView->IsAction() )
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index 1b4690350137..af79ba17b2b2 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -172,7 +172,7 @@ void FmFormView::MarkListHasChanged()
namespace
{
- const SdrPageWindow* findPageWindow( const SdrPaintView* _pView, OutputDevice* _pWindow )
+ const SdrPageWindow* findPageWindow( const SdrPaintView* _pView, OutputDevice const * _pWindow )
{
SdrPageView* pPageView = _pView->GetSdrPageView();
if(pPageView)
@@ -362,7 +362,7 @@ void FmFormView::HideSdrPage()
}
-void FmFormView::ActivateControls(SdrPageView* pPageView)
+void FmFormView::ActivateControls(SdrPageView const * pPageView)
{
if (!pPageView)
return;
@@ -375,7 +375,7 @@ void FmFormView::ActivateControls(SdrPageView* pPageView)
}
-void FmFormView::DeactivateControls(SdrPageView* pPageView)
+void FmFormView::DeactivateControls(SdrPageView const * pPageView)
{
if( !pPageView )
return;
@@ -564,7 +564,7 @@ FmFormObj* FmFormView::getMarkedGrid() const
}
-void FmFormView::createControlLabelPair( OutputDevice* _pOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
+void FmFormView::createControlLabelPair( OutputDevice const * _pOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
const Reference< XPropertySet >& _rxField, const Reference< XNumberFormats >& _rxNumberFormats,
sal_uInt16 _nControlObjectID, const OUString& _rFieldPostfix, SdrInventor _nInventor, sal_uInt16 _nLabelObjectID,
SdrPage* _pLabelPage, SdrPage* _pControlPage, SdrModel* _pModel, SdrUnoObj*& _rpLabel, SdrUnoObj*& _rpControl )
diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx
index 49afb8d00201..803705f15ef9 100644
--- a/svx/source/form/fmvwimp.cxx
+++ b/svx/source/form/fmvwimp.cxx
@@ -1013,7 +1013,7 @@ IMPL_LINK_NOARG(FmXFormView, OnAutoFocus, void*, void)
}
-void FmXFormView::onCreatedFormObject( FmFormObj& _rFormObject )
+void FmXFormView::onCreatedFormObject( FmFormObj const & _rFormObject )
{
FmFormShell* pShell = m_pView ? m_pView->GetFormShell() : nullptr;
FmXFormShell* pShellImpl = pShell ? pShell->GetImpl() : nullptr;
@@ -1511,7 +1511,7 @@ SdrObject* FmXFormView::implCreateXFormsControl( const svx::OXFormsDescriptor &_
}
-bool FmXFormView::createControlLabelPair( OutputDevice& _rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
+bool FmXFormView::createControlLabelPair( OutputDevice const & _rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
const Reference< XPropertySet >& _rxField, const Reference< XNumberFormats >& _rxNumberFormats,
sal_uInt16 _nControlObjectID, const OUString& _rFieldPostfix,
SdrUnoObj*& _rpLabel, SdrUnoObj*& _rpControl,
@@ -1539,7 +1539,7 @@ bool FmXFormView::createControlLabelPair( OutputDevice& _rOutDev, sal_Int32 _nXO
}
-bool FmXFormView::createControlLabelPair( OutputDevice& _rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
+bool FmXFormView::createControlLabelPair( OutputDevice const & _rOutDev, sal_Int32 _nXOffsetMM, sal_Int32 _nYOffsetMM,
const Reference< XPropertySet >& _rxField,
const Reference< XNumberFormats >& _rxNumberFormats, sal_uInt16 _nControlObjectID,
const OUString& _rFieldPostfix, SdrInventor _nInventor, sal_uInt16 _nLabelObjectID,
@@ -1802,7 +1802,7 @@ void FmXFormView::saveMarkList()
}
}
-static bool lcl_hasObject( SdrObjListIter& rIter, SdrObject* pObj )
+static bool lcl_hasObject( SdrObjListIter& rIter, SdrObject const * pObj )
{
bool bFound = false;
while (rIter.IsMore() && !bFound)
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx
index b8b88183d612..8793ca58dde4 100644
--- a/svx/source/form/navigatortree.cxx
+++ b/svx/source/form/navigatortree.cxx
@@ -87,7 +87,7 @@ namespace svxform
typedef MapModelToShape::value_type ModelShapePair;
- void collectShapeModelMapping( SdrPage* _pPage, MapModelToShape& _rMapping )
+ void collectShapeModelMapping( SdrPage const * _pPage, MapModelToShape& _rMapping )
{
OSL_ENSURE( _pPage, "collectShapeModelMapping: invalid arg!" );
@@ -672,14 +672,14 @@ namespace svxform
}
- bool NavigatorTree::IsFormEntry( SvTreeListEntry* pEntry )
+ bool NavigatorTree::IsFormEntry( SvTreeListEntry const * pEntry )
{
FmEntryData* pEntryData = static_cast<FmEntryData*>(pEntry->GetUserData());
return !pEntryData || dynamic_cast<const FmFormData*>( pEntryData) != nullptr;
}
- bool NavigatorTree::IsFormComponentEntry( SvTreeListEntry* pEntry )
+ bool NavigatorTree::IsFormComponentEntry( SvTreeListEntry const * pEntry )
{
FmEntryData* pEntryData = static_cast<FmEntryData*>(pEntry->GetUserData());
return pEntryData && dynamic_cast<const FmControlData*>( pEntryData) != nullptr;
@@ -1303,7 +1303,7 @@ namespace svxform
}
- void NavigatorTree::NewForm( SvTreeListEntry* pParentEntry )
+ void NavigatorTree::NewForm( SvTreeListEntry const * pParentEntry )
{
// get ParentFormData
@@ -1365,7 +1365,7 @@ namespace svxform
}
- FmControlData* NavigatorTree::NewControl( const OUString& rServiceName, SvTreeListEntry* pParentEntry, bool bEditName )
+ FmControlData* NavigatorTree::NewControl( const OUString& rServiceName, SvTreeListEntry const * pParentEntry, bool bEditName )
{
// get ParentForm
@@ -1410,7 +1410,7 @@ namespace svxform
}
- OUString NavigatorTree::GenerateName( FmEntryData* pEntryData )
+ OUString NavigatorTree::GenerateName( FmEntryData const * pEntryData )
{
const sal_uInt16 nMaxCount = 99;
OUString aNewName;
@@ -2001,7 +2001,7 @@ namespace svxform
}
- bool NavigatorTree::IsHiddenControl(FmEntryData* pEntryData)
+ bool NavigatorTree::IsHiddenControl(FmEntryData const * pEntryData)
{
if (pEntryData == nullptr) return false;
@@ -2033,7 +2033,7 @@ namespace svxform
pFormView->UnMarkAll();
}
- void NavigatorTree::MarkViewObj(FmFormData* pFormData, bool bDeep )
+ void NavigatorTree::MarkViewObj(FmFormData const * pFormData, bool bDeep )
{
FmFormShell* pFormShell = GetNavModel()->GetFormShell();
if( !pFormShell )
@@ -2078,7 +2078,7 @@ namespace svxform
} // for ( sal_uInt32 i = 0; i < pFormView->PaintWindowCount(); ++i )
}
- void NavigatorTree::CollectObjects(FmFormData* pFormData, bool bDeep, ::std::set< Reference< XFormComponent > >& _rObjects)
+ void NavigatorTree::CollectObjects(FmFormData const * pFormData, bool bDeep, ::std::set< Reference< XFormComponent > >& _rObjects)
{
FmEntryDataList* pChildList = pFormData->GetChildList();
FmControlData* pControlData;
@@ -2095,7 +2095,7 @@ namespace svxform
} // for( sal_uInt32 i=0; i<pChildList->Count(); i++ )
}
- void NavigatorTree::MarkViewObj( FmControlData* pControlData)
+ void NavigatorTree::MarkViewObj( FmControlData const * pControlData)
{
if( !pControlData )
return;
diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx
index df2fb0f99626..3708f9322e34 100644
--- a/svx/source/form/navigatortreemodel.cxx
+++ b/svx/source/form/navigatortreemodel.cxx
@@ -438,7 +438,7 @@ namespace svxform
}
- void NavigatorTreeModel::RemoveForm(FmFormData* pFormData)
+ void NavigatorTreeModel::RemoveForm(FmFormData const * pFormData)
{
// get form and parent
@@ -470,7 +470,7 @@ namespace svxform
}
- void NavigatorTreeModel::RemoveFormComponent(FmControlData* pControlData)
+ void NavigatorTreeModel::RemoveFormComponent(FmControlData const * pControlData)
{
// get control and parent
@@ -485,7 +485,7 @@ namespace svxform
}
- void NavigatorTreeModel::ClearBranch( FmFormData* pParentData )
+ void NavigatorTreeModel::ClearBranch( FmFormData const * pParentData )
{
// delete all entries of this branch
@@ -645,7 +645,7 @@ namespace svxform
}
- FmEntryData* NavigatorTreeModel::FindData( const OUString& rText, FmFormData* pParentData, bool bRecurs )
+ FmEntryData* NavigatorTreeModel::FindData( const OUString& rText, FmFormData const * pParentData, bool bRecurs )
{
FmEntryDataList* pDataList;
if( !pParentData )
@@ -880,7 +880,7 @@ namespace svxform
}
- Reference< XIndexContainer > NavigatorTreeModel::GetFormComponents( FmFormData* pFormData )
+ Reference< XIndexContainer > NavigatorTreeModel::GetFormComponents( FmFormData const * pFormData )
{
// get components from form
diff --git a/svx/source/form/tabwin.cxx b/svx/source/form/tabwin.cxx
index af2e399fff7f..46253a195713 100644
--- a/svx/source/form/tabwin.cxx
+++ b/svx/source/form/tabwin.cxx
@@ -278,7 +278,7 @@ void FmFieldWin::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoo
}
-void FmFieldWin::UpdateContent(FmFormShell* pShell)
+void FmFieldWin::UpdateContent(FmFormShell const * pShell)
{
pListBox->Clear();
OUString aTitle(SvxResId(RID_STR_FIELDSELECTION));
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 2428e48cb5dc..2fd0e69bbabe 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -743,7 +743,7 @@ GalleryTheme* Gallery::ImplGetCachedTheme(const GalleryThemeEntry* pThemeEntry)
return pTheme;
}
-void Gallery::ImplDeleteCachedTheme( GalleryTheme* pTheme )
+void Gallery::ImplDeleteCachedTheme( GalleryTheme const * pTheme )
{
GalleryCacheThemeList::const_iterator aEnd = aThemeCache.end();
for (GalleryCacheThemeList::iterator it = aThemeCache.begin(); it != aEnd; ++it)
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index c5b8013f26a1..4f2d92dd4b92 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -994,7 +994,7 @@ bool GalleryTheme::InsertModel( const FmFormModel& rModel, sal_uIntPtr nInsertPo
return bRet;
}
-bool GalleryTheme::GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream>& rxModelStream )
+bool GalleryTheme::GetModelStream( sal_uIntPtr nPos, tools::SvRef<SotStorageStream> const & rxModelStream )
{
const GalleryObject* pObject = ImplGetGalleryObject( nPos );
bool bRet = false;
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index 35d44db70725..06b8e7a5a486 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -134,7 +134,7 @@ namespace svxform
sal_uInt16 _nEditId,
sal_uInt16 _nRemoveId);
void DeleteAndClear();
- void RemoveEntry( SvTreeListEntry* _pEntry );
+ void RemoveEntry( SvTreeListEntry const * _pEntry );
};
class ReplaceString
@@ -334,7 +334,7 @@ namespace svxform
DECL_LINK( MenuActivateHdl, MenuButton *, void );
DECL_LINK( ActivatePageHdl, TabControl*, void);
DECL_LINK( UpdateHdl, Timer *, void);
- void ModelSelectHdl(ListBox*);
+ void ModelSelectHdl(ListBox const *);
XFormsPage* GetCurrentPage( sal_uInt16& rCurId );
void LoadModels();
void SetPageModel();
diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx
index b22cb959a4f0..2e8b89007ad9 100644
--- a/svx/source/inc/filtnav.hxx
+++ b/svx/source/inc/filtnav.hxx
@@ -165,7 +165,7 @@ public:
void Update(const css::uno::Reference< css::container::XIndexAccess > & xControllers, const css::uno::Reference< css::form::runtime::XFormController > & xCurrent);
void Clear();
- bool ValidateText(FmFilterItem* pItem, OUString& rText, OUString& rErrorMsg) const;
+ bool ValidateText(FmFilterItem const * pItem, OUString& rText, OUString& rErrorMsg) const;
void Append(FmFilterItems* pItems, FmFilterItem* pFilterItem);
void SetTextForItem(FmFilterItem* pItem, const OUString& rText);
@@ -269,7 +269,7 @@ protected:
void DeleteSelection();
SvTreeListEntry* FindEntry(const FmFilterData* pItem) const;
void Insert(FmFilterData* pItem, sal_uLong nPos);
- void Remove(FmFilterData* pItem);
+ void Remove(FmFilterData const * pItem);
DECL_LINK(OnRemove, void*, void);
DECL_LINK(OnDropActionTimer, Timer*, void);
@@ -318,7 +318,7 @@ public:
virtual ~FmFilterNavigatorWin() override;
virtual void dispose() override;
- void UpdateContent( FmFormShell* pFormShell );
+ void UpdateContent( FmFormShell const * pFormShell );
void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override;
void FillInfo( SfxChildWinInfo& rInfo ) const override;
diff --git a/svx/source/inc/fmexch.hxx b/svx/source/inc/fmexch.hxx
index 0b09eadf0839..c0c210f963f0 100644
--- a/svx/source/inc/fmexch.hxx
+++ b/svx/source/inc/fmexch.hxx
@@ -168,12 +168,12 @@ namespace svxform
const css::uno::Reference< css::form::XForms >& _rxFormsRoot
) { m_xFormsRoot = _rxFormsRoot; }
- void buildPathFormat(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
+ void buildPathFormat(SvTreeListBox const * pTreeBox, SvTreeListEntry const * pRoot);
// assembles m_aControlPaths from m_aSelectedEntries
// (it is assumed that the entries are sorted in m_aSelectedEntries with respect to the neighbor relationship)
- void buildListFromPath(SvTreeListBox* pTreeBox, SvTreeListEntry* pRoot);
+ void buildListFromPath(SvTreeListBox const * pTreeBox, SvTreeListEntry* pRoot);
// The reverse way: throws everything out of m_aSelectedEntries and rebuilds it using m_aControlPaths
void addHiddenControlsFormat(const css::uno::Sequence< css::uno::Reference< css::uno::XInterface > >& seqInterfaces);
diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx
index f7be4afc3ddc..5012bd3f4900 100644
--- a/svx/source/inc/fmexpl.hxx
+++ b/svx/source/inc/fmexpl.hxx
@@ -326,10 +326,10 @@ namespace svxform
void UpdateContent( const css::uno::Reference< css::form::XForms >& xForms );
void InsertForm(const css::uno::Reference< css::form::XForm >& xForm, sal_uInt32 nRelPos);
- void RemoveForm(FmFormData* pFormData);
+ void RemoveForm(FmFormData const * pFormData);
void InsertFormComponent(const css::uno::Reference< css::form::XFormComponent >& xComp, sal_uInt32 nRelPos);
- void RemoveFormComponent(FmControlData* pControlData);
+ void RemoveFormComponent(FmControlData const * pControlData);
void InsertSdrObj(const SdrObject* pSdrObj);
void RemoveSdrObj(const SdrObject* pSdrObj);
@@ -346,7 +346,7 @@ namespace svxform
virtual ~NavigatorTreeModel() override;
void FillBranch( FmFormData* pParentData );
- void ClearBranch( FmFormData* pParentData );
+ void ClearBranch( FmFormData const * pParentData );
void UpdateContent( FmFormShell* pNewShell );
void Insert( FmEntryData* pEntryData, sal_uLong nRelPos = CONTAINER_APPEND,
@@ -362,9 +362,9 @@ namespace svxform
FmFormShell* GetFormShell() const { return m_pFormShell; }
FmFormPage* GetFormPage() const { return m_pFormPage; }
FmEntryData* FindData( const css::uno::Reference< css::uno::XInterface >& xElement, FmEntryDataList* pDataList, bool bRecurs=true );
- FmEntryData* FindData( const OUString& rText, FmFormData* pParentData, bool bRecurs );
+ FmEntryData* FindData( const OUString& rText, FmFormData const * pParentData, bool bRecurs );
FmEntryDataList* GetRootList() const { return m_pRootList; }
- static css::uno::Reference< css::container::XIndexContainer > GetFormComponents( FmFormData* pParentFormData );
+ static css::uno::Reference< css::container::XIndexContainer > GetFormComponents( FmFormData const * pParentFormData );
SdrObject* Search(SdrObjListIter& rIter, const css::uno::Reference< css::form::XFormComponent >& xComp);
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
@@ -411,8 +411,8 @@ namespace svxform
bool m_bInitialUpdate : 1; // am I the first time in the UpdateContent?
bool m_bKeyboardCut : 1;
- FmControlData* NewControl( const OUString& rServiceName, SvTreeListEntry* pParentEntry, bool bEditName );
- void NewForm( SvTreeListEntry* pParentEntry );
+ FmControlData* NewControl( const OUString& rServiceName, SvTreeListEntry const * pParentEntry, bool bEditName );
+ void NewForm( SvTreeListEntry const * pParentEntry );
SvTreeListEntry* Insert( FmEntryData* pEntryData, sal_uLong nRelPos );
void Remove( FmEntryData* pEntryData );
@@ -440,7 +440,7 @@ namespace svxform
void SynchronizeMarkList();
// reverse direction of SynchronizeMarkList: selects in the view all controls corresponding to the current selection
- void CollectObjects(FmFormData* pFormData, bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
+ void CollectObjects(FmFormData const * pFormData, bool bDeep, ::std::set< css::uno::Reference< css::form::XFormComponent > >& _rObjects);
// in the Select I usually update the Marklist of the corresponding view,
// with the following functions I can control the locking of this behavior
@@ -448,7 +448,7 @@ namespace svxform
void UnlockSelectionHandling() { --m_nSelectLock; }
bool IsSelectionHandlingLocked() const { return m_nSelectLock>0; }
- static bool IsHiddenControl(FmEntryData* pEntryData);
+ static bool IsHiddenControl(FmEntryData const * pEntryData);
DECL_LINK( OnEdit, void*, void );
DECL_LINK( OnDropActionTimer, Timer*, void );
@@ -472,14 +472,14 @@ namespace svxform
void Clear();
void UpdateContent( FmFormShell* pFormShell );
- void MarkViewObj( FmFormData* pFormData, bool bDeep );
- void MarkViewObj( FmControlData* pControlData );
+ void MarkViewObj( FmFormData const * pFormData, bool bDeep );
+ void MarkViewObj( FmControlData const * pControlData );
void UnmarkAllViewObj();
- static bool IsFormEntry( SvTreeListEntry* pEntry );
- static bool IsFormComponentEntry( SvTreeListEntry* pEntry );
+ static bool IsFormEntry( SvTreeListEntry const * pEntry );
+ static bool IsFormComponentEntry( SvTreeListEntry const * pEntry );
- OUString GenerateName( FmEntryData* pEntryData );
+ OUString GenerateName( FmEntryData const * pEntryData );
NavigatorTreeModel* GetNavModel() const { return m_pNavModel; }
SvTreeListEntry* FindEntry( FmEntryData* pEntryData );
diff --git a/svx/source/inc/fmvwimp.hxx b/svx/source/inc/fmvwimp.hxx
index 603ed2fecfd0..4f028144851a 100644
--- a/svx/source/inc/fmvwimp.hxx
+++ b/svx/source/inc/fmvwimp.hxx
@@ -232,7 +232,7 @@ public:
*/
void resumeTabOrderUpdate();
- void onCreatedFormObject( FmFormObj& _rFormObject );
+ void onCreatedFormObject( FmFormObj const & _rFormObject );
void breakCreateFormObject();
@@ -250,7 +250,7 @@ private:
SdrObject* implCreateXFormsControl( const svx::OXFormsDescriptor &_rDesc );
static bool createControlLabelPair(
- OutputDevice& _rOutDev,
+ OutputDevice const & _rOutDev,
sal_Int32 _nXOffsetMM,
sal_Int32 _nYOffsetMM,
const css::uno::Reference< css::beans::XPropertySet >& _rxField,
@@ -267,7 +267,7 @@ private:
);
bool createControlLabelPair(
- OutputDevice& _rOutDev,
+ OutputDevice const & _rOutDev,
sal_Int32 _nXOffsetMM,
sal_Int32 _nYOffsetMM,
const css::uno::Reference< css::beans::XPropertySet >& _rxField,
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx
index 74372fc48700..2a9d33ea0903 100644
--- a/svx/source/inc/gridcell.hxx
+++ b/svx/source/inc/gridcell.hxx
@@ -166,7 +166,7 @@ public:
void SetReadOnly(bool bRead){m_bReadOnly = bRead;}
void SetObject(sal_Int16 nPos) {m_bObject = m_bReadOnly = true; m_nFieldPos = nPos;}
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat );
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat );
// properties that can bleed through onto the css::frame::Controller
sal_Int16 SetAlignment(sal_Int16 _nAlign);
@@ -292,7 +292,7 @@ public:
virtual void PaintFieldToCell( OutputDevice& rDev, const tools::Rectangle& rRect, const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter);
virtual void PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRect );
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat );
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat );
double GetValue(const css::uno::Reference< css::sdb::XColumn >& _rxField, const css::uno::Reference< css::util::XNumberFormatter >& xFormatter) const;
@@ -779,7 +779,7 @@ public:
virtual void SAL_CALL removePaintListener( const css::uno::Reference< css::awt::XPaintListener >& xListener ) override;
bool Commit() {return m_pCellControl->Commit();}
- void ImplInitWindow( vcl::Window& rParent, const InitWindowFacet _eInitWhat )
+ void ImplInitWindow( vcl::Window const & rParent, const InitWindowFacet _eInitWhat )
{ m_pCellControl->ImplInitWindow( rParent, _eInitWhat ); }
bool isAlignedController() const { return m_pCellControl->isAlignedController(); }
diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx
index 73d98dbe5ec3..e855fc86d337 100644
--- a/svx/source/inc/tabwin.hxx
+++ b/svx/source/inc/tabwin.hxx
@@ -89,7 +89,7 @@ public:
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState) override;
- void UpdateContent(FmFormShell*);
+ void UpdateContent(FmFormShell const *);
void UpdateContent(const css::uno::Reference< css::form::XForm > &);
void FillInfo( SfxChildWinInfo& rInfo ) const override;
diff --git a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
index 232abcf5f622..66592354a9cc 100644
--- a/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofgraphic.cxx
@@ -216,7 +216,7 @@ namespace sdr
// This is the call from the destructor of the asynch graphic loading event.
// No one else has to call this. It is needed to let this object forget about
// the event. The parameter allows checking for the correct event.
- void ViewObjectContactOfGraphic::forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent* pEvent)
+ void ViewObjectContactOfGraphic::forgetAsynchGraphicLoadingEvent(sdr::event::AsynchGraphicLoadingEvent const * pEvent)
{
if(mpAsynchLoadEvent)
{
diff --git a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
index d060de4bc2ac..9f5e8debaf24 100644
--- a/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx
@@ -594,7 +594,7 @@ namespace sdr { namespace contact {
/// creates an XControl for the given device and SdrUnoObj
static bool
createControlForDevice(
- IPageViewAccess& _rPageView,
+ IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice,
const SdrUnoObj& _rUnoObject,
const basegfx::B2DHomMatrix& _rInitialViewTransformation,
@@ -700,7 +700,7 @@ namespace sdr { namespace contact {
We're not disposed.
*/
static void impl_adjustControlVisibilityToLayerVisibility_throw( const ControlHolder& _rxControl, const SdrUnoObj& _rUnoObject,
- IPageViewAccess& _rPageView, bool _bIsCurrentlyVisible, bool _bForce );
+ IPageViewAccess const & _rPageView, bool _bIsCurrentlyVisible, bool _bForce );
/** starts or stops listening at various aspects of our control
@@ -757,7 +757,7 @@ namespace sdr { namespace contact {
/** ensures that we have a control for the given PageView/OutputDevice
*/
bool impl_ensureControl_nothrow(
- IPageViewAccess& _rPageView,
+ IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice,
const basegfx::B2DHomMatrix& _rInitialViewTransformation
);
@@ -988,7 +988,7 @@ namespace sdr { namespace contact {
}
- bool ViewObjectContactOfUnoControl_Impl::impl_ensureControl_nothrow( IPageViewAccess& _rPageView, const OutputDevice& _rDevice,
+ bool ViewObjectContactOfUnoControl_Impl::impl_ensureControl_nothrow( IPageViewAccess const & _rPageView, const OutputDevice& _rDevice,
const basegfx::B2DHomMatrix& _rInitialViewTransformation )
{
if ( m_bCreatingControl )
@@ -1065,7 +1065,7 @@ namespace sdr { namespace contact {
}
- bool ViewObjectContactOfUnoControl_Impl::createControlForDevice( IPageViewAccess& _rPageView,
+ bool ViewObjectContactOfUnoControl_Impl::createControlForDevice( IPageViewAccess const & _rPageView,
const OutputDevice& _rDevice, const SdrUnoObj& _rUnoObject, const basegfx::B2DHomMatrix& _rInitialViewTransformation,
const basegfx::B2DHomMatrix& _rInitialZoomNormalization, ControlHolder& _out_rControl )
{
@@ -1167,7 +1167,7 @@ namespace sdr { namespace contact {
void ViewObjectContactOfUnoControl_Impl::impl_adjustControlVisibilityToLayerVisibility_throw( const ControlHolder& _rControl,
- const SdrUnoObj& _rUnoObject, IPageViewAccess& _rPageView, bool _bIsCurrentlyVisible, bool _bForce )
+ const SdrUnoObj& _rUnoObject, IPageViewAccess const & _rPageView, bool _bIsCurrentlyVisible, bool _bForce )
{
// in design mode, there is no problem with the visibility: The XControl is hidden by
// default, and the Drawing Layer will simply not call our paint routine, if we're in
diff --git a/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx b/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx
index 36b62dd15e57..b358160d4760 100644
--- a/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx
+++ b/svx/source/sidebar/area/AreaTransparencyGradientPopup.cxx
@@ -56,7 +56,7 @@ AreaTransparencyGradientPopup::~AreaTransparencyGradientPopup()
disposeOnce();
}
-void AreaTransparencyGradientPopup::InitStatus(XFillFloatTransparenceItem* pGradientItem)
+void AreaTransparencyGradientPopup::InitStatus(XFillFloatTransparenceItem const * pGradientItem)
{
const XGradient& rGradient = pGradientItem->GetGradientValue();
@@ -85,7 +85,7 @@ void AreaTransparencyGradientPopup::InitStatus(XFillFloatTransparenceItem* pGrad
maMtrTrgrBorder->SetValue(aGradient.GetBorder());
}
-void AreaTransparencyGradientPopup::Rearrange(XFillFloatTransparenceItem* pGradientItem)
+void AreaTransparencyGradientPopup::Rearrange(XFillFloatTransparenceItem const * pGradientItem)
{
InitStatus(pGradientItem);
const XGradient& rGradient = pGradientItem->GetGradientValue();
diff --git a/svx/source/sidebar/line/LineWidthValueSet.cxx b/svx/source/sidebar/line/LineWidthValueSet.cxx
index 637fa8fb9ed4..9c31541f46e0 100644
--- a/svx/source/sidebar/line/LineWidthValueSet.cxx
+++ b/svx/source/sidebar/line/LineWidthValueSet.cxx
@@ -51,7 +51,7 @@ void LineWidthValueSet::dispose()
ValueSet::dispose();
}
-void LineWidthValueSet::SetUnit(OUString* str)
+void LineWidthValueSet::SetUnit(OUString const * str)
{
for(int i = 0; i < 9; i++)
{
diff --git a/svx/source/sidebar/line/LineWidthValueSet.hxx b/svx/source/sidebar/line/LineWidthValueSet.hxx
index f2747d5311ea..c3a1e06e787b 100644
--- a/svx/source/sidebar/line/LineWidthValueSet.hxx
+++ b/svx/source/sidebar/line/LineWidthValueSet.hxx
@@ -32,7 +32,7 @@ public:
virtual ~LineWidthValueSet() override;
virtual void dispose() override;
- void SetUnit(OUString* str);
+ void SetUnit(OUString const * str);
void SetSelItem(sal_uInt16 nSel);
sal_uInt16 GetSelItem() { return nSelItem;}
void SetImage(const Image& img);
diff --git a/svx/source/sidebar/text/TextUnderlineControl.cxx b/svx/source/sidebar/text/TextUnderlineControl.cxx
index 48c60644a71d..aaf5f82d3dee 100644
--- a/svx/source/sidebar/text/TextUnderlineControl.cxx
+++ b/svx/source/sidebar/text/TextUnderlineControl.cxx
@@ -85,7 +85,7 @@ void TextUnderlineControl::dispose()
SfxPopupWindow::dispose();
}
-FontLineStyle TextUnderlineControl::getLineStyle(Button* pButton)
+FontLineStyle TextUnderlineControl::getLineStyle(Button const * pButton)
{
if(pButton == maSingle)
return LINESTYLE_SINGLE;
diff --git a/svx/source/sidebar/text/TextUnderlineControl.hxx b/svx/source/sidebar/text/TextUnderlineControl.hxx
index fe7cbf3da300..db9cfe8bdcf2 100644
--- a/svx/source/sidebar/text/TextUnderlineControl.hxx
+++ b/svx/source/sidebar/text/TextUnderlineControl.hxx
@@ -49,7 +49,7 @@ private:
VclPtr<PushButton> maWave;
VclPtr<PushButton> maMoreOptions;
- FontLineStyle getLineStyle(Button* pButton);
+ FontLineStyle getLineStyle(Button const * pButton);
DECL_LINK(PBClickHdl, Button*, void);
};
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx
index b25ae340d0e4..69f73b51d44f 100644
--- a/svx/source/svdraw/gradtrns.cxx
+++ b/svx/source/svdraw/gradtrns.cxx
@@ -27,7 +27,7 @@
#include <vcl/outdev.hxx>
-void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, const SdrObject* pObj)
+void GradTransformer::GradToVec(GradTransGradient const & rG, GradTransVector& rV, const SdrObject* pObj)
{
// handle start color
rV.aCol1 = rG.aGradient.GetStartColor();
@@ -179,7 +179,7 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons
}
-void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, GradTransGradient& rGOld, const SdrObject* pObj,
+void GradTransformer::VecToGrad(GradTransVector const & rV, GradTransGradient& rG, GradTransGradient const & rGOld, const SdrObject* pObj,
bool bMoveSingle, bool bMoveFirst)
{
// fill old gradient to new gradient to have a base
diff --git a/svx/source/svdraw/gradtrns.hxx b/svx/source/svdraw/gradtrns.hxx
index d8efa391b680..7e6e02f1854e 100644
--- a/svx/source/svdraw/gradtrns.hxx
+++ b/svx/source/svdraw/gradtrns.hxx
@@ -45,10 +45,10 @@ class GradTransformer
public:
GradTransformer() {}
- static void GradToVec(GradTransGradient& rG, GradTransVector& rV,
+ static void GradToVec(GradTransGradient const & rG, GradTransVector& rV,
const SdrObject* pObj);
- static void VecToGrad(GradTransVector& rV, GradTransGradient& rG,
- GradTransGradient& rGOld, const SdrObject* pObj, bool bMoveSingle, bool bMoveFirst);
+ static void VecToGrad(GradTransVector const & rV, GradTransGradient& rG,
+ GradTransGradient const & rGOld, const SdrObject* pObj, bool bMoveSingle, bool bMoveFirst);
};
#endif // INCLUDED_SVX_SOURCE_SVDRAW_GRADTRNS_HXX
diff --git a/svx/source/svdraw/sdrpaintwindow.cxx b/svx/source/svdraw/sdrpaintwindow.cxx
index c3fc94e02c9f..6ca29201b6d1 100644
--- a/svx/source/svdraw/sdrpaintwindow.cxx
+++ b/svx/source/svdraw/sdrpaintwindow.cxx
@@ -38,7 +38,7 @@ class CandidateMgr
std::set<VclPtr<vcl::Window> > m_aDeletedCandidates;
DECL_LINK(WindowEventListener, VclWindowEvent&, void);
public:
- void PaintTransparentChildren(vcl::Window & rWindow, tools::Rectangle const& rPixelRect);
+ void PaintTransparentChildren(vcl::Window const & rWindow, tools::Rectangle const& rPixelRect);
~CandidateMgr();
};
@@ -62,7 +62,7 @@ CandidateMgr::~CandidateMgr()
}
}
-void PaintTransparentChildren(vcl::Window & rWindow, tools::Rectangle const& rPixelRect)
+void PaintTransparentChildren(vcl::Window const & rWindow, tools::Rectangle const& rPixelRect)
{
if (!rWindow.IsChildTransparentModeEnabled())
return;
@@ -71,7 +71,7 @@ void PaintTransparentChildren(vcl::Window & rWindow, tools::Rectangle const& rPi
aManager.PaintTransparentChildren(rWindow, rPixelRect);
}
-void CandidateMgr::PaintTransparentChildren(vcl::Window & rWindow, tools::Rectangle const& rPixelRect)
+void CandidateMgr::PaintTransparentChildren(vcl::Window const & rWindow, tools::Rectangle const& rPixelRect)
{
vcl::Window * pCandidate = rWindow.GetWindow( GetWindowType::FirstChild );
while (pCandidate)
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index 1f822d43d00e..92d2ae87e542 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -2811,7 +2811,7 @@ void SdrDragCrook::TakeSdrDragComment(OUString& rStr) const
#define DRAG_CROOK_RASTER_MAXIMUM (15)
#define DRAG_CROOK_RASTER_DISTANCE (30)
-basegfx::B2DPolyPolygon impCreateDragRaster(SdrPageView& rPageView, const tools::Rectangle& rMarkRect)
+basegfx::B2DPolyPolygon impCreateDragRaster(SdrPageView const & rPageView, const tools::Rectangle& rMarkRect)
{
basegfx::B2DPolyPolygon aRetval;
diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx
index 3b1e8d687954..ef72376bc0c4 100644
--- a/svx/source/svdraw/svdedtv.cxx
+++ b/svx/source/svdraw/svdedtv.cxx
@@ -112,7 +112,7 @@ void SdrEditView::InsertNewLayer(const OUString& rName, sal_uInt16 nPos)
mpModel->SetChanged();
}
-bool SdrEditView::ImpDelLayerCheck(SdrObjList* pOL, SdrLayerID nDelID) const
+bool SdrEditView::ImpDelLayerCheck(SdrObjList const * pOL, SdrLayerID nDelID) const
{
bool bDelAll(true);
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 84bf0b375bc2..9c7193c7a55a 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1995,7 +1995,7 @@ void SdrEditView::ConvertMarkedToPolyObj()
namespace
{
- GDIMetaFile GetMetaFile(SdrGrafObj* pGraf)
+ GDIMetaFile GetMetaFile(SdrGrafObj const * pGraf)
{
if (pGraf->HasGDIMetaFile())
return pGraf->GetTransformedGraphic(SdrGrafObjTransformsAttrs::COLOR|SdrGrafObjTransformsAttrs::MIRROR).GetGDIMetaFile();
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index 02faf7d3a171..ee854da6eb6d 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -166,7 +166,7 @@ SdrPageView* SdrObjEditView::ShowSdrPage(SdrPage* pPage)
}
/// Removes outliner views registered in other draw views that use pOutputDevice.
-void lcl_RemoveTextEditOutlinerViews(SdrObjEditView* pThis, SdrPageView* pPageView, OutputDevice* pOutputDevice)
+void lcl_RemoveTextEditOutlinerViews(SdrObjEditView const * pThis, SdrPageView const * pPageView, OutputDevice const * pOutputDevice)
{
if (!comphelper::LibreOfficeKit::isActive())
return;
@@ -454,7 +454,7 @@ void SdrObjEditView::ImpPaintOutlinerView(OutlinerView& rOutlView, const tools::
rOutlView.ShowCursor(/*bGotoCursor=*/true, /*bActivate=*/true);
}
-void SdrObjEditView::ImpInvalidateOutlinerView(OutlinerView& rOutlView) const
+void SdrObjEditView::ImpInvalidateOutlinerView(OutlinerView const & rOutlView) const
{
vcl::Window* pWin = rOutlView.GetWindow();
@@ -1277,7 +1277,7 @@ SdrPageView* SdrObjEditView::GetTextEditPageView() const
}
-OutlinerView* SdrObjEditView::ImpFindOutlinerView(vcl::Window* pWin) const
+OutlinerView* SdrObjEditView::ImpFindOutlinerView(vcl::Window const * pWin) const
{
if (pWin==nullptr) return nullptr;
if (pTextEditOutliner==nullptr) return nullptr;
@@ -2258,7 +2258,7 @@ static SfxItemSet CreatePaintSet( const sal_uInt16 *pRanges, SfxItemPool& rPool,
return aPaintSet;
}
-void SdrObjEditView::ApplyFormatPaintBrushToText( SfxItemSet& rFormatSet, SdrTextObj& rTextObj, SdrText* pText, bool bNoCharacterFormats, bool bNoParagraphFormats )
+void SdrObjEditView::ApplyFormatPaintBrushToText( SfxItemSet const & rFormatSet, SdrTextObj& rTextObj, SdrText* pText, bool bNoCharacterFormats, bool bNoParagraphFormats )
{
OutlinerParaObject* pParaObj = pText ? pText->GetOutlinerParaObject() : nullptr;
if(pParaObj)
diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx
index 54b8604b1dcd..0837835642b0 100644
--- a/svx/source/svdraw/svdfmtf.cxx
+++ b/svx/source/svdraw/svdfmtf.cxx
@@ -116,7 +116,7 @@ ImpSdrGDIMetaFileImport::ImpSdrGDIMetaFileImport(
checkClip();
}
-void ImpSdrGDIMetaFileImport::DoLoopActions(GDIMetaFile& rMtf, SvdProgressInfo* pProgrInfo, sal_uInt32* pActionsToReport)
+void ImpSdrGDIMetaFileImport::DoLoopActions(GDIMetaFile const & rMtf, SvdProgressInfo* pProgrInfo, sal_uInt32* pActionsToReport)
{
const sal_uLong nCount(rMtf.GetActionSize());
@@ -259,7 +259,7 @@ size_t ImpSdrGDIMetaFileImport::DoImport(
sal_uInt32 nActionsToReport(0);
// execute
- DoLoopActions(const_cast< GDIMetaFile& >(rMtf), pProgrInfo, &nActionsToReport);
+ DoLoopActions(rMtf, pProgrInfo, &nActionsToReport);
if(pProgrInfo)
{
@@ -659,7 +659,7 @@ void ImpSdrGDIMetaFileImport::InsertObj(SdrObject* pObj, bool bScale)
}
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaLineAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaLineAction const & rAct)
{
// #i73407# reformulation to use new B2DPolygon classes
const basegfx::B2DPoint aStart(rAct.GetStartPoint().X(), rAct.GetStartPoint().Y());
@@ -702,14 +702,14 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaLineAction& rAct)
}
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaRectAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaRectAction const & rAct)
{
SdrRectObj* pRect=new SdrRectObj(rAct.GetRect());
SetAttributes(pRect);
InsertObj(pRect);
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaRoundRectAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaRoundRectAction const & rAct)
{
SdrRectObj* pRect=new SdrRectObj(rAct.GetRect());
SetAttributes(pRect);
@@ -722,14 +722,14 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaRoundRectAction& rAct)
InsertObj(pRect);
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaEllipseAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaEllipseAction const & rAct)
{
SdrCircObj* pCirc=new SdrCircObj(OBJ_CIRC,rAct.GetRect());
SetAttributes(pCirc);
InsertObj(pCirc);
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaArcAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaArcAction const & rAct)
{
Point aCenter(rAct.GetRect().Center());
long nStart=GetAngle(rAct.GetStartPoint()-aCenter);
@@ -739,7 +739,7 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaArcAction& rAct)
InsertObj(pCirc);
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaPieAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaPieAction const & rAct)
{
Point aCenter(rAct.GetRect().Center());
long nStart=GetAngle(rAct.GetStartPoint()-aCenter);
@@ -749,7 +749,7 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaPieAction& rAct)
InsertObj(pCirc);
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaChordAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaChordAction const & rAct)
{
Point aCenter(rAct.GetRect().Center());
long nStart=GetAngle(rAct.GetStartPoint()-aCenter);
@@ -883,7 +883,7 @@ bool ImpSdrGDIMetaFileImport::isClip() const
return !maClip.getB2DRange().isEmpty();
}
-void ImpSdrGDIMetaFileImport::DoAction( MetaPolyLineAction& rAct )
+void ImpSdrGDIMetaFileImport::DoAction( MetaPolyLineAction const & rAct )
{
// #i73407# reformulation to use new B2DPolygon classes
basegfx::B2DPolygon aSource(rAct.GetPolygon().getB2DPolygon());
@@ -927,7 +927,7 @@ void ImpSdrGDIMetaFileImport::DoAction( MetaPolyLineAction& rAct )
}
}
-void ImpSdrGDIMetaFileImport::DoAction( MetaPolygonAction& rAct )
+void ImpSdrGDIMetaFileImport::DoAction( MetaPolygonAction const & rAct )
{
// #i73407# reformulation to use new B2DPolygon classes
basegfx::B2DPolygon aSource(rAct.GetPolygon().getB2DPolygon());
@@ -948,7 +948,7 @@ void ImpSdrGDIMetaFileImport::DoAction( MetaPolygonAction& rAct )
}
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaPolyPolygonAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaPolyPolygonAction const & rAct)
{
// #i73407# reformulation to use new B2DPolygon classes
basegfx::B2DPolyPolygon aSource(rAct.GetPolyPolygon().getB2DPolyPolygon());
@@ -1033,28 +1033,28 @@ void ImpSdrGDIMetaFileImport::ImportText( const Point& rPos, const OUString& rSt
InsertObj( pText, false );
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaTextAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaTextAction const & rAct)
{
OUString aStr(rAct.GetText());
aStr = aStr.copy(rAct.GetIndex(), rAct.GetLen());
ImportText( rAct.GetPoint(), aStr, rAct );
}
-void ImpSdrGDIMetaFileImport::DoAction(MetaTextArrayAction& rAct)
+void ImpSdrGDIMetaFileImport::DoAction(MetaTextArrayAction const & rAct)
{
OUString aStr(rAct.GetText());
aStr = aStr.copy(rAct.GetIndex(), rAct.GetLen());
ImportText( rAct.GetPoint(), aStr, rAct );
}
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list