diff options
author | Jan Iversen <jani@documentfoundation.org> | 2016-03-01 18:07:54 +0100 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-03 07:46:59 +0000 |
commit | 999c68f12f1d95b16a97294949a0e6ba6d3ba259 (patch) | |
tree | 0abb13f0fa1ab353771f1eda05e4abadc554ef2c /l10ntools/inc/gConvXcu.hxx | |
parent | b76842f63b19e9855fbdfee7c201ff73672464b6 (diff) |
genLang project (awareness)
the genLang project aims at replacing all l10ntools with more
modern versions, based on C++ and lex.
The current extract works basically as a standalone "find" over the
source tree. genLang can use that, but also a more efficient way, by
having translation-worthy files declared in the makefile stubs.
genLang itself is a C++ framework, where each file type is defined as
a class, making it easy to add new file types.
genLang can easily be adopted to transform the help files into e.g.
mediawiki format, and later merge a url back into the code.
The project was first developed (solely by the author) in a non
published branch of OO. This branch was never merged but deleted
and therefore never published.
The files have been adapted to the LO build system and setup.
The primary commit is just to raise awareness, that this is being
developed. The following commit, will update the source code to LO
standard. Before replacing the old modules a dedicated review will
be asked for.
Change-Id: I4504992474333c476c179903f822bfaf1441cca9
Reviewed-on: https://gerrit.libreoffice.org/22819
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'l10ntools/inc/gConvXcu.hxx')
-rw-r--r-- | l10ntools/inc/gConvXcu.hxx | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/l10ntools/inc/gConvXcu.hxx b/l10ntools/inc/gConvXcu.hxx new file mode 100644 index 000000000000..db106278b630 --- /dev/null +++ b/l10ntools/inc/gConvXcu.hxx @@ -0,0 +1,60 @@ +/* -*- 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" + + + +/***************************************************************************** + ************************* G C O N X C U . H X X ************************* + ***************************************************************************** + * This is the class header for .xcu conversion + *****************************************************************************/ + + + +/******************** C L A S S D E F I N I T I O N ********************/ +class xcu_stack_entry; +class convert_xcu : public convert_gen_impl +{ + public: + bool mbNoCollectingData; + + convert_xcu(l10nMem& crMemory); + ~convert_xcu(); + + 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: + std::vector<std::string> mcStack; + int miLevel; + bool mbNoTranslate; + + void execute(); +}; +#endif |