diff options
author | Noel Grandin <noel@peralex.com> | 2015-03-04 11:17:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-03-19 10:45:01 +0200 |
commit | c97ccd3b3635a53e6bdc07b83c9bf8666b66000a (patch) | |
tree | d52bb0c6d93c0913375fdbd8eb6d36bbae3abbfe /include/svx | |
parent | 2ebd79b3d214c62c0997606115ebc50700d6a760 (diff) |
loplugin:constantfunction: svx
Change-Id: Ib8c3599d245fbc371d00f28d812138b26c3f706d
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/fontwork.hxx | 1 | ||||
-rw-r--r-- | include/svx/hdft.hxx | 7 | ||||
-rw-r--r-- | include/svx/obj3d.hxx | 1 | ||||
-rw-r--r-- | include/svx/sdr/contact/viewcontact.hxx | 6 | ||||
-rw-r--r-- | include/svx/sdr/overlay/overlayobjectlist.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdglev.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdmodel.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdobj.hxx | 3 | ||||
-rw-r--r-- | include/svx/svdpntv.hxx | 3 |
9 files changed, 6 insertions, 21 deletions
diff --git a/include/svx/fontwork.hxx b/include/svx/fontwork.hxx index aae18aba5829..283b631f205b 100644 --- a/include/svx/fontwork.hxx +++ b/include/svx/fontwork.hxx @@ -174,7 +174,6 @@ class SVX_DLLPUBLIC SvxFontWorkDialog : public SfxDockingWindow virtual ~SvxFontWorkDialog(); void SetColorList(const XColorListRef &pTable); - void SetActive(bool bActivate = true); }; #endif // INCLUDED_SVX_FONTWORK_HXX diff --git a/include/svx/hdft.hxx b/include/svx/hdft.hxx index d7f15be412e2..ad0a5cc8cccd 100644 --- a/include/svx/hdft.hxx +++ b/include/svx/hdft.hxx @@ -62,6 +62,8 @@ public: void EnableDynamicSpacing(); protected: + static const sal_uInt16 pRanges[]; + virtual void ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE; virtual int DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE; @@ -111,7 +113,8 @@ class SVX_DLLPUBLIC SvxHeaderPage : public SvxHFPage { public: static SfxTabPage* Create( vcl::Window* pParent, const SfxItemSet* rSet ); - static const sal_uInt16* GetRanges(); + // returns the Which values to the range + static const sal_uInt16* GetRanges() { return pRanges; } private: SvxHeaderPage( vcl::Window* pParent, const SfxItemSet& rSet ); @@ -123,7 +126,7 @@ class SVX_DLLPUBLIC SvxFooterPage : public SvxHFPage { public: static SfxTabPage* Create( vcl::Window* pParent, const SfxItemSet* rSet ); - static const sal_uInt16* GetRanges(); + static const sal_uInt16* GetRanges() { return pRanges; } private: SVX_DLLPRIVATE SvxFooterPage( vcl::Window* pParent, const SfxItemSet& rSet ); diff --git a/include/svx/obj3d.hxx b/include/svx/obj3d.hxx index 6aaa25db18d8..4a0d497acb0b 100644 --- a/include/svx/obj3d.hxx +++ b/include/svx/obj3d.hxx @@ -192,7 +192,6 @@ public: // TakeObjName...() is for the display in the UI, for example "3 frames selected". virtual OUString TakeObjNameSingul() const SAL_OVERRIDE; virtual OUString TakeObjNamePlural() const SAL_OVERRIDE; - sal_uInt16 GetLogicalGroup() { return 0; } virtual E3dObject* Clone() const SAL_OVERRIDE; E3dObject& operator=( const E3dObject& rObj ); diff --git a/include/svx/sdr/contact/viewcontact.hxx b/include/svx/sdr/contact/viewcontact.hxx index 8af91c7a7af8..0d07c8f124c9 100644 --- a/include/svx/sdr/contact/viewcontact.hxx +++ b/include/svx/sdr/contact/viewcontact.hxx @@ -86,12 +86,6 @@ protected: // never be called directly ViewContact(); - // Methods to react on start getting viewed or stop getting - // viewed. This info is derived from the count of members of - // registered ViewObjectContacts. Default does nothing. - void StartGettingViewed(); - void StopGettingViewed(); - public: // basic destructor with needed cleanups virtual ~ViewContact(); diff --git a/include/svx/sdr/overlay/overlayobjectlist.hxx b/include/svx/sdr/overlay/overlayobjectlist.hxx index 57f68604147c..f807e8c96e3a 100644 --- a/include/svx/sdr/overlay/overlayobjectlist.hxx +++ b/include/svx/sdr/overlay/overlayobjectlist.hxx @@ -44,7 +44,7 @@ namespace sdr OverlayObjectVector maVector; // default value for HiTestPixel - sal_uInt32 getDefaultValueForHitTestPixel() const { return 4L; } + static sal_uInt32 getDefaultValueForHitTestPixel() { return 4; } public: OverlayObjectList() {} diff --git a/include/svx/svdglev.hxx b/include/svx/svdglev.hxx index 2d20dfeedf73..e8167dabeab2 100644 --- a/include/svx/svdglev.hxx +++ b/include/svx/svdglev.hxx @@ -31,8 +31,6 @@ class SdrGluePoint; class SVX_DLLPUBLIC SdrGlueEditView: public SdrPolyEditView { - void ImpClearVars(); - // copy marked GluePoints and mark instead of the old ones void ImpCopyMarkedGluePoints(); typedef void (*PGlueDoFunc)(SdrGluePoint&, const SdrObject* pObj, const void*, const void*, const void*, const void*, const void*); diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 3f61550a42a9..ddd7330d11ab 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -297,8 +297,6 @@ public: virtual ~SdrModel(); void ClearModel(bool bCalledFromDestructor); - // Whether the model is being streamed in at the moment - bool IsLoading() const { return false /*BFS01 bLoading */; } // Override this to enable the Swap/LoadOnDemand of graphics. // If rbDeleteAfterUse is set to sal_True the SvStream instance from // the caller will be disposed after use. diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 1d83a024e055..82e1952a8887 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -209,11 +209,9 @@ public: sal_uInt32 GetInventor() const { return nInventor;} sal_uInt16 GetId() const { return nIdentifier;} - bool HasMacro (const SdrObject* pObj) const; SdrObject* CheckMacroHit (const SdrObjMacroHitRec& rRec, const SdrObject* pObj) const; Pointer GetMacroPointer (const SdrObjMacroHitRec& rRec, const SdrObject* pObj) const; void PaintMacro (OutputDevice& rOut, const Rectangle& rDirtyRect, const SdrObjMacroHitRec& rRec, const SdrObject* pObj) const; - bool DoMacro (const SdrObjMacroHitRec& rRec, SdrObject* pObj); OUString GetMacroPopupComment(const SdrObjMacroHitRec& rRec, const SdrObject* pObj) const; }; @@ -382,7 +380,6 @@ public: void SetGridOffset( const Point& rGridOffset ){ aGridOffset = rGridOffset; } protected: void ImpDeleteUserData(); - SdrObjUserData* ImpGetMacroUserData() const; Rectangle ImpDragCalcRect(const SdrDragStat& rDrag) const; // for GetDragComment diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx index 3c7b65d88784..2bde92fcb243 100644 --- a/include/svx/svdpntv.hxx +++ b/include/svx/svdpntv.hxx @@ -483,9 +483,6 @@ public: virtual bool MouseButtonUp(const MouseEvent& /*rMEvt*/, vcl::Window* /*pWin*/) { return false; } virtual bool MouseMove(const MouseEvent& /*rMEvt*/, vcl::Window* /*pWin*/) { return false; } virtual bool Command(const CommandEvent& /*rCEvt*/, vcl::Window* /*pWin*/) { return false; } - bool Cut(sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; } - bool Yank(sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; } - bool Paste(vcl::Window* /*pWin*/=NULL, sal_uIntPtr /*nFormat*/=SDR_ANYFORMAT) { return false; } /* new interface src537 */ bool GetAttributes(SfxItemSet& rTargetSet, bool bOnlyHardAttr=false) const; |