diff options
author | jan Iversen <jani@documentfoundation.org> | 2016-05-02 16:50:50 +0000 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2016-05-02 17:00:34 +0000 |
commit | 6a3139493857631784f64419048ee258cd0c4493 (patch) | |
tree | 86f309a8a14a834669540fd3ac07f88ff75be043 /l10ntools/inc | |
parent | b14c3a5e330263c2e735deb59e44236ce205894c (diff) |
genlang macro support for .src files
Added macro detection in .src filter
Updated gDiff and gRun scripts with enhancements
Change-Id: Idddd3ef72e8ccee65d03fe5080e27699ceebb079
Diffstat (limited to 'l10ntools/inc')
-rw-r--r-- | l10ntools/inc/gConvSrc.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/l10ntools/inc/gConvSrc.hxx b/l10ntools/inc/gConvSrc.hxx index 77922c9a36db..605fffb95d4b 100644 --- a/l10ntools/inc/gConvSrc.hxx +++ b/l10ntools/inc/gConvSrc.hxx @@ -39,16 +39,19 @@ class convert_src : public convert_gen void setCmd(string& syyText); void startBlock(); void stopBlock(); + void defMacro(); + void endMacro(); // 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; + int miLevel; + bool mbMacroActive; void doExecute() override; #if 0 string msValue; @@ -58,13 +61,11 @@ class convert_src : public convert_gen string msGroup; bool mbEnUs; bool mbExpectName; - bool mbExpectMacro; bool mbAutoPush; bool mbValuePresent; bool mbInList; bool mbInListItem; int miListCount; - int miMacroLevel; static void trim(string& sText); void buildKey(string& sKey); |