diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-14 11:27:52 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-14 10:21:55 +0000 |
commit | 06ea347b939895d3091ce747c26de58f4d4a766a (patch) | |
tree | e93a25d2aadc36c263a8ccd8b593449b37fb8b6b /svtools | |
parent | 9be8c4f21200aeec5b334d9536b3b7a0b72c24fa (diff) |
loplugin:unusedmethods svtools
Change-Id: I04ad31055c04a247faddf4311943ca769051473c
Reviewed-on: https://gerrit.libreoffice.org/17032
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
28 files changed, 0 insertions, 334 deletions
diff --git a/svtools/inc/table/defaultinputhandler.hxx b/svtools/inc/table/defaultinputhandler.hxx index 58aa55e4a350..af4f668e4fc5 100644 --- a/svtools/inc/table/defaultinputhandler.hxx +++ b/svtools/inc/table/defaultinputhandler.hxx @@ -50,10 +50,6 @@ namespace svt { namespace table virtual bool KeyInput ( ITableControl& _rControl, const KeyEvent& rKEvt ) SAL_OVERRIDE; virtual bool GetFocus ( ITableControl& _rControl ) SAL_OVERRIDE; virtual bool LoseFocus ( ITableControl& _rControl ) SAL_OVERRIDE; - virtual bool RequestHelp ( ITableControl& _rControl, const HelpEvent& rHEvt ) SAL_OVERRIDE; - virtual bool Command ( ITableControl& _rControl, const CommandEvent& rCEvt ) SAL_OVERRIDE; - virtual bool PreNotify ( ITableControl& _rControl, NotifyEvent& rNEvt ) SAL_OVERRIDE; - virtual bool Notify ( ITableControl& _rControl, NotifyEvent& rNEvt ) SAL_OVERRIDE; }; diff --git a/svtools/inc/table/tablecontrol.hxx b/svtools/inc/table/tablecontrol.hxx index 22242efc5304..6fe21b375bf9 100644 --- a/svtools/inc/table/tablecontrol.hxx +++ b/svtools/inc/table/tablecontrol.hxx @@ -106,32 +106,6 @@ namespace svt { namespace table */ bool GoTo( ColPos _nColumnPos, RowPos _nRow); - /** moves the active cell to the given column, by keeping the active row - - @return - <sal_True/> if the move was successful, <FALSE/> otherwise. Usual - failure conditions include some other instance vetoing the move, - or impossibility to execute the move at all (for instance because - of invalid coordinates). - */ - inline bool GoToColumn( ColPos _nColumn ) - { - return GoTo( _nColumn, GetCurrentRow() ); - } - - /** moves the active cell to the given row, by keeping the active column - - @return - <sal_True/> if the move was successful, <FALSE/> otherwise. Usual - failure conditions include some other instance vetoing the move, - or impossibility to execute the move at all (for instance because - of invalid coordinates). - */ - bool GoToRow( RowPos _nRow ) - { - return GoTo( GetCurrentColumn(), _nRow ); - } - SVT_DLLPRIVATE virtual void Resize() SAL_OVERRIDE; void Select(); @@ -173,7 +147,6 @@ namespace svt { namespace table virtual bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) SAL_OVERRIDE; virtual long GetRowCount() const SAL_OVERRIDE; virtual long GetColumnCount() const SAL_OVERRIDE; - virtual bool HasRowHeader() const SAL_OVERRIDE; virtual bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint ) SAL_OVERRIDE; virtual Rectangle calcHeaderRect( bool _bIsColumnBar, bool _bOnScreen = true ) SAL_OVERRIDE; virtual Rectangle calcHeaderCellRect( bool _bIsColumnBar, sal_Int32 nPos) SAL_OVERRIDE; @@ -186,7 +159,6 @@ namespace svt { namespace table virtual OUString GetRowName(sal_Int32 _nIndex) const SAL_OVERRIDE; virtual OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const SAL_OVERRIDE; virtual OUString GetColumnName( sal_Int32 _nIndex ) const SAL_OVERRIDE; - virtual css::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const SAL_OVERRIDE; virtual bool HasRowHeader() SAL_OVERRIDE; virtual bool HasColHeader() SAL_OVERRIDE; virtual OUString GetAccessibleCellText(sal_Int32 _nRowPos, sal_Int32 _nColPos) const SAL_OVERRIDE; diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 52e6dc640b15..3b7fd2afcf6a 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -95,14 +95,6 @@ bool BrowseBox::IsDropFormatSupported( SotClipboardFormatId _nFormat ) } - -bool BrowseBox::IsDropFormatSupported( SotClipboardFormatId _nFormat ) const -{ - return const_cast< BrowseBox* >( this )->IsDropFormatSupported( _nFormat ); -} - - - bool BrowseBox::IsDropFormatSupported( const DataFlavor& _rFlavor ) { if ( static_cast< BrowserDataWin* >( pDataWin.get() )->bCallingDropCallback ) @@ -112,14 +104,6 @@ bool BrowseBox::IsDropFormatSupported( const DataFlavor& _rFlavor ) } - -bool BrowseBox::IsDropFormatSupported( const DataFlavor& _rFlavor ) const -{ - return const_cast< BrowseBox* >( this )->IsDropFormatSupported( _rFlavor ); -} - - - void BrowseBox::Command( const CommandEvent& rEvt ) { if ( !getDataWindow()->bInCommand ) diff --git a/svtools/source/brwbox/brwbox3.cxx b/svtools/source/brwbox/brwbox3.cxx index bae84d2d906a..d60023587333 100644 --- a/svtools/source/brwbox/brwbox3.cxx +++ b/svtools/source/brwbox/brwbox3.cxx @@ -455,11 +455,6 @@ bool BrowseBox::HasRowHeader() const return ( GetColumnId( 0 ) == HandleColumnId ); // HandleColumn == RowHeader } -bool BrowseBox::IsCellFocusable() const -{ - return true; -} - bool BrowseBox::GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn ) { return GoToRowColumnId( _nRow, GetColumnId( _nColumn ) ); diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx index 5260355a91de..e88f85b3019d 100644 --- a/svtools/source/brwbox/datwin.hxx +++ b/svtools/source/brwbox/datwin.hxx @@ -82,7 +82,6 @@ public: sal_uInt16 GetId() const { return _nId; } sal_uLong Width() { return _nWidth; } - Image& GetImage() { return _aImage; } OUString& Title() { return _aTitle; } bool IsFrozen() const { return _bFrozen; } @@ -161,7 +160,6 @@ public: BrowseEvent CreateBrowseEvent( const Point& rPosPixel ); - void Repaint(); BrowseBox* GetParent() const { return static_cast<BrowseBox*>( Window::GetParent() ); } const OUString& GetRealRowCount() const { return aRealRowCount; } @@ -184,15 +182,6 @@ protected: -inline void BrowserDataWin::Repaint() -{ - if ( GetUpdateMode() ) - Update(); - Invalidate(Rectangle(Point(), GetOutputSizePixel())); -} - - - class BrowserScrollBar: public ScrollBar { sal_uLong _nTip; diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx index de2eb97a2e0b..30e565819678 100644 --- a/svtools/source/config/accessibilityoptions.cxx +++ b/svtools/source/config/accessibilityoptions.cxx @@ -95,8 +95,6 @@ public: void SetIsAutomaticFontColor(bool bSet); void SetHelpTipSeconds(sal_Int16 nSet); void SetSelectionInReadonly(bool bSet); - - bool IsModified() const { return bIsModified; }; }; // initialization of static members -------------------------------------- @@ -614,12 +612,6 @@ void SvtAccessibilityOptions::Notify( SfxBroadcaster&, const SfxHint& rHint ) } - -bool SvtAccessibilityOptions::IsModified() const -{ - return sm_pSingleImplConfig->IsModified(); -} - bool SvtAccessibilityOptions::GetAutoDetectSystemHC() const { return sm_pSingleImplConfig->GetAutoDetectSystemHC(); diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index bb368f508d63..bb5575f6231a 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -305,10 +305,6 @@ class SvxIconChoiceCtrl_Impl { return (ePositionMode == IcnViewPositionModeAutoArrange); } - bool IsAutoAdjust() const - { - return (ePositionMode == IcnViewPositionModeAutoAdjust); - } void DocRectChanged() { aDocRectChangedIdle.Start(); } void VisRectChanged() { aVisRectChangedIdle.Start(); } void SetOrigin( const Point& ); @@ -433,8 +429,6 @@ public: // recalculates all BoundingRects if bMustRecalcBoundingRects == true void CheckBoundingRects() { if (bBoundRectsDirty) RecalcAllBoundingRectsSmart(); } - // recalculates all invalidated BoundingRects - void ShowTargetEmphasis( SvxIconChoiceCtrlEntry* pEntry, bool bShow ); void Command( const CommandEvent& rCEvt ); void ToTop( SvxIconChoiceCtrlEntry* ); @@ -471,7 +465,6 @@ public: SvxIconChoiceCtrlEntry* pEntry = 0 ); #endif - void EnableEntryEditing( bool bEnable ) { bEntryEditingEnabled = bEnable; } bool IsEntryEditingEnabled() const { return bEntryEditingEnabled; } bool IsEntryEditing() const { return (pCurEditedEntry!=0); } void EditEntry( SvxIconChoiceCtrlEntry* pEntry ); @@ -486,13 +479,8 @@ public: return aEntries[ nPos ]; } SvxIconChoiceCtrlEntry* GetFirstSelectedEntry() const; - SvxIconChoiceCtrlEntry* GetHdlEntry() const { return pHdlEntry; } - void SetHdlEntry( SvxIconChoiceCtrlEntry* pEntry ) { pHdlEntry = pEntry; } - SvxIconChoiceCtrlTextMode GetEntryTextModeSmart( const SvxIconChoiceCtrlEntry* pEntry ) const; void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; } - SelectionMode GetSelectionMode() const { return eSelectionMode; } - bool AreEntriesMoved() const { return ((nFlags & F_MOVED_ENTRIES) != 0); } void SetEntriesMoved( bool bMoved ) { if( bMoved ) @@ -501,18 +489,14 @@ public: nFlags &= ~(F_MOVED_ENTRIES); } sal_Int32 GetEntryListPos( SvxIconChoiceCtrlEntry* ) const; - void SetEntryImageSize( const Size& rSize ) { aImageSize = rSize; } void InitSettings(); Rectangle GetOutputRect() const; - bool ArePredecessorsSet() const { return (pHead != 0); } - SvxIconChoiceCtrlEntry* GetPredecessorHead() const { return pHead; } void SetEntryPredecessor(SvxIconChoiceCtrlEntry* pEntry,SvxIconChoiceCtrlEntry* pPredecessor); // only delivers valid results when in AutoArrange mode! SvxIconChoiceCtrlEntry* FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry, const Point& ); void SetPositionMode( SvxIconChoiceCtrlPositionMode ); - SvxIconChoiceCtrlPositionMode GetPositionMode() const { return ePositionMode;} void SetColumn( sal_uInt16 nIndex, const SvxIconChoiceCtrlColumnInfo& ); const SvxIconChoiceCtrlColumnInfo* GetColumn( sal_uInt16 nIndex ) const; @@ -525,7 +509,6 @@ public: bool bKeepHighlightFlags = false ); void DrawHighlightFrame(vcl::RenderContext& rRenderContext, const Rectangle& rBmpRect, bool bHide); - void StopSelectTimer() { aCallSelectHdlIdle.Stop(); } void CallEventListeners( sal_uLong nEvent, void* pData = NULL ); diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx index 034eb57be27a..a1459b90b241 100644 --- a/svtools/source/contnr/svtabbx.cxx +++ b/svtools/source/contnr/svtabbx.cxx @@ -721,11 +721,6 @@ bool SvHeaderTabListBox::HasRowHeader() const return false; } -bool SvHeaderTabListBox::IsCellFocusable() const -{ - return IsCellFocusEnabled(); -} - bool SvHeaderTabListBox::GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn ) { bool bRet = IsCellFocusEnabled(); diff --git a/svtools/source/control/toolbarmenuimp.hxx b/svtools/source/control/toolbarmenuimp.hxx index d6ba740d1cd6..5e5bf883ad9d 100644 --- a/svtools/source/control/toolbarmenuimp.hxx +++ b/svtools/source/control/toolbarmenuimp.hxx @@ -93,7 +93,6 @@ public: sal_Int32 getAccessibleChildCount() throw (::com::sun::star::uno::RuntimeException); ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > getAccessibleChild( sal_Int32 index ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - void selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); bool HasCheck() const { @@ -205,8 +204,6 @@ public: explicit ToolbarMenuEntryAcc( ToolbarMenuEntry* pParent ); virtual ~ToolbarMenuEntryAcc(); - bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } - // XAccessible virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx index 49a198d01554..bf729b3732b7 100644 --- a/svtools/source/control/valueimp.hxx +++ b/svtools/source/control/valueimp.hxx @@ -216,7 +216,6 @@ public: void ParentDestroyed(); void FireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue ); - bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } static ValueItemAcc* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxData ) throw(); diff --git a/svtools/source/dialogs/mcvmath.hxx b/svtools/source/dialogs/mcvmath.hxx index a4ce6bd5f801..227d25952167 100644 --- a/svtools/source/dialogs/mcvmath.hxx +++ b/svtools/source/dialogs/mcvmath.hxx @@ -79,20 +79,12 @@ public: Fix(long bits, Bits): x(bits) {} - void SetInternVal( long nVal ) { x=nVal; } - long GetInternVal() const { return x; } - void operator+= ( const Fix& a ) { x+=a.x; } void operator-= ( const Fix& a ) { x-=a.x; } void operator*= ( const Fix& a ) { x=(x*a.x+FIX_ADD)>>FIX_POST; } void operator/= ( const Fix& a ) { x=(x<<FIX_POST)/a.x; } friend Fix operator- ( const Fix& a ); - void MultBig( const Fix& a ) - { x=((((a.x+FIX_A2)>>FIX_P2)*x+FIX_A3)>>FIX_P3); } - void DivBig( const Fix& a ) - { x=((x<<FIX_P3)/a.x)<<FIX_P2; } - friend bool operator> ( const Fix& a, const Fix& b ) { return a.x > b.x; } friend bool operator< ( const Fix& a, const Fix& b ) { return a.x < b.x; } @@ -122,11 +114,7 @@ public: FixCpx( Fix a ) : r( a ), i() {} FixCpx( Fix a, Fix b ) : r( a ), i( b ) {} - Fix& GetReal() { return r; } - Fix& GetImag() { return i; } - void operator*= ( const FixCpx& ra ); - void MultBig( const FixCpx& ra, const FixCpx& rb ); friend FixCpx operator+ ( const FixCpx& a, const FixCpx& b ); friend FixCpx operator- ( const FixCpx& a, const FixCpx& b ); diff --git a/svtools/source/filter/exportdialog.hxx b/svtools/source/filter/exportdialog.hxx index 4df7cdc0f5a3..e3015eca1c72 100644 --- a/svtools/source/filter/exportdialog.hxx +++ b/svtools/source/filter/exportdialog.hxx @@ -150,7 +150,6 @@ private: DECL_LINK( UpdateHdlMtfSizeY,void* p ); DECL_LINK( UpdateHdlNfResolution,void* p ); DECL_LINK( SbCompressionUpdateHdl,void* p ); - DECL_LINK( NfCompressionUpdateHdlX,void* p ); DECL_LINK( OK, void* p ); diff --git a/svtools/source/hatchwindow/ipwin.hxx b/svtools/source/hatchwindow/ipwin.hxx index efc536d491d0..87cfa55a9ffd 100644 --- a/svtools/source/hatchwindow/ipwin.hxx +++ b/svtools/source/hatchwindow/ipwin.hxx @@ -35,10 +35,6 @@ class SvResizeHelper public: SvResizeHelper(); - void SetResizeable(bool b) - { - bResizeable = b; - } short GetGrab() const { return nGrab; @@ -47,27 +43,10 @@ public: { aBorder = rBorderP; } - const Size& GetBorderPixel() const - { - return aBorder; - } - const Rectangle& GetOuterRectPixel() const - { - return aOuter; - } void SetOuterRectPixel(const Rectangle& rRect) { aOuter = rRect; } - Rectangle GetInnerRectPixel() const - { - Rectangle aRect( aOuter ); - aRect.Top() += aBorder.Height(); - aRect.Left() += aBorder.Width(); - aRect.Bottom() -= aBorder.Height(); - aRect.Right() -= aBorder.Width(); - return aRect; - } // Clockwise, start at upper left void FillHandleRectsPixel( Rectangle aRects[ 8 ] ) const; @@ -108,9 +87,6 @@ public: virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle & ) SAL_OVERRIDE; virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; - - void QueryObjAreaPixel( Rectangle & ); - void RequestObjAreaPixel( const Rectangle & ); }; #endif // INCLUDED_SVTOOLS_SOURCE_HATCHWINDOW_IPWIN_HXX diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx index 552cf095062f..ec8b19e7f1aa 100644 --- a/svtools/source/inc/svimpbox.hxx +++ b/svtools/source/inc/svimpbox.hxx @@ -209,7 +209,6 @@ private: void BeginScroll(); void EndScroll(); - bool InScroll() const { return (nFlags & F_IN_SCROLLING) != 0; } Rectangle GetVisibleArea() const; bool EntryReallyHit(SvTreeListEntry* pEntry, const Point& rPos, long nLine); void InitScrollBarBox(); @@ -248,7 +247,6 @@ public: void Clear(); void SetStyle( WinBits i_nWinStyle ); void SetExtendedWindowBits( ExtendedWinBits _nBits ); - ExtendedWinBits GetExtendedWindowBits() const { return nExtendedWinBits; } void SetModel( SvTreeList* pModel ) { pTree = pModel;} void EntryInserted( SvTreeListEntry*); diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index d005651a4213..581d3ee276f2 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -353,14 +353,6 @@ sal_uLong IMapCircleObject::GetRadius( bool bPixelCoords ) const return nNewRadius; } -Rectangle IMapCircleObject::GetBoundRect() const -{ - long nWidth = nRadius << 1; - - return Rectangle( Point( aCenter.X() - nRadius, aCenter.Y() - nRadius ), - Size( nWidth, nWidth ) ); -} - void IMapCircleObject::Scale( const Fraction& rFracX, const Fraction& rFracY ) { Fraction aAverage( rFracX ); diff --git a/svtools/source/table/defaultinputhandler.cxx b/svtools/source/table/defaultinputhandler.cxx index 6f36879c38f6..24d58225dadf 100644 --- a/svtools/source/table/defaultinputhandler.cxx +++ b/svtools/source/table/defaultinputhandler.cxx @@ -197,41 +197,6 @@ namespace svt { namespace table } - bool DefaultInputHandler::RequestHelp( ITableControl& _rControl, const HelpEvent& _rHEvt ) - { - (void)_rControl; - (void)_rHEvt; - // TODO - return false; - } - - - bool DefaultInputHandler::Command( ITableControl& _rControl, const CommandEvent& _rCEvt ) - { - (void)_rControl; - (void)_rCEvt; - // TODO - return false; - } - - - bool DefaultInputHandler::PreNotify( ITableControl& _rControl, NotifyEvent& _rNEvt ) - { - (void)_rControl; - (void)_rNEvt; - // TODO - return false; - } - - - bool DefaultInputHandler::Notify( ITableControl& _rControl, NotifyEvent& _rNEvt ) - { - (void)_rControl; - (void)_rNEvt; - // TODO - return false; - } - } } // namespace svt::table diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx index 5d6c962edfdb..d9092aacad49 100644 --- a/svtools/source/table/tablecontrol.cxx +++ b/svtools/source/table/tablecontrol.cxx @@ -408,14 +408,6 @@ namespace svt { namespace table } - ::com::sun::star::uno::Any TableControl::GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos ) const - { - Any aCellContent; - GetModel()->getCellContent( _nColPos, _nRowPos, aCellContent ); - return aCellContent; - } - - OUString TableControl::GetAccessibleCellText( sal_Int32 _nRowPos, sal_Int32 _nColPos) const { return m_pImpl->getCellContentAsString( _nRowPos, _nColPos ); @@ -582,12 +574,6 @@ namespace svt { namespace table } - bool TableControl::HasRowHeader() const - { - return GetModel()->hasRowHeaders(); - } - - bool TableControl::ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint ) { _rnRow = m_pImpl->getRowAtPoint( _rPoint ); diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index 90cf569669c4..dc6b43f6eaab 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -112,12 +112,6 @@ namespace svt { namespace table { return false; } - virtual bool isCellEditable( ColPos col, RowPos row ) const SAL_OVERRIDE - { - (void)col; - (void)row; - return false; - } virtual PColumnModel getColumnModel( ColPos column ) SAL_OVERRIDE { OSL_FAIL( "EmptyTableModel::getColumnModel: invalid call!" ); diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index 9322db03817d..478f611ba5ea 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -51,7 +51,6 @@ namespace svt { namespace table long getStart() const { return nStartPixel; } long getEnd() const { return nEndPixel; } - void setEnd( long const i_end ) { nEndPixel = i_end; } void move( long const i_offset ) { nStartPixel += i_offset; nEndPixel += i_offset; } long getWidth() const { return nEndPixel - nStartPixel; } @@ -146,7 +145,6 @@ namespace svt { namespace table inline const PTableInputHandler& getInputHandler() const { return m_pInputHandler; } inline RowPos getCurRow() const { return m_nCurRow; } - inline void setCurRow( RowPos i_curRow ){ m_nCurRow = i_curRow; } RowPos getAnchor() const { return m_nAnchor; } void setAnchor( RowPos const i_anchor ) { m_nAnchor = i_anchor; } @@ -248,7 +246,6 @@ namespace svt { namespace table */ bool markAllRowsAsSelected(); - void setSelectHandler( Link<> const & i_selectHandler ) { m_aSelectHdl = i_selectHandler; } Link<> const& getSelectHandler() const { return m_aSelectHdl; } void commitAccessibleEvent( sal_Int16 const i_eventID, const com::sun::star::uno::Any& i_newValue, const com::sun::star::uno::Any& i_oldValue ); diff --git a/svtools/source/table/tabledatawindow.hxx b/svtools/source/table/tabledatawindow.hxx index c18cc5f58273..f59e99fa4b5a 100644 --- a/svtools/source/table/tabledatawindow.hxx +++ b/svtools/source/table/tabledatawindow.hxx @@ -49,10 +49,6 @@ namespace svt { namespace table { m_aSelectHdl = rLink; } - inline const Link<>& GetSelectHdl() const - { - return m_aSelectHdl; - } // Window overridables virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE; diff --git a/svtools/source/table/tablegeometry.hxx b/svtools/source/table/tablegeometry.hxx index 78d1079beb97..6fb29aa5f7b5 100644 --- a/svtools/source/table/tablegeometry.hxx +++ b/svtools/source/table/tablegeometry.hxx @@ -150,11 +150,9 @@ namespace svt { namespace table } inline Rectangle getRect() const { return m_aRow.getRect().GetIntersection( m_aCol.getRect() ); } - inline RowPos getRow() const { return m_aRow.getRow(); } inline ColPos getColumn() const { return m_aCol.getCol(); } inline bool isValid() const { return !getRect().IsEmpty(); } - inline bool moveDown() {return m_aRow.moveDown(); } inline bool moveRight() {return m_aCol.moveRight(); } }; diff --git a/svtools/source/toolpanel/tabbargeometry.hxx b/svtools/source/toolpanel/tabbargeometry.hxx index f783d722247e..a51465a660dd 100644 --- a/svtools/source/toolpanel/tabbargeometry.hxx +++ b/svtools/source/toolpanel/tabbargeometry.hxx @@ -64,10 +64,7 @@ namespace svt const TabAlignment i_eTargetAlignment ) const; - Size getReferenceSize() const { return m_aReference.GetSize(); } - const Rectangle& - getReference() const { return m_aReference; } private: // the normalized reference area diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx index d19263d776ab..472a62131a0f 100644 --- a/svtools/source/uno/popupmenucontrollerbase.cxx +++ b/svtools/source/uno/popupmenucontrollerbase.cxx @@ -111,14 +111,6 @@ void SAL_CALL PopupMenuControllerBase::itemHighlighted( const awt::MenuEvent& ) { } -void PopupMenuControllerBase::impl_select(const Reference< XDispatch >& _xDispatch,const URL& aURL) -{ - Sequence<PropertyValue> aArgs; - OSL_ENSURE(_xDispatch.is(),"PopupMenuControllerBase::impl_select: No dispatch"); - if ( _xDispatch.is() ) - _xDispatch->dispatch( aURL, aArgs ); -} - void SAL_CALL PopupMenuControllerBase::itemSelected( const awt::MenuEvent& rEvent ) throw (RuntimeException, std::exception) { throwIfDisposed(); diff --git a/svtools/source/uno/treecontrolpeer.hxx b/svtools/source/uno/treecontrolpeer.hxx index d1cb56441348..13424293d87e 100644 --- a/svtools/source/uno/treecontrolpeer.hxx +++ b/svtools/source/uno/treecontrolpeer.hxx @@ -123,7 +123,6 @@ private: bool onEditingEntry( UnoTreeListEntry* pEntry ); bool onEditedEntry( UnoTreeListEntry* pEntry, const OUString& rNewText ); - void eraseTree( UnoTreeListBoxImpl& rTree ); void fillTree( UnoTreeListBoxImpl& rTree, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeDataModel >& xDataModel ); void addNode( UnoTreeListBoxImpl& rTree, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& xNode, UnoTreeListEntry* pParentEntry ); diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx index 395737c90d68..7997de84aece 100644 --- a/svtools/source/uno/unocontroltablemodel.cxx +++ b/svtools/source/uno/unocontroltablemodel.cxx @@ -206,15 +206,6 @@ namespace svt { namespace table } - bool UnoControlTableModel::isCellEditable( ColPos col, RowPos row ) const - { - DBG_CHECK_ME(); - (void)col; - (void)row; - return false; - } - - PColumnModel UnoControlTableModel::getColumnModel( ColPos column ) { DBG_CHECK_ME(); diff --git a/svtools/source/uno/unocontroltablemodel.hxx b/svtools/source/uno/unocontroltablemodel.hxx index 6433511a43ab..50610a02793a 100644 --- a/svtools/source/uno/unocontroltablemodel.hxx +++ b/svtools/source/uno/unocontroltablemodel.hxx @@ -62,7 +62,6 @@ namespace svt { namespace table virtual TableSize getRowCount() const SAL_OVERRIDE; virtual bool hasColumnHeaders() const SAL_OVERRIDE; virtual bool hasRowHeaders() const SAL_OVERRIDE; - virtual bool isCellEditable( ColPos col, RowPos row ) const SAL_OVERRIDE; virtual PColumnModel getColumnModel( ColPos column ) SAL_OVERRIDE; virtual PTableRenderer getRenderer() const SAL_OVERRIDE; virtual PTableInputHandler getInputHandler() const SAL_OVERRIDE; diff --git a/svtools/source/uno/unogridcolumnfacade.cxx b/svtools/source/uno/unogridcolumnfacade.cxx index 9fa60d16c180..df3cf3838961 100644 --- a/svtools/source/uno/unogridcolumnfacade.cxx +++ b/svtools/source/uno/unogridcolumnfacade.cxx @@ -234,36 +234,6 @@ namespace svt { namespace table } - Any UnoGridColumnFacade::getID() const - { - Any aID; - ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", aID ); - try - { - aID = m_xGridColumn->getIdentifier(); - } - catch( const Exception& ) - { - DBG_UNHANDLED_EXCEPTION(); - } - return aID; - } - - - void UnoGridColumnFacade::setID( const Any& i_ID ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - try - { - m_xGridColumn->setIdentifier( i_ID ); - } - catch( const Exception& ) - { - DBG_UNHANDLED_EXCEPTION(); - } - } - - OUString UnoGridColumnFacade::getName() const { OUString sName; @@ -280,20 +250,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setName( const OUString& _rName ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - try - { - m_xGridColumn->setTitle( _rName ); - } - catch( const Exception& ) - { - DBG_UNHANDLED_EXCEPTION(); - } - } - - OUString UnoGridColumnFacade::getHelpText() const { OUString sHelpText; @@ -310,20 +266,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setHelpText( const OUString& i_helpText ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - try - { - m_xGridColumn->setHelpText( i_helpText ); - } - catch( const Exception& ) - { - DBG_UNHANDLED_EXCEPTION(); - } - } - - bool UnoGridColumnFacade::isResizable() const { ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", false ); @@ -331,13 +273,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setResizable( bool i_resizable ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - lcl_set( m_xGridColumn, &XGridColumn::setResizeable, i_resizable ); - } - - sal_Int32 UnoGridColumnFacade::getFlexibility() const { ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 1 ); @@ -345,13 +280,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setFlexibility( sal_Int32 const i_flexibility ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - lcl_set( m_xGridColumn, &XGridColumn::setFlexibility, i_flexibility ); - } - - TableMetrics UnoGridColumnFacade::getWidth() const { ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 0 ); @@ -373,13 +301,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setMinWidth( TableMetrics _nMinWidth ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - lcl_set( m_xGridColumn, &XGridColumn::setMinWidth, _nMinWidth ); - } - - TableMetrics UnoGridColumnFacade::getMaxWidth() const { ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", 0 ); @@ -387,13 +308,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setMaxWidth( TableMetrics _nMaxWidth ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - lcl_set( m_xGridColumn, &XGridColumn::setMinWidth, _nMaxWidth ); - } - - ::com::sun::star::style::HorizontalAlignment UnoGridColumnFacade::getHorizontalAlign() { ENSURE_OR_RETURN( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!", HorizontalAlignment_LEFT ); @@ -401,13 +315,6 @@ namespace svt { namespace table } - void UnoGridColumnFacade::setHorizontalAlign( com::sun::star::style::HorizontalAlignment _align ) - { - ENSURE_OR_RETURN_VOID( m_xGridColumn.is(), "UnoGridColumnFacade: already disposed!" ); - lcl_set( m_xGridColumn, &XGridColumn::setHorizontalAlign, _align ); - } - - } } // svt::table diff --git a/svtools/source/uno/unogridcolumnfacade.hxx b/svtools/source/uno/unogridcolumnfacade.hxx index 2332611f9217..fbf27481ee0d 100644 --- a/svtools/source/uno/unogridcolumnfacade.hxx +++ b/svtools/source/uno/unogridcolumnfacade.hxx @@ -53,25 +53,15 @@ namespace svt { namespace table virtual ~UnoGridColumnFacade(); // IColumnModel overridables - virtual ::com::sun::star::uno::Any - getID() const SAL_OVERRIDE; - virtual void setID( const ::com::sun::star::uno::Any& i_ID ) SAL_OVERRIDE; virtual OUString getName() const SAL_OVERRIDE; - virtual void setName( const OUString& _rName ) SAL_OVERRIDE; virtual OUString getHelpText() const SAL_OVERRIDE; - virtual void setHelpText( const OUString& i_helpText ) SAL_OVERRIDE; virtual bool isResizable() const SAL_OVERRIDE; - virtual void setResizable( bool _bResizable ) SAL_OVERRIDE; virtual sal_Int32 getFlexibility() const SAL_OVERRIDE; - virtual void setFlexibility( sal_Int32 const i_flexibility ) SAL_OVERRIDE; virtual TableMetrics getWidth() const SAL_OVERRIDE; virtual void setWidth( TableMetrics _nWidth ) SAL_OVERRIDE; virtual TableMetrics getMinWidth() const SAL_OVERRIDE; - virtual void setMinWidth( TableMetrics _nMinWidth ) SAL_OVERRIDE; virtual TableMetrics getMaxWidth() const SAL_OVERRIDE; - virtual void setMaxWidth( TableMetrics _nMaxWidth ) SAL_OVERRIDE; virtual ::com::sun::star::style::HorizontalAlignment getHorizontalAlign() SAL_OVERRIDE; - virtual void setHorizontalAlign(::com::sun::star::style::HorizontalAlignment _xAlign) SAL_OVERRIDE; /** disposes the column wrapper |