diff options
author | jan Iversen <jani@documentfoundation.org> | 2016-05-02 11:46:13 +0000 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2016-05-02 12:15:36 +0000 |
commit | 8aed53c10425fab4813b439abe3ee60939dc9a14 (patch) | |
tree | d512936ccadd40aa5ad0de23a5547c0e394bef0a /l10ntools/inc | |
parent | 3db082a75210bbf0fc657831443c589a4226b997 (diff) |
genLang .src conversion, first version.
LO uses the .src quite differently, so a new implementation
was made.
The unused old functions are hanging in a #if 0, and will
be removed later.
Change-Id: Ic466a1b97f9f65c9f658612bd2aa325396e929c3
Diffstat (limited to 'l10ntools/inc')
-rw-r--r-- | l10ntools/inc/gConvSrc.hxx | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/l10ntools/inc/gConvSrc.hxx b/l10ntools/inc/gConvSrc.hxx index 3f3f9a242019..77922c9a36db 100644 --- a/l10ntools/inc/gConvSrc.hxx +++ b/l10ntools/inc/gConvSrc.hxx @@ -28,26 +28,29 @@ extern int srclex(void); class convert_src : public convert_gen { public: - bool mbExpectValue; +// bool mbExpectValue; convert_src(l10nMem& crMemory); ~convert_src() override {}; - void setValue (char *syyText, char *sbuildValue); - void setLang (char *syyText, bool bEnUs); - void setId (char *syyText, bool bIde); - void setText (char *syyText); - void setName (char *syyText); - void setCmd (char *syyText); - void setMacro (char *syyText); - void setList (char *syyText); - void setListItem (char const *syyText, bool bIsStart); - void setNL (char *syyText, bool bMacro); - void startBlock (char *syyText); - void stopBlock (char *syyText); + void setValue(string& syyText); + bool setLang(string& syyText); + void setName(string& syyText); + void setCmd(string& syyText); + void startBlock(); + void stopBlock(); + +// void setId (char *syyText, bool bIde); +// void setText (char *syyText); +// void setMacro (char *syyText); +// void setList (char *syyText); +// void setListItem (char const *syyText, bool bIsStart); +// void setNL (char *syyText, bool bMacro); private: vector<string> mcStack; + void doExecute() override; +#if 0 string msValue; string msName; string msTextName; @@ -62,9 +65,10 @@ class convert_src : public convert_gen bool mbInListItem; int miListCount; int miMacroLevel; - void doExecute() override; + static void trim(string& sText); void buildKey(string& sKey); void insertLanguagePart(string& sKey, string& sTextType); +#endif }; #endif |