diff options
Diffstat (limited to 'src/translators/bibtexmlexporter.cpp')
-rw-r--r-- | src/translators/bibtexmlexporter.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/translators/bibtexmlexporter.cpp b/src/translators/bibtexmlexporter.cpp index 85934b2..23f84f9 100644 --- a/src/translators/bibtexmlexporter.cpp +++ b/src/translators/bibtexmlexporter.cpp @@ -28,7 +28,7 @@ #include <tqvbox.h> #include <tqdom.h> #include <tqregexp.h> -#include <tqtextcodec.h> +#include <textcodec.h> using Tellico::Export::BibtexmlExporter; @@ -53,7 +53,7 @@ bool BibtexmlExporter::exec() { // the key specifies the cite-key TQString keyField; - const TQString bibtex = TQString::tqfromLatin1("bibtex"); + const TQString bibtex = TQString::fromLatin1("bibtex"); // keep a list of all the 'ordinary' fields to iterate through later Data::FieldVec fields; Data::FieldVec vec = coll->fields(); @@ -69,28 +69,28 @@ bool BibtexmlExporter::exec() { } TQDomImplementation impl; - TQDomDocumentType doctype = impl.createDocumentType(TQString::tqfromLatin1("file"), + TQDomDocumentType doctype = impl.createDocumentType(TQString::fromLatin1("file"), TQString(), XML::dtdBibtexml); //default namespace const TQString& ns = XML::nsBibtexml; - TQDomDocument dom = impl.createDocument(ns, TQString::tqfromLatin1("file"), doctype); + TQDomDocument dom = impl.createDocument(ns, TQString::fromLatin1("file"), doctype); // root element TQDomElement root = dom.documentElement(); - TQString encodeStr = TQString::tqfromLatin1("version=\"1.0\" encoding=\""); + TQString encodeStr = TQString::fromLatin1("version=\"1.0\" encoding=\""); if(options() & Export::ExportUTF8) { - encodeStr += TQString::tqfromLatin1("UTF-8"); + encodeStr += TQString::fromLatin1("UTF-8"); } else { - encodeStr += TQString::tqfromLatin1(TQTextCodec::codecForLocale()->mimeName()); + encodeStr += TQString::fromLatin1(TQTextCodec::codecForLocale()->mimeName()); } encodeStr += '"'; // createDocument creates a root node, insert the processing instruction before it - dom.insertBefore(dom.createProcessingInstruction(TQString::tqfromLatin1("xml"), encodeStr), root); - TQString comment = TQString::tqfromLatin1("Generated by Tellico ") + TQString::tqfromLatin1(VERSION); + dom.insertBefore(dom.createProcessingInstruction(TQString::fromLatin1("xml"), encodeStr), root); + TQString comment = TQString::fromLatin1("Generated by Tellico ") + TQString::fromLatin1(VERSION); dom.insertBefore(dom.createComment(comment), root); Data::ConstFieldPtr field; @@ -115,8 +115,8 @@ bool BibtexmlExporter::exec() { key = newKey; usedKeys.add(key); - btElem = dom.createElement(TQString::tqfromLatin1("entry")); - btElem.setAttribute(TQString::tqfromLatin1("id"), key); + btElem = dom.createElement(TQString::fromLatin1("entry")); + btElem.setAttribute(TQString::fromLatin1("id"), key); root.appendChild(btElem); type = entryIt->field(typeField); @@ -149,12 +149,12 @@ bool BibtexmlExporter::exec() { elemName == Latin1Literal("editor") || elemName == Latin1Literal("keywords")) { if(elemName == Latin1Literal("author")) { - parElemName = TQString::tqfromLatin1("authorlist"); + parElemName = TQString::fromLatin1("authorlist"); } else if(elemName == Latin1Literal("editor")) { - parElemName = TQString::tqfromLatin1("editorlist"); + parElemName = TQString::fromLatin1("editorlist"); } else { // keywords - parElemName = TQString::tqfromLatin1("keywords"); - elemName = TQString::tqfromLatin1("keyword"); + parElemName = TQString::fromLatin1("keywords"); + elemName = TQString::fromLatin1("keyword"); } parentElem = dom.createElement(parElemName); |