diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 16:18:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 16:18:57 +0000 |
commit | 9d87dfa547a3c2e8592e0a20d7f5e84eac85c7f9 (patch) | |
tree | 9943130678fe1a126bcf686f287d6c618e6359f7 /transex3/inc | |
parent | 34ee3065905a05326d8a85b2ed59f38165b3ac9c (diff) |
INTEGRATION: CWS warnings01 (1.14.8); FILE MERGED
2006/05/23 19:03:25 sb 1.14.8.11: RESYNC: (1.17-1.18); FILE MERGED
2006/04/18 17:03:24 ihi 1.14.8.10: resync fix
2006/04/07 18:34:37 sb 1.14.8.9: RESYNC: (1.16-1.17); FILE MERGED
2006/03/09 19:27:04 ihi 1.14.8.8: #i57362# Warning free wntmsci10
2006/01/25 19:10:23 sb 1.14.8.7: RESYNC: (1.15-1.16); FILE MERGED
2005/11/18 18:10:46 ihi 1.14.8.6: #i57362# Removed warnings
2005/11/10 12:12:28 pl 1.14.8.5: #i53898# removed warnings
2005/11/10 12:06:08 pl 1.14.8.4: #i53898# removed warnings
2005/11/07 17:21:32 pl 1.14.8.3: RESYNC: (1.14-1.15); FILE MERGED
2005/11/07 12:47:06 ihi 1.14.8.2: #i57362# Remove warnings
2005/10/21 12:55:57 pl 1.14.8.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'transex3/inc')
-rw-r--r-- | transex3/inc/export.hxx | 157 |
1 files changed, 81 insertions, 76 deletions
diff --git a/transex3/inc/export.hxx b/transex3/inc/export.hxx index e9b9747f1d5a..ee82d6185025 100644 --- a/transex3/inc/export.hxx +++ b/transex3/inc/export.hxx @@ -4,9 +4,9 @@ * * $RCSfile: export.hxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: vg $ $Date: 2006-04-08 09:56:45 $ + * last change: $Author: hr $ $Date: 2006-06-19 17:18:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -102,7 +102,7 @@ typedef std::hash_map<ByteString , MergeData* , hashByteString,equalByteString> typedef ByteStringHashMap ExportListEntry; -DECLARE_LIST( ExportListBase, ExportListEntry * ); +DECLARE_LIST( ExportListBase, ExportListEntry * ) // // class ExportList @@ -140,68 +140,10 @@ public: class ResData { public: - ResData( const ByteString &rPF, const ByteString &rGId ) - : nWidth( 0 ), - sPForm( rPF ), - sFilename( ByteString("") ), - pStringList( NULL ), - pFilterList( NULL ), - pItemList( NULL ), - pPairedList( NULL ), - pUIEntries( NULL ), - nChildIndex( 0 ), - nIdLevel( ID_LEVEL_NULL ), - sGId( rGId ), - sTextTyp( "Text" ), - bText( FALSE ), - bList( FALSE ), - bQuickHelpText( FALSE ), - bHelpText( FALSE ), - bTitle( FALSE ), - bChild( FALSE ), - bChildWithText( FALSE ), - nTextRefId( REFID_NONE ), - nHelpTextRefId( REFID_NONE ), - nQuickHelpTextRefId( REFID_NONE ), - nTitleRefId( REFID_NONE ), - bRestMerged( FALSE ) - { - sGId.EraseAllChars( '\r' ); - sPForm.EraseAllChars( '\r' ); - }; - ResData( const ByteString &rPF, const ByteString &rGId , const ByteString &rFilename ) - : nWidth( 0 ), - sPForm( rPF ), - sFilename( rFilename ), - pStringList( NULL ), - pFilterList( NULL ), - pItemList( NULL ), - pPairedList( NULL ), - pUIEntries( NULL ), - nChildIndex( 0 ), - nIdLevel( ID_LEVEL_NULL ), - sGId( rGId ), - sTextTyp( "Text" ), - bText( FALSE ), - bList( FALSE ), - bQuickHelpText( FALSE ), - bHelpText( FALSE ), - bTitle( FALSE ), - bChild( FALSE ), - bChildWithText( FALSE ), - nTextRefId( REFID_NONE ), - nHelpTextRefId( REFID_NONE ), - nQuickHelpTextRefId( REFID_NONE ), - nTitleRefId( REFID_NONE ), - bRestMerged( FALSE ) - { - sGId.EraseAllChars( '\r' ); - sPForm.EraseAllChars( '\r' ); - }; - ~ResData(); BOOL SetId( const ByteString &rId, USHORT nLevel ); + USHORT nWidth; USHORT nChildIndex; USHORT nIdLevel; BOOL bChild; @@ -215,13 +157,11 @@ public: BOOL bRestMerged; - ByteString sPForm; ByteString sResTyp; ByteString sId; ByteString sGId; ByteString sHelpId; ByteString sFilename; - USHORT nWidth; ByteStringHashMap sText; USHORT nTextRefId; @@ -241,16 +181,79 @@ public: ExportList *pStringList; ExportList *pUIEntries; - ExportList *pFilterList; ExportList *pItemList; + ExportList *pFilterList; ExportList *pPairedList; + ByteString sPForm; + void Dump(); void addFallbackData( ByteString& sId , const ByteString& sText ); bool getFallbackData( ByteString& sId , ByteString& sText); void addMergedLanguage( ByteString& sLang ); bool isMerged( ByteString& sLang ); + ResData( const ByteString &rPF, const ByteString &rGId ) + : + nWidth( 0 ), + nChildIndex( 0 ), + nIdLevel( ID_LEVEL_NULL ), + bChild( FALSE ), + bChildWithText( FALSE ), + bText( FALSE ), + bHelpText( FALSE ), + bQuickHelpText( FALSE ), + bTitle( FALSE ), + bList( FALSE ), + bRestMerged( FALSE ), + sGId( rGId ), + nTextRefId( REFID_NONE ), + nHelpTextRefId( REFID_NONE ), + nQuickHelpTextRefId( REFID_NONE ), + nTitleRefId( REFID_NONE ), + sTextTyp( "Text" ), + pStringList( NULL ), + pUIEntries( NULL ), + pItemList( NULL ), + pFilterList( NULL ), + pPairedList( NULL ), + sPForm( rPF ) + { + sGId.EraseAllChars( '\r' ); + sPForm.EraseAllChars( '\r' ); + }; + ResData( const ByteString &rPF, const ByteString &rGId , const ByteString &rFilename ) + : + nChildIndex( 0 ), + nIdLevel( ID_LEVEL_NULL ), + bChild( FALSE ), + bChildWithText( FALSE ), + bText( FALSE ), + bHelpText( FALSE ), + bQuickHelpText( FALSE ), + bTitle( FALSE ), + bList( FALSE ), + bRestMerged( FALSE ), + sGId( rGId ), + sFilename( rFilename ), + nTextRefId( REFID_NONE ), + nHelpTextRefId( REFID_NONE ), + nQuickHelpTextRefId( REFID_NONE ), + nTitleRefId( REFID_NONE ), + sTextTyp( "Text" ), + pStringList( NULL ), + pUIEntries( NULL ), + pItemList( NULL ), + pFilterList( NULL ), + pPairedList( NULL ), + sPForm( rPF ) + + { + sGId.EraseAllChars( '\r' ); + sPForm.EraseAllChars( '\r' ); + }; + + }; @@ -276,7 +279,7 @@ public: #define MERGE_MODE_NORMAL 0x0000 #define MERGE_MODE_LIST 0x0001 -DECLARE_LIST( ResStack, ResData * ); +DECLARE_LIST( ResStack, ResData * ) // forwards class WordTransformer; class ParserQueue; @@ -332,16 +335,16 @@ public: static bool hasUTF8ByteOrderMarker( const ByteString &rString ); static void RemoveUTF8ByteOrderMarkerFromFile( const ByteString &rFilename ); static bool fileHasUTF8ByteOrderMarker( const ByteString &rString ); - static USHORT GetLangIndex( USHORT nLangId ); - static CharSet GetCharSet( USHORT nLangId ); - static USHORT GetLangByIsoLang( const ByteString &rIsoLang ); +// static USHORT GetLangIndex( USHORT nLangId ); +// static CharSet GetCharSet( USHORT nLangId ); +// static USHORT GetLangByIsoLang( const ByteString &rIsoLang ); static ByteString GetIsoLangByIndex( USHORT nIndex ); static void QuotHTML( ByteString &rString ); static void UnquotHTML( ByteString &rString ); static int getCurrentDirectory( rtl::OUString& base_fqurl , rtl::OUString& base ); - static bool isAllowed( ByteString &sLanguage ); + static bool isAllowed( const ByteString &sLanguage ); static bool isMergingGermanAllowed( const ByteString& rPrj ); static bool LanguageAllowed( const ByteString &nLanguage ); @@ -364,7 +367,7 @@ private: static std::vector<ByteString> aLanguages; static std::vector<ByteString> aForcedLanguages; - BOOL CreateRefIds( ResData *pResData ) { /* Dummy !!! */ return TRUE; } + //BOOL CreateRefIds( ResData *pResData ) { /* Dummy !!! */ return TRUE; } BOOL ListExists( ResData *pResData, USHORT nLst ); BOOL WriteData( ResData *pResData, BOOL bCreateNew = FALSE );// called befor dest. cur ResData @@ -384,13 +387,14 @@ private: void UnmergeUTF8( ByteString& sOrig ); void InsertListEntry( const ByteString &rText, const ByteString &rLine ); void CleanValue( ByteString &rValue ); - ByteString GetText( const ByteString &rSource, USHORT nToken ); + ByteString GetText( const ByteString &rSource, int nToken ); BOOL PrepareTextToMerge( ByteString &rText, USHORT nTyp, ByteString &nLangIndex, ResData *pResData ); void MergeRest( ResData *pResData, USHORT nMode = MERGE_MODE_NORMAL ); - void ConvertMergeContent( ByteString &rText, USHORT nTyp ); +// void ConvertMergeContent( ByteString &rText, USHORT nTyp ); + void ConvertMergeContent( ByteString &rText ); void WriteToMerged( const ByteString &rText , bool bSDFContent ); void SetChildWithText(); @@ -406,7 +410,7 @@ public: ~Export(); void Init(); - int Execute( int nToken, char * pToken ); // called from lexer + int Execute( int nToken, const char * pToken ); // called from lexer void SetError() { bError = TRUE; } BOOL GetError() { return bError; } }; @@ -505,7 +509,8 @@ private: public: - MergeDataFile( const ByteString &rFileName, const ByteString& rFile , BOOL bErrLog, CharSet aCharSet, BOOL bUTF8 ); + MergeDataFile( const ByteString &rFileName, const ByteString& rFile , BOOL bErrLog, CharSet aCharSet + ); ~MergeDataFile(); @@ -523,7 +528,7 @@ public: static ByteString CreateKey( const ByteString& rTYP , const ByteString& rGID , const ByteString& rLID , const ByteString& rFilename //= ByteString("") ); ByteString Dump(); - void WriteErrorLog( const ByteString &rFileName ); +// void WriteErrorLog( const ByteString &rFileName ); void WriteError( const ByteString &rLine ); }; |