[Libreoffice-commits] core.git: sc/source

Tomaž Vajngerl quikee at gmail.com
Sun Dec 8 12:46:00 PST 2013


 sc/source/ui/inc/tptable.hxx     |   19 -------------------
 sc/source/ui/pagedlg/tptable.cxx |   24 ------------------------
 2 files changed, 43 deletions(-)

New commits:
commit c85f1ed54f64bb7c7d309ec87df9ce8027a4a108
Author: Tomaž Vajngerl <quikee at gmail.com>
Date:   Sun Dec 8 20:24:06 2013 +0100

    Remove EmptyNumericField as it looks like it isn't used anymore.
    
    Change-Id: I2619aea6543ec19c360b44d8d22e0d7ebca2b658

diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx
index 92d654c..827acf0 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 21efc16..983c913 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 -----------------------------------------------------------
 


More information about the Libreoffice-commits mailing list