lokalize
tsstorage.cpp
Go to the documentation of this file.
45 static const QString names[]={"source" ,"translation","oldsource" ,"translatorcomment","comment" ,"name" ,"numerus"};
210 //qWarning()<<"text is fragmented into several QDomCharacterData. localDelLen:"<<localDelLen<<"cData:"<<cData;
333 result<<AltTrans(CatalogString(oldsource), i18n("Previous source value, saved by lupdate tool"));
475 QDomElement target=unitForPos(pos.entry).firstChildElement(names[TargetTag]); //asking directly to bypass plural state detection
QDomNodeList elementsByTagName(const QString &tagname) const
QStringList sourceFiles(const DocPosition &pos) const
Definition: tsstorage.cpp:339
Definition: tsstorage.cpp:46
QDomNode appendChild(const QDomNode &newChild)
void append(const T &value)
Definition: pos.h:44
QString attribute(const QString &name, const QString &defValue) const
QString data() const
QString & prepend(QChar ch)
QDomNode insertAfter(const QDomNode &newChild, const QDomNode &refChild)
int size() const
Definition: tsstorage.cpp:52
Definition: tsstorage.cpp:46
QDomElement nextSiblingElement(const QString &tagName) const
void setApproved(const DocPosition &pos, bool approved)
Definition: tsstorage.cpp:472
QStringList matchData(const DocPosition &pos) const
user-invisible data for matching, e.g.
Definition: tsstorage.cpp:449
QString & remove(int position, int n)
bool isEmpty() const
int size() const
QDomNode nextSibling() const
QDomElement toElement() const
bool save(QIODevice *device, bool belongsToProject=false)
Definition: tsstorage.cpp:107
int elapsed() const
void append(const T &value)
bool isEquivTrans(const DocPosition &pos) const
Definition: tsstorage.cpp:502
QDomDocument ownerDocument() const
QString text() const
bool hasAttribute(const QString &name) const
static QString content(QDomElement elem, ContentEditingData *data=0)
walks through XLIFF XML and performs actions depending on ContentEditingData:
Definition: tsstorage.cpp:170
void setAttribute(const QString &name, const QString &value)
QDomNodeList elementsByTagName(const QString &tagname) const
bool isEmpty() const
QString source(const DocPosition &pos) const
flat-model interface (ignores XLIFF grouping)
Definition: tsstorage.cpp:279
Definition: tsstorage.cpp:49
void insertData(unsigned long offset, const QString &arg)
virtual void setFeature(const QString &name, bool enable)
Definition: tsstorage.cpp:46
Definition: tsstorage.cpp:46
T & first()
CatalogString targetWithTags(DocPosition pos) const
Definition: tsstorage.cpp:270
Definition: tsstorage.cpp:49
CatalogString catalogString(const DocPosition &pos) const
Definition: tsstorage.cpp:265
QDomText createTextNode(const QString &value)
Definition: tsstorage.cpp:46
QDomNode removeChild(const QDomNode &oldChild)
bool isNull() const
Note setNote(DocPosition pos, const Note ¬e)
pos.form is note number
Definition: tsstorage.cpp:390
void setEquivTrans(const DocPosition &pos, bool equivTrans)
Definition: tsstorage.cpp:507
data structure used to pass info about inline elements a XLIFF tag is represented by a TAGRANGE_IMAGE...
Definition: catalogstring.h:128
void save(QTextStream &str, int indent) const
QDomNode firstChild() const
bool isCharacterData() const
void deleteData(unsigned long offset, unsigned long count)
Definition: tsstorage.cpp:46
QDomNode parentNode() const
QVector< Note > developerNotes(const DocPosition &pos) const
Definition: tsstorage.cpp:374
QDomElement firstChildElement(const QString &tagName) const
QDomElement lastChildElement(const QString &tagName) const
void targetInsert(const DocPosition &pos, const QString &arg)
Definition: tsstorage.cpp:295
static QString doContent(QDomElement elem, int startingPos, ContentEditingData *data)
Definition: tsstorage.cpp:175
void start()
void removeAttribute(const QString &name)
void setTarget(const DocPosition &pos, const QString &arg)
Definition: tsstorage.cpp:319
CatalogString sourceWithTags(DocPosition pos) const
Definition: tsstorage.cpp:274
int size() const
QDomElement createElement(const QString &tagName)
QString id(const DocPosition &pos) const
entry id unique for this file
Definition: tsstorage.cpp:455
QDomCharacterData toCharacterData() const
Definition: tsstorage.cpp:49
QVector< AltTrans > altTrans(const DocPosition &pos) const
Definition: tsstorage.cpp:327
Definition: alttrans.h:30
int numberOfPluralFormsForLangCode(const QString &langCode)
Definition: gettextheader.cpp:151
Definition: tsstorage.cpp:46
QDomNode at(int index) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
void targetDelete(const DocPosition &pos, int count)
edit operations used by undo/redo system and sync-mode
Definition: tsstorage.cpp:289
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
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.