Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
pdbim.cpp File Reference
#include <qfiledialog.h>
#include <qcstring.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qtextcodec.h>
#include <qcursor.h>
#include "pdbim.h"
#include "gtwriter.h"
#include "gtparagraphstyle.h"
#include "scribusstructs.h"
#include "scribuscore.h"

Go to the source code of this file.

Functions

static void _zero_fill (Byte *p, int len)
 A dummy 0 filler (helper procedure)
QString FileFormatName ()
 Returns the string with importer description.
QStringList FileExtensions ()
void GetText (QString filename, QString encoding, bool, gtWriter *writer)

Function Documentation

static void _zero_fill ( Byte *  p,
int  len 
) [static]

A dummy 0 filler (helper procedure)

Parameters:
pbinary structure to fill with 0
lenhow much 0 to go

Definition at line 26 of file pdbim.cpp.

{
       while ( len-- > 0 )
              *p++ = '\0';
}

Here is the caller graph for this function:

QStringList FileExtensions ( )

Definition at line 37 of file pdbim.cpp.

{
    return QStringList("pdb");
}
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 32 of file pdbim.cpp.

{
       return QObject::tr("Palm PDB Documents", "PDB Importer");
}

Here is the call graph for this function:

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

Definition at line 42 of file pdbim.cpp.

{
       if (filename.isNull())
              return;
       qApp->setOverrideCursor(QCursor(Qt::WaitCursor), true);
       ScCore->primaryMainWindow()->mainWindowProgressBar->reset();
       PdbIm *im = new PdbIm(filename, encoding, writer);
       im->write();
       delete im;
       ScCore->primaryMainWindow()->mainWindowProgressBar->reset();
       qApp->restoreOverrideCursor();
}

Here is the call graph for this function: