Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
txtim.cpp File Reference
#include <qobject.h>
#include <qcstring.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qtextcodec.h>
#include "txtim.h"
#include "scribusstructs.h"

Go to the source code of this file.

Functions

QString FileFormatName ()
 Returns the string with importer description.
QStringList FileExtensions ()
void GetText (QString filename, QString encoding, bool textOnly, gtWriter *writer)

Function Documentation

QStringList FileExtensions ( )

Definition at line 23 of file txtim.cpp.

{
    return QStringList("txt");
}
QString FileFormatName ( )

Returns the string with importer description.

Return values:
QStringa string or QString::null when the plugin should not be loaded.

Definition at line 18 of file txtim.cpp.

{
    return QObject::tr("Text Files");
}

Here is the call graph for this function:

void GetText ( QString  filename,
QString  encoding,
bool  textOnly,
gtWriter *  writer 
)

Definition at line 28 of file txtim.cpp.

{
       TxtIm* tim = new TxtIm(filename, encoding, textOnly, writer);
       tim->write();
       delete tim;
}

Here is the call graph for this function: