From 403c13487c36f4200adf0986c5d11398f719cd7a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Aug 2015 16:28:49 +0200 Subject: loplugin:unusedmethods Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/connectivity/PColumn.hxx | 7 ------- include/connectivity/formattedcolumnvalue.hxx | 4 ---- include/connectivity/sdbcx/VCollection.hxx | 1 - include/connectivity/sqliterator.hxx | 1 - include/connectivity/sqlnode.hxx | 2 -- include/connectivity/sqlscan.hxx | 2 -- include/cppcanvas/bitmapcanvas.hxx | 8 -------- include/cppcanvas/canvas.hxx | 2 -- include/cppcanvas/canvasgraphic.hxx | 11 ----------- include/cppcanvas/color.hxx | 1 - include/cppcanvas/font.hxx | 6 ------ include/cppcanvas/polypolygon.hxx | 5 ----- include/cppcanvas/spritecanvas.hxx | 9 --------- include/dbaccess/dataview.hxx | 4 ---- include/dbaccess/genericcontroller.hxx | 1 - include/sot/object.hxx | 1 - include/sot/storage.hxx | 2 -- include/svtools/acceleratorexecute.hxx | 4 ---- include/svtools/transfer.hxx | 1 - include/svx/svdetc.hxx | 14 ++++---------- include/tools/inetmime.hxx | 14 -------------- include/vcl/longcurr.hxx | 6 ------ include/vcl/morebtn.hxx | 14 -------------- include/vcl/spin.hxx | 6 ------ include/vcl/texteng.hxx | 2 -- include/vcl/textview.hxx | 3 +-- include/vcl/txtattr.hxx | 8 -------- include/vcl/xtextedt.hxx | 5 +---- 28 files changed, 6 insertions(+), 138 deletions(-) (limited to 'include') diff --git a/include/connectivity/PColumn.hxx b/include/connectivity/PColumn.hxx index e5b4c73db2d5..741fe412bf8a 100644 --- a/include/connectivity/PColumn.hxx +++ b/include/connectivity/PColumn.hxx @@ -81,15 +81,8 @@ namespace connectivity void setFunction(bool _bFunction) { m_bFunction = _bFunction; } void setAggregateFunction(bool _bFunction) { m_bAggregateFunction = _bFunction; } void setIsSearchable( bool _bIsSearchable ) { m_bIsSearchable = _bIsSearchable; } - void setDbasePrecisionChanged(bool _bDbasePrecisionChanged) { m_bDbasePrecisionChanged = _bDbasePrecisionChanged; } - const OUString& getRealName() const { return m_aRealName; } - const OUString& getLabel() const { return m_sLabel; } - const OUString& getTableName() const { return m_TableName; } - bool getFunction() const { return m_bFunction; } - bool getDbasePrecisionChanged() const { return m_bDbasePrecisionChanged; } - public: /** creates a collection of OParseColumn, as described by a result set meta data instance. */ static ::rtl::Reference< OSQLColumns > diff --git a/include/connectivity/formattedcolumnvalue.hxx b/include/connectivity/formattedcolumnvalue.hxx index 4ce1309a9fea..f946ce264305 100644 --- a/include/connectivity/formattedcolumnvalue.hxx +++ b/include/connectivity/formattedcolumnvalue.hxx @@ -79,13 +79,9 @@ namespace dbtools void clear(); // access to the details of the formatting we determined - sal_Int32 getFormatKey() const; - sal_Int32 getFieldType() const; sal_Int16 getKeyType() const; const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumn >& getColumn() const; - const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XColumnUpdate >& - getColumnUpdate() const; bool setFormattedValue( const OUString& _rFormattedStringValue ) const; OUString getFormattedValue() const; diff --git a/include/connectivity/sdbcx/VCollection.hxx b/include/connectivity/sdbcx/VCollection.hxx index b056ddd92459..54e5a386b2d0 100644 --- a/include/connectivity/sdbcx/VCollection.hxx +++ b/include/connectivity/sdbcx/VCollection.hxx @@ -78,7 +78,6 @@ namespace connectivity virtual void disposeAndErase(sal_Int32 _nIndex) = 0; virtual void disposeElements() = 0; virtual sal_Int32 findColumn( const OUString& columnName ) = 0; - virtual OUString findColumnAtIndex( sal_Int32 _nIndex) = 0; virtual ObjectType getObject(sal_Int32 _nIndex) = 0; virtual ObjectType getObject(const OUString& columnName) = 0; virtual void setObject(sal_Int32 _nIndex,const ObjectType& _xObject) = 0; diff --git a/include/connectivity/sqliterator.hxx b/include/connectivity/sqliterator.hxx index be8274a8e607..0a9fd32e0460 100644 --- a/include/connectivity/sqliterator.hxx +++ b/include/connectivity/sqliterator.hxx @@ -215,7 +215,6 @@ namespace connectivity ::rtl::Reference getGroupColumns() const { return m_aGroupColumns;} ::rtl::Reference getOrderColumns() const { return m_aOrderColumns;} ::rtl::Reference getParameters() const { return m_aParameters; } - ::rtl::Reference getCreateColumns() const { return m_aCreateColumns;} /** return the columname and the table range @param _pColumnRef diff --git a/include/connectivity/sqlnode.hxx b/include/connectivity/sqlnode.hxx index 691cedd0e563..61c6afa4bcc0 100644 --- a/include/connectivity/sqlnode.hxx +++ b/include/connectivity/sqlnode.hxx @@ -368,8 +368,6 @@ namespace connectivity const OUString& getTokenValue() const {return m_aNodeValue;} - void setTokenValue(const OUString& rString) { if (isToken()) m_aNodeValue = rString;} - bool isLeaf() const {return m_aChildren.empty();} // negate only a searchcondition, any other rule could cause a gpf diff --git a/include/connectivity/sqlscan.hxx b/include/connectivity/sqlscan.hxx index 1506c74dd842..ad17f7d28e0d 100644 --- a/include/connectivity/sqlscan.hxx +++ b/include/connectivity/sqlscan.hxx @@ -55,8 +55,6 @@ namespace connectivity sal_Int32 SQLyygetc(); void SQLyyerror(char const *fmt); - static void output(sal_Int32) { OSL_FAIL("Internal error in sdblex.l: output not possible"); } - static void ECHO() { OSL_FAIL("Internal error in sdblex.l: ECHO not possible"); } IParseContext::InternationalKeyCode getInternationalTokenID(const char* sToken) const; // setting the new information before scanning diff --git a/include/cppcanvas/bitmapcanvas.hxx b/include/cppcanvas/bitmapcanvas.hxx index 714879230ab9..b47d438151e5 100644 --- a/include/cppcanvas/bitmapcanvas.hxx +++ b/include/cppcanvas/bitmapcanvas.hxx @@ -43,14 +43,6 @@ namespace cppcanvas { public: virtual ::basegfx::B2ISize getSize() const = 0; - - // shared_ptr does not allow for covariant return types - BitmapCanvasSharedPtr cloneBitmapCanvas() const - { - BitmapCanvasSharedPtr p( ::boost::dynamic_pointer_cast< BitmapCanvas >(this->clone()) ); - OSL_ENSURE(p.get(), "BitmapCanvas::cloneBitmapCanvas(): dynamic cast failed"); - return p; - } }; } diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx index 2104dee39a5e..3538ffd619f3 100644 --- a/include/cppcanvas/canvas.hxx +++ b/include/cppcanvas/canvas.hxx @@ -85,8 +85,6 @@ namespace cppcanvas */ virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0; - virtual FontSharedPtr createFont( const OUString& rFontName, const double& rCellSize ) const = 0; - virtual ColorSharedPtr createColor() const = 0; virtual CanvasSharedPtr clone() const = 0; diff --git a/include/cppcanvas/canvasgraphic.hxx b/include/cppcanvas/canvasgraphic.hxx index 09d8018ef76f..173ee466cef2 100644 --- a/include/cppcanvas/canvasgraphic.hxx +++ b/include/cppcanvas/canvasgraphic.hxx @@ -115,9 +115,6 @@ namespace cppcanvas /** Set object transformation matrix */ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; - /** Get object transformation matrix - */ - virtual ::basegfx::B2DHomMatrix getTransformation() const = 0; /** Set object clipping polygon */ @@ -125,18 +122,10 @@ namespace cppcanvas /** Clear object clipping polygon */ virtual void setClip() = 0; - /** Get object clipping polygon - - @return NULL, if no clip is set; otherwise, the current clip poly-polygon is returned - */ - virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0; /** Set object composite mode */ virtual void setCompositeOp( CompositeOp aOp ) = 0; - /** Get object composite mode - */ - virtual CompositeOp getCompositeOp() const = 0; /** Render to parent canvas diff --git a/include/cppcanvas/color.hxx b/include/cppcanvas/color.hxx index f259fa1ee176..b6ed71d823bf 100644 --- a/include/cppcanvas/color.hxx +++ b/include/cppcanvas/color.hxx @@ -41,7 +41,6 @@ namespace cppcanvas virtual ~Color() {} - virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const = 0; virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const = 0; }; diff --git a/include/cppcanvas/font.hxx b/include/cppcanvas/font.hxx index c7d8ad6e600e..cbe30123f924 100644 --- a/include/cppcanvas/font.hxx +++ b/include/cppcanvas/font.hxx @@ -39,12 +39,6 @@ namespace cppcanvas { public: virtual ~Font() {} - - virtual OUString getName() const = 0; - virtual double getCellSize() const = 0; - - virtual ::com::sun::star::uno::Reference< - ::com::sun::star::rendering::XCanvasFont > getUNOFont() const = 0; }; typedef ::boost::shared_ptr< ::cppcanvas::Font > FontSharedPtr; diff --git a/include/cppcanvas/polypolygon.hxx b/include/cppcanvas/polypolygon.hxx index 3cb186354512..d8a2876522dd 100644 --- a/include/cppcanvas/polypolygon.hxx +++ b/include/cppcanvas/polypolygon.hxx @@ -56,8 +56,6 @@ namespace cppcanvas class PolyPolygon : public virtual CanvasGraphic { public: - virtual void addPolygon( const ::basegfx::B2DPolygon& rPoly ) = 0; - virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly ) = 0; /** Set polygon fill color */ @@ -65,9 +63,6 @@ namespace cppcanvas /** Set polygon line color */ virtual void setRGBALineColor( Color::IntSRGBA ) = 0; - /** Get polygon fill color - */ - virtual Color::IntSRGBA getRGBAFillColor() const = 0; /** Get polygon line color */ virtual Color::IntSRGBA getRGBALineColor() const = 0; diff --git a/include/cppcanvas/spritecanvas.hxx b/include/cppcanvas/spritecanvas.hxx index 91fc52b3cc41..1ac219e7a86f 100644 --- a/include/cppcanvas/spritecanvas.hxx +++ b/include/cppcanvas/spritecanvas.hxx @@ -55,15 +55,6 @@ namespace cppcanvas virtual bool updateScreen( bool bUpdateAll ) const = 0; virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const = 0; - virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const = 0; - - // shared_ptr does not allow for covariant return types - SpriteCanvasSharedPtr cloneSpriteCanvas() const - { - SpriteCanvasSharedPtr p( ::boost::dynamic_pointer_cast< SpriteCanvas >(this->clone()) ); - OSL_ENSURE(p.get(), "SpriteCanvas::cloneSpriteCanvas(): dynamic cast failed"); - return p; - } virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const = 0; diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx index 06ee42b21ded..6b56ba28a11b 100644 --- a/include/dbaccess/dataview.hxx +++ b/include/dbaccess/dataview.hxx @@ -60,10 +60,6 @@ namespace dbaui inline IController& getCommandController() const { return *m_xController.get(); } - /** will be called when the controls need to be resized. - */ - void resizeControls(const Size& /*_rDiff*/) { Resize(); } - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() { return m_xContext;} // the default implementation simply calls resizeAll( GetSizePixel() ) diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx index 3b40f65b774c..6dad86f9a501 100644 --- a/include/dbaccess/genericcontroller.hxx +++ b/include/dbaccess/genericcontroller.hxx @@ -400,7 +400,6 @@ namespace dbaui void ImplInvalidateFeature( sal_Int32 _nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _xListener, bool _bForceBroadcast ); - bool ImplInvalidateTBItem(sal_uInt16 nId, const FeatureState& rState); void ImplBroadcastFeatureState(const OUString& _rFeature, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener, bool _bIgnoreCache); // link methods diff --git a/include/sot/object.hxx b/include/sot/object.hxx index 41077fe312d6..4d140969c286 100644 --- a/include/sot/object.hxx +++ b/include/sot/object.hxx @@ -43,7 +43,6 @@ private: static SotFactory ** GetFactoryAdress() { return &(SOTDATA()->pSotObjectFactory); } public: - static void * CreateInstance( SotObject ** = NULL ); static SotFactory * ClassFactory(); virtual void * Cast( const SotFactory * ); diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 8d0bcc8db091..33f5a83c35a0 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -60,7 +60,6 @@ private: static SotFactory ** GetFactoryAdress() { return &(SOTDATA()->pSotStorageStreamFactory); } public: - static void * CreateInstance( SotObject ** = NULL ); static SotFactory * ClassFactory(); virtual void * Cast( const SotFactory * ) SAL_OVERRIDE; @@ -113,7 +112,6 @@ private: static SotFactory ** GetFactoryAdress() { return &(SOTDATA()->pSotStorageFactory); } public: - static void * CreateInstance( SotObject ** = NULL ); static SotFactory * ClassFactory(); virtual void * Cast( const SotFactory * ) SAL_OVERRIDE; diff --git a/include/svtools/acceleratorexecute.hxx b/include/svtools/acceleratorexecute.hxx index 1f2bfc26c6ff..d25df279b6a7 100644 --- a/include/svtools/acceleratorexecute.hxx +++ b/include/svtools/acceleratorexecute.hxx @@ -200,10 +200,6 @@ class SVT_DLLPUBLIC AcceleratorExecute : private TMutexInit static vcl::KeyCode st_AWTKey2VCLKey(const css::awt::KeyEvent& aKey); - /** TODO document me */ - static css::uno::Reference< css::ui::XAcceleratorConfiguration > st_openGlobalConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext); - - /** TODO document me */ static css::uno::Reference< css::ui::XAcceleratorConfiguration > st_openModuleConfig(const css::uno::Reference< css::uno::XComponentContext >& rxContext , const css::uno::Reference< css::frame::XFrame >& xFrame); diff --git a/include/svtools/transfer.hxx b/include/svtools/transfer.hxx index c19f4039dad8..675b191a5980 100644 --- a/include/svtools/transfer.hxx +++ b/include/svtools/transfer.hxx @@ -478,7 +478,6 @@ public: // typically called by the application in ::AcceptDrop and ::ExecuteDrop and (see above) bool IsDropFormatSupported( SotClipboardFormatId nFormat ); - bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ); DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; } diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index 0f82c5b1dbad..417ddb06466c 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -70,30 +70,24 @@ private: public: SdrEngineDefaults(); - // Default Fontname ist "Times New Roman" - static void SetFontName(const OUString& rFontName) { GetDefaults().aFontName=rFontName; } - static OUString GetFontName() { return GetDefaults().aFontName; } - // Default FontFamily ist FAMILY_ROMAN - static void SetFontFamily(FontFamily eFam) { GetDefaults().eFontFamily=eFam; } - static FontFamily GetFontFamily() { return GetDefaults().eFontFamily; } + // Default FontColor ist COL_BLACK - static void SetFontColor(const Color& rColor) { GetDefaults().aFontColor=rColor; } static Color GetFontColor() { return GetDefaults().aFontColor; } + // Default FontHeight ist 847. Die Fonthoehe wird in logischen Einheiten // (MapUnit/MapFraction (siehe unten)) angegeben. Die Defaulteinstellung // 847/100mm entspricht also ca. 24 Point. Verwendet man stattdessen // beispielsweise Twips (SetMapUnit(MAP_TWIP)) (20 Twip = 1 Point) muss // man als Fonthoehe 480 angeben um 24 Point als default zu erhalten. - static void SetFontHeight(sal_uIntPtr nHeight) { GetDefaults().nFontHeight=nHeight; } static sal_uIntPtr GetFontHeight() { return GetDefaults().nFontHeight; } + // Der MapMode wird fuer den globalen Outliner benoetigt. // Gleichzeitig bekommt auch jedes neu instanziierte SdrModel // diesen MapMode default zugewiesen. // Default MapUnit ist MAP_100TH_MM - static void SetMapUnit(MapUnit eMap) { GetDefaults().eMapUnit=eMap; } static MapUnit GetMapUnit() { return GetDefaults().eMapUnit; } + // Default MapFraction ist 1/1. - static void SetMapFraction(const Fraction& rMap) { GetDefaults().aMapFraction=rMap; } static Fraction GetMapFraction() { return GetDefaults().aMapFraction; } // Einen Outliner mit den engineglobalen diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx index 23b86f1a5739..78dd8e5f2db3 100644 --- a/include/tools/inetmime.hxx +++ b/include/tools/inetmime.hxx @@ -358,9 +358,6 @@ public: static inline bool startsWithLineBreak(const sal_Unicode * pBegin, const sal_Unicode * pEnd); - static inline bool startsWithLineFolding(const sal_Char * pBegin, - const sal_Char * pEnd); - static inline bool startsWithLineFolding(const sal_Unicode * pBegin, const sal_Unicode * pEnd); @@ -569,17 +566,6 @@ inline bool INetMIME::startsWithLineBreak(const sal_Unicode * pBegin, // CR, LF } -// static -inline bool INetMIME::startsWithLineFolding(const sal_Char * pBegin, - const sal_Char * pEnd) -{ - DBG_ASSERT(pBegin && pBegin <= pEnd, - "INetMIME::startsWithLineFolding(): Bad sequence"); - - return pEnd - pBegin >= 3 && pBegin[0] == 0x0D && pBegin[1] == 0x0A - && isWhiteSpace(pBegin[2]); // CR, LF -} - // static inline bool INetMIME::startsWithLineFolding(const sal_Unicode * pBegin, const sal_Unicode * pEnd) diff --git a/include/vcl/longcurr.hxx b/include/vcl/longcurr.hxx index 0dbe82ca401f..2a00c995eedb 100644 --- a/include/vcl/longcurr.hxx +++ b/include/vcl/longcurr.hxx @@ -70,9 +70,6 @@ public: void SetValue(const BigInt& rNewValue); void SetUserValue( BigInt nNewValue ); BigInt GetValue() const; - bool IsEmptyValue() const { return GetField()->GetText().isEmpty(); } - - BigInt GetCorrectedValue() const { return mnCorrectedValue; } }; @@ -122,9 +119,6 @@ public: void Modify() SAL_OVERRIDE; void ReformatAll() SAL_OVERRIDE; - - BigInt GetValue() const - { return LongCurrencyFormatter::GetValue(); } }; #endif // INCLUDED_VCL_LONGCURR_HXX diff --git a/include/vcl/morebtn.hxx b/include/vcl/morebtn.hxx index 936cbba77d9e..01a6e95da5cf 100644 --- a/include/vcl/morebtn.hxx +++ b/include/vcl/morebtn.hxx @@ -54,26 +54,12 @@ public: void Click() SAL_OVERRIDE; - void SetDelta( sal_uLong nNewDelta ) { mnDelta = nNewDelta; } - sal_uLong GetDelta() const { return mnDelta; } - - void SetMapUnit( MapUnit eNewUnit = MAP_PIXEL ) { meUnit = eNewUnit; } - MapUnit GetMapUnit() const { return meUnit; } - using PushButton::SetState; - void SetState( bool bNewState = true ); - bool GetState() const { return mbState; } void SetText( const OUString& rNewText ) SAL_OVERRIDE; OUString GetText() const SAL_OVERRIDE; }; -inline void MoreButton::SetState( bool bNewState ) -{ - if ( mbState != bNewState ) - Click(); -} - #endif // INCLUDED_VCL_MOREBTN_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/spin.hxx b/include/vcl/spin.hxx index c97b1b11a0e7..69e6d03e0108 100644 --- a/include/vcl/spin.hxx +++ b/include/vcl/spin.hxx @@ -77,18 +77,12 @@ public: void SetRangeMax( long nNewRange ); long GetRangeMax() const { return mnMaxRange; } void SetRange( const Range& rRange ); - Range GetRange() const { return Range( GetRangeMin(), GetRangeMax() ); } void SetValue( long nValue ); long GetValue() const { return mnValue; } void SetValueStep( long nNewStep ) { mnValueStep = nNewStep; } long GetValueStep() const { return mnValueStep; } virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; - void SetUpHdl( const Link<>& rLink ) { maUpHdlLink = rLink; } - const Link<>& GetUpHdl() const { return maUpHdlLink; } - void SetDownHdl( const Link<>& rLink ) { maDownHdlLink = rLink; } - const Link<>& GetDownHdl() const { return maDownHdlLink; } - private: // moves the focus to the upper or lower rect. Return sal_True if the focus rect actually changed. SAL_DLLPRIVATE bool ImplMoveFocus( bool _bUpper ); diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index 17e07456503d..47cb547e7001 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -237,8 +237,6 @@ public: void SetFont( const vcl::Font& rFont ); const vcl::Font& GetFont() const { return maFont; } - sal_uInt16 GetDefTab() const; - void SetLeftMargin( sal_uInt16 n ); void SetUpdateMode( bool bUpdate ); diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx index e126ea23c868..39b32cf3510b 100644 --- a/include/vcl/textview.hxx +++ b/include/vcl/textview.hxx @@ -66,7 +66,6 @@ protected: TextSelection ImpMoveCursor( const KeyEvent& rKeyEvent ); TextPaM ImpDelete( sal_uInt8 nMode, sal_uInt8 nDelMode ); - void ImpSetSelection( const TextSelection& rNewSel, bool bUI ); bool IsInSelection( const TextPaM& rPaM ); void ImpPaint(vcl::RenderContext& rRenderContext, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0); @@ -80,7 +79,7 @@ protected: void ImpShowDDCursor(); bool ImplTruncateNewText( OUString& rNewText ) const; - bool ImplCheckTextLen( const OUString& rNewText ); + bool ImplCheckTextLen( const OUString& rNewText ); VirtualDevice* GetVirtualDevice(); diff --git a/include/vcl/txtattr.hxx b/include/vcl/txtattr.hxx index f82f52443fb4..fa76a484b9d4 100644 --- a/include/vcl/txtattr.hxx +++ b/include/vcl/txtattr.hxx @@ -107,15 +107,7 @@ public: TextAttribHyperLink( const TextAttribHyperLink& rAttr ); virtual ~TextAttribHyperLink(); - void SetURL( const OUString& rURL ) { maURL = rURL; } const OUString& GetURL() const { return maURL; } - - void SetDescription( const OUString& rDescr ) { maDescription = rDescr; } - const OUString& GetDescription() const { return maDescription; } - - void SetColor( const Color& rColor ) { maColor = rColor; } - const Color& GetColor() const { return maColor; } - virtual void SetFont( vcl::Font& rFont ) const SAL_OVERRIDE; virtual TextAttrib* Clone() const SAL_OVERRIDE; virtual bool operator==( const TextAttrib& rAttr ) const SAL_OVERRIDE; diff --git a/include/vcl/xtextedt.hxx b/include/vcl/xtextedt.hxx index c5dd3770851f..d54a6496d7e9 100644 --- a/include/vcl/xtextedt.hxx +++ b/include/vcl/xtextedt.hxx @@ -39,11 +39,8 @@ public: ExtTextEngine(); virtual ~ExtTextEngine(); - const OUString& GetGroupChars() const { return maGroupChars; } - void SetGroupChars( const OUString& r ) { maGroupChars = r; } TextSelection MatchGroup( const TextPaM& rCursor ) const; - - bool Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, bool bForward = true ); + bool Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, bool bForward = true ); }; class VCL_DLLPUBLIC ExtTextView : public TextView -- cgit