summaryrefslogtreecommitdiff
path: root/transex3/source/export2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'transex3/source/export2.cxx')
-rw-r--r--transex3/source/export2.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/transex3/source/export2.cxx b/transex3/source/export2.cxx
index 5db1067a7afb..7815e80e033f 100644
--- a/transex3/source/export2.cxx
+++ b/transex3/source/export2.cxx
@@ -42,6 +42,7 @@
#include <iomanip>
#include <tools/urlobj.hxx>
#include <time.h>
+#include <stdlib.h>
using namespace std;
//
@@ -93,7 +94,7 @@ ResData::~ResData()
/*****************************************************************************/
ByteString Export::sLanguages;
ByteString Export::sForcedLanguages;
-ByteString Export::sIsoCode99;
+//ByteString Export::sIsoCode99;
/*****************************************************************************/
void Export::DumpExportList( ByteString& sListName , ExportList& aList ){
@@ -648,6 +649,16 @@ int Export::getCurrentDirectory( rtl::OUString& base_fqurl_out, rtl::OUString& b
return osl::File::getFileURLFromSystemPath( base_out , base_fqurl_out );
}
+void Export::getCurrentDir( string& dir )
+{
+ char buffer[64000];
+ if( getcwd( buffer , sizeof( buffer ) ) == 0 ){
+ cerr << "Error: getcwd failed!\n";
+ exit( -1 );
+ }
+ dir = string( buffer );
+}
+
// Stolen from sal/osl/unx/tempfile.c