summaryrefslogtreecommitdiffstats
path: root/src/fileexporterdocbook5.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-06-29 12:56:53 +0200
committerSlávek Banko <[email protected]>2013-07-04 03:11:35 +0200
commit5f5e7c5455d52826b0bd50f64fcffb7695ce970d (patch)
treec8ee8792d3fb139365abbf70c2255f1e69d2aa34 /src/fileexporterdocbook5.cpp
parent251c9a439759c830d34c70683d0fc9454d703010 (diff)
downloadkbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.tar.gz
kbibtex-5f5e7c5455d52826b0bd50f64fcffb7695ce970d.zip
Initial TQt conversion
Diffstat (limited to 'src/fileexporterdocbook5.cpp')
-rw-r--r--src/fileexporterdocbook5.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/fileexporterdocbook5.cpp b/src/fileexporterdocbook5.cpp
index 7a962b6..b776391 100644
--- a/src/fileexporterdocbook5.cpp
+++ b/src/fileexporterdocbook5.cpp
@@ -17,8 +17,8 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qfile.h>
-#include <qstringlist.h>
+#include <ntqfile.h>
+#include <ntqstringlist.h>
#include <file.h>
#include <fileexporterbibtex.h>
@@ -27,11 +27,11 @@
namespace BibTeX
{
- FileExporterDocBook5::FileExporterDocBook5( const QString& classPath )
+ FileExporterDocBook5::FileExporterDocBook5( const TQString& classPath )
: FileExporterToolchain(), m_classPath( classPath )
{
- bibTeXFilename = QString( workingDir ).append( "/bibtex-to-docbook5.bib" );
- outputFilename = QString( workingDir ).append( "/bibtex-to-docbook5.bib.xml" );
+ bibTeXFilename = TQString( workingDir ).append( "/bibtex-to-docbook5.bib" );
+ outputFilename = TQString( workingDir ).append( "/bibtex-to-docbook5.bib.xml" );
}
@@ -40,12 +40,12 @@ namespace BibTeX
// nothing
}
- bool FileExporterDocBook5::save( QIODevice* iodevice, const File* bibtexfile, QStringList *errorLog )
+ bool FileExporterDocBook5::save( TQIODevice* iodevice, const File* bibtexfile, TQStringList *errorLog )
{
m_mutex.lock();
bool result = FALSE;
- QFile bibtexFile( bibTeXFilename );
+ TQFile bibtexFile( bibTeXFilename );
if ( bibtexFile.open( IO_WriteOnly ) )
{
FileExporter * bibtexExporter = new FileExporterBibTeX();
@@ -61,12 +61,12 @@ namespace BibTeX
return result;
}
- bool FileExporterDocBook5::save( QIODevice* iodevice, const Element* element, QStringList *errorLog )
+ bool FileExporterDocBook5::save( TQIODevice* iodevice, const Element* element, TQStringList *errorLog )
{
m_mutex.lock();
bool result = FALSE;
- QFile bibtexFile( bibTeXFilename );
+ TQFile bibtexFile( bibTeXFilename );
if ( bibtexFile.open( IO_WriteOnly ) )
{
FileExporter * bibtexExporter = new FileExporterBibTeX();
@@ -82,9 +82,9 @@ namespace BibTeX
return result;
}
- bool FileExporterDocBook5::runBib2Db5( QIODevice* iodevice, QStringList *errorLog )
+ bool FileExporterDocBook5::runBib2Db5( TQIODevice* iodevice, TQStringList *errorLog )
{
- QStringList cmdLine;
+ TQStringList cmdLine;
cmdLine << "java" << "-cp" << m_classPath << "net.sf.bib2db5.DB5Converter" << "-O" << "." << "bibtex-to-docbook5.bib";
if ( runProcess( cmdLine, errorLog ) && writeFileToIODevice( outputFilename, iodevice ) )