Kaydet (Commit) 04b472af authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods accessibility,fpicker,uui

Change-Id: I106a0be06c4b9fe1313bbd8d4c62472c4b0a4b4f
Reviewed-on: https://gerrit.libreoffice.org/17045Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 22b094f5
...@@ -271,9 +271,6 @@ protected: ...@@ -271,9 +271,6 @@ protected:
/** Changes the name of the object (flat assignment, no notify). /** Changes the name of the object (flat assignment, no notify).
@attention This method requires a locked mutex. */ @attention This method requires a locked mutex. */
inline void implSetName( const OUString& rName ); inline void implSetName( const OUString& rName );
/** Changes the description of the object (flat assignment, no notify).
@attention This method requires a locked mutex. */
inline void implSetDescription( const OUString& rDescription );
/** Locks all mutex's and calculates the bounding box relative to the /** Locks all mutex's and calculates the bounding box relative to the
parent window. parent window.
...@@ -369,13 +366,6 @@ inline void AccessibleGridControlBase::implSetName( ...@@ -369,13 +366,6 @@ inline void AccessibleGridControlBase::implSetName(
m_aName = rName; m_aName = rName;
} }
inline void AccessibleGridControlBase::implSetDescription(
const OUString& rDescription )
{
m_aDescription = rDescription;
}
} // namespace accessibility } // namespace accessibility
......
...@@ -64,11 +64,6 @@ namespace accessibility ...@@ -64,11 +64,6 @@ namespace accessibility
getAccessibleContext() getAccessibleContext()
throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
inline bool isRowBarCell() const
{
return getType() == ::svt::table::TCTYPE_ROWHEADERCELL;
}
/** @return /** @return
The name of this class. The name of this class.
*/ */
......
...@@ -65,12 +65,8 @@ private: ...@@ -65,12 +65,8 @@ private:
/** Returns the row index from cell index. */ /** Returns the row index from cell index. */
inline sal_Int32 implGetRow( sal_Int32 _nIndex ) const { return _nIndex / implGetColumnCount(); } inline sal_Int32 implGetRow( sal_Int32 _nIndex ) const { return _nIndex / implGetColumnCount(); }
/** Returns the column index from cell index. */
inline sal_Int32 implGetColumn( sal_Int32 _nIndex ) const { return _nIndex % implGetColumnCount(); }
/** Returns the absolute row index of the nSelRow-th selected row. */ /** Returns the absolute row index of the nSelRow-th selected row. */
sal_Int32 implGetSelRow( sal_Int32 _nSelRow ) const; sal_Int32 implGetSelRow( sal_Int32 _nSelRow ) const;
/** Returns the child index from cell position. */
inline sal_Int32 implGetIndex( sal_Int32 _nRow, sal_Int32 _nColumn ) const { return _nRow * implGetColumnCount() + _nColumn; }
public: public:
/** ctor() /** ctor()
......
...@@ -42,7 +42,6 @@ namespace accessibility ...@@ -42,7 +42,6 @@ namespace accessibility
virtual Rectangle GetDropDownPosSizePixel( ) const = 0; virtual Rectangle GetDropDownPosSizePixel( ) const = 0;
virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0; virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
virtual Rectangle GetWindowExtentsRelative( vcl::Window* pRelativeWindow ) = 0; virtual Rectangle GetWindowExtentsRelative( vcl::Window* pRelativeWindow ) = 0;
virtual bool IsActive() const = 0;
virtual bool IsEnabled() const = 0; virtual bool IsEnabled() const = 0;
virtual bool IsEntryVisible( sal_Int32 nPos ) const = 0; virtual bool IsEntryVisible( sal_Int32 nPos ) const = 0;
virtual sal_uInt16 GetDisplayLineCount() const = 0; virtual sal_uInt16 GetDisplayLineCount() const = 0;
......
...@@ -81,11 +81,6 @@ public: ...@@ -81,11 +81,6 @@ public:
return m_aComboListBox.GetWindowExtentsRelative( pRelativeWindow ); return m_aComboListBox.GetWindowExtentsRelative( pRelativeWindow );
} }
virtual bool IsActive() const SAL_OVERRIDE
{
return m_aComboListBox.IsActive();
}
virtual bool IsEnabled() const SAL_OVERRIDE virtual bool IsEnabled() const SAL_OVERRIDE
{ {
return m_aComboListBox.IsEnabled(); return m_aComboListBox.IsEnabled();
......
...@@ -64,19 +64,17 @@ protected: ...@@ -64,19 +64,17 @@ protected:
AccessibleChildren m_aAccessibleChildren; AccessibleChildren m_aAccessibleChildren;
Menu* m_pMenu; Menu* m_pMenu;
bool m_bEnabled; bool m_bEnabled;
bool m_bFocused; bool m_bFocused;
bool m_bVisible; bool m_bVisible;
bool m_bSelected; bool m_bSelected;
bool m_bChecked; bool m_bChecked;
Menu* GetMenu() { return m_pMenu; } virtual bool IsEnabled();
virtual bool IsFocused();
virtual bool IsEnabled(); virtual bool IsVisible();
virtual bool IsFocused(); virtual bool IsSelected();
virtual bool IsVisible(); virtual bool IsChecked();
virtual bool IsSelected();
virtual bool IsChecked();
void SetEnabled( bool bEnabled ); void SetEnabled( bool bEnabled );
void SetFocused( bool bFocused ); void SetFocused( bool bFocused );
......
...@@ -137,8 +137,6 @@ public: ...@@ -137,8 +137,6 @@ public:
virtual ::com::sun::star::uno::Any SAL_CALL getMinimumValue( ) virtual ::com::sun::star::uno::Any SAL_CALL getMinimumValue( )
throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
bool IsDropDownBox() {return m_bIsDropDownBox;};
BoxType GetBoxType() { return m_aBoxType;};
protected: protected:
/** Specifies whether the box is a combo box or a list box. List boxes /** Specifies whether the box is a combo box or a list box. List boxes
have multi selection. have multi selection.
......
...@@ -116,8 +116,6 @@ public: ...@@ -116,8 +116,6 @@ public:
inline bool IsSelected() const { return m_bSelected; } inline bool IsSelected() const { return m_bSelected; }
void SetSelected( bool _bSelected ); void SetSelected( bool _bSelected );
void SetVisible( bool _bVisible ); void SetVisible( bool _bVisible );
inline bool DecrementIndexInParent() { OSL_ENSURE(m_nIndexInParent != 0,"Invalid call!");--m_nIndexInParent; return true;}
inline bool IncrementIndexInParent() { ++m_nIndexInParent; return true;}
// XInterface // XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......
...@@ -83,9 +83,7 @@ public: ...@@ -83,9 +83,7 @@ public:
void SetFocus( bool _bFocus ); void SetFocus( bool _bFocus );
inline bool HasFocus() const { return m_bHasFocus; } inline bool HasFocus() const { return m_bHasFocus; }
void SetChecked( bool _bCheck ); void SetChecked( bool _bCheck );
inline bool IsChecked() const { return m_bIsChecked; }
void SetIndeterminate( bool _bIndeterminate ); void SetIndeterminate( bool _bIndeterminate );
inline bool IsIndeterminate() const { return m_bIndeterminate; }
inline void ReleaseToolBox() { m_pToolBox = NULL; } inline void ReleaseToolBox() { m_pToolBox = NULL; }
void NameChanged(); void NameChanged();
void SetChild( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _xChild ); void SetChild( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _xChild );
......
...@@ -198,8 +198,6 @@ namespace svt ...@@ -198,8 +198,6 @@ namespace svt
} }
inline bool isFolder( ) { return isFolder( getURL() ); } inline bool isFolder( ) { return isFolder( getURL() ); }
inline bool isDocument( ) { return isDocument( getURL() ); }
inline bool is( ) { return is( getURL() ); }
}; };
......
...@@ -162,7 +162,6 @@ private: ...@@ -162,7 +162,6 @@ private:
protected: protected:
virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE; virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
void EnableInternet( bool bInternet );
// originally from VclFileDialog // originally from VclFileDialog
Link<> _aOKHdl; Link<> _aOKHdl;
...@@ -229,7 +228,6 @@ public: ...@@ -229,7 +228,6 @@ public:
inline SvtFileView* GetView() const; inline SvtFileView* GetView() const;
void DisableSaveLastDirectory();
void InitSize(); void InitSize();
void UpdateControls( const OUString& rURL ); void UpdateControls( const OUString& rURL );
void EnableAutocompletion( bool _bEnable = true ); void EnableAutocompletion( bool _bEnable = true );
...@@ -260,12 +258,6 @@ public: ...@@ -260,12 +258,6 @@ public:
inline void SetDefaultExt( const OUString& rExt ); inline void SetDefaultExt( const OUString& rExt );
inline void EraseDefaultExt( sal_Int32 _nIndex = 0 ); inline void EraseDefaultExt( sal_Int32 _nIndex = 0 );
inline const OUString& GetDefaultExt() const; inline const OUString& GetDefaultExt() const;
inline void SetOKHdl( const Link<>& rLink );
inline const Link<>& GetOKHdl() const;
inline void SetFileSelectHdl( const Link<>& rLink );
inline const Link<>& GetFileSelectHdl() const;
inline void SetFilterSelectHdl( const Link<>& rLink );
inline const Link<>& GetFilterSelectHdl() const;
inline Image GetButtonImage( sal_uInt16 _nButtonId ) const { return m_aImages.GetImage( _nButtonId ); } inline Image GetButtonImage( sal_uInt16 _nButtonId ) const { return m_aImages.GetImage( _nButtonId ); }
...@@ -368,67 +360,12 @@ inline const OUString& SvtFileDialog::GetDefaultExt() const ...@@ -368,67 +360,12 @@ inline const OUString& SvtFileDialog::GetDefaultExt() const
} }
inline void SvtFileDialog::SetOKHdl
(
const Link<>& rLink
)
{
_aOKHdl = rLink;
}
inline const Link<>& SvtFileDialog::GetOKHdl() const
{
return _aOKHdl;
}
inline void SvtFileDialog::SetFileSelectHdl
(
const Link<>& rLink
)
{
_aFileSelectHdl = rLink;
}
inline const Link<>& SvtFileDialog::GetFileSelectHdl() const
{
return _aFileSelectHdl;
}
inline void SvtFileDialog::SetFilterSelectHdl
(
const Link<>& rLink
)
{
_aFilterSelectHdl = rLink;
}
inline const Link<>& SvtFileDialog::GetFilterSelectHdl() const
{
return _aFilterSelectHdl;
}
inline SvtFileView* SvtFileDialog::GetView() const inline SvtFileView* SvtFileDialog::GetView() const
{ {
return _pFileView; return _pFileView;
} }
#define FILE_SELECTION_CHANGED 1 #define FILE_SELECTION_CHANGED 1
#define DIRECTORY_CHANGED 2 #define DIRECTORY_CHANGED 2
#define HELP_REQUESTED 3 #define HELP_REQUESTED 3
......
...@@ -217,7 +217,6 @@ public: ...@@ -217,7 +217,6 @@ public:
inline const SvtFileDialogFilter_Impl* GetCurFilter( ) const; inline const SvtFileDialogFilter_Impl* GetCurFilter( ) const;
inline const OUString& GetCurFilterDisplayName() const; inline const OUString& GetCurFilterDisplayName() const;
void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter, const OUString& _rDisplayName ); void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter, const OUString& _rDisplayName );
inline void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter );
}; };
inline void SvtExpFileDlg_Impl::SetFilterListSelectHdl( const Link<>& _rHandler ) inline void SvtExpFileDlg_Impl::SetFilterListSelectHdl( const Link<>& _rHandler )
...@@ -261,11 +260,6 @@ inline const OUString& SvtExpFileDlg_Impl::GetCurFilterDisplayName() const ...@@ -261,11 +260,6 @@ inline const OUString& SvtExpFileDlg_Impl::GetCurFilterDisplayName() const
return m_sCurrentFilterDisplayName; return m_sCurrentFilterDisplayName;
} }
inline void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl* pFilter )
{
SetCurFilter( pFilter, pFilter->GetName() );
}
#endif // INCLUDED_FPICKER_SOURCE_OFFICE_IODLGIMP_HXX #endif // INCLUDED_FPICKER_SOURCE_OFFICE_IODLGIMP_HXX
......
...@@ -70,23 +70,19 @@ public: ...@@ -70,23 +70,19 @@ public:
LoginDialog(vcl::Window* pParent, sal_uInt16 nFlags, LoginDialog(vcl::Window* pParent, sal_uInt16 nFlags,
const OUString& rServer, const OUString &rRealm); const OUString& rServer, const OUString &rRealm);
virtual ~LoginDialog(); virtual ~LoginDialog();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
OUString GetPath() const { return m_pPathED->GetText(); }
void SetPath( const OUString& rNewPath ) { m_pPathED->SetText( rNewPath ); }
OUString GetName() const { return m_pNameED->GetText(); } OUString GetName() const { return m_pNameED->GetText(); }
void SetName( const OUString& rNewName ) { m_pNameED->SetText( rNewName ); } void SetName( const OUString& rNewName ) { m_pNameED->SetText( rNewName ); }
OUString GetPassword() const { return m_pPasswordED->GetText(); } OUString GetPassword() const { return m_pPasswordED->GetText(); }
void SetPassword( const OUString& rNew ) { m_pPasswordED->SetText( rNew ); } void SetPassword( const OUString& rNew ) { m_pPasswordED->SetText( rNew ); }
OUString GetAccount() const { return m_pAccountED->GetText(); } OUString GetAccount() const { return m_pAccountED->GetText(); }
void SetAccount( const OUString& rNew ) { m_pAccountED->SetText( rNew ); }
bool IsSavePassword() const { return m_pSavePasswdBtn->IsChecked(); } bool IsSavePassword() const { return m_pSavePasswdBtn->IsChecked(); }
void SetSavePassword( bool bSave ) { m_pSavePasswdBtn->Check( bSave ); } void SetSavePassword( bool bSave ) { m_pSavePasswdBtn->Check( bSave ); }
void SetSavePasswordText( const OUString& rTxt ) { m_pSavePasswdBtn->SetText( rTxt ); } void SetSavePasswordText( const OUString& rTxt ) { m_pSavePasswdBtn->SetText( rTxt ); }
bool IsUseSystemCredentials() const { return m_pUseSysCredsCB->IsChecked(); } bool IsUseSystemCredentials() const { return m_pUseSysCredsCB->IsChecked(); }
void SetUseSystemCredentials( bool bUse ); void SetUseSystemCredentials( bool bUse );
void SetErrorText( const OUString& rTxt ) { m_pErrorInfo->SetText( rTxt ); } void SetErrorText( const OUString& rTxt ) { m_pErrorInfo->SetText( rTxt ); }
void SetLoginRequestText( const OUString& rTxt ) { m_pRequestInfo->SetText( rTxt ); }
void ClearPassword(); void ClearPassword();
void ClearAccount(); void ClearAccount();
}; };
......
...@@ -55,7 +55,6 @@ public: ...@@ -55,7 +55,6 @@ public:
{ {
} }
const OUString& GetTitle() const { return m_aTitle; }
const OUString& GetServer() const { return m_aServer; } const OUString& GetServer() const { return m_aServer; }
const OUString& GetAccount() const { return m_aAccount; } const OUString& GetAccount() const { return m_aAccount; }
const OUString& GetUserName() const { return m_aUserName; } const OUString& GetUserName() const { return m_aUserName; }
...@@ -90,12 +89,8 @@ public: ...@@ -90,12 +89,8 @@ public:
{ m_aPasswordToModify = aPassword; } { m_aPasswordToModify = aPassword; }
void SetRecommendToOpenReadonly( bool bVal ) void SetRecommendToOpenReadonly( bool bVal )
{ m_bRecommendToOpenReadonly = bVal; } { m_bRecommendToOpenReadonly = bVal; }
void SetPath( const OUString& aPath )
{ m_aPath = aPath; }
void SetErrorText( const OUString& aErrorText ) void SetErrorText( const OUString& aErrorText )
{ m_aErrorText = aErrorText; } { m_aErrorText = aErrorText; }
void SetFlags( sal_uInt8 nFlags )
{ m_nFlags = nFlags; }
inline void SetCanRememberPassword( bool bSet ); inline void SetCanRememberPassword( bool bSet );
inline void SetIsRememberPassword( bool bSet ); inline void SetIsRememberPassword( bool bSet );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment