diff options
Diffstat (limited to 'src/fileexporterrtf.cpp')
-rw-r--r-- | src/fileexporterrtf.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/fileexporterrtf.cpp b/src/fileexporterrtf.cpp index 2ed0c49..77b541a 100644 --- a/src/fileexporterrtf.cpp +++ b/src/fileexporterrtf.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 <settings.h> #include <element.h> @@ -30,9 +30,9 @@ namespace BibTeX FileExporterRTF::FileExporterRTF() : FileExporterToolchain(), m_latexLanguage( "english" ), m_latexBibStyle( "plain" ) { - laTeXFilename = QString( workingDir ).append( "/bibtex-to-rtf.tex" ); - bibTeXFilename = QString( workingDir ).append( "/bibtex-to-rtf.bib" ); - outputFilename = QString( workingDir ).append( "/bibtex-to-rtf.rtf" ); + laTeXFilename = TQString( workingDir ).append( "/bibtex-to-rtf.tex" ); + bibTeXFilename = TQString( workingDir ).append( "/bibtex-to-rtf.bib" ); + outputFilename = TQString( workingDir ).append( "/bibtex-to-rtf.rtf" ); } FileExporterRTF::~FileExporterRTF() @@ -40,12 +40,12 @@ namespace BibTeX // nothing } - bool FileExporterRTF::save( QIODevice* iodevice, const File* bibtexfile, QStringList *errorLog ) + bool FileExporterRTF::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 FileExporterRTF::save( QIODevice* iodevice, const Element* element, QStringList *errorLog ) + bool FileExporterRTF::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,19 +82,19 @@ namespace BibTeX return result; } - void FileExporterRTF::setLaTeXLanguage( const QString& language ) + void FileExporterRTF::setLaTeXLanguage( const TQString& language ) { m_latexLanguage = language; } - void FileExporterRTF::setLaTeXBibliographyStyle( const QString& bibStyle ) + void FileExporterRTF::setLaTeXBibliographyStyle( const TQString& bibStyle ) { m_latexBibStyle = bibStyle; } - bool FileExporterRTF::generateRTF( QIODevice* iodevice, QStringList *errorLog ) + bool FileExporterRTF::generateRTF( TQIODevice* iodevice, TQStringList *errorLog ) { - QStringList cmdLines = QStringList::split( '|', "latex bibtex-to-rtf.tex|bibtex bibtex-to-rtf|latex bibtex-to-rtf.tex|latex2rtf bibtex-to-rtf.tex" ); + TQStringList cmdLines = TQStringList::split( '|', "latex bibtex-to-rtf.tex|bibtex bibtex-to-rtf|latex bibtex-to-rtf.tex|latex2rtf bibtex-to-rtf.tex" ); if ( writeLatexFile( laTeXFilename ) && runProcesses( cmdLines, errorLog ) && writeFileToIODevice( outputFilename, iodevice ) ) return TRUE; @@ -102,13 +102,13 @@ namespace BibTeX return FALSE; } - bool FileExporterRTF::writeLatexFile( const QString &filename ) + bool FileExporterRTF::writeLatexFile( const TQString &filename ) { - QFile latexFile( filename ); + TQFile latexFile( filename ); if ( latexFile.open( IO_WriteOnly ) ) { - QTextStream ts( &latexFile ); - ts.setEncoding( QTextStream::UnicodeUTF8 ); + TQTextStream ts( &latexFile ); + ts.setEncoding( TQTextStream::UnicodeUTF8 ); ts << "\\documentclass{article}\n"; if ( kpsewhich( "t1enc.dfu" ) ) ts << "\\usepackage[T1]{fontenc}\n"; |