summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 14:12:10 +0200
committerNoel Grandin <noel@peralex.com>2015-04-13 09:37:13 +0200
commit593515e529d75f08f4d3766dac78b1792aea4be4 (patch)
treea82b7d8b52106727304b092273e3b8cc7c9175d0 /include/editeng
parentee094bd46f55118993c72af719dc046476f9f311 (diff)
loplugin:staticmethods
Change-Id: I332d3b3158b46cf130540c6e1479dd01cb457d03
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/AccessibleEditableTextPara.hxx2
-rw-r--r--include/editeng/acorrcfg.hxx4
-rw-r--r--include/editeng/editeng.hxx2
-rw-r--r--include/editeng/flditem.hxx2
-rw-r--r--include/editeng/justifyitem.hxx6
-rw-r--r--include/editeng/outliner.hxx6
-rw-r--r--include/editeng/splwrap.hxx4
-rw-r--r--include/editeng/svxacorr.hxx4
-rw-r--r--include/editeng/svxrtf.hxx2
-rw-r--r--include/editeng/unoedsrc.hxx1
-rw-r--r--include/editeng/unoipset.hxx4
-rw-r--r--include/editeng/unotext.hxx2
12 files changed, 19 insertions, 20 deletions
diff --git a/include/editeng/AccessibleEditableTextPara.hxx b/include/editeng/AccessibleEditableTextPara.hxx
index 337f97a0d8a7..79c32f8078da 100644
--- a/include/editeng/AccessibleEditableTextPara.hxx
+++ b/include/editeng/AccessibleEditableTextPara.hxx
@@ -167,7 +167,7 @@ namespace accessibility
virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames (void) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// XServiceName
- OUString SAL_CALL getServiceName (void) throw (::com::sun::star::uno::RuntimeException);
+ static OUString SAL_CALL getServiceName (void) throw (::com::sun::star::uno::RuntimeException);
/** Set the current index in the accessibility parent
diff --git a/include/editeng/acorrcfg.hxx b/include/editeng/acorrcfg.hxx
index b0ecbc1b1be0..1a90fb301e7c 100644
--- a/include/editeng/acorrcfg.hxx
+++ b/include/editeng/acorrcfg.hxx
@@ -28,7 +28,7 @@ class EDITENG_DLLPUBLIC SvxBaseAutoCorrCfg : public utl::ConfigItem
{
private:
SvxAutoCorrCfg& rParent;
- com::sun::star::uno::Sequence<OUString> GetPropertyNames();
+ static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
virtual void ImplCommit() SAL_OVERRIDE;
@@ -45,7 +45,7 @@ class EDITENG_DLLPUBLIC SvxSwAutoCorrCfg : public utl::ConfigItem
{
private:
SvxAutoCorrCfg& rParent;
- com::sun::star::uno::Sequence<OUString> GetPropertyNames();
+ static com::sun::star::uno::Sequence<OUString> GetPropertyNames();
virtual void ImplCommit() SAL_OVERRIDE;
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 06d73f493c06..d3ed4b69dcb2 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -422,7 +422,7 @@ public:
void GetAllMisspellRanges( std::vector<editeng::MisspellRanges>& rRanges ) const;
void SetAllMisspellRanges( const std::vector<editeng::MisspellRanges>& rRanges );
- void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars );
+ static void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars );
void SetDefaultLanguage( LanguageType eLang );
LanguageType GetDefaultLanguage() const;
diff --git a/include/editeng/flditem.hxx b/include/editeng/flditem.hxx
index 0c41aa8827a6..13f7773ed7ed 100644
--- a/include/editeng/flditem.hxx
+++ b/include/editeng/flditem.hxx
@@ -59,7 +59,7 @@ public:
virtual bool operator==( const SvxFieldData& ) const;
virtual MetaAction* createBeginComment() const;
- MetaAction* createEndComment() const;
+ static MetaAction* createEndComment();
};
/**
diff --git a/include/editeng/justifyitem.hxx b/include/editeng/justifyitem.hxx
index 9189171a546b..3ebd449372ac 100644
--- a/include/editeng/justifyitem.hxx
+++ b/include/editeng/justifyitem.hxx
@@ -45,7 +45,7 @@ public:
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE;
- OUString GetValueText( sal_uInt16 nVal ) const;
+ static OUString GetValueText( sal_uInt16 nVal );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
@@ -78,7 +78,7 @@ public:
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE;
- OUString GetValueText( sal_uInt16 nVal ) const;
+ static OUString GetValueText( sal_uInt16 nVal );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
@@ -107,7 +107,7 @@ public:
virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE;
- OUString GetValueText( sal_uInt16 nVal ) const;
+ static OUString GetValueText( sal_uInt16 nVal );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index b973e64e1d79..cc00d310e555 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -743,7 +743,7 @@ public:
sal_Int16 GetDepth( sal_Int32 nPara ) const;
void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth );
- bool IsVisible( Paragraph* pPara ) const { return pPara->IsVisible(); }
+ static bool IsVisible( Paragraph* pPara ) { return pPara->IsVisible(); }
void EnableUndo( bool bEnable );
bool IsUndoEnabled() const;
@@ -887,7 +887,7 @@ public:
bool Collapse( Paragraph* );
void SetParaFlag( Paragraph* pPara, ParaFlag nFlag );
- bool HasParaFlag( const Paragraph* pPara, ParaFlag nFlag ) const;
+ static bool HasParaFlag( const Paragraph* pPara, ParaFlag nFlag );
// Returns an array containing the widths of the Bullet Indentations
// Last value must be -1. Is deleted by the outliner.
@@ -936,7 +936,7 @@ public:
void SetHyphenator( ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XHyphenator >& xHyph );
- void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars );
+ static void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars );
// Deprecated
void SetDefaultLanguage( LanguageType eLang );
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index 18547e96c6ac..6c77e530e1e9 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -125,9 +125,9 @@ protected:
virtual bool SpellContinue(); // Check Areas
// Result available through GetLast
virtual void ReplaceAll( const OUString &rNewText, sal_Int16 nLanguage ); //Replace word from the replace list
- ::com::sun::star::uno::Reference<
+ static ::com::sun::star::uno::Reference<
::com::sun::star::linguistic2::XDictionary >
- GetAllRightDic() const;
+ GetAllRightDic();
virtual void SpellEnd(); // Finish area
virtual void ScrollArea(); // Set ScrollArea
// Replace word
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index 98510fc1880a..e1f0ab20f12e 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -176,7 +176,7 @@ class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists
void LoadXMLExceptList_Imp( SvStringsISortDtor*& rpLst,
const sal_Char* pStrmName,
SotStorageRef& rStg);
- void SaveExceptList_Imp( const SvStringsISortDtor& rLst,
+ static void SaveExceptList_Imp( const SvStringsISortDtor& rLst,
const sal_Char* pStrmName,
SotStorageRef& rStg,
bool bConvert = false);
@@ -420,7 +420,7 @@ public:
// (used to avoid occasional 'collisions' with (Thai) input-sequence-checking)
static bool IsAutoCorrectChar( sal_Unicode cChar );
- bool NeedsHardspaceAutocorr( sal_Unicode cChar );
+ static bool NeedsHardspaceAutocorr( sal_Unicode cChar );
CharClass& GetCharClass( LanguageType eLang )
{
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx
index cf9732f7c67d..857e18c9edc7 100644
--- a/include/editeng/svxrtf.hxx
+++ b/include/editeng/svxrtf.hxx
@@ -242,7 +242,7 @@ class EDITENG_DLLPUBLIC SvxRTFParser : public SvRTFParser
protected:
virtual void InsertPara() = 0;
- OUString& DelCharAtEnd( OUString& rStr, const sal_Unicode cDel );
+ static OUString& DelCharAtEnd( OUString& rStr, const sal_Unicode cDel );
// is called for each token that is recognized in CallParser
virtual void NextToken( int nToken ) SAL_OVERRIDE;
diff --git a/include/editeng/unoedsrc.hxx b/include/editeng/unoedsrc.hxx
index 7c94aa2b002b..581093afe00b 100644
--- a/include/editeng/unoedsrc.hxx
+++ b/include/editeng/unoedsrc.hxx
@@ -210,7 +210,6 @@ public:
*/
virtual EBulletInfo GetBulletInfo( sal_Int32 nPara ) const = 0;
- OUString GetNumStr(sal_uInt16) const { return OUString(); }
virtual void SetUpdateModeForAcc(bool) {}
virtual bool GetUpdateModeForAcc() const { return true; }
diff --git a/include/editeng/unoipset.hxx b/include/editeng/unoipset.hxx
index ffaa38c4a5fb..e2f2c7e704a4 100644
--- a/include/editeng/unoipset.hxx
+++ b/include/editeng/unoipset.hxx
@@ -47,8 +47,8 @@ public:
~SvxItemPropertySet();
// Methods, which work directly with the ItemSet
- ::com::sun::star::uno::Any getPropertyValue( const SfxItemPropertySimpleEntry* pMap, const SfxItemSet& rSet, bool bSearchInParent, bool bDontConvertNegativeValues ) const;
- void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const ::com::sun::star::uno::Any& rVal, SfxItemSet& rSet, bool bDontConvertNegativeValues ) const;
+ static ::com::sun::star::uno::Any getPropertyValue( const SfxItemPropertySimpleEntry* pMap, const SfxItemSet& rSet, bool bSearchInParent, bool bDontConvertNegativeValues );
+ static void setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const ::com::sun::star::uno::Any& rVal, SfxItemSet& rSet, bool bDontConvertNegativeValues );
// Methods that use Any instead
::com::sun::star::uno::Any getPropertyValue( const SfxItemPropertySimpleEntry* pMap ) const;
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx
index 35a65f269074..736d1268e748 100644
--- a/include/editeng/unotext.hxx
+++ b/include/editeng/unotext.hxx
@@ -264,7 +264,7 @@ protected:
::com::sun::star::beans::PropertyState SAL_CALL _getPropertyState( const OUString& PropertyName, sal_Int32 nPara = -1 ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL _getPropertyStates( const ::com::sun::star::uno::Sequence< OUString >& aPropertyName, sal_Int32 nPara = -1 ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
// returns true if property found or false if unknown property
- bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, ::com::sun::star::beans::PropertyState& rState);
+ static bool _getOnePropertyStates(const SfxItemSet* pSet, const SfxItemPropertySimpleEntry* pMap, ::com::sun::star::beans::PropertyState& rState);
void SAL_CALL _setPropertyToDefault( const OUString& PropertyName, sal_Int32 nPara = -1 ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
void _setPropertyToDefault( SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara ) throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException );