summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-03-29 12:25:19 +0000
committerOliver Bolte <obo@openoffice.org>2006-03-29 12:25:19 +0000
commit234d5ff79a51c8d4372cd3fc6c7a4904cd00b17b (patch)
tree10563d04963750a6711ff6d66229f04ed7a6f4ac /transex3
parentb0528e3df4130aa66bb796e67bd24c8e1802a663 (diff)
INTEGRATION: CWS hc2opti (1.3.12); FILE MERGED
2006/02/24 17:10:21 ihi 1.3.12.3: #i55666# hc2 build speedup 2006/02/14 15:34:29 ihi 1.3.12.2: RESYNC: (1.3-1.4); FILE MERGED 2006/02/14 13:02:05 ihi 1.3.12.1: #i55666# hc2 build speedup prototype
Diffstat (limited to 'transex3')
-rw-r--r--transex3/inc/helpmerge.hxx24
1 files changed, 16 insertions, 8 deletions
diff --git a/transex3/inc/helpmerge.hxx b/transex3/inc/helpmerge.hxx
index 70eb3169ac57..bc9b32a9123b 100644
--- a/transex3/inc/helpmerge.hxx
+++ b/transex3/inc/helpmerge.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: helpmerge.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2006-01-19 17:58:57 $
+ * last change: $Author: obo $ $Date: 2006-03-29 13:25:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -50,6 +50,7 @@ class HelpParser
{
private:
bool bUTF8;
+ bool bHasInputList;
ByteString sHelpFile;
/// Copy fallback language String (ENUS,DE) into position of the numeric language iso code
@@ -62,23 +63,30 @@ private:
/// Debugmethod, prints the content of the map to stdout
static void Dump( XMLHashMap* rElem_in ) ;
+
+
public:
- HelpParser( const ByteString &rHelpFile, bool bUTF8 );
+ HelpParser( const ByteString &rHelpFile, bool bUTF8 , bool bHasInputList );
~HelpParser(){};
/// Method creates/append a SDF file with the content of a parsed XML file
/// @PRECOND rHelpFile is valid
bool CreateSDF( const ByteString &rSDFFile_in, const ByteString &rPrj_in, const ByteString &rRoot_in );
+ static void parse_languages( std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile );
+
/// Method merges the String from the SDFfile into XMLfile. Both Strings must
/// point to existing files.
- bool Merge( const ByteString &rSDFFile_in, const ByteString &rDestinationFile_in );
-
- bool Merge( const ByteString &rSDFFile, const ByteString &rPathX , const ByteString &rPathY , bool bISO );
+ //bool Merge( const ByteString &rSDFFile_in, const ByteString &rDestinationFile_in , const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile );
+ bool Merge( const ByteString &rSDFFile_in, const ByteString &rDestinationFile_in , ByteString& sLanguage , MergeDataFile& aMergeDataFile );
+ bool Merge( const ByteString &rSDFFile, const ByteString &rPathX , const ByteString &rPathY , bool bISO
+ , const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile , bool bCreateDir );
private:
ByteString GetOutpath( const ByteString& rPathX , const ByteString& sCur , const ByteString& rPathY );
- void Process( LangHashMap* aLangHM , ByteString& sCur , ResData *pResData , MergeDataFile& aMergeDataFile );
- void ProcessHelp( LangHashMap* aLangHM , ByteString& sCur , ResData *pResData , MergeDataFile& aMergeDataFile );
+ bool MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile , const ByteString& sLanguage , ByteString sPath );
+;
+ void Process( LangHashMap* aLangHM , const ByteString& sCur , ResData *pResData , MergeDataFile& aMergeDataFile );
+ void ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , ResData *pResData , MergeDataFile& aMergeDataFile );
void MakeDir( const ByteString& sPath );
};