LibreOffice Module l10ntools (master) 1
treemerge.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#ifndef INCLUDED_L10NTOOLS_INC_TREEMERGE_HXX
11#define INCLUDED_L10NTOOLS_INC_TREEMERGE_HXX
12
13#include <libxml/tree.h>
14#include <rtl/string.hxx>
15
24{
25private:
26 xmlDocPtr m_pSource;
27 OString m_sLang;
29
30public:
32 TreeParser( const OString& rInputFile, OString sLang );
34
35 bool isInitialized() const { return m_bIsInitialized; }
37 void Extract( const OString& rPOFile );
39 void Merge(
40 const OString &rMergeSrc, const OString &rDestinationFile,
41 const OString &rXhpRoot );
42};
43
44#endif // INCLUDED_L10NTOOLS_INC_TREEMERGE_HXX
45
46/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Class for localization of *.tree files.
Definition: treemerge.hxx:24
TreeParser(const OString &rInputFile, OString sLang)
Parse tree file.
Definition: treemerge.cxx:199
xmlDocPtr m_pSource
Definition: treemerge.hxx:26
bool m_bIsInitialized
Definition: treemerge.hxx:28
void Extract(const OString &rPOFile)
Export strings.
Definition: treemerge.cxx:227
bool isInitialized() const
Definition: treemerge.hxx:35
void Merge(const OString &rMergeSrc, const OString &rDestinationFile, const OString &rXhpRoot)
Merge strings to tree file and update reference to help files(xhp)
Definition: treemerge.cxx:250
OString m_sLang
Definition: treemerge.hxx:27