Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
csvim.cpp File Reference
#include "csvim.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, gtWriter *writer)

Function Documentation

QStringList FileExtensions ( )

Definition at line 15 of file csvim.cpp.

{
    return QStringList("csv");
}
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 10 of file csvim.cpp.

{
    return QObject::tr("Comma Separated Value Files");
}
void GetText ( QString  filename,
QString  encoding,
bool  ,
gtWriter *  writer 
)

Definition at line 20 of file csvim.cpp.

{
       CsvDialog* csvdia = new CsvDialog();
       if (csvdia->exec())
       {
              CsvIm *cim = new CsvIm(filename, encoding, writer, csvdia->getFDelim(), csvdia->getVDelim(),
                               csvdia->hasHeader(), csvdia->useVDelim());
              cim->write();
              delete cim;
       }
       delete csvdia;
}