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

lokalize

  • GettextCatalog
  • GettextStorage
Public Member Functions | List of all members
GettextCatalog::GettextStorage Class Reference

#include <gettextstorage.h>

Inheritance diagram for GettextCatalog::GettextStorage:
Inheritance graph
[legend]

Public Member Functions

 GettextStorage ()
 
 ~GettextStorage ()
 
QVector< AltTrans > altTrans (const DocPosition &pos) const
 
int capabilities () const
 
CatalogString catalogString (const DocPosition &pos) const
 
QStringList context (const DocPosition &pos) const
 
QVector< Note > developerNotes (const DocPosition &pos) const
 
QString id (const DocPosition &pos) const
 
bool isApproved (const DocPosition &pos) const
 
bool isEmpty (const DocPosition &pos) const
 
bool isPlural (const DocPosition &pos) const
 
int load (QIODevice *device)
 
QStringList matchData (const DocPosition &pos) const
 
QString mimetype () const
 
QVector< Note > notes (const DocPosition &pos) const
 
bool save (QIODevice *device, bool belongsToProject=false)
 
void setApproved (const DocPosition &pos, bool approved)
 
Note setNote (DocPosition pos, const Note &note)
 
void setTarget (const DocPosition &pos, const QString &arg)
 
int size () const
 
QString source (const DocPosition &pos) const
 
QStringList sourceAllForms (const DocPosition &pos, bool stripNewLines=false) const
 
QStringList sourceFiles (const DocPosition &pos) const
 
CatalogString sourceWithTags (DocPosition pos) const
 
QString target (const DocPosition &pos) const
 
QStringList targetAllForms (const DocPosition &pos, bool stripNewLines=false) const
 
void targetDelete (const DocPosition &pos, int count)
 
InlineTag targetDeleteTag (const DocPosition &)
 
void targetInsert (const DocPosition &pos, const QString &arg)
 
void targetInsertTag (const DocPosition &, const InlineTag &)
 
CatalogString targetWithTags (DocPosition pos) const
 
- Public Member Functions inherited from CatalogStorage
 CatalogStorage ()
 
virtual ~CatalogStorage ()
 
virtual QList< Phase > allPhases () const
 
virtual QMap< QString, Tool > allTools () const
 
virtual int binUnitsCount () const
 
virtual bool isEquivTrans (const DocPosition &) const
 
virtual bool isObsolete (int entry) const
 
virtual QStringList noteAuthors () const
 
int numberOfEntries () const
 
int numberOfPluralForms () const
 
virtual QString phase (const DocPosition &pos) const
 
virtual Phase phase (const QString &name) const
 
virtual QVector< Note > phaseNotes (const QString &phase) const
 
virtual void setEquivTrans (const DocPosition &, bool equivTrans)
 
virtual QString setPhase (const DocPosition &pos, const QString &phase)
 
virtual QVector< Note > setPhaseNotes (const QString &phase, QVector< Note > notes)
 
virtual TargetState setState (const DocPosition &, TargetState)
 
void setUrl (const KUrl &u)
 
QString sourceLangCode () const
 
virtual TargetState state (const DocPosition &) const
 
QString targetLangCode () const
 
virtual int unitById (const QString &id) const
 
virtual Phase updatePhase (const Phase &)
 
const KUrl & url () const
 

Additional Inherited Members

- Protected Attributes inherited from CatalogStorage
int m_numberOfPluralForms
 
QString m_sourceLangCode
 
QString m_targetLangCode
 
KUrl m_url
 

Detailed Description

Implementation of storage for Gettext PO.

Author
Nick Shaforostoff shaff.nosp@m.f@uk.nosp@m.r.net

Definition at line 39 of file gettextstorage.h.

Constructor & Destructor Documentation

GettextStorage::GettextStorage ( )

Definition at line 45 of file gettextstorage.cpp.

GettextStorage::~GettextStorage ( )

Definition at line 51 of file gettextstorage.cpp.

Member Function Documentation

QVector< AltTrans > GettextStorage::altTrans ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 205 of file gettextstorage.cpp.

int GettextCatalog::GettextStorage::capabilities ( ) const
inlinevirtual

Implements CatalogStorage.

Definition at line 45 of file gettextstorage.h.

CatalogString GettextCatalog::GettextStorage::catalogString ( const DocPosition &  pos) const
inlinevirtual

Implements CatalogStorage.

Definition at line 57 of file gettextstorage.h.

QStringList GettextStorage::context ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 329 of file gettextstorage.cpp.

QVector< Note > GettextStorage::developerNotes ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 301 of file gettextstorage.cpp.

QString GettextStorage::id ( const DocPosition &  ) const
virtual

entry id unique for this file

pos.form doesn't matter

Implements CatalogStorage.

Definition at line 349 of file gettextstorage.cpp.

bool GettextStorage::isApproved ( const DocPosition &  pos) const
virtual

Reimplemented from CatalogStorage.

Definition at line 368 of file gettextstorage.cpp.

bool GettextStorage::isEmpty ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 380 of file gettextstorage.cpp.

bool GettextStorage::isPlural ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 363 of file gettextstorage.cpp.

int GettextStorage::load ( QIODevice *  device)
virtual

Implements CatalogStorage.

Definition at line 57 of file gettextstorage.cpp.

QStringList GettextStorage::matchData ( const DocPosition &  ) const
virtual

user-invisible data for matching, e.g.

during TM database lookup it is comprised of several strings

database stores them and thus it is possible to fuzzy-match 'matchData' later

it is responsibility of CatalogStorage implementations to separate/assemble the list properly according to the format specifics

pos.form doesn't matter

Implements CatalogStorage.

Definition at line 334 of file gettextstorage.cpp.

QString GettextCatalog::GettextStorage::mimetype ( ) const
inlinevirtual

Implements CatalogStorage.

Definition at line 87 of file gettextstorage.h.

QVector< Note > GettextStorage::notes ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 295 of file gettextstorage.cpp.

bool GettextStorage::save ( QIODevice *  device,
bool  belongsToProject = false 
)
virtual

Implements CatalogStorage.

Definition at line 89 of file gettextstorage.cpp.

void GettextStorage::setApproved ( const DocPosition &  pos,
bool  approved 
)
virtual

Reimplemented from CatalogStorage.

Definition at line 372 of file gettextstorage.cpp.

Note GettextStorage::setNote ( DocPosition  pos,
const Note &  note 
)
virtual

Implements CatalogStorage.

Definition at line 243 of file gettextstorage.cpp.

void GettextStorage::setTarget ( const DocPosition &  pos,
const QString &  arg 
)
virtual

Implements CatalogStorage.

Definition at line 177 of file gettextstorage.cpp.

int GettextStorage::size ( ) const
virtual

Implements CatalogStorage.

Definition at line 120 of file gettextstorage.cpp.

QString GettextStorage::source ( const DocPosition &  pos) const
virtual

flat-model interface (ignores XLIFF grouping)

format-specific texts like " for gettext PO should be eliminated

Implements CatalogStorage.

Definition at line 160 of file gettextstorage.cpp.

QStringList GettextStorage::sourceAllForms ( const DocPosition &  pos,
bool  stripNewLines = false 
) const
virtual

all plural forms. pos.form doesn't matter

Implements CatalogStorage.

Definition at line 195 of file gettextstorage.cpp.

QStringList GettextStorage::sourceFiles ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 307 of file gettextstorage.cpp.

CatalogString GettextStorage::sourceWithTags ( DocPosition  pos) const
virtual

Implements CatalogStorage.

Definition at line 151 of file gettextstorage.cpp.

QString GettextStorage::target ( const DocPosition &  pos) const
virtual

Implements CatalogStorage.

Definition at line 164 of file gettextstorage.cpp.

QStringList GettextStorage::targetAllForms ( const DocPosition &  pos,
bool  stripNewLines = false 
) const
virtual

Implements CatalogStorage.

Definition at line 200 of file gettextstorage.cpp.

void GettextStorage::targetDelete ( const DocPosition &  pos,
int  count 
)
virtual

edit operations used by undo/redo system and sync-mode

Implements CatalogStorage.

Definition at line 169 of file gettextstorage.cpp.

InlineTag GettextStorage::targetDeleteTag ( const DocPosition &  pos)
virtual

Reimplemented from CatalogStorage.

Definition at line 189 of file gettextstorage.cpp.

void GettextStorage::targetInsert ( const DocPosition &  pos,
const QString &  arg 
)
virtual

Implements CatalogStorage.

Definition at line 173 of file gettextstorage.cpp.

void GettextStorage::targetInsertTag ( const DocPosition &  pos,
const InlineTag &  tag 
)
virtual

Reimplemented from CatalogStorage.

Definition at line 183 of file gettextstorage.cpp.

CatalogString GettextStorage::targetWithTags ( DocPosition  pos) const
virtual

Implements CatalogStorage.

Definition at line 155 of file gettextstorage.cpp.


The documentation for this class was generated from the following files:
  • gettextstorage.h
  • gettextstorage.cpp
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