summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/imoptdlg.hxx
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2000-12-20 11:18:06 +0000
committerEike Rathke <er@openoffice.org>2000-12-20 11:18:06 +0000
commit3c3327a14282121377977623dd5d7555a4c72f78 (patch)
tree67b97cc2ea680a3315895d4888f0a45254823893 /sc/source/ui/inc/imoptdlg.hxx
parenta270e0e9c3c5f32dbf8397d8735caf2f2e092c41 (diff)
using SvxTextEncodingBox
Diffstat (limited to 'sc/source/ui/inc/imoptdlg.hxx')
-rw-r--r--sc/source/ui/inc/imoptdlg.hxx26
1 files changed, 17 insertions, 9 deletions
diff --git a/sc/source/ui/inc/imoptdlg.hxx b/sc/source/ui/inc/imoptdlg.hxx
index e355940de04b..06aa3cb14c5d 100644
--- a/sc/source/ui/inc/imoptdlg.hxx
+++ b/sc/source/ui/inc/imoptdlg.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: imoptdlg.hxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:59 $
+ * last change: $Author: er $ $Date: 2000-12-20 12:08:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -86,6 +86,9 @@
#include <vcl/group.hxx>
#endif
+#ifndef _SVX_TXENCBOX_HXX
+#include <svx/txencbox.hxx>
+#endif
#ifndef SC_SCGLOB_HXX
#include "global.hxx"
@@ -102,19 +105,20 @@ public:
ScImportOptionsDlg( Window* pParent,
BOOL bAsciiImport = TRUE,
const ScImportOptions* pOptions = NULL,
- const String* pStrTitle = NULL );
+ const String* pStrTitle = NULL,
+ BOOL bMultiByte = FALSE );
~ScImportOptionsDlg();
void GetImportOptions( ScImportOptions& rOptions ) const;
private:
+ FixedText aFtFont;
+ SvxTextEncodingBox aLbFont;
FixedText aFtFieldSep;
ComboBox aEdFieldSep;
FixedText aFtTextSep;
ComboBox aEdTextSep;
- FixedText aFtFont;
- ListBox aLbFont;
GroupBox aGbFieldOpt;
OKButton aBtnOk;
CancelButton aBtnCancel;
@@ -122,7 +126,6 @@ private:
ScDelimiterTable* pFieldSepTab;
ScDelimiterTable* pTextSepTab;
- String aCharKeyList;
private:
USHORT GetCodeFromCombo( const ComboBox& rEd ) const;
@@ -139,8 +142,12 @@ public:
ScImportOptions( const String& rStr );
ScImportOptions( USHORT nFieldSep, USHORT nTextSep, const String& rStr )
- : nFieldSepCode(nFieldSep),nTextSepCode(nTextSep),aStrFont(rStr),eCharSet(RTL_TEXTENCODING_DONTKNOW)
- { eCharSet = GetCharsetValue(aStrFont); }
+ : nFieldSepCode(nFieldSep),nTextSepCode(nTextSep),aStrFont(rStr)
+ { eCharSet = ScGlobal::GetCharsetValue(aStrFont); }
+
+ ScImportOptions( USHORT nFieldSep, USHORT nTextSep, rtl_TextEncoding nEnc )
+ : nFieldSepCode(nFieldSep),nTextSepCode(nTextSep)
+ { SetTextEncoding( nEnc ); }
ScImportOptions( const ScImportOptions& rCpy )
: nFieldSepCode (rCpy.nFieldSepCode),
@@ -167,7 +174,8 @@ public:
&& aStrFont == rCmp.aStrFont;
}
String BuildString() const;
- String BuildParaString( const String& rTyp, const String& rDsn ) const;
+
+ void SetTextEncoding( rtl_TextEncoding nEnc );
USHORT nFieldSepCode;
USHORT nTextSepCode;