summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-27 13:51:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-27 15:57:17 +0200
commitdf905f41a33d0d7d2cde7fad80c5b3dc3c837c10 (patch)
tree374d73a95196ada089e34dafea9d69746a520a28 /sfx2/inc
parentad4c7b97752b4da73808402604d6f96b39d920f5 (diff)
loplugin:constmethod in sfx2
Change-Id: Ic129a8e136dc3f3b0a36fdb83e7aa71027ada59a Reviewed-on: https://gerrit.libreoffice.org/78190 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/SfxRedactionHelper.hxx19
-rw-r--r--sfx2/inc/autoredactdialog.hxx2
2 files changed, 11 insertions, 10 deletions
diff --git a/sfx2/inc/SfxRedactionHelper.hxx b/sfx2/inc/SfxRedactionHelper.hxx
index 737357505e5d..65835d75f8eb 100644
--- a/sfx2/inc/SfxRedactionHelper.hxx
+++ b/sfx2/inc/SfxRedactionHelper.hxx
@@ -73,7 +73,7 @@ public:
* and inserts the shapes into the newly created draw pages.
* */
static void
- addPagesToDraw(uno::Reference<XComponent>& xComponent, sal_Int32 nPages,
+ addPagesToDraw(const uno::Reference<XComponent>& xComponent, sal_Int32 nPages,
const std::vector<GDIMetaFile>& aMetaFiles,
const std::vector<::Size>& aPageSizes, const PageMargins& aPageMargins,
const std::vector<std::pair<RedactionTarget*, OUString>>& r_aTableTargets,
@@ -83,29 +83,30 @@ public:
* Meant to be called after converting a document to a Draw doc
* for redaction purposes.
* */
- static void showRedactionToolbar(SfxViewFrame* pViewFrame);
+ static void showRedactionToolbar(const SfxViewFrame* pViewFrame);
/*
* Used to get the page margins from the original/source Writer document. Then we apply these values to the
* pages inserted into Draw for redaction.
* */
- static PageMargins getPageMarginsForWriter(css::uno::Reference<css::frame::XModel>& xModel);
+ static PageMargins
+ getPageMarginsForWriter(const css::uno::Reference<css::frame::XModel>& xModel);
/*
* Used to get the page margins from the original/source Calc document. Then we apply these values to the
* pages inserted into Draw for redaction.
* */
- static PageMargins getPageMarginsForCalc(css::uno::Reference<css::frame::XModel>& xModel);
+ static PageMargins getPageMarginsForCalc(const css::uno::Reference<css::frame::XModel>& xModel);
static void searchInMetaFile(const RedactionTarget* pRedactionTarget, const GDIMetaFile& rMtf,
std::vector<tools::Rectangle>& aRedactionRectangles,
- uno::Reference<XComponent>& xComponent);
+ const uno::Reference<XComponent>& xComponent);
/*
* Draws a redaction rectangle on the draw page referenced with its page number (0-based)
* */
- static void addRedactionRectToPage(uno::Reference<XComponent>& xComponent,
- uno::Reference<drawing::XDrawPage>& xPage,
+ static void addRedactionRectToPage(const uno::Reference<XComponent>& xComponent,
+ const uno::Reference<drawing::XDrawPage>& xPage,
const std::vector<tools::Rectangle>& aNewRectangles);
/*
@@ -114,8 +115,8 @@ public:
* */
static void autoRedactPage(const RedactionTarget* pRedactionTarget,
const GDIMetaFile& rGDIMetaFile,
- uno::Reference<drawing::XDrawPage>& xPage,
- uno::Reference<XComponent>& xComponent);
+ const uno::Reference<drawing::XDrawPage>& xPage,
+ const uno::Reference<XComponent>& xComponent);
/// Fill the search options based on the given redaction target
static void fillSearchOptions(i18nutil::SearchOptions2& rSearchOpt,
diff --git a/sfx2/inc/autoredactdialog.hxx b/sfx2/inc/autoredactdialog.hxx
index f7cdecc15cce..6b9f6e2e783e 100644
--- a/sfx2/inc/autoredactdialog.hxx
+++ b/sfx2/inc/autoredactdialog.hxx
@@ -70,7 +70,7 @@ public:
void InsertTarget(RedactionTarget* pTarget);
void SelectByName(const OUString& sName);
RedactionTarget* GetTargetByName(const OUString& sName);
- OUString GetNameProposal();
+ OUString GetNameProposal() const;
void unselect_all() { m_xControl->unselect_all(); }
bool has_focus() const { return m_xControl->has_focus(); }