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:
/** Changes the name of the object (flat assignment, no notify).
@attention This method requires a locked mutex. */
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
parent window.
......@@ -369,13 +366,6 @@ inline void AccessibleGridControlBase::implSetName(
m_aName = rName;
}
inline void AccessibleGridControlBase::implSetDescription(
const OUString& rDescription )
{
m_aDescription = rDescription;
}
} // namespace accessibility
......
......@@ -64,11 +64,6 @@ namespace accessibility
getAccessibleContext()
throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
inline bool isRowBarCell() const
{
return getType() == ::svt::table::TCTYPE_ROWHEADERCELL;
}
/** @return
The name of this class.
*/
......
......@@ -65,12 +65,8 @@ private:
/** Returns the row index from cell index. */
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. */
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:
/** ctor()
......
......@@ -42,7 +42,6 @@ namespace accessibility
virtual Rectangle GetDropDownPosSizePixel( ) const = 0;
virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
virtual Rectangle GetWindowExtentsRelative( vcl::Window* pRelativeWindow ) = 0;
virtual bool IsActive() const = 0;
virtual bool IsEnabled() const = 0;
virtual bool IsEntryVisible( sal_Int32 nPos ) const = 0;
virtual sal_uInt16 GetDisplayLineCount() const = 0;
......
......@@ -81,11 +81,6 @@ public:
return m_aComboListBox.GetWindowExtentsRelative( pRelativeWindow );
}
virtual bool IsActive() const SAL_OVERRIDE
{
return m_aComboListBox.IsActive();
}
virtual bool IsEnabled() const SAL_OVERRIDE
{
return m_aComboListBox.IsEnabled();
......
......@@ -70,8 +70,6 @@ protected:
bool m_bSelected;
bool m_bChecked;
Menu* GetMenu() { return m_pMenu; }
virtual bool IsEnabled();
virtual bool IsFocused();
virtual bool IsVisible();
......
......@@ -137,8 +137,6 @@ public:
virtual ::com::sun::star::uno::Any SAL_CALL getMinimumValue( )
throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
bool IsDropDownBox() {return m_bIsDropDownBox;};
BoxType GetBoxType() { return m_aBoxType;};
protected:
/** Specifies whether the box is a combo box or a list box. List boxes
have multi selection.
......
......@@ -116,8 +116,6 @@ public:
inline bool IsSelected() const { return m_bSelected; }
void SetSelected( bool _bSelected );
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
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:
void SetFocus( bool _bFocus );
inline bool HasFocus() const { return m_bHasFocus; }
void SetChecked( bool _bCheck );
inline bool IsChecked() const { return m_bIsChecked; }
void SetIndeterminate( bool _bIndeterminate );
inline bool IsIndeterminate() const { return m_bIndeterminate; }
inline void ReleaseToolBox() { m_pToolBox = NULL; }
void NameChanged();
void SetChild( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _xChild );
......
......@@ -198,8 +198,6 @@ namespace svt
}
inline bool isFolder( ) { return isFolder( getURL() ); }
inline bool isDocument( ) { return isDocument( getURL() ); }
inline bool is( ) { return is( getURL() ); }
};
......
......@@ -162,7 +162,6 @@ private:
protected:
virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
void EnableInternet( bool bInternet );
// originally from VclFileDialog
Link<> _aOKHdl;
......@@ -229,7 +228,6 @@ public:
inline SvtFileView* GetView() const;
void DisableSaveLastDirectory();
void InitSize();
void UpdateControls( const OUString& rURL );
void EnableAutocompletion( bool _bEnable = true );
......@@ -260,12 +258,6 @@ public:
inline void SetDefaultExt( const OUString& rExt );
inline void EraseDefaultExt( sal_Int32 _nIndex = 0 );
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 ); }
......@@ -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
{
return _pFileView;
}
#define FILE_SELECTION_CHANGED 1
#define DIRECTORY_CHANGED 2
#define HELP_REQUESTED 3
......
......@@ -217,7 +217,6 @@ public:
inline const SvtFileDialogFilter_Impl* GetCurFilter( ) const;
inline const OUString& GetCurFilterDisplayName() const;
void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter, const OUString& _rDisplayName );
inline void SetCurFilter( SvtFileDialogFilter_Impl* _pFilter );
};
inline void SvtExpFileDlg_Impl::SetFilterListSelectHdl( const Link<>& _rHandler )
......@@ -261,11 +260,6 @@ inline const OUString& SvtExpFileDlg_Impl::GetCurFilterDisplayName() const
return m_sCurrentFilterDisplayName;
}
inline void SvtExpFileDlg_Impl::SetCurFilter( SvtFileDialogFilter_Impl* pFilter )
{
SetCurFilter( pFilter, pFilter->GetName() );
}
#endif // INCLUDED_FPICKER_SOURCE_OFFICE_IODLGIMP_HXX
......
......@@ -72,21 +72,17 @@ public:
virtual ~LoginDialog();
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(); }
void SetName( const OUString& rNewName ) { m_pNameED->SetText( rNewName ); }
OUString GetPassword() const { return m_pPasswordED->GetText(); }
void SetPassword( const OUString& rNew ) { m_pPasswordED->SetText( rNew ); }
OUString GetAccount() const { return m_pAccountED->GetText(); }
void SetAccount( const OUString& rNew ) { m_pAccountED->SetText( rNew ); }
bool IsSavePassword() const { return m_pSavePasswdBtn->IsChecked(); }
void SetSavePassword( bool bSave ) { m_pSavePasswdBtn->Check( bSave ); }
void SetSavePasswordText( const OUString& rTxt ) { m_pSavePasswdBtn->SetText( rTxt ); }
bool IsUseSystemCredentials() const { return m_pUseSysCredsCB->IsChecked(); }
void SetUseSystemCredentials( bool bUse );
void SetErrorText( const OUString& rTxt ) { m_pErrorInfo->SetText( rTxt ); }
void SetLoginRequestText( const OUString& rTxt ) { m_pRequestInfo->SetText( rTxt ); }
void ClearPassword();
void ClearAccount();
};
......
......@@ -55,7 +55,6 @@ public:
{
}
const OUString& GetTitle() const { return m_aTitle; }
const OUString& GetServer() const { return m_aServer; }
const OUString& GetAccount() const { return m_aAccount; }
const OUString& GetUserName() const { return m_aUserName; }
......@@ -90,12 +89,8 @@ public:
{ m_aPasswordToModify = aPassword; }
void SetRecommendToOpenReadonly( bool bVal )
{ m_bRecommendToOpenReadonly = bVal; }
void SetPath( const OUString& aPath )
{ m_aPath = aPath; }
void SetErrorText( const OUString& aErrorText )
{ m_aErrorText = aErrorText; }
void SetFlags( sal_uInt8 nFlags )
{ m_nFlags = nFlags; }
inline void SetCanRememberPassword( 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