diff options
author | Thomas Lange <tl@openoffice.org> | 2001-08-28 06:47:20 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-08-28 06:47:20 +0000 |
commit | f2333453328db8cd7f13534410ac9623ebc222fc (patch) | |
tree | 8179f79c7333b81819efbfa39c8b23d7b2be51e2 /starmath/inc/parse.hxx | |
parent | 8cb4323f0023fa6c2081909397a240c63033b8a4 (diff) |
#91580# convert to/from localized symbol names for XML annotation import/export
Diffstat (limited to 'starmath/inc/parse.hxx')
-rw-r--r-- | starmath/inc/parse.hxx | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 6ed13a631536..9ae0d5b37075 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -2,9 +2,9 @@ * * $RCSfile: parse.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: tl $ $Date: 2001-04-19 11:38:04 $ + * last change: $Author: tl $ $Date: 2001-08-28 07:46:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -78,6 +78,7 @@ #include "types.hxx" class SmNode; +class SmDocShell; // TokenGroups @@ -200,16 +201,18 @@ DECLARE_LIST(SmErrDescList, SmErrorDesc *); class SmParser { - String BufferString; - SmToken CurToken; - SmNodeStack NodeStack; - SmErrDescList ErrDescList; - int CurError; - xub_StrLen BufferIndex, - nTokenIndex; - USHORT Row, - ColOff; - BOOL bConvert40To50; + String BufferString; + SmToken CurToken; + SmNodeStack NodeStack; + SmErrDescList ErrDescList; + int CurError; + xub_StrLen BufferIndex, + nTokenIndex; + USHORT Row, + ColOff; + BOOL bConvert40To50, + bImportSymNames, + bExportSymNames; // declare copy-constructor and assignment-operator private SmParser(const SmParser &); @@ -220,6 +223,7 @@ protected: void NextToken(); xub_StrLen GetTokenIndex() const { return nTokenIndex; } void Insert(const String &rText, USHORT nPos); + void Replace( USHORT nPos, USHORT nLen, const String &rText ); inline BOOL TokenInGroup(ULONG nGroup); @@ -268,6 +272,11 @@ public: BOOL IsConvert40To50() const { return bConvert40To50; } void SetConvert40To50(BOOL bConvert) { bConvert40To50 = bConvert; } + BOOL IsImportSymbolNames() const { return bImportSymNames; } + void SetImportSymbolNames(BOOL bVal) { bImportSymNames = bVal; } + BOOL IsExportSymbolNames() const { return bExportSymNames; } + void SetExportSymbolNames(BOOL bVal) { bExportSymNames = bVal; } + USHORT AddError(SmParseError Type, SmNode *pNode); const SmErrorDesc * NextError(); |