lokalize
#include <catalogstorage.h>
Public Member Functions | |
CatalogStorage () | |
virtual | ~CatalogStorage () |
virtual QList< Phase > | allPhases () const |
virtual QMap< QString, Tool > | allTools () const |
virtual QVector< AltTrans > | altTrans (const DocPosition &pos) const =0 |
virtual int | binUnitsCount () const |
virtual int | capabilities () const =0 |
virtual CatalogString | catalogString (const DocPosition &pos) const =0 |
virtual QStringList | context (const DocPosition &) const =0 |
virtual QVector< Note > | developerNotes (const DocPosition &pos) const =0 |
virtual QString | id (const DocPosition &) const =0 |
virtual bool | isApproved (const DocPosition &) const |
virtual bool | isEmpty (const DocPosition &) const =0 |
virtual bool | isEquivTrans (const DocPosition &) const |
virtual bool | isObsolete (int entry) const |
virtual bool | isPlural (const DocPosition &) const =0 |
virtual int | load (QIODevice *device)=0 |
virtual QStringList | matchData (const DocPosition &) const =0 |
virtual QString | mimetype () const =0 |
virtual QStringList | noteAuthors () const |
virtual QVector< Note > | notes (const DocPosition &pos) const =0 |
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 bool | save (QIODevice *device, bool belongsToProject=false)=0 |
virtual void | setApproved (const DocPosition &, bool approved) |
virtual void | setEquivTrans (const DocPosition &, bool equivTrans) |
virtual Note | setNote (DocPosition pos, const Note ¬e)=0 |
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) |
virtual void | setTarget (const DocPosition &pos, const QString &arg)=0 |
void | setUrl (const KUrl &u) |
virtual int | size () const =0 |
virtual QString | source (const DocPosition &pos) const =0 |
virtual QStringList | sourceAllForms (const DocPosition &pos, bool stripNewLines=false) const =0 |
virtual QStringList | sourceFiles (const DocPosition &pos) const =0 |
QString | sourceLangCode () const |
virtual CatalogString | sourceWithTags (DocPosition pos) const =0 |
virtual TargetState | state (const DocPosition &) const |
virtual QString | target (const DocPosition &pos) const =0 |
virtual QStringList | targetAllForms (const DocPosition &pos, bool stripNewLines=false) const =0 |
virtual void | targetDelete (const DocPosition &pos, int count)=0 |
virtual InlineTag | targetDeleteTag (const DocPosition &) |
virtual void | targetInsert (const DocPosition &pos, const QString &arg)=0 |
virtual void | targetInsertTag (const DocPosition &, const InlineTag &) |
QString | targetLangCode () const |
virtual CatalogString | targetWithTags (DocPosition pos) const =0 |
virtual int | unitById (const QString &id) const |
virtual Phase | updatePhase (const Phase &) |
const KUrl & | url () const |
Protected Attributes | |
int | m_numberOfPluralForms |
QString | m_sourceLangCode |
QString | m_targetLangCode |
KUrl | m_url |
Detailed Description
Abstract interface for storage of translation file.
format-specific elements like " for gettext PO should be eliminated
Abstract interface for storage of translation file
Definition at line 45 of file catalogstorage.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 159 of file catalogstorage.h.
|
inlinevirtual |
Definition at line 165 of file catalogstorage.h.
Member Function Documentation
Reimplemented in XliffStorage.
Definition at line 79 of file catalogstorage.h.
Reimplemented in XliffStorage.
Definition at line 80 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, XliffStorage, and TsStorage.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 140 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
pure virtual |
entry id unique for this file
pos.form doesn't matter
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
inlinevirtual |
Reimplemented in GettextCatalog::GettextStorage, and TsStorage.
Definition at line 133 of file catalogstorage.h.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
inlinevirtual |
Reimplemented in XliffStorage, and TsStorage.
Definition at line 130 of file catalogstorage.h.
|
inlinevirtual |
Reimplemented in TsStorage.
Definition at line 138 of file catalogstorage.h.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure 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
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 89 of file catalogstorage.h.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
inline |
Definition at line 56 of file catalogstorage.h.
|
inline |
Definition at line 57 of file catalogstorage.h.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 94 of file catalogstorage.h.
Reimplemented in XliffStorage.
Definition at line 95 of file catalogstorage.h.
Reimplemented in XliffStorage.
Definition at line 96 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inlinevirtual |
Reimplemented in GettextCatalog::GettextStorage, and TsStorage.
Definition at line 134 of file catalogstorage.h.
|
inlinevirtual |
Reimplemented in XliffStorage, and TsStorage.
Definition at line 131 of file catalogstorage.h.
|
pure virtual |
Implemented in XliffStorage, GettextCatalog::GettextStorage, and TsStorage.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 93 of file catalogstorage.h.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 97 of file catalogstorage.h.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 136 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inline |
Definition at line 144 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
flat-model interface (ignores XLIFF grouping)
format-specific texts like " for gettext PO should be eliminated
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
all plural forms. pos.form doesn't matter
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, XliffStorage, and TsStorage.
|
inline |
Definition at line 148 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 135 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
pure virtual |
edit operations used by undo/redo system and sync-mode
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inlinevirtual |
Reimplemented in GettextCatalog::GettextStorage, and XliffStorage.
Definition at line 77 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inlinevirtual |
Reimplemented in GettextCatalog::GettextStorage, and XliffStorage.
Definition at line 76 of file catalogstorage.h.
|
inline |
Definition at line 149 of file catalogstorage.h.
|
pure virtual |
Implemented in GettextCatalog::GettextStorage, TsStorage, and XliffStorage.
|
inlinevirtual |
Reimplemented in XliffStorage.
Definition at line 141 of file catalogstorage.h.
Reimplemented in XliffStorage.
Definition at line 78 of file catalogstorage.h.
|
inline |
Definition at line 143 of file catalogstorage.h.
Member Data Documentation
|
protected |
Definition at line 156 of file catalogstorage.h.
|
protected |
Definition at line 153 of file catalogstorage.h.
|
protected |
Definition at line 154 of file catalogstorage.h.
|
protected |
Definition at line 152 of file catalogstorage.h.
The documentation for this class was generated from the following file:
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.