diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-06 09:11:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-06 13:14:08 +0000 |
commit | 032c0ec6b18718dc2bde580ced9781048a2fdbb9 (patch) | |
tree | 4079ce5acbfe57705195d9531cb81b816e4ee3a9 /include/svl | |
parent | 593206bda7ae6b522a5f29aef25445722aedeb4c (diff) |
loplugin:unusedmethods svl
Change-Id: Ic136cce6abef44291b7236a6d709f0eee391f311
Reviewed-on: https://gerrit.libreoffice.org/16784
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/adrparse.hxx | 6 | ||||
-rw-r--r-- | include/svl/ctypeitm.hxx | 1 | ||||
-rw-r--r-- | include/svl/currencytable.hxx | 1 | ||||
-rw-r--r-- | include/svl/custritm.hxx | 3 | ||||
-rw-r--r-- | include/svl/filerec.hxx | 131 | ||||
-rw-r--r-- | include/svl/flagitem.hxx | 1 | ||||
-rw-r--r-- | include/svl/inethist.hxx | 8 | ||||
-rw-r--r-- | include/svl/int64item.hxx | 1 | ||||
-rw-r--r-- | include/svl/itemiter.hxx | 6 | ||||
-rw-r--r-- | include/svl/itempool.hxx | 1 | ||||
-rw-r--r-- | include/svl/listener.hxx | 1 | ||||
-rw-r--r-- | include/svl/macitem.hxx | 8 | ||||
-rw-r--r-- | include/svl/ondemand.hxx | 36 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/rectitem.hxx | 4 | ||||
-rw-r--r-- | include/svl/rngitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/srchitem.hxx | 3 | ||||
-rw-r--r-- | include/svl/style.hxx | 15 | ||||
-rw-r--r-- | include/svl/stylepool.hxx | 5 | ||||
-rw-r--r-- | include/svl/szitem.hxx | 5 | ||||
-rw-r--r-- | include/svl/undo.hxx | 1 | ||||
-rw-r--r-- | include/svl/visitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 4 | ||||
-rw-r--r-- | include/svl/zformat.hxx | 20 |
24 files changed, 3 insertions, 267 deletions
diff --git a/include/svl/adrparse.hxx b/include/svl/adrparse.hxx index e6c08e84cb24..b4e4f1b2e678 100644 --- a/include/svl/adrparse.hxx +++ b/include/svl/adrparse.hxx @@ -65,12 +65,6 @@ public: return nIndex == 0 ? m_aFirst.m_aAddrSpec : m_aRest[ nIndex - 1 ]->m_aAddrSpec; } - - const OUString& GetRealName(sal_Int32 nIndex) const - { - return nIndex == 0 ? m_aFirst.m_aRealName : - m_aRest[ nIndex - 1 ]->m_aRealName; - } }; #endif // INCLUDED_SVL_ADRPARSE_HXX diff --git a/include/svl/ctypeitm.hxx b/include/svl/ctypeitm.hxx index abb900003f54..11a4e97f8129 100644 --- a/include/svl/ctypeitm.hxx +++ b/include/svl/ctypeitm.hxx @@ -50,7 +50,6 @@ public: void SetValue( const OUString& rNewVal ); using SfxPoolItem::Compare; - virtual int Compare( const SfxPoolItem &rWith, const IntlWrapper& rIntlWrapper ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, diff --git a/include/svl/currencytable.hxx b/include/svl/currencytable.hxx index ed2e5f47fd47..44ead72418b7 100644 --- a/include/svl/currencytable.hxx +++ b/include/svl/currencytable.hxx @@ -23,7 +23,6 @@ public: typedef DataType::const_iterator const_iterator; iterator begin(); - const_iterator begin() const; NfCurrencyEntry& operator[] ( size_t i ); const NfCurrencyEntry& operator[] ( size_t i ) const; diff --git a/include/svl/custritm.hxx b/include/svl/custritm.hxx index 0897ab5d43d1..e8e321caf1e5 100644 --- a/include/svl/custritm.hxx +++ b/include/svl/custritm.hxx @@ -48,9 +48,6 @@ public: virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual int Compare(SfxPoolItem const & rWith, - IntlWrapper const & rIntlWrapper) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, diff --git a/include/svl/filerec.hxx b/include/svl/filerec.hxx index f66634d1ba40..cd949fb02003 100644 --- a/include/svl/filerec.hxx +++ b/include/svl/filerec.hxx @@ -89,7 +89,6 @@ public: inline SvStream& operator*() const; - inline void Reset(); sal_uInt32 Close( bool bSeekToEndOfRec = true ); private: @@ -258,9 +257,6 @@ public: SfxMiniRecordReader( SvStream *pStream, sal_uInt8 nTag ); inline ~SfxMiniRecordReader(); - inline sal_uInt8 GetTag() const; - inline bool IsValid() const; - inline SvStream& operator*() const; inline void Skip(); @@ -303,8 +299,6 @@ protected: sal_uInt16 nTag, sal_uInt8 nCurVer ); public: - inline void Reset(); - sal_uInt32 Close( bool bSeekToEndOfRec = true ); }; @@ -335,14 +329,6 @@ protected: pStream, SFX_REC_PRETAG_EXT ); } bool FindHeader_Impl( sal_uInt16 nTypes, sal_uInt16 nTag ); - bool ReadHeader_Impl( sal_uInt16 nTypes ); - -public: - - inline sal_uInt16 GetTag() const; - - inline sal_uInt8 GetVersion() const; - inline bool HasVersion( sal_uInt16 nVersion ) const; }; /** @@ -406,10 +392,6 @@ protected: public: inline ~SfxMultiFixRecordWriter(); - inline void NewContent(); - - inline void Reset(); - sal_uInt32 Close( bool bSeekToEndOfRec = true ); }; @@ -512,9 +494,6 @@ public: sal_uInt8 nRecordVer ); void NewContent( sal_uInt16 nTag, sal_uInt8 nVersion ); -// private: not possible, since some compilers then make the previous also private - void NewContent() - { OSL_FAIL( "NewContent() only allowed with args" ); } }; /** Read multiple content items of an existing record @@ -571,9 +550,6 @@ public: bool GetContent(); inline sal_uInt16 GetContentTag(); inline sal_uInt8 GetContentVersion() const; - inline bool HasContentVersion( sal_uInt16 nVersion ) const; - - inline sal_uInt32 ContentCount() const; }; /** create a mini record @@ -613,12 +589,6 @@ inline SvStream& SfxMiniRecordWriter::operator*() const return *_pStream; } -inline void SfxMiniRecordWriter::Reset() -{ - _pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI ); - _bHeaderOk = false; -} - /** The dtor moves the stream automatically to the position directly behind the record */ inline SfxMiniRecordReader::~SfxMiniRecordReader() { @@ -633,28 +603,6 @@ inline void SfxMiniRecordReader::Skip() _bSkipped = true; } -/** Get the pre-tag of this record - * - * The pre-tag might also be SFX_REC_PRETAG_EXT or SFX_REC_PRETAG_EOR. - * The latter means that in the stream the error code ERRCODE_IO_WRONGFORMAT - * is set. The former is valid, since extended records are just building on - * top of SfxMiniRecord. - * - * @return The pre-tag - */ -inline sal_uInt8 SfxMiniRecordReader::GetTag() const -{ - return _nPreTag; -} - -/** This method allows to check if the record could be recreated successfully - * from the stream and, hence, was correct for this record type. - */ -inline bool SfxMiniRecordReader::IsValid() const -{ - return _nPreTag != SFX_REC_PRETAG_EOR; -} - /** get the owning stream * * This method returns the stream in which the record is contained. @@ -691,30 +639,6 @@ inline sal_uInt32 SfxSingleRecordWriter::Close( bool bSeekToEndOfRec ) return nRet; } -inline void SfxSingleRecordWriter::Reset() -{ - _pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI + - SFX_REC_HEADERSIZE_SINGLE ); - _bHeaderOk = false; -} - -/** @returns the tag for the overall record (stored in the record's head) */ -inline sal_uInt16 SfxSingleRecordReader::GetTag() const -{ - return _nRecordTag; -} - -/** @returns version of the record */ -inline sal_uInt8 SfxSingleRecordReader::GetVersion() const -{ - return _nRecordVer; -} - -/** determine if the read record has at least the given version */ -inline bool SfxSingleRecordReader::HasVersion( sal_uInt16 nVersion ) const -{ - return _nRecordVer >= nVersion; -} /** The destructor closes the record automatically if not done earlier */ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter() @@ -724,33 +648,6 @@ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter() Close(); } -/** add a new content into a record - * - * @note each, also the first record, must be initialized by this method - */ -inline void SfxMultiFixRecordWriter::NewContent() -{ - #ifdef DBG_UTIL - sal_uLong nOldStartPos; - // store starting position of the current content - CAUTION: sub classes! - nOldStartPos = _nContentStartPos; - #endif - _nContentStartPos = _pStream->Tell(); - -#ifdef DBG_UTIL - // is there a previous content? - if ( _nContentCount ) - { - // check if the previous content stays in specified max. size - DBG_ASSERT( _nContentStartPos - nOldStartPos == _nContentSize, - "wrong content size detected" ); - } -#endif - - // count how many - ++_nContentCount; -} - /** * Creates a SfxMultiMixRecord in the given stream with a separate tags and * versions of its content parts. The sizes of each part are calculated @@ -767,14 +664,6 @@ inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter( SvStream* pStream, { } -inline void SfxMultiFixRecordWriter::Reset() -{ - _pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI + - SFX_REC_HEADERSIZE_SINGLE + - SFX_REC_HEADERSIZE_MULTI ); - _bHeaderOk = false; -} - /** @returns the tag of the last opened content * @see SfxMultiRecordReder::GetContent() */ @@ -791,26 +680,6 @@ inline sal_uInt8 SfxMultiRecordReader::GetContentVersion() const return _nContentVer; } -/** Determines if the given version is in the last opened content - * - * This method checks if the version is contained in the last version of the - * content that was opened with SfxMultiRecordReder::GetContent(). - * - * @param nVersion The version to find - * @return true, if found - * @see SfxMultiRecordReder::GetContent() - */ -inline bool SfxMultiRecordReader::HasContentVersion( sal_uInt16 nVersion ) const -{ - return _nContentVer >= nVersion; -} - -/** @returns number of this record's contents */ -inline sal_uInt32 SfxMultiRecordReader::ContentCount() const -{ - return _nContentCount; -} - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/flagitem.hxx b/include/svl/flagitem.hxx index cabfd16f6013..0271f2353427 100644 --- a/include/svl/flagitem.hxx +++ b/include/svl/flagitem.hxx @@ -55,7 +55,6 @@ public: nVal = nNewVal; } bool GetFlag( sal_uInt8 nFlag ) const { return ( (nVal & ( 1<<nFlag))); } - void SetFlag( sal_uInt8 nFlag, bool bVal ) { if(bVal) { nVal |= (1<<nFlag); } else { nVal &= ~(1<<nFlag);};} }; #endif diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx index 3fcca5eb0d49..fd4ff0356274 100644 --- a/include/svl/inethist.hxx +++ b/include/svl/inethist.hxx @@ -96,14 +96,6 @@ public: if (QueryProtocol (rUrl.GetProtocol())) PutUrl_Impl (rUrl); } - - void PutUrl (const OUString &rUrl) - { - INetProtocol eProto = - INetURLObject::CompareProtocolScheme (rUrl); - if (QueryProtocol (eProto)) - PutUrl_Impl (INetURLObject (rUrl)); - } }; // broadcasted from PutUrl(). diff --git a/include/svl/int64item.hxx b/include/svl/int64item.hxx index 9c7ebd5b125d..45e6a8aabd76 100644 --- a/include/svl/int64item.hxx +++ b/include/svl/int64item.hxx @@ -27,7 +27,6 @@ public: virtual bool operator== ( const SfxPoolItem& rItem ) const SAL_OVERRIDE; virtual int Compare( const SfxPoolItem& r ) const SAL_OVERRIDE; - virtual int Compare( const SfxPoolItem& r, const IntlWrapper& rIntlWrapper ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation, SfxMapUnit, SfxMapUnit, diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx index 691a734501f2..30b6bd13d00d 100644 --- a/include/svl/itemiter.hxx +++ b/include/svl/itemiter.hxx @@ -43,18 +43,12 @@ public: m_nCurrent = m_nStart; return m_rSet.m_nCount ? *(m_rSet.m_pItems + m_nCurrent) : nullptr; } - const SfxPoolItem* LastItem() - { - m_nCurrent = m_nEnd; - return m_rSet.m_nCount ? *(m_rSet.m_pItems + m_nCurrent) : nullptr; - } const SfxPoolItem* GetCurItem() { return m_rSet.m_nCount ? *(m_rSet.m_pItems + m_nCurrent) : nullptr; } const SfxPoolItem* NextItem(); - bool IsAtStart() const { return m_nCurrent == m_nStart; } bool IsAtEnd() const { return m_nCurrent == m_nEnd; } sal_uInt16 GetCurPos() const { return m_nCurrent; } diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 39f0b797fa4a..efc1c4a254c1 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -210,7 +210,6 @@ public: sal_uInt16 nOldStart, sal_uInt16 nOldEnd, const sal_uInt16 *pWhichIdTab ); sal_uInt16 GetNewWhich( sal_uInt16 nOldWhich ) const; - sal_uInt16 GetVersion() const; void SetFileFormatVersion( sal_uInt16 nFileFormatVersion ); bool IsCurrentVersionLoading() const; diff --git a/include/svl/listener.hxx b/include/svl/listener.hxx index 1dbf15a698c7..ed809faa4974 100644 --- a/include/svl/listener.hxx +++ b/include/svl/listener.hxx @@ -51,7 +51,6 @@ public: bool StartListening( SvtBroadcaster& rBroadcaster ); bool EndListening( SvtBroadcaster& rBroadcaster ); void EndListeningAll(); - bool IsListening( SvtBroadcaster& rBroadcaster ) const; void CopyAllBroadcasters( const SvtListener& r ); bool HasBroadcaster() const; diff --git a/include/svl/macitem.hxx b/include/svl/macitem.hxx index a4ab2a710c26..8046edaea427 100644 --- a/include/svl/macitem.hxx +++ b/include/svl/macitem.hxx @@ -88,9 +88,6 @@ public: SvxMacroTableDtor& operator=( const SvxMacroTableDtor &rCpy ); bool operator==( const SvxMacroTableDtor& rOther ) const; - // deletes all entries - void clear() { aSvxMacroTable.clear(); } - SvStream& Read( SvStream &, sal_uInt16 nVersion = SVX_MACROTBL_AKTVERSION ); SvStream& Write( SvStream & ) const; @@ -145,7 +142,6 @@ public: inline const SvxMacro& GetMacro( sal_uInt16 nEvent ) const; inline bool HasMacro( sal_uInt16 nEvent ) const; void SetMacro( sal_uInt16 nEvent, const SvxMacro& ); - inline bool DelMacro( sal_uInt16 nEvent ); private: SvxMacroTableDtor aMacroTable; @@ -170,10 +166,6 @@ inline const SvxMacro& SvxMacroItem::GetMacro( sal_uInt16 nEvent ) const { return *(aMacroTable.Get(nEvent)); } -inline bool SvxMacroItem::DelMacro( sal_uInt16 nEvent ) -{ - return aMacroTable.Erase(nEvent); -} #endif diff --git a/include/svl/ondemand.hxx b/include/svl/ondemand.hxx index 2da0414aeb92..9e9ddbb83b7f 100644 --- a/include/svl/ondemand.hxx +++ b/include/svl/ondemand.hxx @@ -94,8 +94,6 @@ public: bool isInitialized() const { return bInitialized; } - bool is() const { return pCurrent != NULL; } - void init( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const LanguageTag& rLanguageTag @@ -138,21 +136,6 @@ public: LanguageType getCurrentLanguage() const { return eCurrentLanguage; } - LocaleDataWrapper* getAnyLocale() - { - if ( !pAny ) - { - pAny = new LocaleDataWrapper( m_xContext, pCurrent->getLanguageTag() ); - eLastAnyLanguage = eCurrentLanguage; - } - else if ( pCurrent != pAny ) - { - pAny->setLanguageTag( pCurrent->getLanguageTag() ); - eLastAnyLanguage = eCurrentLanguage; - } - return pAny; - } - const LocaleDataWrapper* get() const { return pCurrent; } const LocaleDataWrapper* operator->() const { return get(); } const LocaleDataWrapper& operator*() const { return *get(); } @@ -191,10 +174,6 @@ public: delete pPtr; } - bool isInitialized() const { return bInitialized; } - - bool is() const { return pPtr != NULL; } - void init( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, const ::com::sun::star::lang::Locale& rLocale @@ -271,8 +250,6 @@ public: bool isInitialized() const { return bInitialized; } - bool is() const { return pPtr != NULL; } - void init( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext, LanguageType eLang, @@ -308,15 +285,6 @@ public: return pPtr; } - const ::utl::TransliterationWrapper* getForModule( const OUString& rModule, LanguageType eLang ) const - { - if ( !pPtr ) - pPtr = new ::utl::TransliterationWrapper( m_xContext, nType ); - pPtr->loadModuleByImplName( rModule, eLang ); - bValid = false; // reforce settings change in get() - return pPtr; - } - const ::utl::TransliterationWrapper* operator->() const { return get(); } const ::utl::TransliterationWrapper& operator*() const { return *get(); } }; @@ -352,8 +320,6 @@ public: delete pPtr; } - bool isInitialized() const { return bInitialized; } - void init( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ) @@ -367,8 +333,6 @@ public: bInitialized = true; } - bool is() const { return pPtr != NULL; } - NativeNumberWrapper* get() const { if ( !pPtr ) diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 8a687bfaa358..06c7f7f6d323 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -170,7 +170,6 @@ public: bool operator!=( const SfxPoolItem& rItem ) const { return !(*this == rItem); } virtual int Compare( const SfxPoolItem &rWith ) const; - virtual int Compare( const SfxPoolItem &rWith, const IntlWrapper& rIntlWrapper ) const; /** @return true if it has a valid string representation */ virtual bool GetPresentation( SfxItemPresentation ePresentation, @@ -270,7 +269,6 @@ public: // create a copy of itself virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; - void SetWhich(sal_uInt16 nWh) { m_nWhich = nWh; } }; class SVL_DLLPUBLIC SfxSetItem: public SfxPoolItem diff --git a/include/svl/rectitem.hxx b/include/svl/rectitem.hxx index dd6826ecf841..61fcdc833b3b 100644 --- a/include/svl/rectitem.hxx +++ b/include/svl/rectitem.hxx @@ -49,10 +49,6 @@ public: virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const SAL_OVERRIDE; const Rectangle& GetValue() const { return aVal; } - void SetValue( const Rectangle& rNewVal ) { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - aVal = rNewVal; - } virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, diff --git a/include/svl/rngitem.hxx b/include/svl/rngitem.hxx index ac5bd12904aa..1fc7692edd43 100644 --- a/include/svl/rngitem.hxx +++ b/include/svl/rngitem.hxx @@ -45,10 +45,6 @@ public: const IntlWrapper * = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; inline sal_uInt16& From() { return nFrom; } - inline sal_uInt16 From() const { return nFrom; } - inline sal_uInt16& To() { return nTo; } - inline sal_uInt16 To() const { return nTo; } - inline bool HasRange() const { return nTo>nFrom; } virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE; virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE; }; @@ -73,7 +69,6 @@ public: OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; - inline const sal_uInt16* GetRanges() const { return _pRanges; } virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE; virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE; }; diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx index 9c6be0c491eb..9f2ab1a058da 100644 --- a/include/svl/srchitem.hxx +++ b/include/svl/srchitem.hxx @@ -136,9 +136,6 @@ public: bool GetPattern() const { return m_bPattern; } void SetPattern(bool bNewPattern) { m_bPattern = bNewPattern; } - bool IsContent() const { return m_bContent; } - void SetContent( bool bNew ) { m_bContent = bNew; } - SfxStyleFamily GetFamily() const { return m_eFamily; } void SetFamily( SfxStyleFamily eNewFamily ) { m_eFamily = eNewFamily; } diff --git a/include/svl/style.hxx b/include/svl/style.hxx index 5798b4936285..43849dd4977c 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -124,9 +124,6 @@ public: virtual bool HasParentSupport() const; // Default true virtual bool HasClearParentSupport() const; // Default false virtual bool IsUsed() const; // Default true - // Default from the Itemset; either from the passed one - // or from the Set returned by GetItemSet() - virtual OUString GetDescription(); virtual OUString GetDescription( SfxMapUnit eMetric ); SfxStyleSheetBasePool& GetPool() { return *pPool; } @@ -173,7 +170,6 @@ protected: private: - sal_uInt16 GetPos() { return nAktPosition; } SVL_DLLPRIVATE bool IsTrivialSearch(); SfxStyleSheetBase* pAktStyle; @@ -235,9 +231,6 @@ public: SfxStyleFamily eFam, sal_uInt16 nMask = SFXSTYLEBIT_ALL); - virtual void Replace( - SfxStyleSheetBase& rSource, SfxStyleSheetBase& rTarget ); - virtual void Remove( SfxStyleSheetBase* ); void Insert( SfxStyleSheetBase* ); @@ -246,8 +239,6 @@ public: SfxStyleSheetBasePool& operator=( const SfxStyleSheetBasePool& ); SfxStyleSheetBasePool& operator+=( const SfxStyleSheetBasePool& ); - unsigned GetNumberOfStyles(); - SfxStyleSheetBase* First(); SfxStyleSheetBase* Next(); virtual SfxStyleSheetBase* Find( const OUString&, SfxStyleFamily eFam, sal_uInt16 n=SFXSTYLEBIT_ALL ); @@ -318,12 +309,8 @@ enum SfxStyleSheetHintId class SVL_DLLPUBLIC SfxStyleSheetPoolHint : public SfxHint { - SfxStyleSheetHintId nHint; - public: - SfxStyleSheetPoolHint(SfxStyleSheetHintId nArgHint) : nHint(nArgHint){} - SfxStyleSheetHintId GetHint() const - { return nHint; } + SfxStyleSheetPoolHint(SfxStyleSheetHintId ) {} }; diff --git a/include/svl/stylepool.hxx b/include/svl/stylepool.hxx index 61eca0bac67d..18f3bef940e1 100644 --- a/include/svl/stylepool.hxx +++ b/include/svl/stylepool.hxx @@ -67,10 +67,6 @@ public: IStylePoolIteratorAccess* createIterator( const bool bSkipUnusedItemSets = false, const bool bSkipIgnorableItems = false ); - /** Returns the number of styles - */ - sal_Int32 getCount() const; - virtual ~StylePool(); static OUString nameOf( SfxItemSet_Pointer_t pSet ); @@ -83,7 +79,6 @@ public: If there is no more SfxItemSet, the delivered share_pointer is empty. */ virtual StylePool::SfxItemSet_Pointer_t getNext() = 0; - virtual OUString getName() = 0; virtual ~IStylePoolIteratorAccess() {}; }; #endif diff --git a/include/svl/szitem.hxx b/include/svl/szitem.hxx index e807a553baf8..b7aeff9574c5 100644 --- a/include/svl/szitem.hxx +++ b/include/svl/szitem.hxx @@ -52,11 +52,6 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Create(SvStream &, sal_uInt16 nItemVersion) const SAL_OVERRIDE; virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const SAL_OVERRIDE; - - const Size& GetValue() const { return aVal; } - void SetValue( const Size& rNewVal ) { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - aVal = rNewVal; } }; #endif diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 19f190140aa7..bbae41f66cfb 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -177,7 +177,6 @@ public: virtual void resetAll() = 0; virtual void listActionEntered( const OUString& i_comment ) = 0; virtual void listActionLeft( const OUString& i_comment ) = 0; - virtual void listActionLeftAndMerged() = 0; virtual void listActionCancelled() = 0; virtual void undoManagerDying() = 0; diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx index 9a9351efc116..109b631f93fc 100644 --- a/include/svl/visitem.hxx +++ b/include/svl/visitem.hxx @@ -71,8 +71,6 @@ public: OUString GetValueTextByVal(bool bTheValue) const; bool GetValue() const { return m_nValue.bVisible; } - - void SetValue(bool bVisible) { m_nValue.bVisible = bVisible; } }; #endif // INCLUDED_SVL_VISITEM_HXX diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 0127662ebcfb..df4391f2c37a 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -247,7 +247,6 @@ public: sal_uInt16 GetPositiveFormat() const { return nPositiveFormat; } sal_uInt16 GetNegativeFormat() const { return nNegativeFormat; } sal_uInt16 GetDigits() const { return nDigits; } - sal_Unicode GetZeroChar() const { return cZeroChar; } /** [$DM-407] (bBank==false) or [$DEM] (bBank==true) is returned. If bBank==false and @@ -602,9 +601,6 @@ public: @ATTENTION! Also clears the old table using ClearMergeTable() */ SvNumberFormatterMergeMap ConvertMergeTableToMap(); - /// Return the last used position ever of a language/country combination - sal_uInt16 GetLastInsertKey(sal_uInt32 CLOffset); - /** Return the format index of a builtin format for a specific language/country. If nFormat is not a builtin format nFormat is returned. */ sal_uInt32 GetFormatForLanguageIfBuiltIn( sal_uInt32 nFormat, diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index 403ba2936ccd..21c106ce9bfe 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -87,10 +87,9 @@ public: SvNumberNatNum() : eLang( LANGUAGE_DONTKNOW ), nNum(0), bDBNum(false), bDate(false), bSet(false) {} bool IsComplete() const { return bSet && eLang != LANGUAGE_DONTKNOW; } - sal_uInt8 GetRawNum() const { return nNum; } - sal_uInt8 GetNatNum() const { return bDBNum ? MapDBNumToNatNum( nNum, eLang, bDate ) : nNum; } + sal_uInt8 GetNatNum() const { return bDBNum ? MapDBNumToNatNum( nNum, eLang, bDate ) : nNum; } #ifdef THE_FUTURE - sal_uInt8 GetDBNum() const { return bDBNum ? nNum : MapNatNumToDBNum( nNum, eLang, bDate ); } + sal_uInt8 GetDBNum() const { return bDBNum ? nNum : MapNatNumToDBNum( nNum, eLang, bDate ); } #endif LanguageType GetLang() const { return eLang; } void SetLang( LanguageType e ) { eLang = e; } @@ -200,9 +199,6 @@ public: const LocaleDataWrapper& rLoc, bool bDontQuote = false ) const; - void SetUsed(const bool b) { bIsUsed = b; } - bool GetUsed() const { return bIsUsed; } - bool IsStarFormatSupported() const { return bStarFlag; } void SetStarFormatSupport( bool b ) { bStarFlag = b; } /** @@ -384,8 +380,6 @@ public: or: MM/YY => ('M' << 8) | 'Y' */ sal_uInt32 GetExactDateOrder() const; - ImpSvNumberformatScan& ImpGetScan() const { return rScan; } - // used in XML export void GetConditions( SvNumberformatLimitOps& rOper1, double& rVal1, SvNumberformatLimitOps& rOper2, double& rVal2 ) const; @@ -398,16 +392,6 @@ public: ::com::sun::star::i18n::NativeNumberXmlAttributes& rAttr, sal_uInt16 nNumFor ) const; - /** @returns <TRUE/> if E,EE,R,RR,AAA,AAAA in format code of subformat - nNumFor (0..3) and <b>no</b> preceding calendar was specified and the - currently loaded calendar is "gregorian". */ - bool IsOtherCalendar( sal_uInt16 nNumFor ) const - { - if ( nNumFor < 4 ) - return ImpIsOtherCalendar( NumFor[nNumFor] ); - return false; - } - /** Switches to the first non-"gregorian" calendar, but only if the current calendar is "gregorian"; original calendar name and date/time returned, but only if calendar switched and rOrgCalendar was empty. */ |