diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-12-08 20:24:06 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-12-08 21:45:26 +0100 |
commit | c85f1ed54f64bb7c7d309ec87df9ce8027a4a108 (patch) | |
tree | 3814d66c82a1c5682eb194395372a42a9fad04a1 /sc | |
parent | d5dcb3fc160ce9e2235560af35be2c0f44e03a08 (diff) |
Remove EmptyNumericField as it looks like it isn't used anymore.
Change-Id: I2619aea6543ec19c360b44d8d22e0d7ebca2b658
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/tptable.hxx | 19 | ||||
-rw-r--r-- | sc/source/ui/pagedlg/tptable.cxx | 24 |
2 files changed, 0 insertions, 43 deletions
diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx index 92d654c8da32..827acf03ac4d 100644 --- a/sc/source/ui/inc/tptable.hxx +++ b/sc/source/ui/inc/tptable.hxx @@ -25,25 +25,6 @@ #include <vcl/lstbox.hxx> #include <vcl/field.hxx> -//=================================================================== - -/** A vcl/NumericField that additionally supports empty text. - @descr Value 0 is set as empty text, and empty text is returned as 0. */ -class EmptyNumericField : public NumericField -{ -public: - inline explicit EmptyNumericField( Window* pParent, WinBits nWinStyle ) : - NumericField( pParent, nWinStyle ) {} - inline explicit EmptyNumericField( Window* pParent, const ResId& rResId ) : - NumericField( pParent, rResId ) {} - - virtual void Modify(); - virtual void SetValue( sal_Int64 nValue ); - virtual sal_Int64 GetValue() const; -}; - -//=================================================================== - class ScTablePage : public SfxTabPage { public: diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx index 21efc163b51b..983c9136373b 100644 --- a/sc/source/ui/pagedlg/tptable.cxx +++ b/sc/source/ui/pagedlg/tptable.cxx @@ -33,30 +33,6 @@ #include "sc.hrc" #include "pagedlg.hrc" -// ======================================================================= - -void EmptyNumericField::Modify() -{ - if( !GetText().isEmpty() ) - NumericField::Modify(); - else - SetEmptyFieldValue(); -} - -void EmptyNumericField::SetValue( sal_Int64 nValue ) -{ - if( nValue == 0 ) - SetEmptyFieldValue(); - else - NumericField::SetValue( nValue ); -} - -sal_Int64 EmptyNumericField::GetValue() const -{ - return IsEmptyFieldValue() ? 0 : NumericField::GetValue(); -} - -// ======================================================================= // STATIC DATA ----------------------------------------------------------- |