summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-02-07 20:56:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-02-09 08:51:05 +0100
commitbcbb3c4f5b23acd4fe73c7d8b080d20c49d664f8 (patch)
treebe631397a713692cb1081d72d7be789a3db2cc80 /l10ntools/inc
parentc07b913cc6f2ad29863c0c9a50bd3b6bdd849569 (diff)
Remove dead Executable_genlang
...originally introduce with 999c68f12f1d95b16a97294949a0e6ba6d3ba259 "genLang project (awareness)", but apparently never took off. Change-Id: I6f61271a75d96750dea63de596b7745c2f589b83 Reviewed-on: https://gerrit.libreoffice.org/49389 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/gConv.hxx71
-rw-r--r--l10ntools/inc/gConvPo.hxx71
-rw-r--r--l10ntools/inc/gConvProp.hxx34
-rw-r--r--l10ntools/inc/gConvSrc.hxx75
-rw-r--r--l10ntools/inc/gConvTree.hxx65
-rw-r--r--l10ntools/inc/gConvUi.hxx39
-rw-r--r--l10ntools/inc/gConvUlf.hxx44
-rw-r--r--l10ntools/inc/gConvXcs.hxx46
-rw-r--r--l10ntools/inc/gConvXcu.hxx57
-rw-r--r--l10ntools/inc/gConvXhp.hxx69
-rw-r--r--l10ntools/inc/gConvXml.hxx39
-rw-r--r--l10ntools/inc/gConvXrm.hxx50
-rw-r--r--l10ntools/inc/gL10nMem.hxx139
13 files changed, 0 insertions, 799 deletions
diff --git a/l10ntools/inc/gConv.hxx b/l10ntools/inc/gConv.hxx
deleted file mode 100644
index a32291272278..000000000000
--- a/l10ntools/inc/gConv.hxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCON_HXX
-#define GCON_HXX
-#include <iostream>
-#include <fstream>
-
-class convert_gen
-{
- public:
- static convert_gen *mcImpl;
-
- convert_gen(l10nMem& cMemory);
- virtual ~convert_gen();
-
- // Create instance
- static convert_gen& createInstance(l10nMem& cMemory,
- const string& sSourceDir,
- const string& sTargetDir,
- const string& sSourceFile);
-
- // do extract/merge
- bool execute(const bool bMerge);
-
- // all converters MUST implement this function
- virtual void doExecute() = 0;
-
- // utility functions for converters
- void lexRead(char *sBuf, size_t *result, size_t nMax_size);
- static void lexStrncpy(char* s1, const char * s2, int n);
- string& copySource(char const *yyText, bool bDoClear = true);
-
- protected:
- // generic variables
- bool mbMergeMode;
- bool mbLoadMode;
- string msSourcePath;
- string msTargetPath;
- string msSourceFile;
- l10nMem& mcMemory;
- string msCollector;
- int miLineNo;
- string msSourceBuffer, msCopyText;
- int miSourceReadIndex;
-
- bool prepareFile();
-
- // utility functions for converters
- void writeSourceFile(const string& line);
- static bool createDir(const string& sDir, const string& sFile);
-private:
- ofstream mcOutputFile;
- static bool checkAccess(string& sFile);
-};
-#endif
diff --git a/l10ntools/inc/gConvPo.hxx b/l10ntools/inc/gConvPo.hxx
deleted file mode 100644
index ebf1ee3f29ea..000000000000
--- a/l10ntools/inc/gConvPo.hxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONPO_HXX
-#define GCONPO_HXX
-#include "gConv.hxx"
-
-
-
-extern int polex(void);
-
-
-
-class convert_po : public convert_gen
-{
- public:
- bool mbExpectId;
- bool mbExpectStr;
-
-
- convert_po(l10nMem& crMemory);
- ~convert_po() override {};
-
- void startLook ();
- void setValue (char *syyText, int iLineCnt);
- void setFuzzy ();
- void setKey (char *syyText);
- void setMsgId ();
- void setMsgStr ();
- void handleNL ();
-
- // Used to save .pot files
- void startSave(const string& sName,
- const string& sTargetDir,
- const string& sFile);
- void save(const string& sFileName,
- const string& sKey,
- const string& sENUStext,
- const string& sText,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bFuzzy);
- void endSave();
-
- private:
- string msId;
- string msStr;
- string msKey;
- bool mbFuzzy;
- filebuf mfOutBuffer;
-
- void doExecute() override;
- string genKeyId(const string& text);
-};
-#endif
diff --git a/l10ntools/inc/gConvProp.hxx b/l10ntools/inc/gConvProp.hxx
deleted file mode 100644
index d65531ec5d2a..000000000000
--- a/l10ntools/inc/gConvProp.hxx
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONPROP_HXX
-#define GCONPROP_HXX
-#include "gConv.hxx"
-
-
-
-class convert_prop : public convert_gen
-{
- public:
- convert_prop(l10nMem& crMemory) : convert_gen(crMemory) {};
- ~convert_prop() override {};
-
- private:
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvSrc.hxx b/l10ntools/inc/gConvSrc.hxx
deleted file mode 100644
index 0710f134d69a..000000000000
--- a/l10ntools/inc/gConvSrc.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONSRCHXX
-#define GCONSRCHXX
-#include "gConv.hxx"
-
-
-extern int srclex(void);
-
-
-
-class convert_src : public convert_gen
-{
- public:
-// bool mbExpectValue;
-
- convert_src(l10nMem& crMemory);
- ~convert_src() override {};
-
- void setValue(string& syyText);
- bool setLang(string& syyText);
- void setName(string& syyText, bool revertLevel);
- void setCmd(string& syyText);
- void startBlock();
- void stopBlock();
- void defMacro();
- void endMacro();
-
-// void setId (char *syyText, bool bIde);
-// void setText (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;
- string msName;
- string msTextName;
- string msCmd;
- string msGroup;
- bool mbEnUs;
- bool mbExpectName;
- bool mbAutoPush;
- bool mbValuePresent;
- bool mbInList;
- bool mbInListItem;
- int miListCount;
-
- static void trim(string& sText);
- void buildKey(string& sKey);
- void insertLanguagePart(string& sKey, string& sTextType);
-#endif
-};
-#endif
diff --git a/l10ntools/inc/gConvTree.hxx b/l10ntools/inc/gConvTree.hxx
deleted file mode 100644
index bd9adb38d65e..000000000000
--- a/l10ntools/inc/gConvTree.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONTREE_HXX
-#define GCONTREE_HXX
-#include "gConv.hxx"
-
-
-extern int treelex(void);
-
-
-class convert_tree : public convert_gen
-{
- public:
- typedef enum {
- STATE_TAG_NONE,
- STATE_TAG_HELPSEC,
- STATE_TAG_NODE,
- STATE_TAG_TOPIC,
- STATE_TAG_VALUE
- } STATE_TAG;
- typedef enum {
- STATE_VAL_NONE,
- STATE_VAL_APPL,
- STATE_VAL_ID,
- STATE_VAL_TITLE
- } STATE_VAL;
-
- convert_tree(l10nMem& crMemory);
- ~convert_tree() override;
-
- void setString(char *yytext);
- void setState(char *yytext, STATE_TAG eNewStateTag, STATE_VAL eNewStateVAL, char *sModule);
- void setValue(char *yytext);
- void writeSourceFile(string& sText, int inx);
- string& copySourceSpecial(char *yytext, int iType);
-
- private:
- string msLine;
- string msModule;
- string msId;
- string msAppl;
- ofstream *mcOutputFiles;
- STATE_TAG meStateTag;
- STATE_VAL meStateVal;
- int miCntLanguages;
-
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvUi.hxx b/l10ntools/inc/gConvUi.hxx
deleted file mode 100644
index be4a443e136e..000000000000
--- a/l10ntools/inc/gConvUi.hxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONUIHXX
-#define GCONUIHXX
-#include "gConv.hxx"
-
-
-
-extern int uilex(void);
-
-
-
-class convert_ui : public convert_gen
-{
- public:
- convert_ui(l10nMem& crMemory);
- ~convert_ui() override {};
-
-
- private:
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvUlf.hxx b/l10ntools/inc/gConvUlf.hxx
deleted file mode 100644
index 85902e4bba0f..000000000000
--- a/l10ntools/inc/gConvUlf.hxx
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONULF_HXX
-#define GCONULF_HXX
-#include "gConv.hxx"
-
-
-
-extern int ulflex(void);
-
-
-class convert_ulf : public convert_gen
-{
- public:
- convert_ulf(l10nMem& crMemory) : convert_gen(crMemory) {};
- ~convert_ulf() override {};
-
- void setKey(char *syyText);
- void setText(char *syyText, bool bIsEnUs);
- void setValue(char *syyText);
-
- private:
- string msKey;
-
- void doExecute() override;
- void handleLines();
-};
-#endif
diff --git a/l10ntools/inc/gConvXcs.hxx b/l10ntools/inc/gConvXcs.hxx
deleted file mode 100644
index 407ff61a375e..000000000000
--- a/l10ntools/inc/gConvXcs.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONXCS_HXX
-#define GCONXCS_HXX
-#include "gConv.hxx"
-
-
-
-extern int xcslex(void);
-
-
-
-class convert_xcs : public convert_gen
-{
- public:
- convert_xcs(l10nMem& crMemory);
- ~convert_xcs() override {};
-
- void setKey(char *syyText);
- void unsetKey(char *syyText);
- void startCollectData(char *syyText);
- void stopCollectData(char *syyText);
-
- private:
- string msKey;
- bool mbCollectingData;
-
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvXcu.hxx b/l10ntools/inc/gConvXcu.hxx
deleted file mode 100644
index 1bdde9fc30e8..000000000000
--- a/l10ntools/inc/gConvXcu.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONXCU_HXX
-#define GCONXCU_HXX
-#include "gConv.hxx"
-
-
-
-extern int xculex(void);
-
-
-
-class xcu_stack_entry;
-
-
-
-class convert_xcu : public convert_gen
-{
- public:
- bool mbNoCollectingData;
-
- convert_xcu(l10nMem& crMemory);
- ~convert_xcu() override {};
-
- void pushKey(char *syyText);
- void popKey(char *syyText);
-
- void startCollectData(char *syyText);
- void stopCollectData(char *syyText);
- void copySpecial(char *syyText);
- void copyNL(char *syyText);
- void addLevel();
-
- private:
- vector<string> mcStack;
- int miLevel;
- bool mbNoTranslate;
-
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvXhp.hxx b/l10ntools/inc/gConvXhp.hxx
deleted file mode 100644
index 480280acd8af..000000000000
--- a/l10ntools/inc/gConvXhp.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONXHP_HXX
-#define GCONXHP_HXX
-#include "gConv.hxx"
-
-
-
-extern int xhplex(void);
-
-
-
-class convert_xhp : public convert_gen
-{
- public:
- convert_xhp(l10nMem& crMemory);
- ~convert_xhp() override;
-
- void setString(char *yytext);
- void openTag(char *yytext);
- void closeTag(char *yytext);
- void closeTagNOvalue(char *yytext);
- void setId(char *yytext);
- void setLang(char *yytext);
- void setRef(char *yytext);
- void openTransTag(char *yytext);
- void closeTransTag(char *yytext);
- void stopTransTag(char *yytext);
- void startComment(char *yytext);
- void stopComment(char *yytext);
- void handleSpecial(char *yytext);
- void handleDataEnd(char *yytext);
- void duplicate(char *yytext);
- string& copySourceSpecial(char *yytext, int iType);
- void writeSourceFile(string& sText, int inx);
-
- private:
- typedef enum {
- VALUE_NOT_USED,
- VALUE_IS_TAG,
- VALUE_IS_TAG_TRANS,
- VALUE_IS_VALUE,
- VALUE_IS_VALUE_TAG
- } STATE;
- STATE meExpectValue, mePushValue;
- string msKey, msPushCollect;
- string msLine;
- string *msLangText;
- ofstream *mcOutputFiles;
- int miCntLanguages;
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvXml.hxx b/l10ntools/inc/gConvXml.hxx
deleted file mode 100644
index 5e8f74d5518a..000000000000
--- a/l10ntools/inc/gConvXml.hxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONVXMLHXX
-#define GCONVXMLHXX
-#include "gConv.hxx"
-
-
-
-extern int xmllex(void);
-
-
-
-class convert_xml : public convert_gen
-{
- public:
- convert_xml(l10nMem& crMemory);
- ~convert_xml() override {};
-
-
- private:
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gConvXrm.hxx b/l10ntools/inc/gConvXrm.hxx
deleted file mode 100644
index 8aa808814547..000000000000
--- a/l10ntools/inc/gConvXrm.hxx
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GCONXRM_HXX
-#define GCONXRM_HXX
-#include "gConv.hxx"
-
-
-
-extern int xrmlex(void);
-
-
-
-class convert_xrm : public convert_gen
-{
- public:
- bool mbNoCollectingData;
- convert_xrm(l10nMem& crMemory);
- ~convert_xrm() override {};
-
- void setId(char *yytext);
- void setLang(char *yytext);
- void setTag(char *yytext);
- void startCollectData(char *yytext);
- void stopCollectData(char *yytext);
-
- private:
- string msKey;
- bool mbIsTag;
- bool mbIsLang;
- string msTag;
-
- void doExecute() override;
-};
-#endif
diff --git a/l10ntools/inc/gL10nMem.hxx b/l10ntools/inc/gL10nMem.hxx
deleted file mode 100644
index c657c8225b2c..000000000000
--- a/l10ntools/inc/gL10nMem.hxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef GL10NMEM_HXX
-#define GL10NMEM_HXX
-
-class l10nMem_enus_entry;
-class l10nMem_file_entry;
-class l10nMem_lang_list_entry;
-class l10nMem
-{
- public:
- l10nMem();
- ~l10nMem();
-
- typedef enum {
- ENTRY_DELETED,
- ENTRY_ADDED,
- ENTRY_CHANGED,
- ENTRY_NORMAL
- } ENTRY_STATE;
-
- static int showError (const string& sText, int iLineNo = 0);
- static void showWarning(const string& sText, int iLineNo = 0);
- static void showDebug (const string& sText, int iLineNo = 0);
- static void showVerbose(const string& sText, int iLineNo = 0);
- static void keyToLower (string& sKey);
-
- void setModuleName(const string& sModuleName);
- const string& getModuleName(void);
- void setLanguage(const string& sLanguage,
- bool bCreate);
- void setConvert(bool bConvert,
- bool bStrict);
- void setVerbose(const bool doVerbose);
- void setDebug(const bool doDebug);
-
- void loadEntryKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sOrgText,
- const string& sText,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bIsFuzzy);
- void setSourceKey(int iLineNo,
- const string& sFilename,
- const string& sKey,
- const string& sText,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bMustExist);
-
- void saveTemplates(const string& sTargetDir,
- bool bForce);
- void saveLanguages(l10nMem& cMem,
- const string& sTargetDir,
- bool bForce);
- void dumpMem(const string& sTargetDir);
- int prepareMerge();
- bool getMergeLang(string& sLang,
- string& sText);
- void showNOconvert();
- bool isError();
- void convertToInetString(string& sText);
- void convertFromInetString(string& sText);
-
- private:
- bool mbVerbose;
- bool mbDebug;
- bool mbInError;
- string msModuleName;
- int miCurFileInx;
- int miCurLangInx;
- int miCurENUSinx;
- bool mbConvertMode;
- bool mbStrictMode;
- vector<l10nMem_enus_entry> mcENUSlist;
- vector<l10nMem_file_entry> mcFileList;
- vector<l10nMem_lang_list_entry> mcLangList;
-
- void formatAndShowText(const string& sType, int iLineNo, const string& sText);
- bool needWrite(const string sFileName, bool bForce);
- bool convFilterWarning(const string& sSourceFile,
- const string& sKey,
- const string& sMsgId);
- void convEntryKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sMsgStr,
- bool bIsFuzzy);
- void loadENUSkey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sComment,
- const string& sResource,
- const string& sGroup);
- void loadLangKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sMsgStr,
- bool bFuzzy);
- void reorganize(bool bConvert);
- bool locateKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- bool bThrow);
- void addKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- l10nMem::ENTRY_STATE eStat);
- bool findFileName(const string& sSourceFile);
-};
-#endif