summaryrefslogtreecommitdiff
path: root/svtools/bmpmaker
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-24 12:01:36 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-24 12:01:36 +0000
commitbe6415680983725dc8a753c39437a0638f85b4a2 (patch)
tree085655c015fd8b0aa51b2505fce670f8e19bf848 /svtools/bmpmaker
parent0aa98809b9bdb8baf185145efce384561bb35a23 (diff)
INTEGRATION: CWS ause03 (1.10.146); FILE MERGED
2003/04/08 15:14:41 ka 1.10.146.1: added lang_num command line parameter
Diffstat (limited to 'svtools/bmpmaker')
-rw-r--r--svtools/bmpmaker/bmp.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/svtools/bmpmaker/bmp.cxx b/svtools/bmpmaker/bmp.cxx
index 841b9e6c79c1..4afe2e20494c 100644
--- a/svtools/bmpmaker/bmp.cxx
+++ b/svtools/bmpmaker/bmp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bmp.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: ka $ $Date: 2002-10-30 16:27:54 $
+ * last change: $Author: vg $ $Date: 2003-04-24 13:01:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -195,12 +195,12 @@ void BmpApp::Message( const String& rText, BYTE cExitCode )
void BmpApp::ShowUsage()
{
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Usage:" ) ), EXIT_NOERROR );
- Message( String( RTL_CONSTASCII_USTRINGPARAM( " bmp srs_inputfile output_dir lang_dir -i input_dir [-i input_dir ][-f err_file]" ) ), EXIT_NOERROR );
+ Message( String( RTL_CONSTASCII_USTRINGPARAM( " bmp srs_inputfile output_dir lang_dir lang_num -i input_dir [-i input_dir ][-f err_file]" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Options:" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( " -i ... name of directory to be searched for input files [multiple occurence is possible]" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( " -f name of file, output should be written to" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Examples:" ) ), EXIT_NOERROR );
- Message( String( RTL_CONSTASCII_USTRINGPARAM( " bmp /home/test.srs /home/out enus -i /home/res -f /home/out/bmp.err" ) ), EXIT_NOERROR );
+ Message( String( RTL_CONSTASCII_USTRINGPARAM( " bmp /home/test.srs /home/out enus 01 -i /home/res -f /home/out/bmp.err" ) ), EXIT_NOERROR );
}
// -----------------------------------------------------------------------------
@@ -211,7 +211,7 @@ int BmpApp::Start( const ::std::vector< String >& rArgs )
cExitCode = EXIT_NOERROR;
- if( rArgs.size() >= 5 )
+ if( rArgs.size() >= 6 )
{
LangInfo aLangInfo;
USHORT nCurCmd = 0;
@@ -220,14 +220,15 @@ int BmpApp::Start( const ::std::vector< String >& rArgs )
ByteString aLangDir;
aOutName = rArgs[ nCurCmd++ ];
+
aLangDir = ByteString( rArgs[ nCurCmd++ ], RTL_TEXTENCODING_ASCII_US );
+ aLangInfo.mnLangNum = static_cast< sal_uInt16 >( rArgs[ nCurCmd++ ].ToInt32() );
+
+ memcpy( aLangInfo.maLangDir, aLangDir.GetBuffer(), aLangDir.Len() + 1 );
GetCommandOption( rArgs, 'f', aOutputFileName );
GetCommandOptions( rArgs, 'i', aInDirVector );
- memcpy( aLangInfo.maLangDir, aLangDir.GetBuffer(), aLangDir.Len() + 1 );
- aLangInfo.mnLangNum = (USHORT) DirEntry( aOutName ).GetName().ToInt32();
-
Create( aSrsName, aInDirVector, aOutName, aLangInfo );
}
else