• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • sources
  • kde-4.14
  • kdesdk
  • lokalize
  • src
  • catalog
  • gettext
gettextexport.h
Go to the documentation of this file.
1 /* ****************************************************************************
2  This file is part of Lokalize
3  This file contains parts of KBabel code
4 
5  Copyright (C) 2002 by Stanislav Visnovsky <visnovsky@kde.org>
6  Copyright (C) 2006 by Nicolas GOUTTE <goutte@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22  In addition, as a special exception, the copyright holders give
23  permission to link the code of this program with any edition of
24  the Qt library by Trolltech AS, Norway (or with modified versions
25  of Qt that use the same license as Qt), and distribute linked
26  combinations including the two. You must obey the GNU General
27  Public License in all respects for all of the code used other than
28  Qt. If you modify this file, you may extend this exception to
29  your version of the file, but you are not obligated to do so. If
30  you do not wish to do so, delete this exception statement from
31  your version.
32 
33 **************************************************************************** */
34 #ifndef GETTEXTEXPORTPLUGIN_H
35 #define GETTEXTEXPORTPLUGIN_H
36 
37 #include <catalogfileplugin.h>
38 
39 #include <QStringList>
40 #include <QTextCodec>
41 #include <QTextStream>
42 
43 namespace GettextCatalog {
44 class GettextStorage;
45 
46 
53 class GettextExportPlugin
54 {
55 public:
56  GettextExportPlugin(short wrapWidth=-1, short trailingNewLines=1);
57  ConversionStatus save(QIODevice* device,
58  const GettextStorage* catalog,
59  QTextCodec* codec);
60 
61 private:
65  void writeComment( QTextStream& stream, const QString& comment ) const;
66 
71  void writeKeyword( QTextStream& stream, const QString& keyword, QString text, bool containsHtml=true, bool startedWithEmptyLine=false ) const;
72 
73 public:
87  short m_wrapWidth;
88  short m_trailingNewLines;
89 };
90 }
91 #endif
QIODevice
GettextCatalog::GettextExportPlugin::m_wrapWidth
short m_wrapWidth
Width of the wrap.
Definition: gettextexport.h:87
GettextCatalog::GettextExportPlugin
The class for exporting GNU gettext PO files.
Definition: gettextexport.h:53
GettextCatalog::GettextExportPlugin::m_trailingNewLines
short m_trailingNewLines
Definition: gettextexport.h:88
GettextCatalog::GettextExportPlugin::GettextExportPlugin
GettextExportPlugin(short wrapWidth=-1, short trailingNewLines=1)
Definition: gettextexport.cpp:57
QTextStream
GettextCatalog::ConversionStatus
ConversionStatus
Result of the conversion.
Definition: catalogfileplugin.h:53
QString
QTextCodec
GettextCatalog::GettextExportPlugin::save
ConversionStatus save(QIODevice *device, const GettextStorage *catalog, QTextCodec *codec)
Definition: gettextexport.cpp:63
catalogfileplugin.h
GettextCatalog::GettextStorage
Implementation of storage for Gettext PO.
Definition: gettextstorage.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal