summaryrefslogtreecommitdiff
path: root/l10ntools/inc/export.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/inc/export.hxx')
-rw-r--r--l10ntools/inc/export.hxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 409e6169b904..050ded578b87 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -21,6 +21,7 @@
#define _EXPORT_HXX
#include "sal/config.h"
+#include "po.hxx"
#include <cstddef>
#include <fstream>
@@ -274,7 +275,12 @@ class Export
private:
WordTransformer *pWordTransformer;
- std::ofstream aOutput;
+ union
+ {
+ std::ofstream* mSimple;
+ PoOfstream* mPo;
+
+ } aOutput;
ResStack aResStack; // stack for parsing recursive
@@ -307,6 +313,10 @@ public:
static bool handleArguments(int argc, char * argv[], HandledArgs& o_aHandledArgs);
static void writeUsage(const OString& rName, const OString& rFileType);
+ static void writePoEntry(const OString& rExecutable, PoOfstream& rPoStream, const OString& rSourceFile,
+ const OString& rResType, const OString& rGroupId, const OString& rLocalId,
+ const OString& rHelpText, const OString& rText,
+ const PoEntry::TYPE eType = PoEntry::TTEXT);
static void InitLanguages( bool bMergeMode = false );
static void InitForcedLanguages( bool bMergeMode = false );