summaryrefslogtreecommitdiff
path: root/extensions/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 23:18:14 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 08:21:01 +0100
commitfa802cfb216bf9ba5a39d12df343717fb5328823 (patch)
treef886db75e7197e157db265245e9a13588cadd92c /extensions/source
parentd10c0bab4cdce22d15ec9bb2b12ab1466fa4659d (diff)
Remove SAVE_ALL_STATES
Diffstat (limited to 'extensions/source')
-rw-r--r--extensions/source/scanner/sanedlg.cxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index d1e8ed07ad58..fbd8390c0fde 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -41,7 +41,6 @@
#include <sal/macros.h>
#define USE_SAVE_STATE
-#undef SAVE_ALL_STATES
ResId SaneResId( sal_uInt32 nID )
{
@@ -1256,59 +1255,6 @@ void SaneDlg::SaveState()
aConfig.SetGroup( "SANE" );
aConfig.WriteKey( "SO_LastSANEDevice", ByteString( maDeviceBox.GetSelectEntry(), RTL_TEXTENCODING_UTF8 ) );
-#ifdef SAVE_ALL_STATES
- for( int i = 1; i < mrSane.CountOptions(); i++ )
- {
- String aOption=mrSane.GetOptionName( i );
- SANE_Value_Type nType = mrSane.GetOptionType( i );
- switch( nType )
- {
- case SANE_TYPE_BOOL:
- {
- BOOL bValue;
- if( mrSane.GetOptionValue( i, bValue ) )
- {
- ByteString aString( "BOOL=" );
- aString += (ULONG)bValue;
- aConfig.WriteKey( aOption, aString );
- }
- }
- break;
- case SANE_TYPE_STRING:
- {
- String aString( "STRING=" );
- String aValue;
- if( mrSane.GetOptionValue( i, aValue ) )
- {
- aString += aValue;
- aConfig.WriteKey( aOption, aString );
- }
- }
- break;
- case SANE_TYPE_FIXED:
- case SANE_TYPE_INT:
- {
- String aString( "NUMERIC=" );
- double fValue;
- char buf[256];
- for( int n = 0; n < mrSane.GetOptionElements( i ); n++ )
- {
- if( ! mrSane.GetOptionValue( i, fValue, n ) )
- break;
- if( n > 0 )
- aString += ":";
- sprintf( buf, "%lg", fValue );
- aString += buf;
- }
- if( n >= mrSane.GetOptionElements( i ) )
- aConfig.WriteKey( aOption, aString );
- }
- break;
- default:
- break;
- }
- }
-#else
static char const* pSaveOptions[] = {
"resolution",
"tl-x",
@@ -1374,7 +1320,6 @@ void SaneDlg::SaveState()
}
}
#endif
-#endif
}
BOOL SaneDlg::SetAdjustedNumericalValue(