Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

ContentReader Class Reference

#include <contentreader.h>

Collaboration diagram for ContentReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ContentReader (QString documentName, StyleReader *s, gtWriter *w, bool textOnly)
 ~ContentReader ()
bool startElement (const QString &, const QString &, const QString &name, const QXmlAttributes &attrs)
bool endElement (const QString &, const QString &, const QString &name)
bool characters (const QString &ch)
void parse (QString fileName)

Static Public Member Functions

static void startElement (void *user_data, const xmlChar *fullname, const xmlChar **atts)
static void endElement (void *user_data, const xmlChar *name)
static void characters (void *user_data, const xmlChar *ch, int len)

Private Member Functions

void write (const QString &text)
QString getName ()
void getStyle ()

Private Attributes

TMap tmap
QString docname
StyleReadersreader
gtWriterwriter
gtStyledefaultStyle
gtStylecurrentStyle
gtStylelastStyle
gtStylepstyle
bool importTextOnly
bool append
bool inList
bool inNote
bool inNoteBody
bool inSpan
int listLevel
int listIndex
ListStylecurrentListStyle
std::vector< int > listIndex2
bool inT
std::vector< QString > styleNames
QString tName
QString currentList

Static Private Attributes

static ContentReadercreader = NULL


Detailed Description

Definition at line 48 of file odtim/contentreader.h.


Constructor & Destructor Documentation

ContentReader::ContentReader ( QString  documentName,
StyleReader s,
gtWriter w,
bool  textOnly 
)

ContentReader::~ContentReader (  ) 

Definition at line 364 of file odtim/contentreader.cpp.

References creader, and defaultStyle.


Member Function Documentation

void ContentReader::write ( const QString &  text  )  [private]

QString ContentReader::getName (  )  [private]

Definition at line 336 of file odtim/contentreader.cpp.

References styleNames.

Referenced by endElement(), getStyle(), and startElement().

void ContentReader::getStyle (  )  [private]

void ContentReader::startElement ( void *  user_data,
const xmlChar *  fullname,
const xmlChar **  atts 
) [static]

Definition at line 310 of file odtim/contentreader.cpp.

References creader, and startElement().

Referenced by startElement().

void ContentReader::endElement ( void *  user_data,
const xmlChar *  name 
) [static]

Definition at line 329 of file odtim/contentreader.cpp.

References creader, and endElement().

Referenced by endElement().

void ContentReader::characters ( void *  user_data,
const xmlChar *  ch,
int  len 
) [static]

Definition at line 323 of file odtim/contentreader.cpp.

References characters(), and creader.

Referenced by characters().

bool ContentReader::startElement ( const QString &  ,
const QString &  ,
const QString &  name,
const QXmlAttributes &  attrs 
)

bool ContentReader::endElement ( const QString &  ,
const QString &  ,
const QString &  name 
)

bool ContentReader::characters ( const QString &  ch  ) 

Definition at line 179 of file odtim/contentreader.cpp.

References append, SpecialChars::NBSPACE, and write().

void ContentReader::parse ( QString  fileName  ) 

Definition at line 258 of file odtim/contentreader.cpp.

References cSAXHandler, StyleReader::parse(), and sreader.

Referenced by OdtIm::OdtIm().


Member Data Documentation

ContentReader * ContentReader::creader = NULL [static, private]

Definition at line 52 of file odtim/contentreader.h.

Referenced by getStyle(), and startElement().

QString ContentReader::docname [private]

Definition at line 53 of file odtim/contentreader.h.

Referenced by ContentReader().

Definition at line 54 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), getStyle(), parse(), and startElement().

Definition at line 55 of file odtim/contentreader.h.

Referenced by ContentReader(), and write().

Definition at line 56 of file odtim/contentreader.h.

Referenced by ContentReader(), and ~ContentReader().

Definition at line 57 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), getStyle(), startElement(), and write().

Definition at line 58 of file odtim/contentreader.h.

Referenced by write().

Definition at line 59 of file odtim/contentreader.h.

Referenced by endElement(), and startElement().

Definition at line 60 of file odtim/contentreader.h.

Referenced by ContentReader(), and write().

bool ContentReader::append [private]

Definition at line 61 of file odtim/contentreader.h.

Referenced by characters(), ContentReader(), endElement(), and startElement().

bool ContentReader::inList [private]

Definition at line 62 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().

bool ContentReader::inNote [private]

Definition at line 63 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), startElement(), and write().

bool ContentReader::inNoteBody [private]

Definition at line 64 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), startElement(), and write().

bool ContentReader::inSpan [private]

Definition at line 65 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), startElement(), and write().

int ContentReader::listLevel [private]

Definition at line 66 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().

int ContentReader::listIndex [private]

Definition at line 67 of file odtim/contentreader.h.

Referenced by ContentReader().

Definition at line 68 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().

std::vector<int> ContentReader::listIndex2 [private]

Definition at line 69 of file odtim/contentreader.h.

Referenced by endElement(), and startElement().

bool ContentReader::inT [private]

Definition at line 70 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().

std::vector<QString> ContentReader::styleNames [private]

Definition at line 71 of file odtim/contentreader.h.

Referenced by endElement(), getName(), getStyle(), and startElement().

QString ContentReader::tName [private]

Definition at line 72 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().

QString ContentReader::currentList [private]

Definition at line 73 of file odtim/contentreader.h.

Referenced by ContentReader(), endElement(), and startElement().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.