summaryrefslogtreecommitdiff
path: root/l10ntools
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
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')
-rw-r--r--l10ntools/Executable_genlang.mk52
-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
-rw-r--r--l10ntools/source/gConv.cxx272
-rw-r--r--l10ntools/source/gConvPo.cxx269
-rw-r--r--l10ntools/source/gConvProp.cxx31
-rw-r--r--l10ntools/source/gConvSrc.cxx330
-rw-r--r--l10ntools/source/gConvTree.cxx200
-rw-r--r--l10ntools/source/gConvUi.cxx40
-rw-r--r--l10ntools/source/gConvUlf.cxx76
-rw-r--r--l10ntools/source/gConvXcs.cxx128
-rw-r--r--l10ntools/source/gConvXcu.cxx181
-rw-r--r--l10ntools/source/gConvXhp.cxx391
-rw-r--r--l10ntools/source/gConvXml.cxx40
-rw-r--r--l10ntools/source/gConvXrm.cxx135
-rwxr-xr-xl10ntools/source/gDiff.sh20
-rw-r--r--l10ntools/source/gL10nMem.cxx969
-rw-r--r--l10ntools/source/gLang.cxx418
-rw-r--r--l10ntools/source/gLexPo.l125
-rw-r--r--l10ntools/source/gLexSrc.l351
-rw-r--r--l10ntools/source/gLexTree.l127
-rw-r--r--l10ntools/source/gLexUi.l90
-rw-r--r--l10ntools/source/gLexUlf.l107
-rw-r--r--l10ntools/source/gLexXcs.l76
-rw-r--r--l10ntools/source/gLexXcu.l127
-rw-r--r--l10ntools/source/gLexXhp.l157
-rw-r--r--l10ntools/source/gLexXml.l90
-rw-r--r--l10ntools/source/gLexXrm.l97
-rwxr-xr-xl10ntools/source/gRun.sh500
-rw-r--r--l10ntools/source/gTest.sh6
41 files changed, 0 insertions, 6204 deletions
diff --git a/l10ntools/Executable_genlang.mk b/l10ntools/Executable_genlang.mk
deleted file mode 100644
index 0299493abb57..000000000000
--- a/l10ntools/Executable_genlang.mk
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# 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/.
-#
-
-$(eval $(call gb_Executable_Executable,genlang))
-
-$(eval $(call gb_Executable_set_include,genlang,\
- -I$(SRCDIR)/l10ntools/inc \
- $$(INCLUDE) \
-))
-
-$(eval $(call gb_Executable_use_externals,genlang,\
- boost_headers \
-))
-
-
-$(eval $(call gb_Executable_add_scanners,genlang,\
- l10ntools/source/gLexPo \
- l10ntools/source/gLexUi \
- l10ntools/source/gLexSrc \
- l10ntools/source/gLexXcu \
- l10ntools/source/gLexXcs \
- l10ntools/source/gLexXrm \
- l10ntools/source/gLexXml \
- l10ntools/source/gLexXhp \
- l10ntools/source/gLexUlf \
- l10ntools/source/gLexTree \
-))
-
-$(eval $(call gb_Executable_add_exception_objects,genlang,\
- l10ntools/source/gLang \
- l10ntools/source/gL10nMem \
- l10ntools/source/gConvProp \
- l10ntools/source/gConv \
- l10ntools/source/gConvPo \
- l10ntools/source/gConvSrc \
- l10ntools/source/gConvUi \
- l10ntools/source/gConvXrm \
- l10ntools/source/gConvXml \
- l10ntools/source/gConvXhp \
- l10ntools/source/gConvXcs \
- l10ntools/source/gConvXcu \
- l10ntools/source/gConvUlf \
- l10ntools/source/gConvTree \
-))
-
-# vim:set noet sw=4 ts=4:
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
diff --git a/l10ntools/source/gConv.cxx b/l10ntools/source/gConv.cxx
deleted file mode 100644
index 41870a225bc5..000000000000
--- a/l10ntools/source/gConv.cxx
+++ /dev/null
@@ -1,272 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConv.hxx"
-#include "gConvPo.hxx"
-#include "gConvProp.hxx"
-#include "gConvSrc.hxx"
-#include "gConvUi.hxx"
-#include "gConvTree.hxx"
-#include "gConvUlf.hxx"
-#include "gConvXcs.hxx"
-#include "gConvXcu.hxx"
-#include "gConvXhp.hxx"
-#include "gConvXml.hxx"
-#include "gConvXrm.hxx"
-#ifdef _WIN32
-#include <io.h>
-#include <direct.h>
-#define OS_ACCESS(x,y) _access(x,y)
-#define OS_MKDIR(x) _mkdir(x)
-#else
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#define OS_ACCESS(x,y) access(x,y)
-#define OS_MKDIR(x) mkdir(x,0777)
-#endif
-
-
-
-convert_gen * convert_gen::mcImpl;
-
-
-
-convert_gen::convert_gen(l10nMem& cMemory)
- : mcMemory(cMemory)
-{
- mcImpl = this;
-}
-convert_gen::~convert_gen()
-{
-}
-
-
-convert_gen& convert_gen::createInstance(l10nMem& cMemory,
- const string& sSourceDir,
- const string& sTargetDir,
- const string& sSourceFile)
-{
- // did the user give a .xxx with the source file ?
- int nInx = sSourceFile.rfind(".");
- if (nInx == (int)string::npos)
- throw l10nMem::showError("source file: "+sSourceFile+" missing extension");
-
- // find correct conversion class and create correct object
- string sExtension = sSourceFile.substr(nInx+1);
- convert_gen *x;
- if (sExtension == "hrc") x = new convert_src(cMemory);
- else if (sExtension == "src") x = new convert_src(cMemory);
- else if (sExtension == "po") x = new convert_po(cMemory);
- else if (sExtension == "pot") x = new convert_po(cMemory);
- else if (sExtension == "tree") x = new convert_tree(cMemory);
- else if (sExtension == "ulf") x = new convert_ulf(cMemory);
- else if (sExtension == "ui") x = new convert_ui(cMemory);
- else if (sExtension == "xcu") x = new convert_xcu(cMemory);
- else if (sExtension == "xhp") x = new convert_xhp(cMemory);
- else if (sExtension == "xrm") x = new convert_xrm(cMemory);
- else if (sExtension == "xml") x = new convert_xml(cMemory);
- else if (sExtension == "properties") x = new convert_prop(cMemory);
- else throw l10nMem::showError("unknown extension on source file: "+sSourceFile);
-
- // and set environment
- x->msSourceFile = sSourceFile;
- x->msTargetPath = sTargetDir;
- x->msSourcePath = sSourceDir + sSourceFile;
- return *x;
-}
-
-
-
-bool convert_gen::execute(const bool bMerge)
-{
- mbMergeMode = bMerge;
-
- // and load file
- if (!prepareFile())
- return false;
-
- // and execute conversion
- doExecute();
-
- return true;
-}
-
-
-
-bool convert_gen::checkAccess(string& sFile)
-{
- return (OS_ACCESS(sFile.c_str(), 0) == 0);
-}
-
-
-
-bool convert_gen::createDir(const string& sDir, const string& sFile)
-{
- string sNewDir(sDir);
- int newPos, oldPos;
-
- for (oldPos = 0;; oldPos = newPos +1) {
- newPos = sFile.find_first_of("/\\", oldPos);
- if (newPos == (int)string::npos)
- break;
-
- sNewDir += sFile.substr(oldPos, newPos-oldPos) + "/";
-
- if (!checkAccess(sNewDir)) {
- OS_MKDIR(sNewDir.c_str());
- }
- }
- return true;
-}
-
-
-
-bool convert_gen::prepareFile()
-{
- ifstream inputFile(msSourcePath.c_str(), ios::binary);
-
-
- if (!inputFile.is_open()) {
- if (mbLoadMode) {
- l10nMem::showWarning("Cannot open file (" + msSourcePath + ")");
- return false;
- }
- else
- throw l10nMem::showError("Cannot open file (" + msSourcePath + ") for reading");
- }
-
- // get length of file:
- miSourceReadIndex = 0;
- inputFile.seekg (0, ios::end);
- msSourceBuffer.resize((unsigned int)inputFile.tellg());
- inputFile.seekg (0, ios::beg);
-
- // get size, prepare string and read whole file
- inputFile.read(const_cast<char *>(msSourceBuffer.c_str()), msSourceBuffer.size());
- if ((unsigned int)inputFile.gcount() != msSourceBuffer.size())
- throw l10nMem::showError("cannot read whole file");
- inputFile.close();
-
- if (mbMergeMode && !mbLoadMode) {
- // close previous file
- if (mcOutputFile.is_open())
- mcOutputFile.close();
-
- // open output file
- mcOutputFile.open((msTargetPath+msSourceFile).c_str(), ios::binary);
- if (mcOutputFile.is_open())
- return true;
-
- if (createDir(msTargetPath, msSourceFile)) {
- mcOutputFile.open((msTargetPath+msSourceFile).c_str(), ios::binary);
- if (mcOutputFile.is_open())
- return true;
- }
- throw l10nMem::showError("Cannot open file (" + msTargetPath+msSourceFile + ") for writing");
- }
- return true;
-}
-
-
-
-
-void convert_gen::lexRead(char *sBuf, size_t *result, size_t nMax_size)
-{
- // did we hit eof
- if (miSourceReadIndex == -1)
- *result = 0;
- else {
- // assume we can copy all that are left.
- *result = msSourceBuffer.size() - miSourceReadIndex;
-
- // space enough for the whole line ?
- if (*result <= nMax_size) {
- msSourceBuffer.copy(sBuf, *result, miSourceReadIndex);
- l10nMem::showDebug(sBuf);
- miSourceReadIndex = -1;
- }
- else {
- msSourceBuffer.copy(sBuf, nMax_size, miSourceReadIndex);
- l10nMem::showDebug(sBuf);
- *result = nMax_size;
- miSourceReadIndex += nMax_size;
- }
- }
-}
-
-
-
-void convert_gen::lexStrncpy(char *s1, const char *s2, int n)
-{
- register int i;
- for (i = 0; i < n; ++i)
- s1[i] = s2[i];
-}
-
-
-
-void convert_gen::writeSourceFile(const string& line)
-{
- if (!line.size())
- return;
-
- if (mcOutputFile.is_open())
- mcOutputFile.write(line.c_str(), line.size());
-}
-
-
-
-string& convert_gen::copySource(char const *yyText, bool bDoClear)
-{
- int nL;
-
-
- if (!yyText) {
- msCopyText.clear();
- return msCopyText;
- }
- msCopyText = yyText;
-
- // write text for merge
- if (mbMergeMode)
- writeSourceFile(msCopyText);
-
- if (bDoClear)
- msCollector.clear();
- else
- msCollector += msCopyText;
-
- // remove any CR
- for (nL = 0; nL < (int)msCopyText.size(); ++nL) {
- if (msCopyText[nL] == '\r') {
- msCopyText.erase(nL, 1);
- --nL;
- continue;
- }
- if (msCopyText[nL] == '\n')
- ++miLineNo;
- }
-
- return msCopyText;
-}
diff --git a/l10ntools/source/gConvPo.cxx b/l10ntools/source/gConvPo.cxx
deleted file mode 100644
index 2f36797f0346..000000000000
--- a/l10ntools/source/gConvPo.cxx
+++ /dev/null
@@ -1,269 +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
- */
-#include <iomanip>
-#include <ctime>
-#include <string>
-#include <vector>
-using namespace std;
-
-#include <rtl/crc.h>
-
-#include "gL10nMem.hxx"
-#include "gConvPo.hxx"
-#include <iostream>
-#include <fstream>
-#include <cstdlib>
-
-
-
-convert_po::convert_po(l10nMem& crMemory)
- : convert_gen(crMemory),
- mbExpectId(false),
- mbExpectStr(false),
- mbFuzzy(false)
-{
- // Po files are handled special
- mbLoadMode = true;
-}
-
-
-
-void convert_po::startLook()
-{
- string sFileName, sNewKey;
- int i;
-
-
- if (!msKey.size() || !msId.size())
- return;
-
- // split key into filename and real key
- i = msKey.find("#");
- sFileName = msKey.substr(0, i);
- sNewKey = msKey.substr(i+1);
-
- // load in db
- if (msId.size())
- mcMemory.loadEntryKey(miLineNo, sFileName, sNewKey, msId, msStr, "", "", "", mbFuzzy);
-
- // and prepare for new entry
- msKey.clear();
- msId.clear();
- msStr.clear();
-}
-
-
-
-void convert_po::setValue(char *syyText, int iLineCnt)
-{
- if (mbExpectId)
- msId = syyText;
- if (mbExpectStr)
- msStr = syyText;
- mbExpectId =
- mbExpectStr = false;
- miLineNo += iLineCnt;
-}
-
-
-
-void convert_po::setFuzzy()
-{
- mbFuzzy = true;
-}
-
-
-
-void convert_po::setKey(char *syyText)
-{
- int i;
-
-
- // Activate "look for msg" mode.
- startLook();
-
- // skip "#:" and any blanks
- for (syyText += 2; *syyText == ' ' || *syyText == '\t'; ++syyText)
-
- msKey = syyText;
-
- // remove trailing blanks
- for (i = msKey.size() -1; msKey[i] == '\r' || msKey[i] == ' ' || msKey[i] == '\t'; --i)
-
- msKey.erase(i+1);
-}
-
-
-
-void convert_po::setMsgId()
-{
- mbExpectId = true;
-}
-
-
-
-void convert_po::setMsgStr()
-{
- mbExpectStr = true;
-}
-
-
-
-void convert_po::handleNL()
-{
- ++miLineNo;
-}
-
-
-
-void convert_po::doExecute()
-{
- if (mbMergeMode)
- throw l10nMem::showError("Merge not implemented");
-
- polex();
- startLook();
-}
-
-
-
-void convert_po::startSave(const string& sName,
- const string& sTargetDir,
- const string& sFile)
-{
- string sFilePath;
- string ext = sTargetDir.substr(sTargetDir.length() - 5, sTargetDir.length());
-
- sFilePath = (ext == ".pot/") ? sTargetDir.substr(0, sTargetDir.length() - 1) : sTargetDir + sFile;
-
- // create directories as needed
- createDir(string(""), sFilePath);
- mfOutBuffer.open(sFilePath.c_str(), ios::out | ios::binary);
-
- if (!mfOutBuffer.is_open())
- throw l10nMem::showError("Cannot open " + sFilePath + " for writing");
-
- l10nMem::showDebug("writing file (" + sFilePath + ")");
-
- ostream outFile(&mfOutBuffer);
-
- // Set header
- auto t = std::time(nullptr);
- auto tm = *std::localtime(&t);
- outFile << "#. extracted from " << sName << endl
- << "msgid \"\"" << endl
- << "msgstr \"\"" << endl
- << "\"Project-Id-Version: PACKAGE VERSION\\n\"" << endl
- << "\"Report-Msgid-Bugs-To: "
- "https://bugs.libreoffice.org/enter_bug.cgi?"
- "product=LibreOffice&bug_status=UNCONFIRMED"
- "&component=UI\\n\"" << endl
- << "\"POT-Creation-Date: "
- << std::put_time(&tm, "%Y-%m-%d %H:%M%z") << "\\n\"" << endl
- << "\"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n\"" << endl
- << "\"Last-Translator: FULL NAME <EMAIL@ADDRESS>\\n\"" << endl
- << "\"Language-Team: LANGUAGE <LL@li.org>\\n\"" << endl
- << "\"MIME-Version: 1.0\\n\"" << endl
- << "\"Content-Type: text/plain; charset=UTF-8\\n\"" << endl
- << "\"Content-Transfer-Encoding: 8bit\\n\"" << endl
- << "\"X-Generator: LibreOffice\\n\"" << endl
- << "\"X-Accelerator-Marker: ~\\n\"" << endl;
-}
-
-
-
-void convert_po::save(const string& sFileName,
- const string& sKey,
- const string& sENUStext,
- const string& sText,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bFuzzy)
-{
- string sName;
- ostream outFile(&mfOutBuffer);
- int newPos, oldPos;
-
- // isolate filename
- newPos = sFileName.find_last_of("/\\", sFileName.length());
- sName = sFileName.substr(newPos + 1, sFileName.length());
-
- outFile << endl << "#. " << genKeyId(sName + sKey + sGroup + sResource + sENUStext) << endl;
- if (sComment.length())
- outFile << "#. " << sComment << endl;
- outFile << "#: " << sName << endl
- << "msgctxt \"\"" << endl
- << "\"" << sName << "\\n\"" << endl
- << "\"" << sKey << "\\n\"" << endl;
- if (sGroup.length())
- outFile << "\"" << sGroup << "\\n\"" << endl;
- outFile << "\"" << sResource << ".text\"" << endl;
- if (bFuzzy)
- outFile << "#, fuzzy" << endl;
- outFile << "msgid \"";
- newPos = oldPos = 0;
- while ((newPos = sENUStext.find("\\n", oldPos)) > 0) {
- newPos += 2;
- outFile << "\"" << endl
- << "\"" << sENUStext.substr(oldPos, newPos - oldPos);
- oldPos = newPos;
- }
- if (oldPos)
- outFile << "\"" << endl << "\"";
- outFile << sENUStext.substr(oldPos) << "\"" << endl
- << "msgstr \"" << sText << "\"" << endl;
-}
-
-
-
-void convert_po::endSave()
-{
- mfOutBuffer.close();
-}
-
-
-
-string convert_po::genKeyId(const string& text)
-{
- string newText(text);
- int i;
-
- for (i = 0; (i = newText.find("\\\\", 0)) != (int)string::npos;) {
- newText.erase(i, 1);
- }
- for (i = 0; (i = newText.find("\\\"", 0)) != (int)string::npos;) {
- newText.erase(i, 1);
- }
- for (i = 0; (i = newText.find("\\n", 0)) != (int)string::npos;) {
- newText.erase(i, 1);
- newText[i] = 0x0A;
- }
- sal_uInt32 const nCRC = rtl_crc32(0, newText.c_str(), newText.length());
- string key;
-
- // Use simple ASCII characters, exclude I, l, 1 and O, 0 to avoid confusing IDs
- static const char sSymbols[] =
- "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789";
- for (short nKeyInd = 0; nKeyInd < 5; ++nKeyInd) {
- key += sSymbols[(nCRC & 63) % strlen(sSymbols)];
- nCRC >>= 6;
- }
- return key;
-}
diff --git a/l10ntools/source/gConvProp.cxx b/l10ntools/source/gConvProp.cxx
deleted file mode 100644
index 45829f40b226..000000000000
--- a/l10ntools/source/gConvProp.cxx
+++ /dev/null
@@ -1,31 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvProp.hxx"
-
-
-
-void convert_prop::doExecute()
-{
-// throw l10nMem::showError(string("convert_prop::execute not implemented"));
-}
diff --git a/l10ntools/source/gConvSrc.cxx b/l10ntools/source/gConvSrc.cxx
deleted file mode 100644
index d7b57d69d07b..000000000000
--- a/l10ntools/source/gConvSrc.cxx
+++ /dev/null
@@ -1,330 +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 .
- */
-#include <string>
-#include <vector>
-#include <iostream>
-#include <fstream>
-#include <cstdlib>
-#include <sstream>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvSrc.hxx"
-
-
-convert_src::convert_src(l10nMem& crMemory)
- : convert_gen(crMemory),
- miLevel(0),
- mbMacroActive(false)
-#if 0
- mbExpectValue(false),
- mbEnUs(false),
- mbExpectName(false),
- mbAutoPush(false),
- mbValuePresent(false),
- mbInList(false),
- mbInListItem(false)
-#endif
-{
-}
-
-
-
-void convert_src::doExecute()
-{
- srclex();
-}
-
-
-
-void convert_src::setValue(string& syyText)
-{
- int stackSize = mcStack.size();
- string cleanValue = syyText.substr(1, syyText.size() - 1);
- {
- cout << "test value\n";
- for (int i = 0; i < stackSize; i++)
- cout << i << ") " << mcStack[i] << "\n";
- }
- string subid = (stackSize > 3) ? mcStack[stackSize - 1] : "";
- string stringid = mcStack[stackSize - 2];
- l10nMem::keyToLower(stringid);
-
- mcMemory.setSourceKey(miLineNo, msSourceFile, mcStack[1], cleanValue, "", stringid, subid, false);
-}
-
-
-
-bool convert_src::setLang(string& syyText)
-{
- if (syyText == "en-US")
- return true;
- else if (syyText != "x-comment")
- l10nMem::showError(syyText + " non legal language");
- return false;
-}
-
-
-
-void convert_src::setName(string& syyText, bool revertLevel)
-{
- if (revertLevel)
- mcStack.pop_back();
- mcStack.push_back(syyText);
-}
-
-
-
-void convert_src::setCmd(string& syyText)
-{
- mcStack.push_back(syyText);
-}
-
-
-
-void convert_src::startBlock()
-{
- unsigned int cnt = 2 * ++miLevel;
-
- while (cnt > mcStack.size())
- mcStack.push_back("");
-}
-
-
-
-void convert_src::stopBlock()
-{
- if (miLevel > 0)
- miLevel--;
-
- // check for correct node/prop relations
- if (mcStack.size()) {
- if (miLevel) {
- mcStack.pop_back();
- mcStack.pop_back();
- }
- else
- mcStack.clear();
- }
-}
-
-
-
-void convert_src::defMacro()
-{
- if (!miLevel)
- miLevel++;
- mbMacroActive = true;
-}
-
-
-
-void convert_src::endMacro()
-{
- if (mbMacroActive) {
- mbMacroActive = false;
- miLevel = 0;
- mcStack.clear();
- }
-}
-
-
-#if 0
-void convert_src::setId(char *syyText, bool bId)
-{
- copySource(syyText);
- if (bId || !mcStack.back().size())
- mbExpectName = mbAutoPush = true;
-}
-#endif
-
-
-
-#if 0
-void convert_src::setText(char *syyText)
-{
- msTextName = copySource(syyText);
- mbExpectValue = true;
- mbEnUs = false;
- trim(msTextName);
-}
-#endif
-
-
-
-#if 0
-void convert_src::setList(char *syyText)
-{
- msCmd = copySource(syyText);
- miListCount = 0;
- mbInList = true;
- trim(msCmd);
- l10nMem::keyToLower(msCmd);
-}
-#endif
-
-
-
-#if 0
-void convert_src::setNL(char *syyText, bool bMacro)
-{
- int nL;
- string sKey;
-
- copySource(syyText);
-
- if (msTextName.size() && mbValuePresent && mbEnUs) {
- // locate key and extract it
- buildKey(sKey);
-
- for (nL = -1;;) {
- nL = msValue.find("\\\"", nL + 1);
- if (nL == (int)string::npos)
- break;
- msValue.erase(nL, 1);
- }
- for (nL = -1;;) {
- nL = msValue.find("\\\\", nL + 1);
- if (nL == (int)string::npos)
- break;
- msValue.erase(nL, 1);
- }
-
- //FIX sKey += "." + msCmd + "." + msTextName;
- if (msValue.size() && msValue != "-") {
- mcMemory.setSourceKey(miLineNo, msSourceFile, sKey, msValue, "", msCmd, msGroup, mbMergeMode);
- if (mbMergeMode)
- insertLanguagePart(sKey, msTextName);
- }
- msGroup.clear();
- }
-
- if (!bMacro && mbExpectMacro) {
- while ((int)mcStack.size() > miMacroLevel)
- mcStack.pop_back();
- mbEnUs =
- mbExpectMacro = false;
- }
-
- mbValuePresent =
- mbExpectName =
- mbAutoPush = false;
- msValue.clear();
- msTextName.clear();
-}
-#endif
-
-
-
-#if 0
-void convert_src::setListItem(char const *syyText, bool bIsStart)
-{
- copySource(syyText);
-
- if (bIsStart) {
- if (!miListCount) {
- mcStack.pop_back();
- msName = "dummy";
- mcStack.push_back(msName);
- }
- msTextName = "item";
- mbExpectValue =
- mbExpectName =
- mbInListItem = true;
- msName.clear();
- }
- else
- {
- if (mbInListItem) {
- stringstream ssBuf;
- string myKey;
-
- ++miListCount;
- mcStack.pop_back();
- if (mbExpectName) {
- ssBuf << miListCount;
- msName = "item" + ssBuf.str();
- }
- mcStack.push_back(msName);
- mbInListItem =
- mbExpectName = false;
-
- // check key or add seq.
- buildKey(myKey);
- }
- }
-}
-#endif
-
-
-
-#if 0
-void convert_src::trim(string& sText)
-{
- int nL;
-
-
- while (sText[0] == ' ' || sText[0] == '\t')
- sText.erase(0,1);
- for (nL = sText.size(); sText[nL-1] == ' ' || sText[nL-1] == '\t'; --nL)
- ;
- if (nL != (int)sText.size())
- sText.erase(nL);
-}
-#endif
-
-
-
-#if 0
-void convert_src::buildKey(string& sKey)
-{
- int nL;
-
-
- sKey.clear();
- for (nL = 0; nL < (int)mcStack.size(); ++nL)
- if (mcStack[nL].size())
- sKey += (sKey.size() ? "." : "") + mcStack[nL];
-
- // FIX jan
- sKey = mcStack[0];
-}
-#endif
-
-
-
-#if 0
-void convert_src::insertLanguagePart(string& sKey, string& sTextType)
-{
- string sLang, sText, sTagText;
-
-
- // just to please compiler
- sKey = sKey;
-
- // prepare to read all languages
- mcMemory.prepareMerge();
- for (; mcMemory.getMergeLang(sLang, sText);) {
- // Prepare tag start and end
- sTagText = sTextType + "[ " + sLang + " ] = \"" + sText + "\" ;" +
- (mbExpectMacro ? "\\" : "") + "\n";
- writeSourceFile(sTagText);
- }
-}
-#endif
diff --git a/l10ntools/source/gConvTree.cxx b/l10ntools/source/gConvTree.cxx
deleted file mode 100644
index 5605e1e6a25a..000000000000
--- a/l10ntools/source/gConvTree.cxx
+++ /dev/null
@@ -1,200 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvTree.hxx"
-
-
-convert_tree::convert_tree(l10nMem& crMemory)
- : convert_gen(crMemory),
- mcOutputFiles(nullptr),
- meStateTag(STATE_TAG_NONE),
- meStateVal(STATE_VAL_NONE),
- miCntLanguages(0)
-
-{
- // tree files are written through a local routine
- mbLoadMode = true;
-}
-
-
-
-convert_tree::~convert_tree()
-{
- if (mcOutputFiles) {
- for (int i = 0; i < miCntLanguages; ++i)
- mcOutputFiles[i].close();
- delete[] mcOutputFiles;
- }
-}
-
-
-
-void convert_tree::doExecute()
-{
- string sLang;
- string sFile, sFile2;
-
- if (mbMergeMode)
- throw l10nMem::showError("Merge not implemented");
-
- // prepare list with languages
- if (mbMergeMode) {
- miCntLanguages = mcMemory.prepareMerge();
- mcOutputFiles = new ofstream[miCntLanguages];
-
- for (int i = 0; mcMemory.getMergeLang(sLang, sFile); ++i) {
- sFile2 = sLang + "/" + msSourceFile;
- sFile = msTargetPath + sFile2;
- mcOutputFiles[i].open(sFile.c_str(), ios::binary);
- if (!mcOutputFiles[i].is_open()) {
- if (!createDir(msTargetPath, sFile2))
- throw l10nMem::showError("Cannot create missing directories (" + sFile + ") for writing");
-
- mcOutputFiles[i].open(sFile.c_str(), ios::binary);
- if (!mcOutputFiles[i].is_open())
- throw l10nMem::showError("Cannot open file (" + sFile + ") for writing");
- }
- }
- }
-
- // run analyzer
- treelex();
-
- // dump last line
- copySourceSpecial(nullptr,3);
-}
-
-
-
-void convert_tree::setString(char *yytext)
-{
- switch (meStateVal) {
- case STATE_VAL_NONE:
- copySourceSpecial(yytext, 0);
- break;
-
- case STATE_VAL_APPL:
- msAppl = copySourceSpecial(yytext, 0);
- break;
-
- case STATE_VAL_ID:
- msId = copySourceSpecial(yytext, 0);
- msId.erase(msId.size()-1);
- break;
-
- case STATE_VAL_TITLE:
- string sText = copySourceSpecial(yytext, 1);
- sText.erase(sText.size()-1);
- mcMemory.setSourceKey(miLineNo, msSourceFile, msId, sText, "", "help_section", "", mbMergeMode);
- break;
- }
- meStateVal = STATE_VAL_NONE;
-}
-
-
-
-void convert_tree::setState(char *yytext, STATE_TAG eNewStateTag, STATE_VAL eNewStateVAL, char *sModule)
-{
- copySourceSpecial(yytext, 0);
- msCollector.clear();
- meStateTag = eNewStateTag;
- meStateVal = eNewStateVAL;
- if (sModule)
- msModule = sModule;
-}
-
-
-
-void convert_tree::setValue(char *yytext)
-{
- mcMemory.setSourceKey(miLineNo, msSourceFile, msId, msCollector, "", msModule, "", mbMergeMode);
- copySourceSpecial(yytext, 2);
-
- meStateTag = STATE_TAG_NONE;
- meStateVal = STATE_VAL_NONE;
-}
-
-
-
-string& convert_tree::copySourceSpecial(char *yytext, int iType)
-{
- string& sText = copySource(yytext, false);
- string sLang, sTemp;
- int i;
-
- // Handling depends on iType
- switch (iType) {
- case 0: // Used for tokens that are to be copied 1-1,
- if (mbMergeMode) {
- msLine += yytext;
- if (*yytext == '\n') {
- for (i = 0; i < miCntLanguages; ++i)
- writeSourceFile(msLine, i);
- msLine.clear();
- }
- }
- break;
-
- case 1: // Used for title token, are to replaced with languages
- if (mbMergeMode) {
- mcMemory.prepareMerge();
- for (i = 0; i < miCntLanguages; ++i) {
- writeSourceFile(msLine, i);
- mcMemory.getMergeLang(sLang, sTemp);
- writeSourceFile(sTemp,i);
- }
- msLine.clear();
- }
- break;
-
- case 2: // Used for token at end of value, language text are to be inserted and then token written
- if (mbMergeMode) {
- mcMemory.prepareMerge();
- for (i = 0; i < miCntLanguages; ++i) {
- writeSourceFile(msLine, i);
- mcMemory.getMergeLang(sLang, sTemp);
- writeSourceFile(sTemp,i);
- string sYY(yytext);
- writeSourceFile(sYY, i);
- }
- msLine.clear();
- }
- break;
-
- case 3: // Used for EOF
- if (mbMergeMode) {
- for (i = 0; i < miCntLanguages; ++i)
- writeSourceFile(msLine, i);
- }
- break;
- }
- return sText;
-}
-
-
-
-void convert_tree::writeSourceFile(string& sText, int inx)
-{
- if (sText.size() && mcOutputFiles[inx].is_open())
- mcOutputFiles[inx].write(sText.c_str(), sText.size());
-}
diff --git a/l10ntools/source/gConvUi.cxx b/l10ntools/source/gConvUi.cxx
deleted file mode 100644
index 3a6bd687791d..000000000000
--- a/l10ntools/source/gConvUi.cxx
+++ /dev/null
@@ -1,40 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-
-
-#include "gL10nMem.hxx"
-#include "gConvUi.hxx"
-
-
-
-convert_ui::convert_ui(l10nMem& crMemory)
- : convert_gen(crMemory)
-{
-}
-
-
-
-void convert_ui::doExecute()
-{
- uilex();
-}
diff --git a/l10ntools/source/gConvUlf.cxx b/l10ntools/source/gConvUlf.cxx
deleted file mode 100644
index ee53cf9c8e63..000000000000
--- a/l10ntools/source/gConvUlf.cxx
+++ /dev/null
@@ -1,76 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvUlf.hxx"
-
-
-
-void convert_ulf::doExecute()
-{
- ulflex();
-}
-
-
-
-void convert_ulf::setKey(char *syyText)
-{
- string sText = copySource(syyText);
-
- // locate key (is any)
- msKey = sText.substr(1,sText.size()-2);
-}
-
-
-
-void convert_ulf::setText(char *syyText, bool bIsEnUs)
-{
- string sText = copySource(syyText);
-
-
- if (!bIsEnUs && sText != "x-comment =")
- l10nMem::showError(sText + " is not en-US");
-}
-
-
-
-void convert_ulf::setValue(char *syyText)
-{
- string sLang, sText = copySource(syyText);
- int nL;
-
- sText.erase(0,1);
- nL = sText.rfind("\"");
- sText.erase(nL);
-
- mcMemory.setSourceKey(miLineNo, msSourceFile, msKey, sText, "", "LngText", "", mbMergeMode);
-
- if (mbMergeMode) {
- // prepare to read all languages
- mcMemory.prepareMerge();
- for (; mcMemory.getMergeLang(sLang, sText);) {
- // Prepare tag
- sText = "\n" + sLang + " = \"" + sText + "\"";
- writeSourceFile(sText);
- }
- }
-}
diff --git a/l10ntools/source/gConvXcs.cxx b/l10ntools/source/gConvXcs.cxx
deleted file mode 100644
index f82c35416479..000000000000
--- a/l10ntools/source/gConvXcs.cxx
+++ /dev/null
@@ -1,128 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXcs.hxx"
-
-
-
-convert_xcs::convert_xcs(l10nMem& crMemory)
- : convert_gen(crMemory),
- mbCollectingData(false)
-{
-}
-
-
-
-void convert_xcs::doExecute()
-{
- if (mbMergeMode)
- throw l10nMem::showError("Merge not implemented");
-
- // currently no .xcs files generate en-US translation, so stop trying
- xcslex();
-}
-
-
-
-void convert_xcs::setKey(char *syyText)
-{
- int nL;
- string sHead, sText = copySource(syyText);
-
- // is it to be translated
- if (sText.find("oor:localized=") == string::npos)
- return;
-
- // locate key (is any)
- nL = sText.find("oor:name=\"");
- if (nL == (int)string::npos)
- return;
- sHead = sText.substr(nL+10);
- nL = sHead.find("\"");
- msKey = sHead.substr(0,nL);
-}
-
-
-
-void convert_xcs::unsetKey(char *syyText)
-{
- copySource(syyText);
-}
-
-
-
-void convert_xcs::startCollectData(char *syyText)
-{
- copySource(syyText);
- if (!msKey.size())
- return;
-}
-
-
-
-void convert_xcs::stopCollectData(char *syyText)
-{
- string sHead, sKey, sLang, sText, sCollectedText = copySource(syyText, false);
- int nL;
-
-
- // get type of tag
- msCollector += sCollectedText;
- nL = msCollector.find("<p");
- if (nL != (int)string::npos)
- sHead = msCollector.substr(nL+1, 1);
- else {
- nL = msCollector.find("<h");
- sHead = msCollector.substr(nL+1, 2);
- }
-
- // locate key and extract it
- nL = msCollector.find("id=") +4;
- sKey = msCollector.substr(nL, msCollector.find("\"", nL+1) - nL);
- nL = msCollector.find("xml:lang=\"") + 10;
- sLang = msCollector.substr(nL, msCollector.find("\"", nL+1) - nL);
- nL = msCollector.find(">") +1;
- sText = msCollector.substr(nL, msCollector.find("\"", nL+1) - nL);
- msCollector.clear();
-
- if (mbMergeMode) {
-#if 0
- // get all languages (includes en-US)
- vector<l10nMem_entry *>& cExtraLangauges = mcMemory.getLanguagesForKey(sKey);
- string sNewLine;
- nL = cExtraLangauges.size();
-
- for (int i = 0; i < nL; ++i) {
- sNewLine = "\n<" + sHead + " id=\"" + sKey + "\"" + " xml:lang=\"" +
- cExtraLangauges[i]->msLanguage + "\">" +
- cExtraLangauges[i]->msText +
- "</" + sHead + ">";
-
- writeSourceFile(sNewLine);
- }
-#endif
- }
-
- mcMemory.setSourceKey(miLineNo, msSourceFile, sKey, sText, "", "", "", mbMergeMode);
- mbCollectingData = false;
-}
diff --git a/l10ntools/source/gConvXcu.cxx b/l10ntools/source/gConvXcu.cxx
deleted file mode 100644
index cae480bb77e2..000000000000
--- a/l10ntools/source/gConvXcu.cxx
+++ /dev/null
@@ -1,181 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-
-
-#include "gL10nMem.hxx"
-#include "gConvXcu.hxx"
-
-
-
-convert_xcu::convert_xcu(l10nMem& crMemory)
- : convert_gen(crMemory),
- mbNoCollectingData(true),
- miLevel(0),
- mbNoTranslate(false)
-{
-}
-
-
-
-void convert_xcu::doExecute()
-{
- xculex();
-}
-
-
-
-void convert_xcu::pushKey(char *syyText)
-{
- string sKey, sTag = copySource(syyText);
-
- // find key in tag
- int nL = sTag.find("oor:name=\"");
- if (nL != (int)string::npos) {
- // find end of key
- nL += 10;
- int nE = sTag.find("\"", nL);
- if (nE != (int)string::npos)
- sKey = sTag.substr(nL, nE - nL);
- }
- mcStack.push_back(sKey);
-}
-
-
-
-void convert_xcu::popKey(char *syyText)
-{
- copySource(syyText);
-
- // check for correct node/prop relations
- if (mcStack.size())
- mcStack.pop_back();
-
- mbNoTranslate = false;
-}
-
-
-
-void convert_xcu::startCollectData(char *syyText)
-{
- int nL;
- string sTag = copySource(syyText);
-
- if (mbNoTranslate)
- return;
-
- // locate object name
- nL = sTag.find("xml:lang=\"");
- if (nL != (int)string::npos) {
- // test language
- nL += 10;
- if (sTag.substr(nL,5) == "en-US")
- mbNoCollectingData = false;
- else if (sTag.substr(nL,14) == "x-no-translate")
- mbNoTranslate = true;
- else {
- string sErr = sTag.substr(nL,5) + " is not en-US";
- l10nMem::showError(sErr);
- }
- }
-}
-
-
-
-void convert_xcu::stopCollectData(char *syyText)
-{
- int nL;
- string useKey, useText = msCollector;
-
- copySource(syyText);
-
- // time to do something ?
- if (mbNoCollectingData || mbNoTranslate)
- return;
-
- // remove any newline
- for (nL = 0;;) {
- nL = useText.find("\n");
- if (nL == (int)string::npos)
- break;
- useText.erase(nL,1);
- }
-
- mbNoCollectingData = true;
-
- if (useText.size()) {
- // locate key and extract it
- int max = (int)mcStack.size() - 1;
- for (nL = 0; nL < max; ++nL) {
- useKey += mcStack[nL];
- if (nL < max -1)
- useKey += ".";
- }
- mcMemory.setSourceKey(miLineNo, msSourceFile, useKey, useText, "", "value", mcStack[nL], mbMergeMode);
- }
-
- if (mbMergeMode) {
- string sLang, sText, sNewLine;
-
- // prepare to read all languages
- mcMemory.prepareMerge();
- for (; mcMemory.getMergeLang(sLang, sText);) {
- sNewLine = "\n<value xml:lang=\"" + sLang + "\">" + sText + "</value>";
- mcMemory.convertToInetString(sNewLine);
- writeSourceFile(sNewLine);
- }
- }
-}
-
-
-
-void convert_xcu::copySpecial(char *syyText)
-{
- int nx = msCollector.size();
- string sText = copySource(syyText, mbNoCollectingData);
-
- if (!mbNoCollectingData) {
- msCollector.erase(nx);
- mcMemory.convertFromInetString(sText);
- msCollector += sText;
- }
-}
-
-
-
-void convert_xcu::copyNL(char *syyText)
-{
- int nX = msCollector.size();
- string sText = copySource(syyText, mbNoCollectingData);
-
- if (!mbNoCollectingData) {
- msCollector.erase(nX);
- msCollector += ' ';
- }
-}
-
-
-
-void convert_xcu::addLevel()
-{
- ++miLevel;
-}
diff --git a/l10ntools/source/gConvXhp.cxx b/l10ntools/source/gConvXhp.cxx
deleted file mode 100644
index 6f7cdb7f2a20..000000000000
--- a/l10ntools/source/gConvXhp.cxx
+++ /dev/null
@@ -1,391 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXhp.hxx"
-
-
-
-convert_xhp::convert_xhp(l10nMem& crMemory)
- : convert_gen(crMemory),
- meExpectValue(VALUE_NOT_USED),
- msLangText(nullptr),
- mcOutputFiles(nullptr),
- miCntLanguages(0)
-{
- // xhp files are written through a local routine
- mbLoadMode = true;
-}
-
-
-
-convert_xhp::~convert_xhp()
-{
- if (mcOutputFiles) {
- for (int i = 0; i < miCntLanguages; ++i)
- mcOutputFiles[i].close();
- delete[] mcOutputFiles;
- }
- if (msLangText)
- delete[] msLangText;
-}
-
-
-
-void convert_xhp::doExecute()
-{
- string sLang;
- string sFile, sFile2;
-
- // prepare list with languages
- miCntLanguages = mcMemory.prepareMerge();
- if (mbMergeMode) {
- mcOutputFiles = new ofstream[miCntLanguages];
- msLangText = new string[miCntLanguages];
-
- for (int i = 0; mcMemory.getMergeLang(sLang, sFile); ++i) {
- sFile2 = sLang + "/text/" + mcMemory.getModuleName().substr(5) + "/" + msSourceFile;
- sFile = msTargetPath + sFile2;
- mcOutputFiles[i].open(sFile.c_str(), ios::binary);
- if (!mcOutputFiles[i].is_open()) {
- if (!createDir(msTargetPath, sFile2))
- throw l10nMem::showError("Cannot create missing directories (" + sFile + ") for writing");
-
- mcOutputFiles[i].open(sFile.c_str(), ios::binary);
- if (!mcOutputFiles[i].is_open())
- throw l10nMem::showError("Cannot open file (" + sFile + ") for writing");
- }
- msLangText[i] = "xml-lang=\"" + sLang + "\"";
- }
- }
-
- // run analyzer
- xhplex();
-
- // dump last line
- copySourceSpecial(nullptr,3);
-}
-
-
-
-void convert_xhp::setString(char *yytext)
-{
- copySourceSpecial(yytext, 0);
-}
-
-
-
-void convert_xhp::openTag(char *yytext)
-{
- if (meExpectValue == VALUE_IS_VALUE) {
- meExpectValue = VALUE_IS_VALUE_TAG;
- //FIX msCollector += "\\";
- }
- copySourceSpecial(yytext, 0);
-}
-
-
-
-void convert_xhp::closeTag(char *yytext)
-{
- STATE newState = meExpectValue;
-
- switch (meExpectValue) {
- case VALUE_IS_VALUE_TAG:
- newState = VALUE_IS_VALUE;
- //FIX msCollector += "\\";
- break;
-
- case VALUE_IS_TAG_TRANS:
- if (msKey.size())
- newState = VALUE_IS_VALUE;
- break;
-
- case VALUE_IS_TAG:
- msKey.clear();
- newState = VALUE_NOT_USED;
- break;
-
- case VALUE_NOT_USED:
- case VALUE_IS_VALUE:
- break;
- }
- copySourceSpecial(yytext, 0);
- meExpectValue = newState;
-}
-
-
-
-void convert_xhp::closeTagNOvalue(char *yytext)
-{
- copySourceSpecial(yytext, 0);
- if (meExpectValue == VALUE_IS_VALUE_TAG)
- meExpectValue = VALUE_IS_VALUE;
- else
- meExpectValue = VALUE_NOT_USED;
-}
-
-
-
-void convert_xhp::setId(char *yytext)
-{
- int nL, nE;
- string& sText = copySourceSpecial(yytext, 0);
-
-
- nL = sText.find("\"");
- nE = sText.find("\"", nL+1);
- if (nL == (int)string::npos || nE == (int)string::npos)
- return;
-
- switch (meExpectValue) {
- case VALUE_IS_TAG:
- case VALUE_IS_TAG_TRANS:
- msKey = sText.substr(nL+1, nE - nL -1) + msKey;
- break;
-
- case VALUE_IS_VALUE_TAG:
- case VALUE_NOT_USED:
- case VALUE_IS_VALUE:
- break;
- }
-}
-
-
-
-void convert_xhp::setLang(char *yytext)
-{
- int nL, nE;
- string sLang;
- string& sText = copySourceSpecial(yytext, 1);
-
-
- nL = sText.find("\"");
- nE = sText.find("\"", nL+1);
- if (nL == (int)string::npos || nE == (int)string::npos)
- return;
-
- switch (meExpectValue) {
- case VALUE_IS_TAG:
- sLang = sText.substr(nL+1, nE - nL -1);
- if (sLang == "en-US")
- meExpectValue = VALUE_IS_TAG_TRANS;
- else
- l10nMem::showError(sLang + " is no en-US language");
- break;
-
- case VALUE_IS_VALUE_TAG:
- msCollector.erase(msCollector.size() - sText.size() -1);
- break;
-
- case VALUE_NOT_USED:
- case VALUE_IS_TAG_TRANS:
- case VALUE_IS_VALUE:
- break;
- }
-}
-
-
-
-void convert_xhp::setRef(char *yytext)
-{
- int nL, nE;
- string& sText = copySourceSpecial(yytext, 0);
-
-
- nL = sText.find("\"");
- nE = sText.find("\"", nL+1);
- if (nL == (int)string::npos || nE == (int)string::npos)
- return;
-
- switch (meExpectValue) {
- case VALUE_IS_TAG:
- case VALUE_IS_TAG_TRANS:
- msKey += "." + sText.substr(nL+1, nE - nL -1);
- break;
-
- case VALUE_IS_VALUE_TAG:
- case VALUE_NOT_USED:
- case VALUE_IS_VALUE:
- break;
- }
-}
-
-
-
-void convert_xhp::openTransTag(char *yytext)
-{
- copySourceSpecial(yytext, 0);
- msKey.clear();
- meExpectValue = VALUE_IS_TAG;
-}
-
-
-
-void convert_xhp::closeTransTag(char *yytext)
-{
- int iType = 0;
-
-
- if (meExpectValue == VALUE_IS_VALUE || meExpectValue == VALUE_IS_VALUE_TAG) {
- if (msCollector.size() && msCollector != "-") {
- string newString(msCollector);
- if (newString[newString.length() - 1] == ' ')
- newString = newString.substr(0, newString.length() - 1);
- mcMemory.setSourceKey(miLineNo, msSourceFile, msKey, newString, "", "help", "", mbMergeMode);
- }
- msKey.clear();
- iType = 2;
- }
- meExpectValue = VALUE_NOT_USED;
- copySourceSpecial(yytext, iType);
-}
-
-
-
-void convert_xhp::stopTransTag(char *yytext)
-{
- copySourceSpecial(yytext, 0);
- meExpectValue = VALUE_NOT_USED;
-}
-
-
-
-void convert_xhp::startComment(char *yytext)
-{
- mePushValue = meExpectValue;
- msPushCollect = msCollector;
- meExpectValue = VALUE_NOT_USED;
- copySourceSpecial(yytext, 0);
-}
-
-
-
-void convert_xhp::stopComment(char *yytext)
-{
- copySourceSpecial(yytext, 0);
- meExpectValue = mePushValue;
- msCollector = msPushCollect;
-}
-
-
-
-void convert_xhp::handleSpecial(char *yytext)
-{
- if (meExpectValue != VALUE_IS_VALUE || meExpectValue != VALUE_IS_VALUE_TAG) {
- string sText(yytext);
- mcMemory.convertFromInetString(sText);
- msCollector += sText;
- }
- else
- copySourceSpecial(yytext, 0);
-}
-
-
-
-void convert_xhp::handleDataEnd(char *yytext)
-{
- int nX = msCollector.size();
- copySourceSpecial(yytext, 0);
-
- if (meExpectValue == VALUE_IS_VALUE || meExpectValue == VALUE_IS_VALUE_TAG)
- msCollector.erase(nX);
-}
-
-
-
-void convert_xhp::duplicate(char *yytext)
-{
- copySourceSpecial(yytext, 0);
-
- if (meExpectValue == VALUE_IS_VALUE || meExpectValue == VALUE_IS_VALUE_TAG)
- msCollector += msCollector[msCollector.size()-1];
-}
-
-
-
-string& convert_xhp::copySourceSpecial(char *yytext, int iType)
-{
- bool doingValue = (meExpectValue == VALUE_IS_VALUE || meExpectValue == VALUE_IS_VALUE_TAG);
- string& sText = copySource(yytext, !doingValue);
- string sLang;
- int i;
-
-
- // Do NOT write data while collecting a value (will be replaced by language text)
- if (doingValue)
- return sText;
-
- // Handling depends o
- switch (iType) {
- case 0: // Used for tokens that are to be copied 1-1,
- if (mbMergeMode) {
- msLine += yytext;
- if (*yytext == '\n') {
- for (i = 0; i < miCntLanguages; ++i)
- writeSourceFile(msLine, i);
- msLine.clear();
- }
- }
- break;
-
- case 1: // Used for language token, are to replaced with languages
- if (mbMergeMode) {
- for (i = 0; i < miCntLanguages; ++i) {
- writeSourceFile(msLine, i);
- writeSourceFile(msLangText[i], i);
- }
- msLine.clear();
- }
- break;
-
- case 2: // Used for token at end of value, language text are to be inserted and then token written
- if (mbMergeMode) {
- mcMemory.prepareMerge();
- for (i = 0; i < miCntLanguages; ++i) {
- writeSourceFile(msLine, i);
- mcMemory.getMergeLang(sLang, sText);
- writeSourceFile(sText,i);
- string sYY(yytext);
- writeSourceFile(sYY, i);
- }
- msLine.clear();
- }
- break;
-
- case 3: // Used for EOF
- if (mbMergeMode) {
- for (i = 0; i < miCntLanguages; ++i)
- writeSourceFile(msLine, i);
- }
- break;
- }
- return sText;
-}
-
-
-
-void convert_xhp::writeSourceFile(string& sText, int inx)
-{
- if (sText.size() && mcOutputFiles[inx].is_open())
- mcOutputFiles[inx].write(sText.c_str(), sText.size());
-}
diff --git a/l10ntools/source/gConvXml.cxx b/l10ntools/source/gConvXml.cxx
deleted file mode 100644
index ed307d6d3b5a..000000000000
--- a/l10ntools/source/gConvXml.cxx
+++ /dev/null
@@ -1,40 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-
-
-#include "gL10nMem.hxx"
-#include "gConvXml.hxx"
-
-
-
-convert_xml::convert_xml(l10nMem& crMemory)
- : convert_gen(crMemory)
-{
-}
-
-
-
-void convert_xml::doExecute()
-{
- xmllex();
-}
diff --git a/l10ntools/source/gConvXrm.cxx b/l10ntools/source/gConvXrm.cxx
deleted file mode 100644
index a42a90c10dad..000000000000
--- a/l10ntools/source/gConvXrm.cxx
+++ /dev/null
@@ -1,135 +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 .
- */
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXrm.hxx"
-
-
-
-convert_xrm::convert_xrm(l10nMem& crMemory)
- : convert_gen(crMemory),
- mbNoCollectingData(true),
- mbIsTag(false),
- mbIsLang(false)
-{
-}
-
-
-
-void convert_xrm::doExecute()
-{
- xrmlex();
-
- // write last part of file.
- if (mbMergeMode)
- writeSourceFile(msCollector);
-}
-
-
-
-void convert_xrm::setId(char *yytext)
-{
- string& sText = copySource(yytext, mbNoCollectingData);
-
- if (mbIsTag) {
- int nL = sText.find("\"");
- int nE = sText.find("\"", nL+1);
- if (nL == (int)string::npos || nE == (int)string::npos)
- return;
-
- msKey = sText.substr(nL+1, nE - nL -1);
- }
-}
-
-
-
-void convert_xrm::setLang(char *yytext)
-{
- string& sText = copySource(yytext, mbNoCollectingData);
-
- if (mbIsTag) {
- int nL = sText.find("\"");
- int nE = sText.find("\"", nL+1);
- if (nL == (int)string::npos || nE == (int)string::npos)
- return;
-
- string sLang = sText.substr(nL+1, nE - nL -1);
- if (sLang == "en-US")
- mbIsLang = true;
- else
- l10nMem::showError(sLang + " is no en-US language");
- }
-}
-
-
-
-void convert_xrm::setTag(char *yytext)
-{
- msTag = copySource(yytext);
-
- msKey.clear();
- mbIsLang = false;
- mbIsTag = true;
-}
-
-
-
-void convert_xrm::startCollectData(char *yytext)
-{
- copySource(yytext, mbNoCollectingData);
-
- if (mbIsTag && mbIsLang && msKey.size())
- mbNoCollectingData = false;
-
- mbIsTag = mbIsLang = false;
-}
-
-
-
-void convert_xrm::stopCollectData(char *yytext)
-{
- string sTagText, sTagEnd, sLang, sText = msCollector;
-
- copySource(yytext);
- if (!mbNoCollectingData) {
- mcMemory.setSourceKey(miLineNo, msSourceFile, msKey, sText, "", "readmeitem", "", mbMergeMode);
- mbNoCollectingData = true;
- if (mbMergeMode) {
- sTagEnd = "</" + msTag.substr(1,msTag.size()-2) + ">\n";
- msTag += "id=\"" + msKey + "\" xml:lang=\"";
-
- // prepare to read all languages
- mcMemory.prepareMerge();
- for (; mcMemory.getMergeLang(sLang, sText);) {
- // replace \" with "
- for (int i = 0; (i = sText.find("\\\"", i)) != (int)string::npos;)
- sText.erase(i,1);
-
- // Prepare tag start and end
- sTagText = msTag + sLang + "\">" + sText + sTagEnd;
- writeSourceFile(sTagText);
- }
- }
- msKey.clear();
- }
- mbIsTag = false;
-}
diff --git a/l10ntools/source/gDiff.sh b/l10ntools/source/gDiff.sh
deleted file mode 100755
index 767ca0784a27..000000000000
--- a/l10ntools/source/gDiff.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-cd workdir/pot
-find . > /tmp/jix1
-cd ../jan
-find . > /tmp/jix2
-
-echo ">>>>> FILELIST DIFF >>>"
-diff /tmp/jix1 /tmp/jix2
-
-for i in `find . -name \*.pot`
-do
- CMD=$(diff ../pot/$i $i | sed '/^6c6$/,/^16c16$/d')
- if [ "$CMD" != "" ]
- then
- echo ">>>>>>>> " $i
- echo "$CMD"
- fi
-done
-
diff --git a/l10ntools/source/gL10nMem.cxx b/l10ntools/source/gL10nMem.cxx
deleted file mode 100644
index 3a8647f2eb18..000000000000
--- a/l10ntools/source/gL10nMem.cxx
+++ /dev/null
@@ -1,969 +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 .
- */
-#include <string>
-#include <vector>
-#include <iostream>
-#include <fstream>
-#include <sstream>
-#include <rtl/character.hxx>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvPo.hxx"
-
-
-
-l10nMem *myMem;
-
-
-class l10nMem_lang_list_entry
-{
- public:
- explicit l10nMem_lang_list_entry(const string& sName)
- : msName(sName),
- mbChanged(false)
- {}
-
- ~l10nMem_lang_list_entry() {};
-
- string msName; // language Name
- bool mbChanged; // used for "convert", true if language is modified
-};
-
-
-class l10nMem_file_entry
-{
- public:
- l10nMem_file_entry(const string& sFileName, int iStart)
- : msFileName(sFileName),
- miStart(iStart),
- miEnd(iStart)
- {
- // Store fileName without relative path
- int i = msFileName.rfind("/");
- if (i == (int)string::npos)
- msPureName = msFileName;
- else
- msPureName = msFileName.substr(i + 1);
- }
- ~l10nMem_file_entry() {};
-
- string msFileName; // file Name with relative path
- string msPureName; // just filename
- int miStart; // start index of entries in mcMasterEntries (l10Mem_db::mcENUS)
- int miEnd; // last index of entries in mcMasterEntries (l10Mem_db::mcENUS)
-};
-
-
-
-class l10nMem_lang_entry
-{
- public:
- l10nMem_lang_entry(const string& sMsgStr, bool bFuzzy)
- : msMsgStr(sMsgStr),
- mbFuzzy(bFuzzy)
- {}
- ~l10nMem_lang_entry() {};
-
- string msMsgStr; // translated text from po file
- bool mbFuzzy; // fuzzy flag
-};
-
-
-
-class l10nMem_enus_entry
-{
- public:
- l10nMem_enus_entry(const string& sKey,
- const string& sMsgId,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- int iLineNo,
- int iFileInx,
- int iLangSize,
- l10nMem::ENTRY_STATE eState)
- : msMsgId(sMsgId),
- msComment(sComment),
- msResource(sResource),
- msGroup(sGroup),
- meState(eState),
- miFileInx(iFileInx),
- miLineNo(iLineNo)
- {
- int i;
-
- // add dummy language entries
- for (i = 0; i < iLangSize; ++i)
- mcLangText.push_back(l10nMem_lang_entry("", false));
-
- // convert key to upper case
- msKey = sKey;
- //FIX l10nMem::keyToUpper(msKey);
- }
-
- ~l10nMem_enus_entry() {};
-
- string msKey; // key in po file and source file
- string msMsgId; // en-US text from source file
- string msComment; // Comment (to be used in msgcstr)
- string msResource; // Resource Id (to be used in msgcstr)
- string msGroup; // Group Id (to be used in msgcstr)
- l10nMem::ENTRY_STATE meState; // status information
- int miFileInx; // index of file name
- int miLineNo; // line number
- vector<l10nMem_lang_entry> mcLangText; // language texts (index is languageId)
-};
-
-
-
-l10nMem::l10nMem()
- : mbVerbose(false),
- mbDebug(false),
- mbInError(false),
- miCurFileInx(0),
- miCurLangInx(0),
- miCurENUSinx(0),
- mbConvertMode(false),
- mbStrictMode(false)
-{
- myMem = this;
- msModuleName = "default";
- mcFileList.push_back(l10nMem_file_entry("-genLang-", 0));
- mcLangList.push_back(l10nMem_lang_list_entry("-genLang-"));
- mcENUSlist.push_back(l10nMem_enus_entry("-genLang-", "-genLang-", "", "", "", 0, 0, 0, l10nMem::ENTRY_DELETED));
-}
-
-
-
-l10nMem::~l10nMem()
-{
-}
-
-
-
-int l10nMem::showError(const string& sText, int iLineNo)
-{
- myMem->mbInError = true;
- myMem->formatAndShowText("ERROR", iLineNo, sText);
- return 1;
-}
-
-
-
-void l10nMem::showWarning(const string& sText, int iLineNo)
-{
- myMem->formatAndShowText("WARNING", iLineNo, sText);
-}
-
-
-
-void l10nMem::showDebug(const string& sText, int iLineNo)
-{
- if (myMem->mbDebug)
- myMem->formatAndShowText("DEBUG", iLineNo, sText);
-}
-
-
-
-void l10nMem::showVerbose(const string& sText, int iLineNo)
-{
- if (myMem->mbVerbose)
- myMem->formatAndShowText("INFO", iLineNo, sText);
-}
-
-
-
-bool l10nMem::isError()
-{
- return myMem->mbInError;
-}
-
-
-
-void l10nMem::setModuleName(const string& sModuleName)
-{
- msModuleName = sModuleName;
-}
-
-
-
-const string& l10nMem::getModuleName()
-{
- return msModuleName;
-}
-
-
-
-void l10nMem::setLanguage(const string& sLanguage,
- bool bCreate)
-{
- int i, iSize;
-
- // regular load or convert of old po files
- miCurFileInx = 0;
-
- // With no languages selected only en-US is generated
- if (!sLanguage.size()) {
- miCurLangInx = 0;
- return;
- }
-
- // en-US is loaded as master and cannot be loaded again
- if (sLanguage == "en-US")
- throw l10nMem::showError("en-US is loaded automatically");
-
- // check if language is already loaded
- iSize = mcLangList.size();
- for (miCurLangInx = 0; miCurLangInx < iSize && mcLangList[miCurLangInx].msName != sLanguage; ++miCurLangInx);
- if (miCurLangInx < iSize) {
- if (bCreate)
- throw showError("loading " + sLanguage + " twice");
- return;
- }
-
- // language does not exist in db
- if (!bCreate)
- throw showError("language " + sLanguage + " not loaded");
-
- // create language
- mcLangList.push_back(l10nMem_lang_list_entry(sLanguage));
-
- // add language to all ENUS entries
- iSize = mcENUSlist.size();
- for (i = 0; i < iSize; ++i)
- mcENUSlist[i].mcLangText.push_back(l10nMem_lang_entry("", false));
-}
-
-
-
-void l10nMem::setConvert(bool bConvert,
- bool bStrict)
-{
- // regular load or convert of old po files
- mbConvertMode = bConvert;
- mbStrictMode = bStrict;
-}
-
-
-
-void l10nMem::setVerbose(bool doVerbose)
-{
- mbVerbose = doVerbose;
-}
-
-
-
-void l10nMem::setDebug(bool doDebug)
-{
- mbDebug = doDebug;
-}
-
-
-
-void l10nMem::loadEntryKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sMsgStr,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bIsFuzzy)
-{
- if (mbConvertMode)
- convEntryKey(iLineNo, sSourceFile, sKey, sMsgId, sMsgStr, bIsFuzzy);
- else if (!miCurLangInx)
- loadENUSkey(iLineNo, sSourceFile, sKey, sMsgId, sComment, sResource, sGroup);
- else
- loadLangKey(iLineNo, sSourceFile, sKey, sMsgId, sMsgStr, bIsFuzzy);
-}
-
-
-
-void l10nMem::setSourceKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sComment,
- const string& sResource,
- const string& sGroup,
- bool bMustExist)
-{
- string newText(sMsgId);
- int i;
-
- // time to escape " and \ if contained in text or key
- for (i = 0; (i = newText.find("\\", i)) != (int)string::npos;) {
- ++i;
- if (i < (int)newText.size() &&
- (newText[i] == '\\' || newText[i] == '<' || newText[i] == '>' ||
- newText[i] == 'n' || newText[i] == 't' || newText[i] == 'r' ||
- newText[i] == '\''))
- ++i;
- else {
- newText.insert(i - 1, "\\");
- ++i;
- }
- }
- for (i = 0; (i = newText.find("\"", i)) != (int)string::npos;) {
- newText.insert(i, "\\");
- i += 2;
- }
-
- // if key exist update state
- if (locateKey(iLineNo, sSourceFile, sKey, newText, false))
- mcENUSlist[miCurENUSinx].meState = ENTRY_NORMAL;
- else {
- if (bMustExist)
- throw showError("key " + sKey + " does not exist");
-
- // add key, if changed text, this is wrong but handled in reorganize
- addKey(iLineNo, sSourceFile, sKey, newText, sComment, sResource, sGroup, ENTRY_ADDED);
- }
-}
-
-
-
-void l10nMem::saveTemplates(const string& sTargetDir, bool bForce)
-{
- string target(msModuleName + ".pot");
- int iE, iEsize = mcENUSlist.size();
-
- // and reorganize db if needed
- miCurFileInx = 0;
- reorganize(false);
-
- // no save if there has been errors
- if (!needWrite(target, bForce))
- return;
-
- // Save en-US
- convert_po savePo(*this);
-
- savePo.startSave(msModuleName, sTargetDir, target);
- for (iE = 1; iE < iEsize; ++iE) {
- l10nMem_enus_entry& cE = mcENUSlist[iE];
-
- // remove deleted entries
- if (cE.meState == ENTRY_DELETED)
- continue;
-
- savePo.save(mcFileList[cE.miFileInx].msFileName, cE.msKey, cE.msMsgId, "", cE.msComment, cE.msResource, cE.msGroup, false);
- }
- savePo.endSave();
-}
-
-
-
-void l10nMem::saveLanguages(l10nMem& cMem, const string& sTargetDir, bool bForce)
-{
- // int iE, iEsize = mcENUSlist.size();
- // int iEsize = mcENUSlist.size();
- int iL, iLsize = mcLangList.size();
- string sFileName = msModuleName + ".po";
-
- cMem.dumpMem("jan");
- showDebug(sTargetDir);
- if (bForce)
- showDebug("debug");
-
- // and reorganize db if needed
- miCurFileInx = 0;
- reorganize(true);
-
- // no save if there has been errors
- if (!needWrite(sFileName, bForce))
- return;
-
- // save all languages
- for (iL = 1; iL < iLsize; ++iL) {
- // only save language file if modified
- if (!mcLangList[iL].mbChanged)
- continue;
-
- mcLangList[iL].mbChanged = false;
-#if 0
- convert_gen savePo(cMem, sTargetDir, sTargetDir, sFileName);
-
- savePo.startSave(mcLangList[iL].msName + "/", sFileName);
- for (iE = 1; iE < iEsize; ++iE) {
- l10nMem_enus_entry& cE = mcENUSlist[iE];
- l10nMem_lang_entry& cL = cE.mcLangText[iL];
- bool bF = cL.mbFuzzy;
-
- // remove deleted entries
- if (cE.meState == ENTRY_DELETED)
- continue;
-
- savePo.save(mcFileList[cE.miFileInx].msFileName, cE.msKey, cE.msMsgId, cL.msMsgStr, bF);
- }
- savePo.endSave();
-#endif
- }
-}
-
-
-
-void l10nMem::showNOconvert()
-{
- int iE, iEsize = mcENUSlist.size();
-
- for (iE = 1; iE < iEsize; ++iE) {
- l10nMem_enus_entry& cE = mcENUSlist[iE];
-
- if (cE.meState == ENTRY_DELETED)
- showError("template key(" + cE.msKey + ") msgId(" + cE.msMsgId + ") not in pot file", 0);
- }
-}
-
-
-
-void l10nMem::convertToInetString(string& sText)
-{
- static const char *replacingStr[] = { "&", "\'", ">", "<", "\"", nullptr };
- static const int replacingLen[] = { 1, 1, 1, 1, 1, 0 };
- static const char *newStr[] = { "&amp;", "&apos;", "&gt;", "&lt;", "&quot;", nullptr };
- static const int newLen[] = { 5, 6, 4, 4, 6, 0 };
- int pos;
-
- for (int i = 0; replacingStr[i]; i++) {
- pos = 0;
- while ((pos = sText.find(replacingStr[i], pos)) != (int)string::npos) {
- sText.replace(pos, replacingLen[i], newStr[i]);
- pos += newLen[i];
- }
- }
-}
-
-
-
-void l10nMem::convertFromInetString(string& sText)
-{
- static const char *replacingStr[] = { "&amp;", "&apos;", "&gt;", "&lt;", "&quot;", nullptr };
- static const int replacingLen[] = { 5, 6, 4, 4, 6, 0 };
- static const char *newStr[] = { "&", "\'", ">", "<", "\"", nullptr };
- static const int newLen[] = { 1, 1, 1, 1, 1, 0 };
- int i, pos;
-
- for (i = 0; replacingStr[i]; i++) {
- pos = 0;
- while ((pos = sText.find(replacingStr[i], pos)) != (int)string::npos) {
- sText.replace(pos, replacingLen[i], newStr[i]);
- pos += newLen[i];
- }
- }
-}
-
-
-
-int l10nMem::prepareMerge()
-{
- miCurLangInx = 0;
- return mcLangList.size();
-}
-
-
-
-void l10nMem::dumpMem(const string& sFileName)
-{
- // and reorganize db if needed
- reorganize(false);
-
- // no save if there has been errors
- if (!needWrite(sFileName, true))
- return;
-
- // JIX (dumpMem)
-}
-
-
-
-bool l10nMem::getMergeLang(string& sLang, string& sMsgStr)
-{
- miCurLangInx++;
- if (miCurLangInx >= (int)mcLangList.size())
- return false;
-
- // update pointers
- sLang = mcLangList[miCurLangInx].msName;
- if (!sMsgStr.size())
- sMsgStr = "NOT TRANSLATED";
- else
- sMsgStr = mcENUSlist[miCurENUSinx].mcLangText[miCurLangInx].msMsgStr;
- return true;
-}
-
-
-
-void l10nMem::formatAndShowText(const string& sType, int iLineNo, const string& sText)
-{
- cout << sType;
- if (miCurFileInx > 0)
- cout << " in " << mcFileList[miCurFileInx].msFileName;
- if (iLineNo)
- cout << "(" << iLineNo << ")";
- cout << ": " << sText << endl;
-}
-
-
-
-bool l10nMem::needWrite(const string sFileName, bool bForce)
-{
- int iE, iEsize = mcENUSlist.size();
- int iCntDeleted = 0, iCntChanged = 0, iCntAdded = 0;
-
- // no save if there has been errors
- if (mbInError) {
- if (bForce)
- showError("forced save, due to errors");
- else
- throw showError("Cannot save due to previous errors");
- }
- // Check number of changes
- for (iE = 1; iE < iEsize; ++iE) {
- l10nMem_enus_entry& cur = mcENUSlist[iE];
- if (cur.meState == ENTRY_ADDED)
- ++iCntAdded;
- if (cur.meState == ENTRY_CHANGED) {
- ++iCntChanged;
- if (mbStrictMode)
- cur.meState = ENTRY_NORMAL;
- }
- if (cur.meState == ENTRY_DELETED)
- ++iCntDeleted;
- }
- if (!mbConvertMode)
- iCntDeleted -= iCntChanged;
- if (!iCntAdded && !iCntChanged && !iCntDeleted) {
- cout << "genLang: No changes in " << sFileName;
- if (bForce)
- cout << ", -s switch used, so files are saved" << endl;
- else
- cout << " skipping \"save\"" << endl;
- return bForce;
- }
-
- cout << "genLang statistics: " << iCntDeleted << " deleted, "
- << iCntChanged << " changed, "
- << iCntAdded << " added entries in "
- << sFileName << endl;
- return true;
-}
-
-
-
-bool l10nMem::convFilterWarning(const string& sSourceFile,
- const string& sKey,
- const string& sMsgId)
-{
- // silent ignore deleted messages
- if (sMsgId == "-" || sMsgId == "")
- return true;
- if (msModuleName == "help_sbasic" && sSourceFile == "sbasic.tree")
- return true;
- if (msModuleName == "help_scalc" && sSourceFile == "scalc.tree")
- return true;
- if (msModuleName == "help_schart" && sSourceFile == "schart.tree")
- return true;
- if (msModuleName == "help_shared" && sSourceFile == "shared.tree")
- return true;
- if (msModuleName == "help_simpress" && sSourceFile == "simpress.tree")
- return true;
- if (msModuleName == "help_smath" && sSourceFile == "smath.tree")
- return true;
- if (msModuleName == "help_swriter" && sSourceFile == "swriter.tree")
- return true;
- if (msModuleName == "officecfg") {
- if ((sSourceFile == "registry/data/org/openoffice/Office/Writer.xcu" &&
- sKey == "Writer.Insert.Caption.CaptionOrderNumberingFirst") ||
- (sSourceFile == "registry/data/org/openoffice/Office/Writer.xcu" &&
- sKey == "Writer.Layout.Other.TabStop") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/WriterCommands.xcu" &&
- sKey == "WriterCommands.UserInterface.Commands..uno:FlipVertical.Label") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/WriterCommands.xcu" &&
- sKey == "WriterCommands.UserInterface.Commands..uno:FlipHorizontal.Label") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu" &&
- sKey == "ImpressWindowState.UIElements.States.private:resource/toolpanel/DrawingFramework/SlideTransitions.UIName") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu" &&
- sKey == "ImpressWindowState.UIElements.States.private:resource/toolpanel/DrawingFramework/CustomAnimations.UIName") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu" &&
- sKey == "ImpressWindowState.UIElements.States.private:resource/toolpanel/DrawingFramework/MasterPages.UIName") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu" &&
- sKey == "ImpressWindowState.UIElements.States.private:resource/toolpanel/DrawingFramework/Layouts.UIName") ||
- (sSourceFile == "registry/data/org/openoffice/Office/UI/ImpressWindowState.xcu" &&
- sKey == "ImpressWindowState.UIElements.States.private:resource/toolpanel/DrawingFramework/TableDesign.UIName") )
- return true;
- }
- if (msModuleName == "readlicense_oo") {
- if (sSourceFile == "docs/readme/readme.xrm") {
- if ((sKey == "BDB11" || sKey == "BDB2a" ||
- sKey == "BDB3a" || sKey == "BDB4a"))
- return true;
- }
- }
- if (msModuleName == "scp2") {
- if ((sSourceFile == "source/binfilter/module_binfilter.ulf" ||
- sSourceFile == "source/binfilter/registryitem_binfilter.ulf"))
- return true;
- }
- if (msModuleName == "sdext") {
- if (sSourceFile == "source/minimizer/registry/data/org/openoffice/Office/Addons.xcu" ||
- sSourceFile == "source/minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu" ||
- sSourceFile == "source/presenter/help/en-US/com.sun.PresenterScreen/presenter.xhp" ||
- sSourceFile == "source/presenter/registry/data/org/openoffice/Office/extension/PresenterScreen.xcu")
- return true;
- }
- if (msModuleName == "sd") {
- if (sSourceFile == "source/ui/dlg/celltempl.src")
- return true;
- }
- if (msModuleName == "svx") {
- if (sSourceFile == "source/dialog/fontwork.src") {
- if (sKey == "RID_SVXSTR_FONTWORK_FORM1.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM2.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM3.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM4.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM5.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM6.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM7.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM8.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM9.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM10.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM11.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_FORM12.String.Text" ||
- sKey == "RID_SVXSTR_FONTWORK_UNDOCREATE.String.Text")
- return true;
- }
- }
- if (sSourceFile == "source/svdraw/svdstr.src" && sKey == "SIP_XA_FORMTXTSTDFORM.String.Text")
- return true;
- return false;
-}
-
-
-
-void l10nMem::convEntryKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sMsgStr,
- bool bIsFuzzy)
-{
- vector<int> ivEntryList;
- string curFileName;
- string curKeyUpper;
- int curFileIndex, curENUSindex, i, iSize;
-
-
- // filter out dummy messages, silently
- if (convFilterWarning(sSourceFile, sKey, sMsgId))
- return;
-
- // check for directory names in file name
- i = sSourceFile.rfind("/");
- curFileName = (i > 0) ? sSourceFile.substr(i + 1) : sSourceFile;
-
- // Find all matching file names (old system does not have directory.
- // build list of potential entries
- iSize = mcFileList.size();
- for (curFileIndex = 1; curFileIndex < iSize; ++curFileIndex)
- if (curFileName == mcFileList[curFileIndex].msPureName) {
- int j = mcFileList[curFileIndex].miStart;
- int iEnd = mcFileList[curFileIndex].miEnd;
-
- for (; j <= iEnd; ++j)
- ivEntryList.push_back(j);
- }
-
- // Did we find one or more files ?
- iSize = ivEntryList.size();
- if (!iSize) {
- showWarning("source file(" + curFileName + ") not in template file", iLineNo);
- return;
- }
-
- // Loop through all potential en-US entries
- for (curENUSindex = -1, i = 0; i < iSize; ++i) {
- l10nMem_enus_entry& curE = mcENUSlist[ivEntryList[i]];
-
- // The entry must be unconverted if strict mode (comparing .pot files)
- if (mbStrictMode && curE.meState != ENTRY_DELETED)
- continue;
-
- // msgId must match
- if (sMsgId == curE.msMsgId) {
- curENUSindex = ivEntryList[i];
- if (curE.meState == ENTRY_DELETED)
- curE.meState = ENTRY_NORMAL;
- break;
- }
- }
-
- // do we need to do advanced find
- if (curENUSindex == -1 || mbStrictMode) {
- // make copy of key in upper case
- curKeyUpper = sKey;
- keyToLower(curKeyUpper);
-
- // Loop through all potential en-US entries
- for (i = 0; i < iSize; ++i) {
- l10nMem_enus_entry& curE = mcENUSlist[ivEntryList[i]];
-
- // compare keys, but be aware of different length
- if (curKeyUpper.find(curE.msKey) != string::npos) {
- curENUSindex = ivEntryList[i];
- bIsFuzzy = true;
- break;
- }
- }
- }
-
- if (curENUSindex == -1) {
- showWarning("file(" + curFileName + ") key(" + sKey + ") msgId(" + sMsgId + ") not found in templates", iLineNo);
- return;
- }
-
- // update language text
- l10nMem_enus_entry& curE = mcENUSlist[curENUSindex];
- l10nMem_lang_entry& curL = curE.mcLangText[miCurLangInx];
-
- if (sMsgStr != curL.msMsgStr) {
- curL.msMsgStr = sMsgStr;
- curL.mbFuzzy = bIsFuzzy;
- curE.meState = ENTRY_CHANGED;
- mcLangList[miCurLangInx].mbChanged = true;
- }
-}
-
-
-
-void l10nMem::loadENUSkey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sComment,
- const string& sResource,
- const string& sGroup)
-{
- // add it to vector and update file pointer
- addKey(iLineNo, sSourceFile, sKey, sMsgId, sComment, sResource, sGroup, ENTRY_DELETED);
-}
-
-
-
-void l10nMem::loadLangKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- const string& sMsgStr,
- bool bFuzzy)
-{
- if (!locateKey(iLineNo, sSourceFile, sKey, sMsgId, true))
- throw l10nMem::showError(".po file contains unknown filename: " + sSourceFile + " or key: " + sKey);
-
- l10nMem_lang_entry& xCur = mcENUSlist[miCurENUSinx].mcLangText[miCurLangInx];
- xCur.msMsgStr = sMsgStr;
- xCur.mbFuzzy = bFuzzy;
-}
-
-
-
-void l10nMem::reorganize(bool bConvert)
-{
- int iE, iEsize = mcENUSlist.size();
- int iD, iDsize;
- vector<int> listDel, listAdd;
-
-
- // Check number of changes
- for (iE = 1; iE < iEsize; ++iE) {
- l10nMem_enus_entry& cur = mcENUSlist[iE];
- if (cur.meState == l10nMem::ENTRY_ADDED)
- listAdd.push_back(iE);
- if (cur.meState == l10nMem::ENTRY_DELETED) {
- if (bConvert)
- cur.meState = l10nMem::ENTRY_NORMAL;
- else
- listDel.push_back(iE);
- }
- }
-
- if (!listDel.size() || !listAdd.size())
- return;
-
- // loop through added text and see if key match deleted text
- iEsize = listAdd.size();
- iDsize = listDel.size();
- for (iE = 0; iE < iEsize; ++iE) {
- l10nMem_enus_entry& curAdd = mcENUSlist[listAdd[iE]];
- for (iD = 0; iD < iDsize; ++iD) {
- l10nMem_enus_entry& curE = mcENUSlist[listDel[iD]];
-
- if (curE.miFileInx != curAdd.miFileInx)
- continue;
- if (curE.msKey == curAdd.msKey)
- break;
- if (curE.msMsgId == curAdd.msMsgId)
- break;
- }
- if (iD == iDsize)
- continue;
-
- // Update deleted entry (original), because lang is connected here
- l10nMem_enus_entry& curDel = mcENUSlist[listDel[iD]];
- curDel.msMsgId = curAdd.msMsgId;
- curDel.msKey = curAdd.msKey;
- curDel.meState = l10nMem::ENTRY_CHANGED;
- curAdd.meState = l10nMem::ENTRY_DELETED;
- }
-}
-
-
-
-bool l10nMem::locateKey(int iLineNo,
- const string& sSourceFile,
- const string& sKey,
- const string& sMsgId,
- bool bThrow)
-{
- string sUpperKey(sKey);
- int i, iSize = sUpperKey.size();
- char ch;
-
- // Position file pointer
- if (!findFileName(sSourceFile))
- return false;
-
- // convert key to upper case
- for (i = 0; i < iSize; ++i) {
- ch = sUpperKey[i];
- if (ch == ' ' || ch == '*' || ch == '+' || ch == '%')
- sUpperKey[i] = '_';
- else
- sUpperKey[i] = rtl::toAsciiUpperCase(sUpperKey[i]);
- }
-
- // Fast check, to see if next key is the one (normal with load and source without change)
- if (++miCurENUSinx < (int)mcENUSlist.size()) {
- l10nMem_enus_entry& nowEntry = mcENUSlist[miCurENUSinx];
- if (nowEntry.msMsgId == sMsgId && nowEntry.msKey == sUpperKey)
- return true;
- }
-
- // Start from beginning of file and to end
- l10nMem_file_entry& cCur = mcFileList[miCurFileInx];
-
- // Find match with key and text
- for (miCurENUSinx = cCur.miStart; miCurENUSinx <= cCur.miEnd; ++miCurENUSinx) {
- l10nMem_enus_entry& cEntry = mcENUSlist[miCurENUSinx];
- if (cEntry.msMsgId == sMsgId && cEntry.msKey == sUpperKey)
- return true;
- }
-
- if (bThrow)
- throw l10nMem::showError("cannot find key(" + sUpperKey + ") with text(" + sMsgId + ")", iLineNo);
- return false;
-}
-
-
-
-void l10nMem::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)
-{
- // check file
- if (!findFileName(sSourceFile)) {
- // prepare for new entry
- miCurENUSinx = mcENUSlist.size();
- miCurFileInx = mcFileList.size();
-
- // Create file
- mcFileList.push_back(l10nMem_file_entry(sSourceFile, miCurENUSinx));
-
- // and add entry at the back (no problem since it is a new file)
- mcENUSlist.push_back(l10nMem_enus_entry(sKey, sMsgId, sComment, sResource, sGroup, iLineNo, miCurFileInx,
- mcLangList.size(), eStat));
- mcFileList[miCurFileInx].miEnd = miCurENUSinx;
- }
- else {
- int iFsize = mcFileList.size();
- l10nMem_file_entry& curF = mcFileList[miCurFileInx];
- vector<l10nMem_enus_entry>::iterator it = mcENUSlist.begin();
-
- // file is registered, so we need to add the entry at the end of the file range
- curF.miEnd++;
- miCurENUSinx = curF.miEnd;
- mcENUSlist.insert(it + curF.miEnd,
- l10nMem_enus_entry(sKey, sMsgId, sComment, sResource, sGroup, iLineNo, miCurFileInx,
- mcLangList.size(), eStat));
- for (int i = miCurFileInx + 1; i < iFsize; ++i) {
- l10nMem_file_entry& curF2 = mcFileList[i];
- if (curF2.miStart >= curF.miEnd)
- curF2.miStart++;
- if (curF2.miEnd >= curF.miEnd)
- curF2.miEnd++;
- }
- }
-}
-
-
-bool l10nMem::findFileName(const string& sSourceFile)
-{
- int iSize = mcFileList.size();
-
- // Check this or next file
- if (mcFileList[miCurFileInx].msFileName == sSourceFile || mcFileList[miCurFileInx].msPureName == sSourceFile)
- return true;
- if (++miCurFileInx < iSize && mcFileList[miCurFileInx].msFileName == sSourceFile)
- return true;
-
- for (miCurFileInx = 1;
- miCurFileInx < iSize && mcFileList[miCurFileInx].msFileName != sSourceFile &&
- mcFileList[miCurFileInx].msPureName != sSourceFile;
- ++miCurFileInx);
- if (miCurFileInx == iSize) {
- miCurFileInx = 0;
- return false;
- }
- else
- return true;
-}
-
-
-
-
-void l10nMem::keyToLower(string& sKey)
-{
- int i, iSize;
-
- iSize = sKey.size();
- for (i = 0; i < iSize; ++i) {
- char ch = sKey[i];
- if (ch == ' ' || ch == '*' || ch == '+' || ch == '%')
- sKey[i] = '_';
- else
- sKey[i] = toAsciiLowerCase(ch);
- }
-}
diff --git a/l10ntools/source/gLang.cxx b/l10ntools/source/gLang.cxx
deleted file mode 100644
index af031a4f2e8d..000000000000
--- a/l10ntools/source/gLang.cxx
+++ /dev/null
@@ -1,418 +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 .
- */
-#include <iostream>
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConv.hxx"
-
-
-
-class handler
-{
- public:
- handler() {};
- ~handler() {};
-
- static void showRunTimeError(string sErr);
- static void showUsage(string sErr);
- void checkCommandLine(int argc, char *argv[]);
- void run();
-
- private:
- bool mbForceSave;
- enum {DO_CONVERT, DO_EXTRACT, DO_MERGE} meWorkMode;
- string msTargetDir;
- string msPoDir;
- vector<string> mvSourceFiles;
- l10nMem mcMemory;
-
- static void showManual();
- void loadL10MEM(bool onlyTemplates);
- void runConvert();
- void runExtract();
- void runMerge();
-};
-
-
-
-void handler::showRunTimeError(string sErr)
-{
- cerr << "runtime error: "
- << (sErr.size() ? sErr : "No description")
- << endl;
- exit(-1);
-}
-
-
-
-void handler::showUsage(string sErr)
-{
- if (sErr.size())
- cerr << "commandline error: " << sErr << endl;
-
- cout << "syntax oveview, use \"genLang help\" for full description\n"
- " genLang <cmd> <options>\n"
- " <cmd> is one of\n"
- " convert convert old pot/po files to new format\n"
- " extract extract pot templates from sources\n"
- " help show manual\n"
- " merge merge po files back to sources\n"
- " <options> is a combination of\n"
- " -d show debug information\n"
- " -s save unconditionally\n"
- " -v show progress information\n"
- "\n"
- " --files <files> input file list\n"
- " --target <directory> target root directory\n"
- " --base <directory> base directory for files\n"
- " --po <directory> po root directory\n";
-
- if (sErr.size())
- exit(-1);
-}
-
-
-
-void handler::showManual()
-{
- // give the correct usage
- cout <<
- "genLang(c) 2016 by Document Foundation\n"
- "=============================================\n"
- "As part of the L10N framework for LibreOffice,\n"
- "genLang extracts en-US texts sources of the following types:\n"
- " .xrm, .xhp, .xcu, .xcs, .ulf, .tree, .src, .prop\n"
- "to generate .pot files used for translation\n"
- "genLang extract localized texts from\n"
- " .po\n"
- "to generate sources containing all translated languages\n"
- "\n"
- "genLang can also convert old .po and .pot files\n"
- "the conversion makes tool changes transparent to translators\n"
- "\n"
- "Syntax:\n\n";
-
- showUsage("");
-
- cout <<
- "\n"
- " genLang extract [-v] [-d] [-s]\n"
- " --base <directory> --files <files> --target <directory>\n"
- " extract text from source (.ui etc) <files>, result is .pot\n"
- " templates files written to <directory> with a structure\n"
- " files are expanded with --base, to shorten command line"
- "\n\n";
-
- cout <<
- " genLang merge [-v] [-d] [-s]\n"
- " --base <directory>"
- " --files <files>\n"
- " --target <directory>\n"
- " --po <directory>\n"
- " merges translations (--po) with source files (--files)\n"
- " and write the result to --target\n"
- " files are expanded with --base, to shorten command line"
- "\n\n";
-
- cout <<
- " genLang convert [-v] [-d] [-s]\n"
- " --base <directory>"
- " --files <files>\n"
- " --po <directory>\n"
- " --target <directory>\n"
- " read old po (--po) and new po (--files) files and\n"
- " write po files (--target), ready to be loaded\n"
- " files are expanded with --base, to shorten command line"
- " in Pootle\n"
- "\n\n";
-
- cout <<
- " genLang help\n"
- " this text\n"
- "\n\n";
- exit(0);
-}
-
-
-
-void handler::checkCommandLine(int argc, char *argv[])
-{
- string sWorkText, sBaseDir("");
- int i;
- bool bSourceFiles, bTargetDir, bPoDir;
-
-
- // Set default
- mbForceSave = false;
-
- // check for fixed parameter: genLang <cmd>
- if (argc < 2)
- throw "Not enough parameters";
-
- // check for working mode
- sWorkText = argv[1];
- if (sWorkText == "convert") meWorkMode = DO_CONVERT;
- else if (sWorkText == "extract") meWorkMode = DO_EXTRACT;
- else if (sWorkText == "merge") meWorkMode = DO_MERGE;
- else if (sWorkText == "help") showManual();
- else throw "<command> is mandatory";
-
- // loop through all variable arguments
- for (i = 2; i < argc; ++i) {
- sWorkText = argv[i];
- if (sWorkText == "-d") {
- // show debug information
- mcMemory.setDebug(true);
- }
- else if (sWorkText == "-v") {
- // show progress information
- mcMemory.setVerbose(true);
- }
- else if (sWorkText == "-s") {
- // forced save
- mbForceSave = true;
- }
- else {
- // These arguments, all need and extra argument
- if (i == argc - 1)
- throw sWorkText + " missing filename arguments";
-
- if (sWorkText == "--files") {
- // Loop through filenames
- for (++i; i < argc && argv[i][0] != '-'; ++i)
- mvSourceFiles.push_back(sBaseDir + argv[i]);
- --i;
- }
- else if (sWorkText == "--base") {
- sBaseDir = argv[++i];
- if (sBaseDir[sBaseDir.length() - 1] != '/')
- sBaseDir += "/";
- }
- else if (sWorkText == "--target") {
- msTargetDir = argv[++i];
- if (msTargetDir[msTargetDir.length() - 1] != '/')
- msTargetDir += "/";
- }
- else if (sWorkText == "--po") {
- msPoDir = argv[++i];
- if (msPoDir[msPoDir.length() - 1] != '/')
- msPoDir += "/";
- }
- else
- throw "unknown argument";
- }
- }
-
- // Check all the correct parameters are supplied
- bSourceFiles = bTargetDir = bPoDir = false;
- switch (meWorkMode) {
- case DO_CONVERT:
- bSourceFiles = bPoDir = bTargetDir = true;
- break;
- case DO_EXTRACT:
- bSourceFiles = bTargetDir = true;
- break;
- case DO_MERGE:
- bPoDir = bTargetDir = true;
- break;
- }
-
- if ( (mvSourceFiles.size() > 0) != bSourceFiles)
- throw bSourceFiles ? "--files missing" : "--files used, but not permitted";
- if ( (msPoDir.size() > 0) != bPoDir)
- throw bPoDir ? "--po missing" : "--po used, but not permitted";
-}
-
-
-
-void handler::run()
-{
- // use workMode to start correct control part
- switch (meWorkMode)
- {
- case DO_EXTRACT: runExtract(); break;
- case DO_MERGE: runMerge(); break;
- case DO_CONVERT: runConvert(); break;
- }
-}
-
-
-
-void handler::loadL10MEM(bool onlyTemplates)
-{
- string sLoad = msPoDir + "templates/";
-//FIX vector<string>::iterator siLang;
-
- // no convert
- mcMemory.setConvert(false, false);
-
- // load texts from en-US po file (master)
- // tell system
- l10nMem::showDebug("genLang loading master text from file " + sLoad);
-
- // and load file
- mcMemory.setLanguage("", true);
- convert_gen::createInstance(mcMemory, sLoad, msTargetDir, "").execute(false);
-
- if (onlyTemplates)
- return;
-
- // loop through all languages and load text
-//FIX for (siLang = mvLanguages.begin(); siLang != mvLanguages.end(); ++siLang)
-//FIX {
-//FIX sLoad = msPoDir + *siLang + "/";
-
- // get converter and extract files
-//FIX mcMemory.setLanguage(*siLang, true);
-
- // tell system
-//FIX l10nMem::showDebug("genLang loading text from language file " + sLoad);
-
-//FIX convert_gen::createInstance(mcMemory, sLoad, msTargetDir, "").execute(false, false);
-//FIX }
-}
-
-
-
-void handler::runConvert()
-{
- vector<string>::iterator siSource;
-//FIX vector<string>::iterator siLang;
-
-
- // convert
- loadL10MEM(true);
- mcMemory.setConvert(true, false);
-
- // loop through all source files, and extract messages from each file
- for (siSource = mvSourceFiles.begin(); siSource != mvSourceFiles.end(); ++siSource) {
- // tell system
- l10nMem::showDebug("genLang compare template " + *siSource);
-
- // get converter and extract files
- convert_gen& convertObj = convert_gen::createInstance(mcMemory, "./", msTargetDir, *siSource);
- convertObj.execute(false);
-
- mcMemory.showNOconvert();
-
-//FIX for (siLang = mvLanguages.begin(); siLang != mvLanguages.end(); ++siLang) {
-//FIX string sFilePath = *siLang + "/";
-
- // get converter and extract files
-//FIX mcMemory.setLanguage(*siLang, false);
-
- // tell system
-//FIX l10nMem::showDebug("genLang convert text from file " +
-//FIX sFilePath + *siSource + " language " + *siLang);
-
- // get converter and extract files
-//FIX convert_gen& convertObj = convert_gen::createInstance(mcMemory, sFilePath, msTargetDir, *siSource);
-//FIX convertObj.execute(true, false);
-//FIX }
- }
-
- // and generate language file
- //mcMemory.saveLanguages(msPoOutDir, mbForceSave);
-}
-
-
-
-void handler::runExtract()
-{
- vector<string>::iterator siSource;
- int newPos;
-
- // no convert
- mcMemory.setConvert(false, false);
-
- // loop through all source files, and extract messages from each file
- for (siSource = mvSourceFiles.begin(); siSource != mvSourceFiles.end(); ++siSource) {
- // tell system
- l10nMem::showDebug("genLang extracting text from file " + *siSource);
-
- // set module name
- newPos = (*siSource).find_last_of("/\\", (*siSource).length());
- mcMemory.setModuleName((*siSource).substr(0, newPos));
-
- // get converter and extract file
- convert_gen& convertObj = convert_gen::createInstance(mcMemory, "", msTargetDir, *siSource);
- convertObj.execute(false);
- }
-
- // and generate language file
- mcMemory.saveTemplates(msTargetDir, mbForceSave);
-}
-
-
-
-void handler::runMerge()
-{
- vector<string>::iterator siSource;
-
- // no convert
- mcMemory.setConvert(false, false);
-
- // loop through all source files, and extract messages from each file
- for (siSource = mvSourceFiles.begin(); siSource != mvSourceFiles.end(); ++siSource) {
- // tell system
- l10nMem::showDebug("genLang merging translated text to file " + *siSource);
-
- // get converter and extract file
- convert_gen& convertObj = convert_gen::createInstance(mcMemory, "", msTargetDir, *siSource);
- convertObj.execute(true);
- }
-}
-
-
-
-int main(int argc, char *argv[])
-{
- handler cHandler;
-
- // check command line (exit if problems)
- try {
- cHandler.checkCommandLine(argc, argv);
- }
- catch(const char *sErr) {
- string myErr(sErr);
- handler::showUsage(myErr);
- exit(-1);
- }
- catch(const string& sErr) {
- handler::showUsage(sErr);
- exit(-1);
- }
-
- // command line is ok, so execute it
- try {
- cHandler.run();
- }
- catch(const char *sErr) {
- string myErr(sErr);
- handler::showRunTimeError(myErr);
- exit(-1);
- }
- catch(const string& sErr) {
- handler::showRunTimeError(sErr);
- exit(-1);
- }
-}
diff --git a/l10ntools/source/gLexPo.l b/l10ntools/source/gLexPo.l
deleted file mode 100644
index e0f23124a630..000000000000
--- a/l10ntools/source/gLexPo.l
+++ /dev/null
@@ -1,125 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvPo.hxx"
-
-#define LOCptr ((convert_po *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr potext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="po" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-SPACE [ \t]*
-%%
-
-
-"\"" {
- char c, buildValue[8000];
- int j, i, iLineCnt;
-
- // loop across multiple "..." and combine them, while keeping the source
- for (j = -1, iLineCnt = i = 0; (c = yytext[i]) == '\"';) {
- // build current "..."
- for (; (buildValue[++j] = yytext[++i] = c = yyinput()) != '\"';)
- if (yytext[i] == '\\')
- buildValue[++j] = yytext[++i] = yyinput();
- --j;
-
- if (!LOCptr->mbExpectId && !LOCptr->mbExpectStr)
- break;
-
- // skip rest of line
- for (; (c = yytext[++i] = yyinput()) == ' ' || yytext[i] == '\t' || yytext[i] == '\n';)
- if (yytext[i] == '\n')
- ++iLineCnt;
- }
-
- if (LOCptr->mbExpectId || LOCptr->mbExpectStr) {
- if (yytext[i] != EOF) {
- unput(yytext[i]);
- }
- buildValue[j+1] = '\0';
- LOCptr->setValue(buildValue, iLineCnt);
- }
-}
-
-
-"#,"{SPACE}.*[fF][uU][zZ][zZ][yY] {
- LOCptr->setFuzzy();
-}
-
-
-"#:".* {
- LOCptr->setKey(yytext);
-}
-
-
-[mM][sS][gG][cC][tT][xX][tT].* |
-"#*".* |
-"# ".* |
-"#~".* {
- // special comment, just skip
-}
-
-
-[mM][sS][gG][iI][dD]{SPACE} {
- LOCptr->setMsgId();
-}
-
-
-[mM][sS][gG][sS][tT][rR]{SPACE} {
- LOCptr->setMsgStr();
-}
-
-
-\n {
- LOCptr->handleNL();
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-
-.|\n {
-}
-%%
-
-
-void dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gLexSrc.l b/l10ntools/source/gLexSrc.l
deleted file mode 100644
index f07f2814e2ff..000000000000
--- a/l10ntools/source/gLexSrc.l
+++ /dev/null
@@ -1,351 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvSrc.hxx"
-
-#define LOCptr ((convert_src *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr srctext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="src" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-%x CMD ID LANG LANG2 LANG3 LANG4
-
-SPACE [ \t]*
-IDENT ([(a-zA-Z0-9_][ a-zA-Z0-9_\-\+\*(,&]*[a-zA-Z0-9)_]|[a-zA-Z0-9_])
-SUF [ \t\r\n\\]+
-%%
-f
-
-
-"/*" {
- int i = 1;
- for (;;) {
- while (yytext[i] != '*')
- yytext[++i] = yyinput();
- yytext[++i] = yyinput();
- if (yytext[i] == '/')
- break;
- }
- yytext[i+1] = '\0';
-
- LOCptr->copySource(yytext);
-}
-
-
-
-"//".* {
- LOCptr->copySource(yytext);
-}
-
-
-
-"{" {
- LOCptr->copySource(yytext);
- LOCptr->startBlock();
-}
-
-
-
-"}"{SPACE}";"* {
- LOCptr->copySource(yytext);
- LOCptr->stopBlock();
-}
-
-
-
-[iI][dD][eE][nN][tT][iI][fF][iI][eE][rR] {
- LOCptr->copySource(yytext);
- BEGIN(ID);
-}
-
-
-
-<ID>{SPACE}[=]*{SPACE} {
- LOCptr->copySource(yytext);
-}
-
-
-
-<ID>{IDENT} {
- LOCptr->setName(LOCptr->copySource(yytext), true);
- BEGIN(INITIAL);
-}
-
-
-
-[tT][eE][xX][tT] {
- LOCptr->copySource(yytext);
- BEGIN(LANG);
-}
-
-
-
-<LANG>{SPACE}"["{SPACE} {
- LOCptr->copySource(yytext);
- BEGIN(LANG2);
-}
-
-
-
-<LANG>{SPACE}"=" {
- LOCptr->copySource(yytext);
- BEGIN(INITIAL);
-}
-
-
-
-<LANG2>{IDENT} {
- if (LOCptr->setLang(LOCptr->copySource(yytext))) {
- BEGIN(LANG3);
- }
- else {
- BEGIN(INITIAL);
- }
-}
-
-
-
-<LANG3>{SPACE}"]"{SPACE}"="{SPACE} {
- LOCptr->copySource(yytext);
- BEGIN(LANG4);
-}
-
-
-
-<LANG4>"\"" {
- char buildValue[8000];
- int j, i;
-
- // loop across multiple "..." and combine them, while keeping the source
- buildValue[0] = yytext[0];
- for (j = i = 0; yytext[i] != ';' ;) {
- // build current "..."
- for (; (buildValue[++j] = yytext[++i] = yyinput()) != '\"';)
- if (yytext[i] == '\\')
- buildValue[++j] = yytext[++i] = yyinput();
- --j;
- for (; (yytext[++i] = yyinput()) != ';' && yytext[i] != '\"';) ;
- }
- yytext[++i] =
- buildValue[j+1] = '\0';
- LOCptr->setValue(LOCptr->copySource(buildValue));
- BEGIN(INITIAL);
-}
-
-
-"#define" |
-[cC][oO][nN][tT][rR][oO][lL] |
-[fF][iI][xX][eE][dD][tT][eE][xX][tT] |
-[mM][eE][nN][uU] |
-[mM][eE][nN][uU][iI][tT][eE][mM] |
-[rR][eE][sS][oO][uU][rR][cC][eE] |
-[sS][fF][xX][sS][tT][yY][lL][eE][fF][aA][mM][iI][lL][iI][eS][sS] |
-[sS][fF][xX][sS][tT][yY][lL][eE][fF][aA][mM][iI][lL][yY][iI][tT][eE][mM] |
-[sS][tT][rR][iI][nN][gG] |
-[wW][iI][nN][dD][oO][wW] {
- LOCptr->setCmd(LOCptr->copySource(yytext));
- BEGIN(CMD);
-}
-
-
-
-<CMD>{IDENT} {
- LOCptr->setName(LOCptr->copySource(yytext),false);
- BEGIN(INITIAL);
-}
-
-
-
-<CMD>{SPACE} {
- LOCptr->copySource(yytext);
-}
-
-
-
-<CMD>{SUF} {
- LOCptr->copySource(yytext);
- BEGIN(INITIAL);
-}
-
-
-\n {
- LOCptr->copySource(yytext);
- LOCptr->endMacro();
-}
-
-
-
-\\[\r]*\n {
- LOCptr->copySource(yytext);
- LOCptr->defMacro();
-}
-
-
-[dD][iI][aA][lL][oO][gG][cC][oO][nN][tT][rR][oO][lL] |
-"#define".*[^\\][\r]*\n |
-"#include".* |
-. {
- LOCptr->copySource(yytext);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-%%
-
-
-
-#if 0
-PRE ^[ \t]*
-SUFT [ \t\r\n\[]
-KEYID [a-zA-Z0-9_-]+
-%%
-
-
-
-{PRE}"<"{SUF} {
- yyless(strlen(yytext)-1);
- LOCptr->setListItem(yytext, true);
-}
-
-
-
-">"{SPACE}";"{SUF} {
- yyless(strlen(yytext)-1);
- LOCptr->setListItem(yytext, false);
-}
-
-
-
-{PRE}[bB][iI][tT][mM][aA][pP]{SUF} |
-{PRE}[bB][uU][tT][tT][oO][nN][iI][mM][aA][gG][eE]{SUF} |
-{PRE}[cC][aA][nN][cC][eE][lL][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[cC][hH][eE][cC][kK][bB][oO][xX]{SUF} |
-{PRE}[cC][oO][mM][bB][oO][bB][oO][xX]{SUF} |
-{PRE}[dD][oO][cC][kK][iI][nN][gG][wW][iI][nN][dD][oO][wW]{SUF} |
-{PRE}[eE][dD][iI][tT]{SUF} |
-{PRE}[eE][rR][rR][oO][rR][bB][oO][xX]{SUF} |
-{PRE}[fF][iI][xX][eE][dD][lL][iI][nN][eE]{SUF} |
-{PRE}[fF][lL][oO][aA][tT][iI][nN][gG][wW][iI][nN][dD][oO][wW]{SUF} |
-{PRE}[gG][rR][oO][uU][pP][bB][oO][xX]{SUF} |
-{PRE}[hH][eE][lL][pP][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[iI][dD][lL][iI][sS][tT]{SUF} |
-{PRE}[iI][mM][aA][gG][eE]{SUF} |
-{PRE}[iI][mM][aA][gG][eE][lL][iI][sS][tT]{SUF} |
-{PRE}[iI][mM][aA][gG][eE][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[iI][mM][aA][gG][eE][rR][aA][dD][iI][oO][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[iI][nN][fF][oO][bB][oO][xX]{SUF} |
-{PRE}[lL][iI][sS][tT][bB][oO][xX]{SUF} |
-{PRE}[mM][eE][nN][uU][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[mM][eE][sS][sS][bB][oO][xX]{SUF} |
-{PRE}[mM][eE][tT][rR][iI][cC][fF][iI][eE][lL][dD]{SUF} |
-{PRE}[mM][oO][dD][aA][lL][dD][iI][aA][lL][oO][gG]{SUF} |
-{PRE}[mM][oO][dD][eE][lL][eE][sS][sS][dD][iI][aA][lL][oO][gG]{SUF} |
-{PRE}[mM][oO][rR][eE][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[mM][uU][lL][tT][iI][lL][iI][nN][eE][eE][dD][iI][tT]{SUF} |
-{PRE}[nN][uU][mM][eE][rR][iI][cC][fF][iI][eE][lL][dD]{SUF} |
-{PRE}[oO][kK][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[pP][aA][gG][eE][iI][tT][eE][mM]{SUF} |
-{PRE}[pP][aA][gG][eE][lL][iI][sS][tT]{SUF} |
-{PRE}[pP][uU][sS][hH][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[qQ][uU][eE][rR][yY][bB][oO][xX]{SUF} |
-{PRE}[rR][aA][dD][iI][oO][bB][uU][tT][tT][oO][nN]{SUF} |
-{PRE}[sS][pP][iI][nN][fF][iI][eE][lL][dD]{SUF} |
-{PRE}[sS][tT][rR][iI][nN][gG][aA][rR][rR][aA][yY]{SUF} |
-{PRE}[tT][aA][bB][cC][oO][nN][tT][rR][oO][lL]{SUF} |
-{PRE}[tT][aA][bB][dD][iI][aA][lL][oO][gG]{SUF} |
-{PRE}[tT][aA][bB][pP][aA][gG][eE]{SUF} |
-{PRE}[tT][iI][mM][eE][fF][iI][eE][lL][dD]{SUF} |
-{PRE}[tT][oO][oO][lL][bB][oO][xX]{SUF} |
-{PRE}[tT][oO][oO][lL][bB][oO][xX][iI][tT][eE][mM]{SUF} |
-{PRE}[tT][rR][iI][sS][tT][aA][tT][eE][bB][oO][xX]{SUF} |
-{PRE}[wW][aA][rR][nN][iI][nN][gG][bB][oO][xX]{SUF} |
-{PRE}[wW][oO][rR][kK][wW][iI][nN][dD][oO][wW]{SUF} {
-
-
-
-{PRE}[hH][eE][lL][pP][iI][dD]{SUF} {
- yyless(strlen(yytext)-1);
- LOCptr->setId(yytext, false);
-}
-
-
-
-{PRE}[sS][tT][yY][lL][eE][fF][aA][mM][iI][lL][yY]{SUF} |
-
-
-
-{PRE}[cC][uU][sS][tT][oO][mM][uU][nN][iI][tT][tT][eE][xX][tT]{SUFT} |
-{PRE}[hH][eE][lL][pP][tT][eE][xX][tT]{SUFT} |
-{PRE}[mM][eE][sS][sS][aA][gG][eE]{SUFT} |
-{PRE}[qQ][uU][iI][cC][kK][hH][eE][lL][pP][tT][eE][xX][tT]{SUFT} |
-{PRE}[tT][eE][xX][tT]{SUFT} |
-{PRE}[tT][iI][tT][lL][eE]{SUFT} {
- yyless(strlen(yytext)-1);
- LOCptr->setText(yytext);
-}
-
-
-
-{PRE}[fF][iI][lL][tT][eE][rR][lL][iI][sS][tT]{SUFT} |
-{PRE}[iI][tT][eE][mM][lL][iI][sS][tT]{SUFT} |
-{PRE}[sS][tT][yY][lL][eE][fF][aA][mM][iI][lL][yY][lL][iI][sS][tT]{SUF} {
- yyless(strlen(yytext)-1);
- LOCptr->setList(yytext);
-}
-
-
-
-{PRE}[pP][aA][iI][rR][eE][dD][lL][iI][sS][tT]{SUFT} |
-{PRE}[sS][tT][rR][iI][nN][gG][lL][iI][sS][tT]{SUFT} {
- yyless(strlen(yytext)-1);
- LOCptr->setList(yytext);
-}
-
-
-
-{KEYID} {
- LOCptr->setName(yytext);
-}
-
-#endif
-
-
-void src_dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gLexTree.l b/l10ntools/source/gLexTree.l
deleted file mode 100644
index ca3d4b63a7c8..000000000000
--- a/l10ntools/source/gLexTree.l
+++ /dev/null
@@ -1,127 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvTree.hxx"
-
-#define LOCptr ((convert_tree *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr treetext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="tree" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-SP [ \t]*
-IDENT [\.a-zA-Z0-9_-]+
-%%
-
-
-"\"" {
- int j;
-
- // build current "..."
- for (j = -1; (yytext[++j] = yyinput()) != '\"';)
- if (yytext[j] == '\\')
- yytext[++j] = yyinput();
-
- yytext[j+1] = '\0';
- LOCptr->setString(yytext);
-}
-
-
-
-\> {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_VALUE, convert_tree::STATE_VAL_NONE, NULL);
-}
-
-
-
-"id=" {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_NONE, convert_tree::STATE_VAL_ID, NULL);
-}
-
-
-
-"application=" {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_NONE, convert_tree::STATE_VAL_APPL, NULL);
-}
-
-
-
-"title=" {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_NONE, convert_tree::STATE_VAL_TITLE, NULL);
-}
-
-
-
-"<help_section " {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_HELPSEC, convert_tree::STATE_VAL_NONE, "help_section");
-}
-
-
-
-"<node " {
- LOCptr->setState(yytext, convert_tree::STATE_TAG_NODE, convert_tree::STATE_VAL_NONE, "node");
-}
-
-
-
-"<topic " {
- //NOT NOW LOCptr->setState(yytext, convert_tree::STATE_TAG_TOPIC, convert_tree::STATE_VAL_NONE, NULL);
-}
-
-
-
-"</topic" {
- // NOT NOW LOCptr->setValue(yytext);
-}
-
-
-
-.|\n {
- LOCptr->copySourceSpecial(yytext, 0);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-
-
-%%
-
-
-
-void tree_dummyJustForCompiler()
-{
- yyunput(0, NULL);
-}
diff --git a/l10ntools/source/gLexUi.l b/l10ntools/source/gLexUi.l
deleted file mode 100644
index 2ad64b42b868..000000000000
--- a/l10ntools/source/gLexUi.l
+++ /dev/null
@@ -1,90 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvUi.hxx"
-
-#define LOCptr ((convert_ui *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr uitext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="ui" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-%x CMD
-
-PRE ^[ \t]*
-SUF [ \t\r\n\\]
-SUFT [ \t\r\n\[]
-SPACE [ \t]*
-IDENT ([(a-zA-Z0-9_][ a-zA-Z0-9_\-\+\*(,&]*[a-zA-Z0-9)_]|[a-zA-Z0-9_])
-KEYID [a-zA-Z0-9_-]+
-%%
-
-
-
-"/*" {
- int i = 1;
- for (;;) {
- while (yytext[i] != '*')
- yytext[++i] = yyinput();
- yytext[++i] = yyinput();
- if (yytext[i] == '/')
- break;
- }
- yytext[i+1] = '\0';
-
- LOCptr->copySource(yytext);
-}
-
-
-"//".* {
- LOCptr->copySource(yytext);
-}
-
-
-
-. {
- LOCptr->copySource(yytext);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-%%
-
-
-
-void ui_dummyJustForCompiler()
-{
- yyunput(0, NULL);
-}
diff --git a/l10ntools/source/gLexUlf.l b/l10ntools/source/gLexUlf.l
deleted file mode 100644
index 8da3539b700c..000000000000
--- a/l10ntools/source/gLexUlf.l
+++ /dev/null
@@ -1,107 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvUlf.hxx"
-
-#define LOCptr ((convert_ulf *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr ulftext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="ulf" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-PRE ^[ \t]*
-SUF [ \t\r\n]
-SUFT [ \t\r\n\[]
-SPACE [ \t]*
-IDENT ([a-zA-Z0-9][ a-zA-Z0-9_\-\+\*]*[a-zA-Z0-9]|[0-9])
-KEYID [a-zA-Z0-9_-]+
-%%
-
-
-
-"/*" {
- int i = 1;
- for (;;) {
- while (yytext[i] != '*')
- yytext[++i] = yyinput();
- yytext[++i] = yyinput();
- if (yytext[i] == '/')
- break;
- }
- yytext[i+1] = '\0';
-
- LOCptr->copySource(yytext);
-}
-
-
-
-"\"".* {
- LOCptr->setValue(yytext);
-}
-
-
-
-"["[^\]]+"]" {
- LOCptr->setKey(yytext);
-}
-
-
-
-"en-US"[ \t]*"=" {
- LOCptr->setText(yytext, true);
-}
-
-
-
-[a-zA-Z_\-]+[ \t]*"=" {
- LOCptr->setText(yytext, false);
-}
-
-
-
-.|\n {
- LOCptr->copySource(yytext);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-%%
-
-
-
-void ulf_dummyJustForCompiler()
-{
- yyunput(0, NULL);
-}
diff --git a/l10ntools/source/gLexXcs.l b/l10ntools/source/gLexXcs.l
deleted file mode 100644
index f0bb97bafa2b..000000000000
--- a/l10ntools/source/gLexXcs.l
+++ /dev/null
@@ -1,76 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXcs.hxx"
-
-#define LOCptr ((convert_xcs *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr xcstext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="xcs" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-%%
-
-"<prop"[^>]*> {
- LOCptr->setKey(yytext);
-}
-
-"</prop>" {
- LOCptr->unsetKey(yytext);
-}
-
-"<value"[^>]*> {
- LOCptr->startCollectData(yytext);
-}
-
-"</value>" {
- LOCptr->stopCollectData(yytext);
-}
-
-.|\n {
- LOCptr->copySource(yytext);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-%%
-
-
-
-void xcs_dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gLexXcu.l b/l10ntools/source/gLexXcu.l
deleted file mode 100644
index 5eb55a047e02..000000000000
--- a/l10ntools/source/gLexXcu.l
+++ /dev/null
@@ -1,127 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXcu.hxx"
-
-#define LOCptr ((convert_xcu *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr xcutext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="xcu" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-SPACE [ \t]*
-NAME .*"oor:name="\"[^\"]+\"{SPACE}
-FIN [^/>]*">"
-%%
-
-
-
-"component-data" {
- LOCptr->addLevel();
- LOCptr->pushKey("");
- LOCptr->copySource(yytext, false);
-}
-
-
-
-"<oor:component-data"{NAME} {
- LOCptr->addLevel();
- LOCptr->pushKey("");
- LOCptr->pushKey(yytext);
-}
-
-
-
-"<prop"{NAME}{FIN} |
-"<node"{NAME}{FIN} {
- LOCptr->pushKey(yytext);
-}
-
-
-
-"</oor:component-data" |
-"</prop" |
-"</node" {
- LOCptr->popKey(yytext);
-}
-
-
-"<value xml:lang="\"[^\"]+\"[^>]*">" {
- LOCptr->startCollectData(yytext);
-}
-
-
-
-"</value>" {
- LOCptr->stopCollectData(yytext);
-}
-
-
-
-"&amp;" |
-"&apos;" |
-"&gt;" |
-"&lt;" |
-"&quot;" {
- LOCptr->copySpecial(yytext);
-}
-
-
-
-({SPACE}\n{SPACE})+ {
- LOCptr->copyNL(yytext);
-}
-
-
-
-. {
- LOCptr->copySource(yytext, LOCptr->mbNoCollectingData);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-
-
-%%
-
-
-
-void xcu_dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gLexXhp.l b/l10ntools/source/gLexXhp.l
deleted file mode 100644
index 93888471d07f..000000000000
--- a/l10ntools/source/gLexXhp.l
+++ /dev/null
@@ -1,157 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXhp.hxx"
-
-#define LOCptr ((convert_xhp *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr xhptext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="xhp" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-SP [ \t]*
-IDENT [\.a-zA-Z0-9_-]+
-%%
-
-
-
-\" {
- LOCptr->setString(yytext);
-}
-
-
-
-\< {
- LOCptr->openTag(yytext);
-}
-
-
-
-\/\> {
- LOCptr->closeTagNOvalue(yytext);
-}
-
-
-
-\> {
- LOCptr->closeTag(yytext);
-}
-
-
-
-"id="{SP}\"{SP}{IDENT}{SP}\" {
- LOCptr->setId(yytext);
-}
-
-
-
-"xml-lang="{SP}\"{SP}{IDENT}{SP}\" {
- LOCptr->setLang(yytext);
-}
-
-
-
-"<title " |
-"<bookmark " |
-"<paragraph " {
- LOCptr->openTransTag(yytext);
-}
-
-
-"</title>" |
-"</bookmark>" |
-"</paragraph>" {
- LOCptr->closeTransTag(yytext);
-}
-
-
-
-"<comment>" {
- LOCptr->startComment(yytext);
-}
-
-
-
-"</comment>" {
- LOCptr->stopComment(yytext);
-}
-
-
-
-"localize=\"false\"" {
- LOCptr->stopTransTag(yytext);
-}
-
-
-
-"&amp;" |
-"&gt;" |
-"&lt;" |
-"&quot;" {
- LOCptr->handleSpecial(yytext);
-}
-
-
-\r*\n\t* {
- LOCptr->handleDataEnd(yytext);
-}
-
-
-
-\\ {
- LOCptr->duplicate(yytext);
-}
-
-
-
-.|\n {
- LOCptr->copySourceSpecial(yytext, 0);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-
-
-%%
-
-
-
-void xhp_dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gLexXml.l b/l10ntools/source/gLexXml.l
deleted file mode 100644
index fd07001f19bb..000000000000
--- a/l10ntools/source/gLexXml.l
+++ /dev/null
@@ -1,90 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXml.hxx"
-
-#define LOCptr ((convert_xml *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr xmltext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="xml" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-%x CMD
-
-PRE ^[ \t]*
-SUF [ \t\r\n\\]
-SUFT [ \t\r\n\[]
-SPACE [ \t]*
-IDENT ([(a-zA-Z0-9_][ a-zA-Z0-9_\-\+\*(,&]*[a-zA-Z0-9)_]|[a-zA-Z0-9_])
-KEYID [a-zA-Z0-9_-]+
-%%
-
-
-
-"/*" {
- int i = 1;
- for (;;) {
- while (yytext[i] != '*')
- yytext[++i] = yyinput();
- yytext[++i] = yyinput();
- if (yytext[i] == '/')
- break;
- }
- yytext[i+1] = '\0';
-
- LOCptr->copySource(yytext);
-}
-
-
-"//".* {
- LOCptr->copySource(yytext);
-}
-
-
-
-. {
- LOCptr->copySource(yytext);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-%%
-
-
-
-void xml_dummyJustForCompiler()
-{
- yyunput(0, NULL);
-}
diff --git a/l10ntools/source/gLexXrm.l b/l10ntools/source/gLexXrm.l
deleted file mode 100644
index 12c1ec9c2648..000000000000
--- a/l10ntools/source/gLexXrm.l
+++ /dev/null
@@ -1,97 +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 .
- */
-%top{
-#include <string>
-#include <vector>
-using namespace std;
-
-#include "gL10nMem.hxx"
-#include "gConvXrm.hxx"
-
-#define LOCptr ((convert_xrm *)convert_gen::mcImpl)
-#define YYLMAX 64000
-#define YY_INPUT(buf,result,max_size) LOCptr->lexRead(buf, &result, max_size)
-#define YY_NO_UNISTD_H 1
-#define yytext_ptr xrmtext_ptr
-#define yy_flex_strncpy convert_gen::lexStrncpy
-}
-
-
-
-%option prefix="xrm" 8bit noyywrap never-interactive
-%array
-%p 24000
-%e 1200
-%n 500
-
-IDENT [a-zA-Z0-9_-]*
-NAME \"{IDENT}\"
-SP [ \t]*
-%%
-
-
-
-"id"{SP}"="{SP}{NAME} {
- LOCptr->setId(yytext);
-}
-
-
-
-"lang"{SP}"="{SP}{NAME} {
- LOCptr->setLang(yytext);
-}
-
-
-"<h"[0-9]" " |
-"<p " {
- LOCptr->setTag(yytext);
-}
-
-
-
-"</h"[0-9]">"[ \t\r]*[\n] |
-"</p>"[ \t\r]*[\n] {
- LOCptr->stopCollectData(yytext);
-}
-
-
-
-">" {
- LOCptr->startCollectData(yytext);
-}
-
-
-
-.|\n {
- LOCptr->copySource(yytext, LOCptr->mbNoCollectingData);
-
- // Just to please compiler.
- if (false)
- REJECT;
-}
-
-
-%%
-
-void xrm_dummyJustForCompiler()
-{
- char *txt = NULL;
- // yy_flex_strlen(txt);
- yyunput(0, txt);
-}
diff --git a/l10ntools/source/gRun.sh b/l10ntools/source/gRun.sh
deleted file mode 100755
index 20df6f846717..000000000000
--- a/l10ntools/source/gRun.sh
+++ /dev/null
@@ -1,500 +0,0 @@
-#!/bin/bash
-
-cd ${LODE_HOME}/dev/core
-
-MYCMD='./workdir/LinkTarget/Executable/genlang.exe extract -s --target workdir/jan '
-
-# .xrm files
-${MYCMD} --base readlicense_oo/docs --files readme.xrm
-
-
-# .tree and .xhp files
-${MYCMD} --base swext/mediawiki/help --files help.tree wiki.xhp wikiaccount.xhp wikiformats.xhp wikisend.xhp wikisettings.xhp
-
-${MYCMD} --base helpcontent2/source/auxiliary --files sbasic.tree scalc.tree schart.tree shared.tree simpress.tree smath.tree swriter.tree
-
-${MYCMD} --files nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver/help.tree
-
-${MYCMD} --base helpcontent2/source/text/sbasic/guide --files access2base.xhp control_properties.xhp create_dialog.xhp insert_control.xhp sample_code.xhp show_dialog.xhp translation.xhp
-
-${MYCMD} --base helpcontent2/source/text/sbasic/shared --files 00000002.xhp 00000003.xhp 01000000.xhp 01010210.xhp 01020000.xhp 01020100.xhp 01020200.xhp 01020300.xhp 01020500.xhp 01030000.xhp 01030100.xhp 01030200.xhp 01030300.xhp 01030400.xhp 01040000.xhp 01050000.xhp 01050100.xhp 01050200.xhp 01050300.xhp 01170100.xhp 01170101.xhp 01170103.xhp 03000000.xhp 03010000.xhp 03010100.xhp 03010101.xhp 03010102.xhp 03010103.xhp 03010200.xhp 03010201.xhp 03010300.xhp 03010301.xhp 03010302.xhp 03010303.xhp 03010304.xhp 03010305.xhp 03020000.xhp 03020100.xhp 03020101.xhp 03020102.xhp 03020103.xhp 03020104.xhp 03020200.xhp 03020201.xhp 03020202.xhp 03020203.xhp 03020204.xhp 03020205.xhp 03020301.xhp 03020302.xhp 03020303.xhp 03020304.xhp 03020305.xhp 03020400.xhp 03020401.xhp 03020402.xhp 03020403.xhp 03020404.xhp 03020405.xhp 03020406.xhp 03020407.xhp 03020408.xhp 03020409.xhp 03020410.xhp 03020411.xhp 03020412.xhp 03020413.xhp 03020414.xhp 03020415.xhp 03030000.xhp 03030100.xhp 03030101.xhp 03030102.xhp 03030103.xhp 03030104.xhp 03030105.xhp 03030106.xhp 03030107.xhp 03030108.xhp 03030110.xhp 03030111.xhp 03030112.xhp 03030113.xhp 03030114.xhp 03030115.xhp 03030116.xhp 03030120.xhp 03030130.xhp 03030200.xhp 03030201.xhp 03030202.xhp 03030203.xhp 03030204.xhp 03030205.xhp 03030206.xhp 03030300.xhp 03030301.xhp 03030302.xhp 03030303.xhp 03050000.xhp 03050100.xhp 03050200.xhp 03050300.xhp 03050500.xhp 03060000.xhp 03060100.xhp 03060200.xhp 03060300.xhp 03060400.xhp 03060500.xhp 03060600.xhp 03070000.xhp 03070100.xhp 03070200.xhp 03070300.xhp 03070400.xhp 03070500.xhp 03070600.xhp 03080000.xhp 03080100.xhp 03080101.xhp 03080102.xhp 03080103.xhp 03080104.xhp 03080200.xhp 03080201.xhp 03080202.xhp 03080300.xhp 03080301.xhp 03080302.xhp 03080400.xhp 03080401.xhp 03080500.xhp 03080501.xhp 03080502.xhp 03080600.xhp 03080601.xhp 03080700.xhp 03080701.xhp 03080800.xhp 03080801.xhp 03080802.xhp 03090000.xhp 03090100.xhp 03090101.xhp 03090102.xhp 03090103.xhp 03090200.xhp 03090201.xhp 03090202.xhp 03090203.xhp 03090300.xhp 03090301.xhp 03090302.xhp 03090303.xhp 03090400.xhp 03090401.xhp 03090402.xhp 03090403.xhp 03090404.xhp 03090405.xhp 03090406.xhp 03090407.xhp 03090408.xhp 03090409.xhp 03090410.xhp 03090411.xhp 03090412.xhp 03100000.xhp 03100050.xhp 03100060.xhp 03100070.xhp 03100080.xhp 03100100.xhp 03100300.xhp 03100400.xhp 03100500.xhp 03100600.xhp 03100700.xhp 03100900.xhp 03101000.xhp 03101100.xhp 03101110.xhp 03101120.xhp 03101130.xhp 03101140.xhp 03101300.xhp 03101400.xhp 03101500.xhp 03101600.xhp 03101700.xhp 03102000.xhp 03102100.xhp 03102101.xhp 03102200.xhp 03102300.xhp 03102400.xhp 03102450.xhp 03102600.xhp 03102700.xhp 03102800.xhp 03102900.xhp 03103000.xhp 03103100.xhp 03103200.xhp 03103300.xhp 03103400.xhp 03103450.xhp 03103500.xhp 03103600.xhp 03103700.xhp 03103800.xhp 03103900.xhp 03104000.xhp 03104100.xhp 03104200.xhp 03104300.xhp 03104400.xhp 03104500.xhp 03104600.xhp 03104700.xhp 03110000.xhp 03110100.xhp 03120000.xhp 03120100.xhp 03120101.xhp 03120102.xhp 03120103.xhp 03120104.xhp 03120105.xhp 03120200.xhp 03120201.xhp 03120202.xhp 03120300.xhp 03120301.xhp 03120302.xhp 03120303.xhp 03120304.xhp 03120305.xhp 03120306.xhp 03120307.xhp 03120308.xhp 03120309.xhp 03120310.xhp 03120311.xhp 03120312.xhp 03120313.xhp 03120314.xhp 03120315.xhp 03120400.xhp 03120401.xhp 03120402.xhp 03120403.xhp 03130000.xhp 03130100.xhp 03130500.xhp 03130600.xhp 03130700.xhp 03130800.xhp 03131000.xhp 03131300.xhp 03131400.xhp 03131500.xhp 03131600.xhp 03131700.xhp 03131800.xhp 03131900.xhp 03132000.xhp 03132100.xhp 03132200.xhp 03132300.xhp 03132400.xhp 03132500.xhp 05060700.xhp code-stubs.xhp keys.xhp main0211.xhp main0601.xhp
-
-${MYCMD} --base helpcontent2/source/text/sbasic/shared/01 --files 06130000.xhp 06130100.xhp 06130500.xhp
-
-${MYCMD} --base helpcontent2/source/text/sbasic/shared/02 --files 11010000.xhp 11020000.xhp 11030000.xhp 11040000.xhp 11050000.xhp 11060000.xhp 11070000.xhp 11080000.xhp 11090000.xhp 11100000.xhp 11110000.xhp 11120000.xhp 11140000.xhp 11150000.xhp 11160000.xhp 11170000.xhp 11180000.xhp 11190000.xhp 20000000.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc/00 --files 00000004.xhp 00000402.xhp 00000403.xhp 00000404.xhp 00000405.xhp 00000406.xhp 00000407.xhp 00000412.xhp sheet_menu.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc/01 --files 01120000.xhp 02110000.xhp 02120000.xhp 02120100.xhp 02140000.xhp 02140100.xhp 02140200.xhp 02140300.xhp 02140400.xhp 02140500.xhp 02140600.xhp 02140700.xhp 02150000.xhp 02160000.xhp 02170000.xhp 02180000.xhp 02190000.xhp 02190100.xhp 02190200.xhp 02200000.xhp 02210000.xhp 03070000.xhp 03080000.xhp 03090000.xhp 03100000.xhp 04010000.xhp 04010100.xhp 04010200.xhp 04020000.xhp 04030000.xhp 04040000.xhp 04050000.xhp 04050100.xhp 04060000.xhp 04060100.xhp 04060101.xhp 04060102.xhp 04060103.xhp 04060104.xhp 04060105.xhp 04060106.xhp 04060107.xhp 04060108.xhp 04060109.xhp 04060110.xhp 04060111.xhp 04060112.xhp 04060115.xhp 04060116.xhp 04060118.xhp 04060119.xhp 04060120.xhp 04060181.xhp 04060182.xhp 04060183.xhp 04060184.xhp 04060185.xhp 04060199.xhp 04070000.xhp 04070100.xhp 04070200.xhp 04070300.xhp 04070400.xhp 04080000.xhp 04090000.xhp 05020000.xhp 05020600.xhp 05030000.xhp 05030200.xhp 05030300.xhp 05030400.xhp 05040000.xhp 05040200.xhp 05050000.xhp 05050100.xhp 05050300.xhp 05060000.xhp 05070000.xhp 05070500.xhp 05080000.xhp 05080100.xhp 05080200.xhp 05080300.xhp 05080400.xhp 05100000.xhp 05100100.xhp 05100200.xhp 05110000.xhp 05120000.xhp 06020000.xhp 06030000.xhp 06030100.xhp 06030200.xhp 06030300.xhp 06030400.xhp 06030500.xhp 06030600.xhp 06030700.xhp 06030800.xhp 06030900.xhp 06031000.xhp 06040000.xhp 06050000.xhp 06060000.xhp 06060100.xhp 06060200.xhp 06070000.xhp 06080000.xhp 06130000.xhp 06990000.xhp 07080000.xhp 07090000.xhp 12010000.xhp 12010100.xhp 12020000.xhp 12030000.xhp 12030100.xhp 12030200.xhp 12040000.xhp 12040100.xhp 12040201.xhp 12040300.xhp 12040400.xhp 12040500.xhp 12050000.xhp 12050100.xhp 12050200.xhp 12060000.xhp 12070000.xhp 12070100.xhp 12080000.xhp 12080100.xhp 12080200.xhp 12080300.xhp 12080400.xhp 12080500.xhp 12080600.xhp 12080700.xhp 12090000.xhp 12090100.xhp 12090101.xhp 12090102.xhp 12090103.xhp 12090104.xhp 12090105.xhp 12090106.xhp 12090200.xhp 12090300.xhp 12090400.xhp 12100000.xhp 12120000.xhp 12120100.xhp 12120200.xhp 12120300.xhp exponsmooth_embd.xhp ex_data_stat_func.xhp format_graphic.xhp ful_func.xhp func_aggregate.xhp func_averageif.xhp func_averageifs.xhp func_color.xhp func_countifs.xhp func_date.xhp func_datedif.xhp func_datevalue.xhp func_day.xhp func_days.xhp func_days360.xhp func_eastersunday.xhp func_edate.xhp func_eomonth.xhp func_error_type.xhp func_forecastetsadd.xhp func_forecastetsmult.xhp func_forecastetspiadd.xhp func_forecastetspimult.xhp func_forecastetsseason.xhp func_forecastetsstatadd.xhp func_forecastetsstatmult.xhp func_hour.xhp func_imcos.xhp func_imcosh.xhp func_imcot.xhp func_imcsc.xhp func_imcsch.xhp func_imsec.xhp func_imsech.xhp func_imsin.xhp func_imsinh.xhp func_imtan.xhp func_isoweeknum.xhp func_minute.xhp func_month.xhp func_networkdays.xhp func_now.xhp func_numbervalue.xhp func_second.xhp func_skewp.xhp func_sumifs.xhp func_time.xhp func_timevalue.xhp func_today.xhp func_webservice.xhp func_weekday.xhp func_weeknum.xhp func_weeknumadd.xhp func_weeknum_ooo.xhp func_workday.xhp func_year.xhp func_yearfrac.xhp ODFF.xhp solver.xhp solver_options.xhp statistics.xhp statistics_regression.xhp stat_data.xhp text2columns.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc/02 --files 02130000.xhp 02140000.xhp 02150000.xhp 02160000.xhp 02170000.xhp 06010000.xhp 06030000.xhp 06040000.xhp 06050000.xhp 06060000.xhp 06070000.xhp 06080000.xhp 08010000.xhp 08080000.xhp 10050000.xhp 10060000.xhp 18010000.xhp 18020000.xhp
-
-${MYCMD} --files helpcontent2/source/text/scalc/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc/05 --files 02140000.xhp empty_cells.xhp OpenCL_options.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc/guide --files address_auto.xhp autofilter.xhp autoformat.xhp auto_off.xhp background.xhp borders.xhp calculate.xhp calc_date.xhp calc_series.xhp calc_timevalues.xhp cellcopy.xhp cellreferences.xhp cellreferences_url.xhp cellreference_dragdrop.xhp cellstyle_by_formula.xhp cellstyle_conditional.xhp cellstyle_minusvalue.xhp cell_enter.xhp cell_protect.xhp cell_unprotect.xhp consolidate.xhp csv_files.xhp csv_formula.xhp currency_format.xhp database_define.xhp database_filter.xhp database_sort.xhp datapilot.xhp datapilot_createtable.xhp datapilot_deletetable.xhp datapilot_edittable.xhp datapilot_filtertable.xhp datapilot_grouping.xhp datapilot_tipps.xhp datapilot_updatetable.xhp dbase_files.xhp design.xhp edit_multitables.xhp filters.xhp finding.xhp format_table.xhp format_value.xhp format_value_userdef.xhp formulas.xhp formula_copy.xhp formula_enter.xhp formula_value.xhp fraction_enter.xhp goalseek.xhp html_doc.xhp integer_leading_zero.xhp keyboard.xhp line_fix.xhp main.xhp mark_cells.xhp matrixformula.xhp move_dragdrop.xhp multioperation.xhp multitables.xhp multi_tables.xhp note_insert.xhp numbers_text.xhp printranges.xhp print_details.xhp print_exact.xhp print_landscape.xhp print_title_row.xhp relativ_absolut_ref.xhp rename_table.xhp rounding_numbers.xhp row_height.xhp scenario.xhp sorted_list.xhp specialfilter.xhp super_subscript.xhp table_cellmerge.xhp table_rotate.xhp table_view.xhp text_numbers.xhp text_rotate.xhp text_wrap.xhp userdefined_function.xhp validity.xhp value_with_name.xhp webquery.xhp year2000.xhp
-
-${MYCMD} --base helpcontent2/source/text/scalc --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0104.xhp main0105.xhp main0106.xhp main0107.xhp main0112.xhp main0116.xhp main0200.xhp main0202.xhp main0203.xhp main0205.xhp main0206.xhp main0208.xhp main0210.xhp main0214.xhp main0218.xhp main0503.xhp
-
-${MYCMD} --files helpcontent2/source/text/schart/00/00000004.xhp
-
-${MYCMD} --base helpcontent2/source/text/schart/01 --files 03010000.xhp 04010000.xhp 04020000.xhp 04030000.xhp 04040000.xhp 04050000.xhp 04050100.xhp 04060000.xhp 04070000.xhp 05010000.xhp 05010100.xhp 05010200.xhp 05020000.xhp 05020100.xhp 05020101.xhp 05020200.xhp 05020201.xhp 05030000.xhp 05040000.xhp 05040100.xhp 05040200.xhp 05040201.xhp 05040202.xhp 05050000.xhp 05050100.xhp 05060000.xhp 05070000.xhp 05080000.xhp 05120000.xhp choose_chart_type.xhp smooth_line_properties.xhp stepped_line_properties.xhp three_d_view.xhp type_area.xhp type_bubble.xhp type_column_bar.xhp type_column_line.xhp type_line.xhp type_net.xhp type_pie.xhp type_stock.xhp type_xy.xhp wiz_chart_elements.xhp wiz_chart_type.xhp wiz_data_range.xhp wiz_data_series.xhp
-
-${MYCMD} --base helpcontent2/source/text/schart/02 --files 01190000.xhp 01200000.xhp 01210000.xhp 01220000.xhp 02020000.xhp
-
-${MYCMD} --files helpcontent2/source/text/schart/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/schart --files main0000.xhp main0202.xhp main0503.xhp
-
-${MYCMD} --files helpcontent2/source/text/sdraw/00/00000004.xhp
-
-${MYCMD} --files helpcontent2/source/text/sdraw/01/04010000.xhp
-
-${MYCMD} --files helpcontent2/source/text/sdraw/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/sdraw/guide --files align_arrange.xhp color_define.xhp combine_etc.xhp cross_fading.xhp draw_sector.xhp duplicate_object.xhp eyedropper.xhp gradient.xhp graphic_insert.xhp groups.xhp join_objects.xhp join_objects3d.xhp keyboard.xhp main.xhp rotate_object.xhp text_enter.xhp
-
-${MYCMD} --base helpcontent2/source/text/sdraw --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0104.xhp main0105.xhp main0106.xhp main0200.xhp main0202.xhp main0210.xhp main0213.xhp main0503.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/00 --files 00000001.xhp 00000002.xhp 00000003.xhp 00000004.xhp 00000005.xhp 00000007.xhp 00000010.xhp 00000011.xhp 00000020.xhp 00000021.xhp 00000099.xhp 00000200.xhp 00000206.xhp 00000207.xhp 00000208.xhp 00000210.xhp 00000215.xhp 00000401.xhp 00000402.xhp 00000403.xhp 00000404.xhp 00000406.xhp 00000407.xhp 00000408.xhp 00000409.xhp 00000450.xhp 00040500.xhp 00040501.xhp 00040502.xhp 00040503.xhp 01000000.xhp 01010000.xhp 01020000.xhp 01050000.xhp icon_alt.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/01 --files 01010000.xhp 01010001.xhp 01010100.xhp 01010200.xhp 01010201.xhp 01010202.xhp 01010203.xhp 01010300.xhp 01010301.xhp 01010302.xhp 01010303.xhp 01010304.xhp 01020000.xhp 01020101.xhp 01020103.xhp 01050000.xhp 01060000.xhp 01070000.xhp 01070001.xhp 01100000.xhp 01100100.xhp 01100200.xhp 01100300.xhp 01100400.xhp 01100600.xhp 01110000.xhp 01110101.xhp 01110300.xhp 01110400.xhp 01130000.xhp 01140000.xhp 01160000.xhp 01160200.xhp 01160300.xhp 01170000.xhp 01180000.xhp 01190000.xhp 01990000.xhp 02010000.xhp 02020000.xhp 02030000.xhp 02040000.xhp 02050000.xhp 02060000.xhp 02070000.xhp 02090000.xhp 02100000.xhp 02100001.xhp 02100100.xhp 02100200.xhp 02100300.xhp 02110000.xhp 02180000.xhp 02180100.xhp 02190000.xhp 02200000.xhp 02200100.xhp 02200200.xhp 02210101.xhp 02220000.xhp 02220100.xhp 02230000.xhp 02230100.xhp 02230150.xhp 02230200.xhp 02230300.xhp 02230400.xhp 02230401.xhp 02230402.xhp 02230500.xhp 02240000.xhp 02250000.xhp 03010000.xhp 03020000.xhp 03040000.xhp 03050000.xhp 03060000.xhp 03110000.xhp 03150100.xhp 03170000.xhp 03990000.xhp 04050000.xhp 04060000.xhp 04060100.xhp 04060200.xhp 04100000.xhp 04140000.xhp 04150000.xhp 04150100.xhp 04150200.xhp 04150400.xhp 04150500.xhp 04160300.xhp 04160500.xhp 04180100.xhp 04990000.xhp 05010000.xhp 05020000.xhp 05020100.xhp 05020200.xhp 05020300.xhp 05020301.xhp 05020400.xhp 05020500.xhp 05020600.xhp 05020700.xhp 05030000.xhp 05030100.xhp 05030300.xhp 05030500.xhp 05030600.xhp 05030700.xhp 05030800.xhp 05040100.xhp 05040200.xhp 05040300.xhp 05040400.xhp 05050000.xhp 05060000.xhp 05070000.xhp 05070100.xhp 05070200.xhp 05070300.xhp 05070400.xhp 05070500.xhp 05070600.xhp 05080000.xhp 05080100.xhp 05080200.xhp 05080300.xhp 05080400.xhp 05090000.xhp 05100000.xhp 05100100.xhp 05100200.xhp 05100500.xhp 05100600.xhp 05100700.xhp 05110000.xhp 05110100.xhp 05110200.xhp 05110300.xhp 05110400.xhp 05110500.xhp 05110600m.xhp 05110700.xhp 05110800.xhp 05120000.xhp 05120100.xhp 05120200.xhp 05120300.xhp 05120600.xhp 05140100.xhp 05150101.xhp 05190000.xhp 05190100.xhp 05200000.xhp 05200100.xhp 05200200.xhp 05200300.xhp 05210000.xhp 05210100.xhp 05210200.xhp 05210300.xhp 05210400.xhp 05210500.xhp 05210600.xhp 05210700.xhp 05220000.xhp 05230000.xhp 05230100.xhp 05230300.xhp 05230400.xhp 05230500.xhp 05240000.xhp 05240100.xhp 05240200.xhp 05250000.xhp 05250100.xhp 05250200.xhp 05250300.xhp 05250400.xhp 05250500.xhp 05250600.xhp 05260000.xhp 05260100.xhp 05260200.xhp 05260300.xhp 05260400.xhp 05260500.xhp 05260600.xhp 05270000.xhp 05280000.xhp 05290000.xhp 05290100.xhp 05290200.xhp 05290300.xhp 05290400.xhp 05320000.xhp 05340100.xhp 05340200.xhp 05340300.xhp 05340400.xhp 05340402.xhp 05340404.xhp 05340405.xhp 05340500.xhp 05340600.xhp 05350000.xhp 05350200.xhp 05350300.xhp 05350400.xhp 05350500.xhp 05350600.xhp 05360000.xhp 05990000.xhp 06010000.xhp 06010101.xhp 06010500.xhp 06010600.xhp 06010601.xhp 06020000.xhp 06030000.xhp 06040000.xhp 06040100.xhp 06040200.xhp 06040300.xhp 06040400.xhp 06040500.xhp 06040600.xhp 06040700.xhp 06050000.xhp 06050100.xhp 06050200.xhp 06050300.xhp 06050400.xhp 06050500.xhp 06050600.xhp 06130000.xhp 06130001.xhp 06130010.xhp 06130100.xhp 06130200.xhp 06130500.xhp 06140000.xhp 06140100.xhp 06140101.xhp 06140102.xhp 06140200.xhp 06140400.xhp 06140402.xhp 06140500.xhp 06150000.xhp 06150100.xhp 06150110.xhp 06150120.xhp 06150200.xhp 06150210.xhp 06200000.xhp 06201000.xhp 06202000.xhp 06990000.xhp 07010000.xhp 07080000.xhp about_meta_tags.xhp digitalsignatures.xhp extensionupdate.xhp formatting_mark.xhp gallery.xhp gallery_files.xhp grid.xhp guides.xhp mediaplayer.xhp menu_edit_find.xhp menu_view_sidebar.xhp moviesound.xhp online_update.xhp online_update_dialog.xhp packagemanager.xhp password_dlg.xhp password_main.xhp prop_font_embed.xhp ref_pdf_export.xhp ref_pdf_send_as.xhp securitywarning.xhp selectcertificate.xhp webhtml.xhp xformsdata.xhp xformsdataadd.xhp xformsdataaddcon.xhp xformsdatachange.xhp xformsdataname.xhp xformsdatatab.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/02 --files 01110000.xhp 01140000.xhp 01170000.xhp 01170001.xhp 01170002.xhp 01170003.xhp 01170004.xhp 01170100.xhp 01170101.xhp 01170102.xhp 01170103.xhp 01170200.xhp 01170201.xhp 01170202.xhp 01170203.xhp 01170300.xhp 01170400.xhp 01170500.xhp 01170600.xhp 01170700.xhp 01170800.xhp 01170801.xhp 01170802.xhp 01170900.xhp 01170901.xhp 01170902.xhp 01170903.xhp 01170904.xhp 01171000.xhp 01171100.xhp 01171200.xhp 01171300.xhp 01171400.xhp 01220000.xhp 01230000.xhp 02010000.xhp 02020000.xhp 02030000.xhp 02040000.xhp 02050000.xhp 02130000.xhp 02140000.xhp 02160000.xhp 02170000.xhp 03110000.xhp 03120000.xhp 03130000.xhp 03140000.xhp 03150000.xhp 03200000.xhp 04210000.xhp 05020000.xhp 05090000.xhp 05110000.xhp 06050000.xhp 06060000.xhp 06100000.xhp 06110000.xhp 06120000.xhp 07010000.xhp 07060000.xhp 07070000.xhp 07070100.xhp 07070200.xhp 07080000.xhp 07090000.xhp 08010000.xhp 08020000.xhp 09070000.xhp 09070100.xhp 09070200.xhp 09070300.xhp 09070400.xhp 10010000.xhp 10020000.xhp 10030000.xhp 10040000.xhp 10100000.xhp 12000000.xhp 12010000.xhp 12020000.xhp 12030000.xhp 12040000.xhp 12050000.xhp 12070000.xhp 12070100.xhp 12070200.xhp 12070300.xhp 12080000.xhp 12090000.xhp 12090100.xhp 12090101.xhp 12100000.xhp 12100100.xhp 12100200.xhp 12110000.xhp 12120000.xhp 12130000.xhp 12140000.xhp 13010000.xhp 13020000.xhp 14010000.xhp 14020000.xhp 14020100.xhp 14020200.xhp 14030000.xhp 14040000.xhp 14050000.xhp 14060000.xhp 14070000.xhp 18010000.xhp 18030000.xhp 19090000.xhp 20020000.xhp 20030000.xhp 20040000.xhp 20050000.xhp 20060000.xhp 20090000.xhp 20100000.xhp 24010000.xhp 24020000.xhp 24030000.xhp 24040000.xhp 24050000.xhp 24060000.xhp 24070000.xhp 24080000.xhp 24090000.xhp 24100000.xhp basicshapes.xhp blockarrows.xhp callouts.xhp colortoolbar.xhp flowcharts.xhp fontwork.xhp limit.xhp more_controls.xhp paintbrush.xhp querypropdlg.xhp stars.xhp symbolshapes.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/04 --files 01010000.xhp 01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/menu --files insert_chart.xhp insert_form_control.xhp insert_shape.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/05 --files 00000001.xhp 00000002.xhp 00000100.xhp 00000110.xhp 00000120.xhp 00000130.xhp 00000140.xhp 00000150.xhp 00000160.xhp err_html.xhp
-
-${MYCMD} --files helpcontent2/source/text/shared/07/09000000.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared --files 3dsettings_toolbar.xhp fontwork_toolbar.xhp main0108.xhp main0201.xhp main0204.xhp main0208.xhp main0212.xhp main0213.xhp main0214.xhp main0226.xhp main0227.xhp main0400.xhp main0500.xhp main0600.xhp main0650.xhp main0800.xhp need_help.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/autokorr --files 01000000.xhp 02000000.xhp 03000000.xhp 04000000.xhp 05000000.xhp 06000000.xhp 07000000.xhp 08000000.xhp 09000000.xhp 10000000.xhp 12000000.xhp 13000000.xhp
-
-
-${MYCMD} --base helpcontent2/source/text/shared/autopi --files 01000000.xhp 01010000.xhp 01010100.xhp 01010200.xhp 01010300.xhp 01010400.xhp 01010500.xhp 01010600.xhp 01020000.xhp 01020100.xhp 01020200.xhp 01020300.xhp 01020400.xhp 01020500.xhp 01040000.xhp 01040100.xhp 01040200.xhp 01040300.xhp 01040400.xhp 01040500.xhp 01040600.xhp 01050000.xhp 01050100.xhp 01050200.xhp 01050300.xhp 01050400.xhp 01050500.xhp 01090000.xhp 01090100.xhp 01090200.xhp 01090210.xhp 01090220.xhp 01090300.xhp 01090400.xhp 01090500.xhp 01090600.xhp 01100000.xhp 01100100.xhp 01100150.xhp 01100200.xhp 01100300.xhp 01100400.xhp 01100500.xhp 01110000.xhp 01110100.xhp 01110200.xhp 01110300.xhp 01110400.xhp 01110500.xhp 01110600.xhp 01120000.xhp 01120100.xhp 01120200.xhp 01120300.xhp 01120400.xhp 01120500.xhp 01130000.xhp 01130100.xhp 01130200.xhp 01150000.xhp 01170000.xhp 01170200.xhp 01170300.xhp 01170400.xhp 01170500.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/explorer/database --files 02000000.xhp 02000002.xhp 02010100.xhp 02010101.xhp 04000000.xhp 04030000.xhp 05000000.xhp 05000001.xhp 05000002.xhp 05000003.xhp 05010000.xhp 05010100.xhp 05020000.xhp 05020100.xhp 05030000.xhp 05030100.xhp 05030200.xhp 05030300.xhp 05030400.xhp 05040000.xhp 05040100.xhp 05040200.xhp 11000002.xhp 11020000.xhp 11030000.xhp 11030100.xhp 11080000.xhp 11090000.xhp 11150200.xhp 11170000.xhp 11170100.xhp 30000000.xhp 30100000.xhp dabaadvprop.xhp dabaadvpropdat.xhp dabaadvpropgen.xhp dabadoc.xhp dabaprop.xhp dabapropadd.xhp dabapropcon.xhp dabapropgen.xhp dabawiz00.xhp dabawiz01.xhp dabawiz02.xhp dabawiz02access.xhp dabawiz02adabas.xhp dabawiz02ado.xhp dabawiz02dbase.xhp dabawiz02jdbc.xhp dabawiz02ldap.xhp dabawiz02mysql.xhp dabawiz02odbc.xhp dabawiz02oracle.xhp dabawiz02spreadsheet.xhp dabawiz02text.xhp dabawiz03auth.xhp main.xhp menubar.xhp menuedit.xhp menufile.xhp menufilesave.xhp menuinsert.xhp menutools.xhp menuview.xhp migrate_macros.xhp password.xhp querywizard00.xhp querywizard01.xhp querywizard02.xhp querywizard03.xhp querywizard04.xhp querywizard05.xhp querywizard06.xhp querywizard07.xhp querywizard08.xhp rep_datetime.xhp rep_main.xhp rep_navigator.xhp rep_pagenumbers.xhp rep_prop.xhp rep_sort.xhp tablewizard00.xhp tablewizard01.xhp tablewizard02.xhp tablewizard03.xhp tablewizard04.xhp toolbars.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/guide --files aaa_start.xhp accessibility.xhp activex.xhp active_help_on_off.xhp assistive.xhp autocorr_url.xhp autohide.xhp background.xhp border_paragraph.xhp border_table.xhp breaking_lines.xhp change_title.xhp chart_axis.xhp chart_barformat.xhp chart_insert.xhp chart_legend.xhp chart_title.xhp collab.xhp configure_overview.xhp contextmenu.xhp copytable2application.xhp copytext2application.xhp copy_drawfunctions.xhp ctl.xhp database_main.xhp data_addressbook.xhp data_dbase2office.xhp data_enter_sql.xhp data_forms.xhp data_im_export.xhp data_new.xhp data_queries.xhp data_register.xhp data_report.xhp data_reports.xhp data_search.xhp data_search2.xhp data_tabledefine.xhp data_tables.xhp data_view.xhp digitalsign_receive.xhp digitalsign_send.xhp digital_signatures.xhp doc_autosave.xhp doc_open.xhp doc_save.xhp dragdrop.xhp dragdrop_beamer.xhp dragdrop_fromgallery.xhp dragdrop_gallery.xhp dragdrop_graphic.xhp dragdrop_table.xhp edit_symbolbar.xhp email.xhp error_report.xhp export_ms.xhp fax.xhp filternavigator.xhp find_attributes.xhp flat_icons.xhp floating_toolbar.xhp fontwork.xhp formfields.xhp gallery_insert.xhp groups.xhp hyperlink_edit.xhp hyperlink_insert.xhp hyperlink_rel_abs.xhp imagemap.xhp import_ms.xhp insert_bitmap.xhp insert_graphic_drawit.xhp insert_specialchar.xhp integratinguno.xhp keyboard.xhp labels.xhp labels_database.xhp language_select.xhp lineend_define.xhp linestyles.xhp linestyle_define.xhp line_intext.xhp macro_recording.xhp main.xhp measurement_units.xhp microsoft_terms.xhp ms_doctypes.xhp ms_import_export_limitations.xhp ms_user.xhp navigator.xhp navigator_setcursor.xhp navpane_on.xhp numbering_stop.xhp pageformat_max.xhp paintbrush.xhp pasting.xhp print_blackwhite.xhp print_faster.xhp protection.xhp redlining.xhp redlining_accept.xhp redlining_doccompare.xhp redlining_docmerge.xhp redlining_enter.xhp redlining_navigation.xhp redlining_protect.xhp redlining_versions.xhp round_corner.xhp scripting.xhp space_hyphen.xhp spadmin.xhp standard_template.xhp startcenter.xhp start_parameters.xhp tabs.xhp textmode_change.xhp text_color.xhp undo_formatting.xhp version_number.xhp viewing_file_properties.xhp workfolder.xhp xforms.xhp xsltfilter.xhp xsltfilter_create.xhp xsltfilter_distribute.xhp
-
-${MYCMD} --base helpcontent2/source/text/shared/optionen --files 01000000.xhp 01010000.xhp 01010100.xhp 01010200.xhp 01010300.xhp 01010301.xhp 01010400.xhp 01010401.xhp 01010500.xhp 01010501.xhp 01010600.xhp 01010700.xhp 01010800.xhp 01010900.xhp 01011000.xhp 01012000.xhp 01013000.xhp 01014000.xhp 01020000.xhp 01020100.xhp 01020300.xhp 01030000.xhp 01030300.xhp 01030500.xhp 01040000.xhp 01040200.xhp 01040300.xhp 01040301.xhp 01040400.xhp 01040500.xhp 01040600.xhp 01040700.xhp 01040900.xhp 01041000.xhp 01041100.xhp 01050000.xhp 01050100.xhp 01050300.xhp 01060000.xhp 01060100.xhp 01060300.xhp 01060400.xhp 01060401.xhp 01060500.xhp 01060600.xhp 01060700.xhp 01060800.xhp 01060900.xhp 01061000.xhp 01070000.xhp 01070100.xhp 01070300.xhp 01070400.xhp 01070500.xhp 01080000.xhp 01090000.xhp 01090100.xhp 01110000.xhp 01110100.xhp 01130100.xhp 01130200.xhp 01140000.xhp 01150000.xhp 01150100.xhp 01150200.xhp 01150300.xhp 01160000.xhp 01160100.xhp 01160200.xhp 01160201.xhp BasicIDE.xhp experimental.xhp expertconfig.xhp java.xhp javaclasspath.xhp javaparameters.xhp macrosecurity.xhp macrosecurity_sl.xhp macrosecurity_ts.xhp mailmerge.xhp online_update.xhp opencl.xhp persona_firefox.xhp serverauthentication.xhp testaccount.xhp viewcertificate.xhp viewcertificate_c.xhp viewcertificate_d.xhp viewcertificate_g.xhp
-
-${MYCMD} --base helpcontent2/source/text/simpress/00 --files 00000004.xhp 00000401.xhp 00000402.xhp 00000403.xhp 00000404.xhp 00000405.xhp 00000406.xhp 00000407.xhp 00000413.xhp
-
-${MYCMD} --base helpcontent2/source/text/simpress/01 --files 01170000.xhp 01180000.xhp 01180001.xhp 01180002.xhp 02110000.xhp 02120000.xhp 02130000.xhp 02140000.xhp 02150000.xhp 02160000.xhp 03050000.xhp 03060000.xhp 03070000.xhp 03080000.xhp 03090000.xhp 03100000.xhp 03110000.xhp 03120000.xhp 03130000.xhp 03150000.xhp 03150100.xhp 03150300.xhp 03151000.xhp 03151100.xhp 03151200.xhp 03152000.xhp 03180000.xhp 04010000.xhp 04020000.xhp 04030000.xhp 04030000m.xhp 04030100.xhp 04040000m.xhp 04080100.xhp 04110000.xhp 04110100.xhp 04110200.xhp 04120000.xhp 04130000.xhp 04140000.xhp 04990000.xhp 04990100.xhp 04990200.xhp 04990300.xhp 04990400.xhp 04990500.xhp 04990600.xhp 04990700.xhp 05090000m.xhp 05100000.xhp 05110500m.xhp 05120000.xhp 05120100.xhp 05120500m.xhp 05130000.xhp 05140000.xhp 05150000.xhp 05170000.xhp 05250000.xhp 05250500.xhp 05250600.xhp 05250700.xhp 06030000.xhp 06040000.xhp 06050000.xhp 06060000.xhp 06070000.xhp 06080000.xhp 06100000.xhp 06100100.xhp 13050000.xhp 13050100.xhp 13050200.xhp 13050300.xhp 13050400.xhp 13050500.xhp 13050600.xhp 13050700.xhp 13140000.xhp 13150000.xhp 13160000.xhp 13170000.xhp 13180000.xhp 13180100.xhp 13180200.xhp 13180300.xhp animationeffect.xhp effectoptions.xhp effectoptionseffect.xhp effectoptionstext.xhp effectoptionstiming.xhp slidesorter.xhp taskpanel.xhp
-
-${MYCMD} --base helpcontent2/source/text/simpress/02 --files 04010000.xhp 04020000.xhp 04030000.xhp 04040000.xhp 04060000.xhp 04070000.xhp 08020000.xhp 08060000.xhp 10020000.xhp 10030000.xhp 10030200.xhp 10050000.xhp 10060000.xhp 10070000.xhp 10080000.xhp 10090000.xhp 10100000.xhp 10110000.xhp 10120000.xhp 10130000.xhp 11060000.xhp 11070000.xhp 11080000.xhp 11090000.xhp 11100000.xhp 11110000.xhp 13010000.xhp 13020000.xhp 13030000.xhp 13040000.xhp 13050000.xhp 13060000.xhp 13090000.xhp 13100000.xhp 13140000.xhp 13150000.xhp 13160000.xhp 13170000.xhp 13180000.xhp 13190000.xhp
-
-${MYCMD} --files helpcontent2/source/text/simpress/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/simpress/guide --files 3d_create.xhp animated_gif_create.xhp animated_gif_save.xhp animated_objects.xhp animated_slidechange.xhp arrange_slides.xhp background.xhp change_scale.xhp footer.xhp gluepoints.xhp html_export.xhp html_import.xhp individual.xhp keyboard.xhp layers.xhp layer_move.xhp layer_new.xhp layer_tipps.xhp line_arrow_styles.xhp line_draw.xhp line_edit.xhp main.xhp masterpage.xhp move_object.xhp orgchart.xhp page_copy.xhp palette_files.xhp printing.xhp print_tofit.xhp rehearse_timings.xhp select_object.xhp show.xhp table_insert.xhp text2curve.xhp vectorize.xhp
-
-${MYCMD} --base helpcontent2/source/text/simpress --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0104.xhp main0105.xhp main0106.xhp main0107.xhp main0113.xhp main0114.xhp main0117.xhp main0200.xhp main0202.xhp main0203.xhp main0204.xhp main0206.xhp main0209.xhp main0210.xhp main0211.xhp main0212.xhp main0213.xhp main0214.xhp main0503.xhp presenter.xhp
-
-${MYCMD} --files helpcontent2/source/text/smath/00/00000004.xhp
-
-${MYCMD} --base helpcontent2/source/text/smath/01 --files 02080000.xhp 02090000.xhp 02100000.xhp 02110000.xhp 03040000.xhp 03050000.xhp 03060000.xhp 03070000.xhp 03080000.xhp 03090000.xhp 03090100.xhp 03090200.xhp 03090300.xhp 03090400.xhp 03090500.xhp 03090600.xhp 03090700.xhp 03090800.xhp 03090900.xhp 03090901.xhp 03090902.xhp 03090903.xhp 03090904.xhp 03090905.xhp 03090906.xhp 03090907.xhp 03090908.xhp 03090909.xhp 03090910.xhp 03091100.xhp 03091200.xhp 03091300.xhp 03091400.xhp 03091500.xhp 03091501.xhp 03091502.xhp 03091503.xhp 03091504.xhp 03091505.xhp 03091506.xhp 03091507.xhp 03091508.xhp 03091509.xhp 03091600.xhp 05010000.xhp 05010100.xhp 05020000.xhp 05030000.xhp 05040000.xhp 05050000.xhp 06010000.xhp 06010100.xhp 06020000.xhp
-
-${MYCMD} --files helpcontent2/source/text/smath/02/03010000.xhp
-
-${MYCMD} --files helpcontent2/source/text/smath/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/smath/guide --files align.xhp attributes.xhp brackets.xhp comment.xhp keyboard.xhp limits.xhp main.xhp newline.xhp parentheses.xhp text.xhp
-
-${MYCMD} --base helpcontent2/source/text/smath --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0105.xhp main0106.xhp main0107.xhp main0200.xhp main0202.xhp main0203.xhp main0503.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter/00 --files 00000004.xhp 00000401.xhp 00000402.xhp 00000403.xhp 00000404.xhp 00000405.xhp 00000406.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0104.xhp main0105.xhp main0106.xhp main0107.xhp main0110.xhp main0115.xhp main0200.xhp main0202.xhp main0203.xhp main0204.xhp main0205.xhp main0206.xhp main0208.xhp main0210.xhp main0213.xhp main0214.xhp main0215.xhp main0216.xhp main0220.xhp main0503.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter/01 --files 01120000.xhp 01150000.xhp 01160100.xhp 01160200.xhp 01160300.xhp 01160400.xhp 01160500.xhp 02110000.xhp 02110100.xhp 02120000.xhp 02120100.xhp 02130000.xhp 02140000.xhp 02150000.xhp 02160000.xhp 02170000.xhp 03050000.xhp 03070000.xhp 03080000.xhp 03090000.xhp 03100000.xhp 03120000.xhp 03130000.xhp 03140000.xhp 04010000.xhp 04020000.xhp 04020100.xhp 04020200.xhp 04030000.xhp 04040000.xhp 04060000.xhp 04060100.xhp 04070000.xhp 04070100.xhp 04070200.xhp 04070300.xhp 04090000.xhp 04090001.xhp 04090002.xhp 04090003.xhp 04090004.xhp 04090005.xhp 04090006.xhp 04090007.xhp 04090100.xhp 04090200.xhp 04120000.xhp 04120100.xhp 04120200.xhp 04120201.xhp 04120210.xhp 04120211.xhp 04120212.xhp 04120213.xhp 04120214.xhp 04120215.xhp 04120216.xhp 04120217.xhp 04120219.xhp 04120220.xhp 04120221.xhp 04120222.xhp 04120223.xhp 04120224.xhp 04120225.xhp 04120226.xhp 04120227.xhp 04120229.xhp 04120250.xhp 04120300.xhp 04130000.xhp 04130100.xhp 04150000.xhp 04180400.xhp 04190000.xhp 04200000.xhp 04220000.xhp 04230000.xhp 04990000.xhp 05030200.xhp 05030400.xhp 05030800.xhp 05040000.xhp 05040500.xhp 05040501.xhp 05040600.xhp 05040700.xhp 05040800.xhp 05060000.xhp 05060100.xhp 05060200.xhp 05060201.xhp 05060300.xhp 05060700.xhp 05060800.xhp 05060900.xhp 05080000.xhp 05090000.xhp 05090100.xhp 05090200.xhp 05090201.xhp 05090300.xhp 05100000.xhp 05100300.xhp 05100400.xhp 05110000.xhp 05110100.xhp 05110200.xhp 05110300.xhp 05110500.xhp 05120000.xhp 05120100.xhp 05120200.xhp 05120300.xhp 05120400.xhp 05120500.xhp 05130000.xhp 05130002.xhp 05130004.xhp 05130100.xhp 05140000.xhp 05150000.xhp 05150100.xhp 05150101.xhp 05150104.xhp 05150200.xhp 05150300.xhp 05170000.xhp 05190000.xhp 05200000.xhp 05990000.xhp 06030000.xhp 06040000.xhp 06060000.xhp 06060100.xhp 06080000.xhp 06080100.xhp 06080200.xhp 06090000.xhp 06100000.xhp 06110000.xhp 06120000.xhp 06160000.xhp 06170000.xhp 06180000.xhp 06190000.xhp 06200000.xhp 06210000.xhp 06220000.xhp 06990000.xhp format_object.xhp mailmerge00.xhp mailmerge01.xhp mailmerge02.xhp mailmerge03.xhp mailmerge04.xhp mailmerge05.xhp mailmerge06.xhp mailmerge07.xhp mailmerge08.xhp mm_copyto.xhp mm_cusaddfie.xhp mm_cusaddlis.xhp mm_cusgrelin.xhp mm_emabod.xhp mm_finent.xhp mm_matfie.xhp mm_newaddblo.xhp mm_newaddlis.xhp mm_seladdblo.xhp mm_seladdlis.xhp mm_seltab.xhp selection_mode.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter/02 --files 02110000.xhp 03210000.xhp 03220000.xhp 04090000.xhp 04100000.xhp 04220000.xhp 04230000.xhp 04240000.xhp 04250000.xhp 06040000.xhp 06070000.xhp 06080000.xhp 06090000.xhp 06120000.xhp 06130000.xhp 06140000.xhp 08010000.xhp 08080000.xhp 10010000.xhp 10020000.xhp 10030000.xhp 10050000.xhp 10070000.xhp 10080000.xhp 10090000.xhp 10110000.xhp 14010000.xhp 14020000.xhp 14030000.xhp 14040000.xhp 14050000.xhp 18010000.xhp 18030000.xhp 18030100.xhp 18030200.xhp 18030300.xhp 18030400.xhp 18030500.xhp 18030600.xhp 18030700.xhp 18120000.xhp 18130000.xhp 19010000.xhp 19020000.xhp 19030000.xhp 19040000.xhp 19050000.xhp word_count_stb.xhp
-
-${MYCMD} --files helpcontent2/source/text/swriter/04/01020000.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter/guide --files anchor_object.xhp arrange_chapters.xhp autocorr_except.xhp autotext.xhp auto_numbering.xhp auto_off.xhp auto_spellcheck.xhp background.xhp borders.xhp border_character.xhp border_object.xhp border_page.xhp calculate.xhp calculate_clipboard.xhp calculate_intable.xhp calculate_intext.xhp calculate_intext2.xhp calculate_multitable.xhp captions.xhp captions_numbers.xhp change_header.xhp chapter_numbering.xhp conditional_text.xhp conditional_text2.xhp delete_from_dict.xhp dragdroptext.xhp even_odd_sdw.xhp fields.xhp fields_date.xhp fields_enter.xhp fields_userdata.xhp field_convert.xhp finding.xhp footer_nextpage.xhp footer_pagenumber.xhp footnote_usage.xhp footnote_with_line.xhp form_letters_main.xhp globaldoc.xhp globaldoc_howtos.xhp header_footer.xhp header_pagestyles.xhp header_with_chapter.xhp header_with_line.xhp hidden_text.xhp hidden_text_display.xhp hyperlinks.xhp hyphen_prevent.xhp indenting.xhp indices_delete.xhp indices_edit.xhp indices_enter.xhp indices_form.xhp indices_index.xhp indices_literature.xhp indices_multidoc.xhp indices_toc.xhp indices_userdef.xhp insert_beforetable.xhp insert_graphic.xhp insert_graphic_dialog.xhp insert_graphic_fromchart.xhp insert_graphic_fromdraw.xhp insert_graphic_gallery.xhp insert_graphic_scan.xhp insert_tab_innumbering.xhp join_numbered_lists.xhp jump2statusbar.xhp keyboard.xhp load_styles.xhp main.xhp navigator.xhp nonprintable_text.xhp numbering_lines.xhp numbering_paras.xhp number_date_conv.xhp number_sequence.xhp pagebackground.xhp pagenumbers.xhp pageorientation.xhp pagestyles.xhp page_break.xhp printer_tray.xhp printing_order.xhp print_brochure.xhp print_preview.xhp print_small.xhp protection.xhp references.xhp references_modify.xhp registertrue.xhp removing_line_breaks.xhp reset_format.xhp resize_navigator.xhp ruler.xhp search_regexp.xhp sections.xhp section_edit.xhp section_insert.xhp send2html.xhp shortcut_writing.xhp smarttags.xhp spellcheck_dialog.xhp stylist_fillformat.xhp stylist_fromselect.xhp stylist_update.xhp subscript.xhp tablemode.xhp table_cellmerge.xhp table_cells.xhp table_delete.xhp table_insert.xhp table_repeat_multiple_headers.xhp table_select.xhp table_sizing.xhp templates_styles.xhp template_create.xhp template_default.xhp textdoc_inframe.xhp text_animation.xhp text_capital.xhp text_centervert.xhp text_direct_cursor.xhp text_emphasize.xhp text_frame.xhp text_nav_keyb.xhp text_rotate.xhp using_hyphen.xhp using_numbered_lists.xhp using_numbered_lists2.xhp using_numbering.xhp using_thesaurus.xhp words_count.xhp word_completion.xhp word_completion_adjust.xhp wrap.xhp
-
-${MYCMD} --files helpcontent2/source/text/swriter/librelogo/LibreLogo.xhp
-
-${MYCMD} --base helpcontent2/source/text/swriter --files main0000.xhp main0100.xhp main0101.xhp main0102.xhp main0103.xhp main0104.xhp main0105.xhp main0106.xhp main0107.xhp main0110.xhp main0115.xhp main0200.xhp main0202.xhp main0203.xhp main0204.xhp main0205.xhp main0206.xhp main0208.xhp main0210.xhp main0213.xhp main0214.xhp main0215.xhp main0216.xhp main0220.xhp main0503.xhp menu/insert_footnote_endnote.xhp menu/insert_frame.xhp menu/insert_header_footer.xhp
-
-${MYCMD} --base nlpsolver/help/en/com.sun.star.comp.Calc.NLPSolver --files Options.xhp Usage.xhp
-
-
-# .ulf files
-
-${MYCMD} --files extras/source/autocorr/emoji/emoji.ulf
-
-${MYCMD} --files extras/source/gallery/share/gallery_names.ulf
-
-${MYCMD} --base instsetoo_native/inc_openoffice/windows/msi_languages --files ActionTe.ulf Control.ulf CustomAc.ulf Error.ulf LaunchCo.ulf Property.ulf RadioBut.ulf UIText.ulf
-
-${MYCMD} --base scp2/source/accessories --files module_accessories.ulf module_font_accessories.ulf module_gallery_accessories.ulf module_samples_accessories.ulf module_templates_accessories.ulf
-
-${MYCMD} --files scp2/source/activex/module_activex.ulf
-
-${MYCMD} --base scp2/source/base --files module_base.ulf folderitem_base.ulf postgresqlsdbc.ulf registryitem_base.ulf
-
-${MYCMD} --base scp2/source/calc --files module_calc.ulf folderitem_calc.ulf registryitem_calc.ulf
-
-${MYCMD} --base scp2/source/draw --files module_draw.ulf folderitem_draw.ulf registryitem_draw.ulf
-
-${MYCMD} --base scp2/source/extensions --files module_extensions.ulf module_extensions_sun_templates.ulf
-
-${MYCMD} --files scp2/source/gnome/module_gnome.ulf
-
-${MYCMD} --files scp2/source/graphicfilter/module_graphicfilter.ulf
-
-${MYCMD} --base scp2/source/impress --files folderitem_impress.ulf module_impress.ulf registryitem_impress.ulf
-
-${MYCMD} --files scp2/source/kde/module_kde.ulf
-
-${MYCMD} --base scp2/source/math --files folderitem_math.ulf module_math.ulf registryitem_math.ulf
-
-${MYCMD} --files scp2/source/onlineupdate/module_onlineupdate.ulf
-
-${MYCMD} --base scp2/source/ooo --files folderitem_ooo.ulf module_helppack.ulf module_langpack.ulf module_ooo.ulf module_reportbuilder.ulf module_systemint.ulf registryitem_ooo.ulf
-
-${MYCMD} --files scp2/source/python/module_python_librelogo.ulf
-
-${MYCMD} --files scp2/source/quickstart/module_quickstart.ulf
-
-${MYCMD} --files scp2/source/winexplorerext/module_winexplorerext.ulf
-
-${MYCMD} --base scp2/source/writer --files folderitem_writer.ulf module_writer.ulf registryitem_writer.ulf
-
-${MYCMD} --files scp2/source/xsltfilter/module_xsltfilter.ulf
-
-${MYCMD} --files setup_native/source/mac/macinstall.ulf
-
-${MYCMD} --files shell/source/win32/shlxthandler/res/shlxthdl.ulf
-
-${MYCMD} --base sysui/desktop/share --files documents.ulf launcher_comment.ulf launcher_genericname.ulf launcher_unityquicklist.ulf
-
-
-# .hrc files
-
-${MYCMD} --files extensions/source/update/check/updatehdl.hrc
-
-
-# .properties files
-
-${MYCMD} --files dictionaries/en/dialog/en_en_US.properties
-
-${MYCMD} --base dictionaries/hu_HU/dialog --files hu_HU_en_US.properties hu_HU_hu_HU.properties
-
-${MYCMD} --files dictionaries/pt_BR/dialog/pt_BR_pt_BR.properties
-
-${MYCMD} --target workdir/jan/dictionaries/ru_RU/dialog.pot --base dictionaries/ru_RU/dialog --files ru_RU_en_US.properties ru_RU_ru_RU.properties
-
-${MYCMD} --files librelogo/source/pythonpath/LibreLogo_en_US.properties
-
-${MYCMD} --base nlpsolver/src/locale --files NLPSolverCommon_en_US.properties NLPSolverStatusDialog_en_US.properties
-
-${MYCMD} --base reportbuilder/java/org/libreoffice/report/function/metadata --files Author-Function.properties Author-Function_en_US.properties category.properties category_en_US.properties Title-Function.properties Title-Function_en_US.properties
-
-
-# .src files
-
-${MYCMD} --base basctl/source/basicide --files moduldlg.src
-
-${MYCMD} --base chart2/source/controller/dialogs --files Bitmaps.src
-
-${MYCMD} --base connectivity/source/resource --files conn_log_res.src
-
-${MYCMD} --base cui/source/customize --files acccfg.src
-
-${MYCMD} --base cui/source/dialogs --files multipat.src svuidlg.src
-
-${MYCMD} --base cui/source/options --files optgdlg.src personalization.src
-
-${MYCMD} --base cui/source/tabpages --files align.src page.src paragrph.src
-
-${MYCMD} --base desktop/source/deployment/gui --files dp_gui_backend.src dp_gui_dialog2.src
-
-${MYCMD} --base extensions/source/bibliography --files toolbar.src
-
-${MYCMD} --base formula/source/ui/dlg --files parawin.src
-
-${MYCMD} --files sc/source/ui/formdlg/dwfunctr.src
-
-${MYCMD} --base sc/source/ui/sidebar --files CellAppearancePropertyPanel.src NumberFormatPropertyPanel.src
-
-${MYCMD} --base sc/source/ui/src --files condformatdlg.src iconsets.src scwarngs.src
-
-${MYCMD} --base scaddins/source/analysis --files analysis_deffuncnames.src
-
-${MYCMD} --base sd/source/ui/app --files popup.src res_bmp.src
-
-${MYCMD} --files sd/source/ui/dlg/navigatr.src
-
-${MYCMD} --files sd/source/ui/slideshow/slideshow.src
-
-${MYCMD} --base sfx2/source/bastyp --files bastyp.src
-
-${MYCMD} --base sfx2/source/dialog --files templdlg.src titledockwin.src
-
-${MYCMD} --base sfx2/source/doc --files graphhelp.src
-
-${MYCMD} --base svtools/source/misc --files ehdl.src
-
-${MYCMD} --base svx/source/dialog --files imapdlg.src langbox.src srchdlg.src
-
-${MYCMD} --files svx/source/fmcomp/gridctrl.src
-
-${MYCMD} --base svx/source/form --files filtnav.src fmexpl.src
-
-${MYCMD} --files svx/source/sidebar/area/AreaPropertyPanel.src
-
-${MYCMD} --files svx/source/sidebar/EmptyPanel.src
-
-#${MYCMD} --files svx/source/sidebar/line/LinePropertyPanel.src
-
-${MYCMD} --files svx/source/sidebar/text/TextPropertyPanel.src
-
-${MYCMD} --files svx/source/src/errtxt.src
-
-${MYCMD} --base sw/source/ui/app --files mn.src
-
-${MYCMD} --base sw/source/ui/envelp --files envprt.src
-
-${MYCMD} --files sw/source/uibase/misc/redlndlg.src
-
-${MYCMD} --files wizards/source/euro/euro.src
-
-${MYCMD} --files wizards/source/importwizard/importwi.src
-
-${MYCMD} --files wizards/source/template/template.src
-
-
-# .xcu files
-
-${MYCMD} --files connectivity/registry/ado/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/calc/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/dbase/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/evoab2/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/firebird/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/flat/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/hsqldb/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/jdbc/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/macab/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/mork/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/mysql/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/odbc/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files connectivity/registry/postgresql/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --files dictionaries/af_ZA/dictionaries.xcu
-
-${MYCMD} --files dictionaries/an_ES/dictionaries.xcu
-
-${MYCMD} --files dictionaries/ar/dictionaries.xcu
-
-${MYCMD} --files dictionaries/be_BY/dictionaries.xcu
-
-${MYCMD} --files dictionaries/bg_BG/dictionaries.xcu
-
-${MYCMD} --files dictionaries/bn_BD/dictionaries.xcu
-
-${MYCMD} --files dictionaries/br_FR/dictionaries.xcu
-
-${MYCMD} --files dictionaries/bs_BA/dictionaries.xcu
-
-${MYCMD} --files dictionaries/da_DK/dictionaries.xcu
-
-${MYCMD} --files dictionaries/de/dictionaries.xcu
-
-${MYCMD} --files dictionaries/el_GR/dictionaries.xcu
-
-${MYCMD} --files dictionaries/en/dialog/registry/data/org/openoffice/Office/OptionsDialog.xcu
-
-${MYCMD} --base dictionaries/en --files dictionaries.xcu Linguistic.xcu
-
-${MYCMD} --files dictionaries/es/dictionaries.xcu
-
-${MYCMD} --files dictionaries/et_EE/dictionaries.xcu
-
-${MYCMD} --files dictionaries/fr_FR/dictionaries.xcu
-
-${MYCMD} --files dictionaries/gl/dictionaries.xcu
-
-${MYCMD} --files dictionaries/gu_IN/dictionaries.xcu
-
-${MYCMD} --files dictionaries/he_IL/dictionaries.xcu
-
-${MYCMD} --files dictionaries/hi_IN/dictionaries.xcu
-
-${MYCMD} --files dictionaries/hr_HR/dictionaries.xcu
-
-${MYCMD} --files dictionaries/hu_HU/dialog/registry/data/org/openoffice/Office/OptionsDialog.xcu
-
-${MYCMD} --base dictionaries/hu_HU --files dictionaries.xcu Linguistic.xcu
-
-${MYCMD} --files dictionaries/is/dictionaries.xcu
-
-${MYCMD} --files dictionaries/it_IT/dictionaries.xcu
-
-${MYCMD} --files dictionaries/kmr_Latn/dictionaries.xcu
-
-${MYCMD} --files dictionaries/lo_LA/dictionaries.xcu
-
-${MYCMD} --files dictionaries/lt_LT/dictionaries.xcu
-
-${MYCMD} --files dictionaries/lv_LV/dictionaries.xcu
-
-${MYCMD} --files dictionaries/ne_NP/dictionaries.xcu
-
-${MYCMD} --files dictionaries/nl_NL/dictionaries.xcu
-
-${MYCMD} --files dictionaries/no/dictionaries.xcu
-
-${MYCMD} --files dictionaries/oc_FR/dictionaries.xcu
-
-${MYCMD} --files dictionaries/pl_PL/dictionaries.xcu
-
-${MYCMD} --base dictionaries/pt_BR --files dictionaries.xcu Linguistic.xcu
-
-${MYCMD} --files dictionaries/pt_BR/dialog/OptionsDialog.xcu
-
-${MYCMD} --files dictionaries/pt_BR/dialog/registry/data/org/openoffice/Office/OptionsDialog.xcu
-
-${MYCMD} --files dictionaries/pt_PT/dictionaries.xcu
-
-${MYCMD} --files dictionaries/ro/dictionaries.xcu
-
-${MYCMD} --base dictionaries/ru_RU --files dictionaries.xcu Linguistic.xcu
-
-${MYCMD} --files dictionaries/ru_RU/dialog/registry/data/org/openoffice/Office/OptionsDialog.xcu
-
-${MYCMD} --files dictionaries/ru_RU/dialog/registry/data/org/openoffice/Office/OptionsDialog.xcu
-
-${MYCMD} --files dictionaries/si_LK/dictionaries.xcu
-
-${MYCMD} --files dictionaries/sk_SK/dictionaries.xcu
-
-${MYCMD} --files dictionaries/sl_SI/dictionaries.xcu
-
-${MYCMD} --files dictionaries/sr/dictionaries.xcu
-
-${MYCMD} --files dictionaries/sv_SE/dictionaries.xcu
-
-${MYCMD} --files dictionaries/sw_TZ/dictionaries.xcu
-
-${MYCMD} --files dictionaries/te_IN/dictionaries.xcu
-
-${MYCMD} --files dictionaries/th_TH/dictionaries.xcu
-
-${MYCMD} --files dictionaries/uk_UA/dictionaries.xcu
-
-${MYCMD} --files dictionaries/vi/dictionaries.xcu
-
-${MYCMD} --files dictionaries/zu_ZA/dictionaries.xcu
-
-${MYCMD} --base extensions/source/update/check/org/openoffice/Office --files Addons.xcu Jobs.xcu
-
-${MYCMD} --base filter/source/config/fragments/filters --files AbiWord.xcu ADO_rowset_XML.xcu AppleKeynote.xcu AppleNumbers.xcu ApplePages.xcu BMP___MS_Windows.xcu BroadBand_eBook.xcu calc8.xcu calc8_template.xcu calc_Gnumeric.xcu calc_HTML_WebQuery.xcu calc_MS_Excel_2007_Binary.xcu calc_MS_Excel_2007_VBA_XML.xcu calc_MS_Excel_2007_XML.xcu calc_MS_Excel_2007_XML_Template.xcu calc_OOXML.xcu calc_OOXML_Template.xcu calc_pdf_Export.xcu calc_png_Export.xcu calc_StarOffice_XML_Calc_Template.xcu CGM___Computer_Graphics_Metafile.xcu chart8.xcu ClarisWorks.xcu ClarisWorks_Calc.xcu ClarisWorks_Draw.xcu ClarisWorks_Impress.xcu Claris_Resolve_Calc.xcu CorelDrawDocument.xcu CorelPresentationExchange.xcu dBase.xcu DIF.xcu DocBook_File.xcu DosWord.xcu draw8.xcu draw8_template.xcu draw_bmp_Export.xcu draw_emf_Export.xcu draw_eps_Export.xcu draw_flash_Export.xcu draw_gif_Export.xcu draw_html_Export.xcu draw_jpg_Export.xcu draw_PCD_Photo_CD_Base.xcu draw_PCD_Photo_CD_Base16.xcu draw_PCD_Photo_CD_Base4.xcu draw_pdf_Export.xcu draw_png_Export.xcu draw_StarOffice_XML_Draw_Template.xcu draw_svg_Export.xcu draw_tif_Export.xcu draw_wmf_Export.xcu DXF___AutoCAD_Interchange.xcu EMF___MS_Windows_Metafile.xcu EPS___Encapsulated_PostScript.xcu FictionBook_2.xcu FreehandDocument.xcu GIF___Graphics_Interchange.xcu HTML.xcu HTML_MasterDoc.xcu HTML__StarCalc_.xcu HTML__StarWriter_.xcu impress8.xcu impress8_draw.xcu impress8_template.xcu impress_bmp_Export.xcu impress_emf_Export.xcu impress_eps_Export.xcu impress_flash_Export.xcu impress_gif_Export.xcu impress_html_Export.xcu impress_jpg_Export.xcu impress_MS_PowerPoint_2007_XML.xcu impress_MS_PowerPoint_2007_XML_AutoPlay.xcu impress_MS_PowerPoint_2007_XML_Template.xcu impress_OOXML.xcu impress_OOXML_AutoPlay.xcu impress_OOXML_Template.xcu impress_pdf_Export.xcu impress_png_Export.xcu impress_StarOffice_XML_Draw.xcu impress_StarOffice_XML_Impress_Template.xcu impress_svg_Export.xcu impress_tif_Export.xcu impress_wmf_Export.xcu JPG___JPEG.xcu Lotus.xcu LotusWordPro.xcu MacWrite.xcu Mac_Word.xcu Mac_Works.xcu Mac_Works_Calc.xcu Mariner_Write.xcu math8.xcu MathML_XML__Math_.xcu MathType_3_x.xcu math_pdf_Export.xcu MET___OS_2_Metafile.xcu mov__MOV.xcu MS_Excel_2003_XML.xcu MS_Excel_4_0.xcu MS_Excel_4_0_Vorlage_Template.xcu MS_Excel_5_0_95.xcu MS_Excel_5_0_95_Vorlage_Template.xcu MS_Excel_95.xcu MS_Excel_95_Vorlage_Template.xcu MS_Excel_97.xcu MS_Excel_97_Vorlage_Template.xcu MS_PowerPoint_97.xcu MS_PowerPoint_97_AutoPlay.xcu MS_PowerPoint_97_Vorlage.xcu MS_WinWord_5.xcu MS_WinWord_6_0.xcu MS_Word_2003_XML.xcu MS_Word_2007_XML.xcu MS_Word_2007_XML_Template.xcu MS_Word_95.xcu MS_Word_95_Vorlage.xcu MS_Word_97.xcu MS_Word_97_Vorlage.xcu MS_Works.xcu MS_Works_Calc.xcu MS_Write.xcu MWAW_Bitmap.xcu MWAW_Database.xcu MWAW_Drawing.xcu MWAW_Presentation.xcu MWAW_Spreadsheet.xcu MWAW_Text_Document.xcu ODG_FlatXML.xcu ODP_FlatXML.xcu ODS_FlatXML.xcu ODT_FlatXML.xcu OOXML_Text.xcu OOXML_Text_Template.xcu PageMakerDocument.xcu PalmDoc.xcu Palm_Text_Document.xcu PBM___Portable_Bitmap.xcu PCT___Mac_Pict.xcu PCX___Zsoft_Paintbrush.xcu PGM___Portable_Graymap.xcu Plucker_eBook.xcu PNG___Portable_Network_Graphic.xcu PPM___Portable_Pixelmap.xcu PSD___Adobe_Photoshop.xcu PublisherDocument.xcu QPro.xcu RAS___Sun_Rasterfile.xcu Rich_Text_Format.xcu Rich_Text_Format__StarCalc_.xcu SGF___StarOffice_Writer_SGF.xcu SGV___StarDraw_2_0.xcu StarBaseReport.xcu StarBaseReportChart.xcu StarOffice_XML__Base_.xcu StarOffice_XML__Calc_.xcu StarOffice_XML__Chart_.xcu StarOffice_XML__Draw_.xcu StarOffice_XML__Impress_.xcu StarOffice_XML__Math_.xcu StarOffice_XML__Writer_.xcu SVG___Scalable_Vector_Graphics.xcu SVM___StarView_Metafile.xcu SYLK.xcu T602Document.xcu Text.xcu Text__encoded_.xcu Text__encoded___StarWriter_GlobalDocument_.xcu Text__encoded___StarWriter_Web_.xcu Text__StarWriter_Web_.xcu Text___txt___csv__StarCalc_.xcu TGA___Truevision_TARGA.xcu TIF___Tag_Image_File.xcu UOF_presentation.xcu UOF_spreadsheet.xcu UOF_text.xcu VisioDocument.xcu WMF___MS_Windows_Metafile.xcu WordPerfect.xcu WordPerfectGraphics.xcu WPS_Lotus_Calc.xcu WPS_QPro_Calc.xcu WriteNow.xcu writer8.xcu writer8_template.xcu writerglobal8.xcu writerglobal8_HTML.xcu writerglobal8_template.xcu writerglobal8_writer.xcu writerweb8_writer.xcu writerweb8_writer_template.xcu writer_globaldocument_pdf_Export.xcu writer_globaldocument_StarOffice_XML_Writer.xcu writer_globaldocument_StarOffice_XML_Writer_GlobalDocument.xcu writer_jpg_Export.xcu writer_layout_dump.xcu writer_MIZI_Hwp_97.xcu writer_pdf_Export.xcu writer_png_Export.xcu writer_StarOffice_XML_Writer_Template.xcu writer_web_HTML_help.xcu writer_web_jpg_Export.xcu writer_web_pdf_Export.xcu writer_web_png_Export.xcu writer_web_StarOffice_XML_Writer.xcu writer_web_StarOffice_XML_Writer_Web_Template.xcu XBM___X_Consortium.xcu XHTML_Calc_File.xcu XHTML_Draw_File.xcu XHTML_Impress_File.xcu XHTML_Writer_File.xcu XPM.xcu
-
-${MYCMD} --base filter/source/config/fragments/internalgraphicfilters --files bmp_Export.xcu bmp_Import.xcu dxf_Import.xcu emf_Export.xcu emf_Import.xcu eps_Export.xcu eps_Import.xcu gif_Export.xcu gif_Import.xcu jpg_Export.xcu jpg_Import.xcu met_Import.xcu mov_Import.xcu pbm_Import.xcu pcd_Import_Base.xcu pcd_Import_Base16.xcu pcd_Import_Base4.xcu pct_Import.xcu pcx_Import.xcu pgm_Import.xcu png_Export.xcu png_Import.xcu ppm_Import.xcu psd_Import.xcu ras_Import.xcu sgf_Import.xcu sgv_Import.xcu svg_Export.xcu svg_Import.xcu svm_Export.xcu svm_Import.xcu tga_Import.xcu tif_Export.xcu tif_Import.xcu wmf_Export.xcu wmf_Import.xcu xbm_Import.xcu xpm_Import.xcu
-
-${MYCMD} --base filter/source/config/fragments/types --files bmp_MS_Windows.xcu calc8.xcu calc8_template.xcu calc_ADO_rowset_XML.xcu calc_AppleNumbers.xcu calc_ClarisWorks.xcu calc_Claris_Resolve.xcu calc_dBase.xcu calc_DIF.xcu calc_Gnumeric.xcu calc_HTML.xcu calc_Lotus.xcu calc_Mac_Works.xcu calc_MS_Excel_2003_XML.xcu calc_MS_Excel_40.xcu calc_MS_Excel_40_VorlageTemplate.xcu calc_MS_Excel_5095.xcu calc_MS_Excel_5095_VorlageTemplate.xcu calc_MS_Excel_95.xcu calc_MS_Excel_95_VorlageTemplate.xcu calc_MS_Excel_97.xcu calc_MS_Excel_97_VorlageTemplate.xcu calc_MS_Works_Document.xcu calc_ODS_FlatXML.xcu calc_OOXML.xcu calc_OOXML_Template.xcu calc_QPro.xcu calc_StarOffice_XML_Calc.xcu calc_StarOffice_XML_Calc_Template.xcu calc_SYLK.xcu calc_WPS_Lotus_Document.xcu calc_WPS_QPro_Document.xcu chart8.xcu chart_StarOffice_XML_Chart.xcu component_Bibliography.xcu component_DB.xcu draw8.xcu draw8_template.xcu draw_ClarisWorks.xcu draw_CorelDraw_Document.xcu draw_Corel_Presentation_Exchange.xcu draw_Freehand_Document.xcu draw_ODG_FlatXML.xcu draw_PageMaker_Document.xcu draw_Publisher_Document.xcu draw_StarOffice_XML_Draw.xcu draw_StarOffice_XML_Draw_Template.xcu draw_Visio_Document.xcu draw_WordPerfect_Graphics.xcu dxf_AutoCAD_Interchange.xcu emf_MS_Windows_Metafile.xcu eps_Encapsulated_PostScript.xcu generic_HTML.xcu generic_Text.xcu gif_Graphics_Interchange.xcu graphic_HTML.xcu graphic_SWF.xcu impress8.xcu impress8_template.xcu impress_AppleKeynote.xcu impress_CGM_Computer_Graphics_Metafile.xcu impress_ClarisWorks.xcu impress_MS_PowerPoint_97.xcu impress_MS_PowerPoint_97_AutoPlay.xcu impress_MS_PowerPoint_97_Vorlage.xcu impress_ODP_FlatXML.xcu impress_OOXML_Presentation.xcu impress_OOXML_Presentation_AutoPlay.xcu impress_OOXML_Presentation_Template.xcu impress_StarOffice_XML_Impress.xcu impress_StarOffice_XML_Impress_Template.xcu jpg_JPEG.xcu math8.xcu math_MathML_XML_Math.xcu math_MathType_3x.xcu math_StarOffice_XML_Math.xcu met_OS2_Metafile.xcu mov_MOV.xcu MS_Excel_2007_Binary.xcu MS_Excel_2007_VBA_XML.xcu MS_Excel_2007_XML.xcu MS_Excel_2007_XML_Template.xcu MS_PowerPoint_2007_XML.xcu MS_PowerPoint_2007_XML_AutoPlay.xcu MS_PowerPoint_2007_XML_Template.xcu MWAW_Bitmap.xcu MWAW_Database.xcu MWAW_Drawing.xcu MWAW_Presentation.xcu MWAW_Spreadsheet.xcu MWAW_Text_Document.xcu oxt_OpenOffice_Extension.xcu Palm_Text_Document.xcu pbm_Portable_Bitmap.xcu pcd_Photo_CD_Base.xcu pcd_Photo_CD_Base16.xcu pcd_Photo_CD_Base4.xcu pct_Mac_Pict.xcu pcx_Zsoft_Paintbrush.xcu pdf_Portable_Document_Format.xcu pgm_Portable_Graymap.xcu png_Portable_Network_Graphic.xcu ppm_Portable_Pixelmap.xcu psd_Adobe_Photoshop.xcu ras_Sun_Rasterfile.xcu sgf_StarOffice_Writer_SGF.xcu sgv_StarDraw_20.xcu StarBase.xcu StarBaseReport.xcu StarBaseReportChart.xcu svg_Scalable_Vector_Graphics.xcu svm_StarView_Metafile.xcu tga_Truevision_TARGA.xcu tif_Tag_Image_File.xcu Unified_Office_Format_presentation.xcu Unified_Office_Format_spreadsheet.xcu Unified_Office_Format_text.xcu wav_Wave_Audio_File.xcu wmf_MS_Windows_Metafile.xcu writer8.xcu writer8_template.xcu writerglobal8.xcu writerglobal8_template.xcu writerweb8_writer_template.xcu writer_AbiWord_Document.xcu writer_ApplePages.xcu writer_BroadBand_eBook.xcu writer_ClarisWorks.xcu writer_DocBook_File.xcu writer_DosWord.xcu writer_FictionBook_2.xcu writer_globaldocument_StarOffice_XML_Writer_GlobalDocument.xcu writer_layout_dump_xml.xcu writer_LotusWordPro_Document.xcu writer_MacWrite.xcu writer_Mac_Word.xcu writer_Mac_Works.xcu writer_Mariner_Write.xcu writer_MIZI_Hwp_97.xcu writer_MS_WinWord_5.xcu writer_MS_WinWord_60.xcu writer_MS_Word_2003_XML.xcu writer_MS_Word_2007_XML.xcu writer_MS_Word_2007_XML_Template.xcu writer_MS_Word_95.xcu writer_MS_Word_95_Vorlage.xcu writer_MS_Word_97.xcu writer_MS_Word_97_Vorlage.xcu writer_MS_Works_Document.xcu writer_MS_Write.xcu writer_ODT_FlatXML.xcu writer_OOXML.xcu writer_OOXML_Template.xcu writer_PalmDoc.xcu writer_Plucker_eBook.xcu writer_Rich_Text_Format.xcu writer_StarOffice_XML_Writer.xcu writer_StarOffice_XML_Writer_Template.xcu writer_T602_Document.xcu writer_web_HTML_help.xcu writer_web_StarOffice_XML_Writer_Web_Template.xcu writer_WordPerfect_Document.xcu writer_WriteNow.xcu xbm_X_Consortium.xcu XHTML_File.xcu xpm_XPM.xcu
-
-${MYCMD} --files mysqlc/source/DataAccess.xcu
-
-${MYCMD} --files mysqlc/source/registry/data/org/openoffice/Office/DataAccess/Drivers.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice --files Inet.xcu Interaction.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice/Office --files Accelerators.xcu Addons.xcu BasicIDE.xcu Calc.xcu Canvas.xcu Common.xcu Compatibility.xcu DataAccess.xcu Embedding.xcu ExtendedColorScheme.xcu ExtensionDependencies.xcu ExtensionManager.xcu FormWizard.xcu Histories.xcu Impress.xcu Jobs.xcu Linguistic.xcu Logging.xcu Math.xcu Paths.xcu PresentationMinimizer.xcu PresenterScreen.xcu ProtocolHandler.xcu Recovery.xcu ReportDesign.xcu Scripting.xcu Security.xcu TableWizard.xcu TypeDetection.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice/Office/UI --files BaseWindowState.xcu BasicIDECommands.xcu BasicIDEWindowState.xcu BibliographyCommands.xcu CalcCommands.xcu CalcWindowState.xcu ChartCommands.xcu ChartWindowState.xcu Controller.xcu DbBrowserWindowState.xcu DbQueryWindowState.xcu DbRelationWindowState.xcu DbReportWindowState.xcu DbTableDataWindowState.xcu DbTableWindowState.xcu DbuCommands.xcu DrawImpressCommands.xcu DrawWindowState.xcu Effects.xcu Factories.xcu GenericCategories.xcu GenericCommands.xcu ImpressWindowState.xcu MathCommands.xcu MathWindowState.xcu ReportCommands.xcu Sidebar.xcu StartModuleCommands.xcu StartModuleWindowState.xcu WriterCommands.xcu WriterFormWindowState.xcu WriterGlobalWindowState.xcu WriterReportWindowState.xcu WriterWebWindowState.xcu WriterWindowState.xcu XFormsWindowState.xcu
-
-${MYCMD} --files officecfg/registry/data/org/openoffice/Office/UI.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice/Office --files Views.xcu Writer.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice --files Setup.xcu System.xcu
-
-${MYCMD} --base officecfg/registry/data/org/openoffice --files UserProfile.xcu VCL.xcu
-
-${MYCMD} --files swext/mediawiki/src/registry/data/org/openoffice/Office/Addons.xcu
-
-${MYCMD} --files swext/mediawiki/src/registry/data/org/openoffice/Office/Custom/WikiExtension.xcu
-
-${MYCMD} --base swext/mediawiki/src/registry/data/org/openoffice/Office --files OptionsDialog.xcu Paths.xcu ProtocolHandler.xcu
-
-${MYCMD} --target workdir/jan/swext/mediawiki/src.pot --base swext/mediawiki/src/registry/data/org/openoffice/TypeDetection --files Filter.xcu Types.xcu
-
-
-# .ui files
-
-${MYCMD} --base basctl/uiconfig/basicide/ui --files basicmacrodialog.ui defaultlanguage.ui deletelangdialog.ui dialogpage.ui exportdialog.ui gotolinedialog.ui importlibdialog.ui libpage.ui managebreakpoints.ui managelanguages.ui modulepage.ui newlibdialog.ui organizedialog.ui
-
-${MYCMD} --base chart2/uiconfig/ui --files 3dviewdialog.ui attributedialog.ui chardialog.ui chartdatadialog.ui charttypedialog.ui datarangedialog.ui dlg_DataLabel.ui dlg_InsertErrorBars.ui dlg_InsertLegend.ui insertaxisdlg.ui insertgriddlg.ui inserttitledlg.ui paradialog.ui sidebaraxis.ui sidebarelements.ui sidebarerrorbar.ui sidebarseries.ui smoothlinesdlg.ui steppedlinesdlg.ui titlerotationtabpage.ui tp_3D_SceneAppearance.ui tp_3D_SceneGeometry.ui tp_3D_SceneIllumination.ui tp_axisLabel.ui tp_AxisPositions.ui tp_ChartType.ui tp_DataLabel.ui tp_DataSource.ui tp_ErrorBars.ui tp_LegendPosition.ui tp_PolarOptions.ui tp_RangeChooser.ui tp_Scale.ui tp_SeriesToAxis.ui tp_Trendline.ui wizelementspage.ui
-
-${MYCMD} --base cui/uiconfig/ui --files aboutconfigdialog.ui aboutconfigvaluedialog.ui aboutdialog.ui accelconfigpage.ui acorexceptpage.ui acoroptionspage.ui acorreplacepage.ui agingdialog.ui applyautofmtpage.ui applylocalizedpage.ui areadialog.ui areatabpage.ui asiantypography.ui assigncomponentdialog.ui autocorrectdialog.ui backgroundpage.ui baselinksdialog.ui bitmaptabpage.ui blackorwhitelistentrydialog.ui borderareatransparencydialog.ui borderbackgrounddialog.ui borderpage.ui breaknumberoption.ui calloutdialog.ui calloutpage.ui cellalignment.ui certdialog.ui charnamepage.ui colorconfigwin.ui colorpage.ui colorpickerdialog.ui comment.ui connectortabpage.ui connpooloptions.ui croppage.ui cuiimapdlg.ui customizedialog.ui databaselinkdialog.ui dbregisterpage.ui dimensionlinestabpage.ui distributiondialog.ui distributionpage.ui editdictionarydialog.ui editmodulesdialog.ui effectspage.ui embossdialog.ui eventassigndialog.ui eventassignpage.ui eventsconfigpage.ui fmsearchdialog.ui formatcellsdialog.ui formatnumberdialog.ui galleryapplyprogress.ui galleryfilespage.ui gallerygeneralpage.ui gallerysearchprogress.ui gallerythemedialog.ui gallerythemeiddialog.ui gallerytitledialog.ui galleryupdateprogress.ui gradientpage.ui hangulhanjaadddialog.ui hangulhanjaconversiondialog.ui hangulhanjaeditdictdialog.ui hangulhanjaoptdialog.ui hatchpage.ui hyperlinkdialog.ui hyperlinkdocpage.ui hyperlinkinternetpage.ui hyperlinkmailpage.ui hyperlinkmarkdialog.ui hyperlinknewdocpage.ui hyphenate.ui iconchangedialog.ui iconselectordialog.ui insertfloatingframe.ui insertoleobject.ui insertrowcolumn.ui javaclasspathdialog.ui javastartparametersdialog.ui javastartparameterseditdialog.ui linedialog.ui lineendstabpage.ui linestyletabpage.ui linetabpage.ui macroassigndialog.ui macroassignpage.ui macroselectordialog.ui menuassignpage.ui messbox.ui mosaicdialog.ui movemenu.ui multipathdialog.ui namedialog.ui newlibdialog.ui newtabledialog.ui newtoolbardialog.ui numberingformatpage.ui numberingoptionspage.ui numberingpositionpage.ui objectnamedialog.ui objecttitledescdialog.ui optaccessibilitypage.ui optadvancedpage.ui optappearancepage.ui optasianpage.ui optbasicidepage.ui optchartcolorspage.ui optctlpage.ui optemailpage.ui optfltrembedpage.ui optfltrpage.ui optfontspage.ui optgeneralpage.ui opthtmlpage.ui optionsdialog.ui optjsearchpage.ui optlanguagespage.ui optlingupage.ui optnewdictionarydialog.ui optonlineupdatepage.ui optopenclpage.ui optpathspage.ui optproxypage.ui optsavepage.ui optsecuritypage.ui optuserpage.ui optviewpage.ui pageformatpage.ui paragalignpage.ui paraindentspacing.ui paratabspage.ui password.ui pastespecial.ui percentdialog.ui personalization_tab.ui pickbulletpage.ui pickgraphicpage.ui picknumberingpage.ui pickoutlinepage.ui positionpage.ui positionsizedialog.ui possizetabpage.ui posterdialog.ui querychangelineenddialog.ui querydeletebitmapdialog.ui querydeletechartcolordialog.ui querydeletecolordialog.ui querydeletedictionarydialog.ui querydeletegradientdialog.ui querydeletehatchdialog.ui querydeletelineenddialog.ui querydeletelinestyledialog.ui queryduplicatedialog.ui querynoloadedfiledialog.ui querynosavefiledialog.ui querysavelistdialog.ui queryupdategalleryfilelistdialog.ui recordnumberdialog.ui rotationtabpage.ui scriptorganizer.ui searchattrdialog.ui searchformatdialog.ui securityoptionsdialog.ui selectpathdialog.ui select_persona_dialog.ui shadowtabpage.ui showcoldialog.ui similaritysearchdialog.ui slantcornertabpage.ui smarttagoptionspage.ui smoothdialog.ui solarizedialog.ui specialcharacters.ui spellingdialog.ui spelloptionsdialog.ui splitcellsdialog.ui storedwebconnectiondialog.ui swpossizepage.ui textanimtabpage.ui textattrtabpage.ui textdialog.ui textflowpage.ui thesaurus.ui transparencytabpage.ui tsaurldialog.ui twolinespage.ui wordcompletionpage.ui zoomdialog.ui
-
-${MYCMD} --base dbaccess/uiconfig/ui --files admindialog.ui advancedsettingsdialog.ui applycolpage.ui authentificationpage.ui autocharsetpage.ui backuppage.ui choosedatasourcedialog.ui collectionviewdialog.ui colwidthdialog.ui connectionpage.ui copytablepage.ui dbaseindexdialog.ui dbasepage.ui dbwizconnectionpage.ui dbwizmysqlintropage.ui dbwizmysqlnativepage.ui dbwizspreadsheetpage.ui dbwiztextpage.ui deleteallrowsdialog.ui designsavemodifieddialog.ui directsqldialog.ui emptypage.ui fielddialog.ui finalpagewizard.ui generalpagedialog.ui generalpagewizard.ui generalspecialjdbcdetailspage.ui generatedvaluespage.ui indexdesigndialog.ui jdbcconnectionpage.ui joindialog.ui ldapconnectionpage.ui ldappage.ui migratepage.ui mysqlnativepage.ui mysqlnativesettings.ui namematchingpage.ui odbcpage.ui parametersdialog.ui password.ui preparepage.ui queryfilterdialog.ui querypropertiesdialog.ui relationdialog.ui rowheightdialog.ui rtfcopytabledialog.ui savedialog.ui saveindexdialog.ui savemodifieddialog.ui sortdialog.ui specialjdbcconnectionpage.ui specialsettingspage.ui sqlexception.ui summarypage.ui tabledesignsavemodifieddialog.ui tablesfilterdialog.ui tablesfilterpage.ui tablesjoindialog.ui textconnectionsettings.ui textpage.ui typeselectpage.ui useradmindialog.ui useradminpage.ui userdetailspage.ui
-
-${MYCMD} --base desktop/uiconfig/ui --files dependenciesdialog.ui extensionmanager.ui installforalldialog.ui licensedialog.ui showlicensedialog.ui updatedialog.ui updateinstalldialog.ui updaterequireddialog.ui
-
-${MYCMD} --base extensions/uiconfig/sabpilot/ui --files contentfieldpage.ui contenttablepage.ui datasourcepage.ui defaultfieldselectionpage.ui fieldassignpage.ui fieldlinkpage.ui gridfieldsselectionpage.ui groupradioselectionpage.ui invokeadminpage.ui optiondbfieldpage.ui optionsfinalpage.ui optionvaluespage.ui selecttablepage.ui selecttypepage.ui tableselectionpage.ui
-
-${MYCMD} --base extensions/uiconfig/sbibliography/ui --files choosedatasourcedialog.ui generalpage.ui mappingdialog.ui toolbar.ui
-
-${MYCMD} --base extensions/uiconfig/scanner/ui --files griddialog.ui sanedialog.ui
-
-${MYCMD} --base extensions/uiconfig/spropctrlr/ui --files controlfontdialog.ui datatypedialog.ui fieldlinkrow.ui formlinksdialog.ui labelselectiondialog.ui listselectdialog.ui taborder.ui
-
-${MYCMD} --base filter/uiconfig/ui --files impswfdialog.ui pdfgeneralpage.ui pdflinkspage.ui pdfoptionsdialog.ui pdfsecuritypage.ui pdfsignpage.ui pdfuserinterfacepage.ui pdfviewpage.ui testxmlfilter.ui warnpdfdialog.ui xmlfiltersettings.ui xmlfiltertabpagegeneral.ui xmlfiltertabpagetransformation.ui xsltfilterdialog.ui
-
-${MYCMD} --base formula/uiconfig/ui --files formuladialog.ui functionpage.ui parameter.ui structpage.ui
-
-${MYCMD} --base fpicker/uiconfig/ui --files explorerfiledialog.ui foldernamedialog.ui remotefilesdialog.ui
-
-${MYCMD} --base reportdesign/uiconfig/dbreport/ui --files backgrounddialog.ui chardialog.ui condformatdialog.ui conditionwin.ui datetimedialog.ui floatingnavigator.ui floatingsort.ui pagedialog.ui pagenumberdialog.ui
-
-${MYCMD} --base sc/uiconfig/scalc/ui --files advancedfilterdialog.ui allheaderfooterdialog.ui analysisofvariancedialog.ui autoformattable.ui cellprotectionpage.ui changesourcedialog.ui chardialog.ui chisquaretestdialog.ui colorrowdialog.ui colwidthdialog.ui condformatmanager.ui conditionalformatdialog.ui conflictsdialog.ui consolidatedialog.ui correlationdialog.ui covariancedialog.ui createnamesdialog.ui dapiservicedialog.ui databaroptions.ui datafielddialog.ui datafieldoptionsdialog.ui dataform.ui datastreams.ui definedatabaserangedialog.ui definename.ui deletecells.ui deletecontents.ui descriptivestatisticsdialog.ui doubledialog.ui erroralerttabpage.ui exponentialsmoothingdialog.ui externaldata.ui filldlg.ui footerdialog.ui formatcellsdialog.ui formulacalculationoptions.ui goalseekdlg.ui groupbydate.ui groupbynumber.ui groupdialog.ui headerdialog.ui headerfootercontent.ui headerfooterdialog.ui imoptdialog.ui inputstringdialog.ui insertcells.ui insertname.ui insertsheet.ui integerdialog.ui leftfooterdialog.ui leftheaderdialog.ui managenamesdialog.ui movecopysheet.ui movingaveragedialog.ui multipleoperationsdialog.ui namerangesdialog.ui nosolutiondialog.ui optcalculatepage.ui optchangespage.ui optcompatibilitypage.ui optdefaultpage.ui optdlg.ui optformula.ui optimalcolwidthdialog.ui optimalrowheightdialog.ui optsortlists.ui pagetemplatedialog.ui paradialog.ui paratemplatedialog.ui pastespecial.ui pivotfielddialog.ui pivotfilterdialog.ui pivottablelayoutdialog.ui printareasdialog.ui printeroptions.ui protectsheetdlg.ui queryrunstreamscriptdialog.ui randomnumbergenerator.ui regressiondialog.ui retypepassdialog.ui retypepassworddialog.ui rightfooterdialog.ui rightheaderdialog.ui rowheightdialog.ui samplingdialog.ui scenariodialog.ui scgeneralpage.ui searchresults.ui selectdatasource.ui selectrange.ui selectsource.ui sharedfooterdialog.ui sharedheaderdialog.ui sharedocumentdlg.ui sheetprintpage.ui showchangesdialog.ui showdetaildialog.ui showsheetdialog.ui sidebaralignment.ui sidebarcellappearance.ui sidebarnumberformat.ui simplerefdialog.ui solverdlg.ui solveroptionsdialog.ui solverprogressdialog.ui solversuccessdialog.ui sortcriteriapage.ui sortdialog.ui sortkey.ui sortoptionspage.ui sortwarning.ui standardfilterdialog.ui statisticsinfopage.ui subtotaldialog.ui subtotalgrppage.ui subtotaloptionspage.ui tabcolordialog.ui textimportcsv.ui textimportoptions.ui tpviewpage.ui ttestdialog.ui ungroupdialog.ui validationcriteriapage.ui validationdialog.ui validationhelptabpage.ui xmlsourcedialog.ui ztestdialog.ui
-
-${MYCMD} --base sd/uiconfig/sdraw/ui --files breakdialog.ui bulletsandnumbering.ui copydlg.ui crossfadedialog.ui dlgsnap.ui drawchardialog.ui drawpagedialog.ui drawparadialog.ui drawprtldialog.ui insertlayer.ui insertslidesdialog.ui namedesign.ui paranumberingtab.ui printeroptions.ui queryunlinkimagedialog.ui tabledesigndialog.ui vectorize.ui
-
-${MYCMD} --base sd/uiconfig/simpress/ui --files assistentdialog.ui customanimationeffecttab.ui customanimationproperties.ui customanimationspanel.ui customanimationtexttab.ui customanimationtimingtab.ui customslideshows.ui definecustomslideshow.ui dlgfield.ui dockinganimation.ui headerfooterdialog.ui headerfootertab.ui insertslides.ui interactiondialog.ui interactionpage.ui masterlayoutdlg.ui optimpressgeneralpage.ui photoalbum.ui presentationdialog.ui printeroptions.ui prntopts.ui publishingdialog.ui remotedialog.ui sdviewpage.ui slidedesigndialog.ui slidetransitionspanel.ui tabledesignpanel.ui templatedialog.ui
-
-${MYCMD} --base sfx2/uiconfig/ui --files alienwarndialog.ui bookmarkdialog.ui checkin.ui cmisinfopage.ui cmisline.ui custominfopage.ui descriptioninfopage.ui documentfontspage.ui documentinfopage.ui documentpropertiesdialog.ui editdurationdialog.ui errorfindemaildialog.ui floatingrecord.ui helpbookmarkpage.ui helpcontentpage.ui helpcontrol.ui helpindexpage.ui helpsearchpage.ui inputdialog.ui licensedialog.ui linkeditdialog.ui loadtemplatedialog.ui managestylepage.ui newstyle.ui optprintpage.ui password.ui printeroptionsdialog.ui querysavedialog.ui searchdialog.ui securityinfopage.ui singletabdialog.ui startcenter.ui templatedlg.ui templateinfodialog.ui versioncommentdialog.ui versionscmis.ui versionsofdialog.ui
-
-${MYCMD} --base starmath/uiconfig/smath/ui --files alignmentdialog.ui catalogdialog.ui dockingelements.ui fontdialog.ui fontsizedialog.ui fonttypedialog.ui printeroptions.ui savedefaultsdialog.ui smathsettings.ui spacingdialog.ui symdefinedialog.ui
-
-${MYCMD} --base svtools/uiconfig/ui --files addresstemplatedialog.ui graphicexport.ui javadisableddialog.ui placeedit.ui printersetupdialog.ui querydeletedialog.ui restartdialog.ui wizarddialog.ui
-
-${MYCMD} --base svx/uiconfig/ui --files acceptrejectchangesdialog.ui addconditiondialog.ui adddataitemdialog.ui addinstancedialog.ui addmodeldialog.ui addnamespacedialog.ui addsubmissiondialog.ui asianphoneticguidedialog.ui chineseconversiondialog.ui chinesedictionary.ui colorwindow.ui compressgraphicdialog.ui crashreportdlg.ui datanavigator.ui deletefooterdialog.ui deleteheaderdialog.ui docking3deffects.ui dockingcolorreplace.ui dockingfontwork.ui docrecoverybrokendialog.ui docrecoveryprogressdialog.ui docrecoveryrecoverdialog.ui docrecoverysavedialog.ui extrustiondepthdialog.ui findreplacedialog.ui floatingcontour.ui floatingundoredo.ui fontworkgallerydialog.ui fontworkspacingdialog.ui formlinkwarndialog.ui headfootformatpage.ui imapdialog.ui linkwarndialog.ui namespacedialog.ui optgridpage.ui paralinespacingcontrol.ui passwd.ui querydeletecontourdialog.ui querydeleteobjectdialog.ui querydeletethemedialog.ui querymodifyimagemapchangesdialog.ui querynewcontourdialog.ui querysavecontchangesdialog.ui querysaveimagemapchangesdialog.ui queryunlinkgraphicsdialog.ui redlinecontrol.ui redlinefilterpage.ui redlineviewpage.ui savemodifieddialog.ui sidebararea.ui sidebargraphic.ui sidebarinsert.ui sidebarline.ui sidebarparagraph.ui sidebarpossize.ui sidebarshadow.ui sidebarstylespanel.ui sidebartextpanel.ui textcontrolchardialog.ui textcontrolparadialog.ui xformspage.ui
-
-${MYCMD} --base sw/uiconfig/swriter/ui --files abstractdialog.ui addentrydialog.ui addressblockdialog.ui alreadyexistsdialog.ui asciifilterdialog.ui asksearchdialog.ui assignfieldsdialog.ui assignstylesdialog.ui attachnamedialog.ui authenticationsettingsdialog.ui autoformattable.ui autotext.ui bibliographyentry.ui bulletsandnumbering.ui businessdatapage.ui cannotsavelabeldialog.ui captiondialog.ui captionoptions.ui cardformatpage.ui cardmediumpage.ui ccdialog.ui characterproperties.ui charurlpage.ui columndialog.ui columnpage.ui columnwidth.ui conditionpage.ui converttexttable.ui createaddresslist.ui createauthorentry.ui createautomarkdialog.ui customizeaddrlistdialog.ui datasourcesunavailabledialog.ui dropcapspage.ui dropdownfielddialog.ui editcategories.ui editfielddialog.ui editsectiondialog.ui endnotepage.ui envaddresspage.ui envdialog.ui envformatpage.ui envprinterpage.ui exchangedatabases.ui fielddialog.ui findentrydialog.ui flddbpage.ui flddocinfopage.ui flddocumentpage.ui fldfuncpage.ui fldrefpage.ui fldvarpage.ui floatingnavigation.ui floatingsync.ui footendnotedialog.ui footnoteareapage.ui footnotepage.ui footnotesendnotestabpage.ui formatsectiondialog.ui formattablepage.ui framedialog.ui frmaddpage.ui frmtypepage.ui frmurlpage.ui indentpage.ui indexentry.ui infonotfounddialog.ui inforeadonlydialog.ui inputfielddialog.ui insertautotextdialog.ui insertbookmark.ui insertbreak.ui insertcaption.ui insertdbcolumnsdialog.ui insertfootnote.ui insertscript.ui insertsectiondialog.ui inserttable.ui labeldialog.ui labelformatpage.ui labeloptionspage.ui linenumbering.ui mailconfigpage.ui mailmerge.ui mailmergedialog.ui managechangessidebar.ui mergeconnectdialog.ui mergetabledialog.ui mmaddressblockpage.ui mmcreatingdialog.ui mmlayoutpage.ui mmmailbody.ui mmoutputtypepage.ui mmresultemaildialog.ui mmresultprintdialog.ui mmresultsavedialog.ui mmsalutationpage.ui mmselectpage.ui mmsendmails.ui newuserindexdialog.ui numberingnamedialog.ui numparapage.ui objectdialog.ui optcaptionpage.ui optcomparison.ui optcompatpage.ui optfonttabpage.ui optformataidspage.ui optgeneralpage.ui optredlinepage.ui opttablepage.ui opttestpage.ui outlinenumbering.ui outlinenumberingpage.ui outlinepositionpage.ui paradialog.ui picturedialog.ui picturepage.ui previewzoomdialog.ui printeroptions.ui printmergedialog.ui printmonitordialog.ui printoptionspage.ui privateuserpage.ui querycontinuebegindialog.ui querycontinueenddialog.ui querydefaultcompatdialog.ui queryrotateintostandarddialog.ui querysavelabeldialog.ui queryshowchangesdialog.ui renameautotextdialog.ui renameentrydialog.ui renameobjectdialog.ui rowheight.ui saveashtmldialog.ui savelabeldialog.ui sectionpage.ui selectaddressdialog.ui selectautotextdialog.ui selectblockdialog.ui selectindexdialog.ui selecttabledialog.ui sidebarpage.ui sidebarstylepresets.ui sidebartheme.ui sidebarwrap.ui sortdialog.ui splittable.ui statisticsinfopage.ui stringinput.ui subjectdialog.ui tablecolumnpage.ui tablepreviewdialog.ui tableproperties.ui tabletextflowpage.ui templatedialog1.ui templatedialog16.ui templatedialog2.ui templatedialog4.ui templatedialog8.ui testmailsettings.ui textgridpage.ui titlepage.ui tocdialog.ui tocentriespage.ui tocindexpage.ui tocstylespage.ui tokenwidget.ui viewoptionspage.ui warndatasourcedialog.ui warnemaildialog.ui wordcount.ui wrapdialog.ui wrappage.ui
-
-${MYCMD} --base uui/uiconfig/ui --files authfallback.ui filterselect.ui logindialog.ui macrowarnmedium.ui masterpassworddlg.ui password.ui setmasterpassworddlg.ui simplenameclash.ui sslwarndialog.ui unknownauthdialog.ui
-
-${MYCMD} --base vcl/uiconfig/ui --files cupspassworddialog.ui errornocontentdialog.ui errornoprinterdialog.ui notebookbar.ui printdialog.ui printerdevicepage.ui printerpaperpage.ui printerpropertiesdialog.ui printprogressdialog.ui querydialog.ui screenshotannotationdialog.ui
-
-${MYCMD} --base xmlsecurity/uiconfig/ui --files certdetails.ui certgeneral.ui certpage.ui digitalsignaturesdialog.ui macrosecuritydialog.ui securitylevelpage.ui securitytrustpage.ui selectcertificatedialog.ui viewcertdialog.ui
-
-
-# .xml files
-
-${MYCMD} --files nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/description.xml
-
-${MYCMD} --files dictionaries/pt_BR/description.xml
diff --git a/l10ntools/source/gTest.sh b/l10ntools/source/gTest.sh
deleted file mode 100644
index e9b1fe6594e0..000000000000
--- a/l10ntools/source/gTest.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-S=C:/Users/jani/opensource/libreoffice/lode/dev/work
-I=$S/instdir
-W=$S/workdir
-PATH="C:\Users\jani\opensource\libreoffice\lode\dev\work\instdir\program;C:\Users\jani\opensource\libreoffice\lode\dev\work\instdir\program;$PATH"
-./workdir/LinkTarget/Executable/xrmex.exe -i readlicense_oo/docs/readme.xrm -o workdir/jan2/docs