ContentReader Class Reference
#include <contentreader.h>

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 |
| StyleReader * | sreader |
| gtWriter * | writer |
| gtStyle * | defaultStyle |
| gtStyle * | currentStyle |
| gtStyle * | lastStyle |
| gtStyle * | pstyle |
| bool | importTextOnly |
| bool | append |
| bool | inList |
| bool | inNote |
| bool | inNoteBody |
| bool | inSpan |
| int | listLevel |
| int | listIndex |
| ListStyle * | currentListStyle |
| std::vector< int > | listIndex2 |
| bool | inT |
| std::vector< QString > | styleNames |
| QString | tName |
| QString | currentList |
Static Private Attributes | |
| static ContentReader * | creader = 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 | |||
| ) |
Definition at line 36 of file odtim/contentreader.cpp.
References append, creader, currentList, currentListStyle, currentStyle, defaultStyle, docname, importTextOnly, inList, inNote, inNoteBody, inSpan, inT, listIndex, listLevel, sreader, tName, and writer.
| ContentReader::~ContentReader | ( | ) |
Member Function Documentation
| void ContentReader::write | ( | const QString & | text | ) | [private] |
Definition at line 244 of file odtim/contentreader.cpp.
References gtWriter::append(), currentStyle, importTextOnly, inNote, inNoteBody, inSpan, lastStyle, and writer.
Referenced by characters(), endElement(), and startElement().
| 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] |
Definition at line 344 of file odtim/contentreader.cpp.
References currentStyle, getName(), StyleReader::getStyle(), p, StyleReader::setStyle(), sreader, styleNames, tmap, and StyleReader::updateStyle().
Referenced by startElement().
| 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 | |||
| ) |
Definition at line 58 of file odtim/contentreader.cpp.
References ListStyle::advance(), append, ListStyle::bullet(), currentList, currentListStyle, currentStyle, StyleReader::getList(), gtStyle::getName(), getName(), getStyle(), StyleReader::getStyle(), inList, inNote, inNoteBody, inSpan, inT, listIndex2, listLevel, p, pstyle, ListStyle::setLevel(), sreader, styleNames, tmap, tName, and write().
| bool ContentReader::endElement | ( | const QString & | , | |
| const QString & | , | |||
| const QString & | name | |||
| ) |
Definition at line 190 of file odtim/contentreader.cpp.
References append, currentList, currentListStyle, currentStyle, StyleReader::getList(), getName(), StyleReader::getStyle(), inList, inNote, inNoteBody, inSpan, inT, SpecialChars::LINEBREAK, listIndex2, listLevel, pstyle, ListStyle::resetLevel(), ListStyle::setLevel(), sreader, styleNames, tName, and write().
| 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 51 of file odtim/contentreader.h.
Referenced by characters(), ContentReader(), endElement(), startElement(), and ~ContentReader().
TMap ContentReader::tmap [private] |
QString ContentReader::docname [private] |
StyleReader* ContentReader::sreader [private] |
Definition at line 54 of file odtim/contentreader.h.
Referenced by ContentReader(), endElement(), getStyle(), parse(), and startElement().
gtWriter* ContentReader::writer [private] |
gtStyle* ContentReader::defaultStyle [private] |
Definition at line 56 of file odtim/contentreader.h.
Referenced by ContentReader(), and ~ContentReader().
gtStyle* ContentReader::currentStyle [private] |
Definition at line 57 of file odtim/contentreader.h.
Referenced by ContentReader(), endElement(), getStyle(), startElement(), and write().
gtStyle* ContentReader::lastStyle [private] |
gtStyle* ContentReader::pstyle [private] |
Definition at line 59 of file odtim/contentreader.h.
Referenced by endElement(), and startElement().
bool ContentReader::importTextOnly [private] |
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] |
ListStyle* ContentReader::currentListStyle [private] |
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:
