diff options
author | Thomas Lange <tl@openoffice.org> | 2001-12-14 08:07:32 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-12-14 08:07:32 +0000 |
commit | eaa61b8f1190ecd411af8c4fed3ed4ee83b0036f (patch) | |
tree | 6912182fa798fd6c07eaa0e1b62a8808004a78fc /starmath/inc/parse.hxx | |
parent | 56daff9c3493b1103bcb6ef7cba050a75af6a869 (diff) |
#91500# renaming of 5.2 symbol names to 6.0 symbol names fixed
Diffstat (limited to 'starmath/inc/parse.hxx')
-rw-r--r-- | starmath/inc/parse.hxx | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 9ae0d5b37075..72a49795ac65 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -2,9 +2,9 @@ * * $RCSfile: parse.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: tl $ $Date: 2001-08-28 07:46:06 $ + * last change: $Author: tl $ $Date: 2001-12-14 09:07:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -199,6 +199,17 @@ DECLARE_LIST(SmErrDescList, SmErrorDesc *); /**************************************************************************/ +// defines possible conversions of the formula text from the format of +// one release to the one of another. +enum SmConvert +{ + CONVERT_NONE, + CONVERT_40_TO_50, + CONVERT_50_TO_60, + CONVERT_60_TO_50 +}; + + class SmParser { String BufferString; @@ -206,12 +217,13 @@ class SmParser SmNodeStack NodeStack; SmErrDescList ErrDescList; int CurError; + LanguageType nLang; xub_StrLen BufferIndex, nTokenIndex; USHORT Row, ColOff; - BOOL bConvert40To50, - bImportSymNames, + SmConvert eConversion; + BOOL bImportSymNames, bExportSymNames; // declare copy-constructor and assignment-operator private @@ -259,6 +271,9 @@ protected: void GlyphSpecial(); // end of grammar + LanguageType GetLanguage() const { return nLang; } + void SetLanguage( LanguageType nNewLang ) { nLang = nNewLang; } + void Error(SmParseError Error); public: @@ -269,8 +284,8 @@ public: const String & GetText() const { return BufferString; }; - BOOL IsConvert40To50() const { return bConvert40To50; } - void SetConvert40To50(BOOL bConvert) { bConvert40To50 = bConvert; } + SmConvert GetConversion() const { return eConversion; } + void SetConversion(SmConvert eConv) { eConversion = eConv; } BOOL IsImportSymbolNames() const { return bImportSymNames; } void SetImportSymbolNames(BOOL bVal) { bImportSymNames = bVal; } |