filters

Document Class Reference

#include <document.h>

Inheritance diagram for Document:

XmlParser XmlParser Config List of all members.

Detailed Description

This class hold a whole document with its headers, footers, footnotes, endnotes, content, .

.. It can generate a latex file.

Definition at line 34 of file kspread/latex/export/document.h.


Public Types

enum  EGenerate { E_LATEX, E_KWORD, E_CONFIG }
typedef const wvWare::FunctorBase * FunctorPtr

Public Member Functions

 Document (const KoStore *in, QString fileOut)
virtual ~Document ()
void analyse ()
void generate ()
 Document ()
virtual ~Document ()
SType getTypeFrameset (const QDomNode)
void analyse (const QDomNode)
void analysePixmaps (const QDomNode)
void generate (QTextStream &, bool)
ElementsearchAnchor (QString)
ElementsearchFootnote (QString)
KeysearchKey (QString keyName)
QString extractData (QString key)
 Document ()
 ~Document ()
bool analyse (QPtrList< Element > *elt)
bool analyseDocumentClass (Command *documentclass)
bool generate (KoStore *store)
void serialize (KoStore *store, QDomDocument tree)
 Document (const std::string &fileName, QDomDocument &mainDocument, QDomDocument &documentInfo, QDomElement &framesetsElement, KoFilterChain *chain)
bool hasParser () const
bool bodyFound () const
virtual void bodyStart ()
virtual void bodyEnd ()
virtual void headerStart (wvWare::HeaderData::Type type)
virtual void headerEnd ()
virtual void footnoteStart ()
virtual void footnoteEnd ()
bool parse ()
void processSubDocQueue ()
void finishDocument ()
KoStoreDevice * createPictureFrameSet (const KoSize &size)

Protected Slots

void slotFirstSectionFound (wvWare::SharedPtr< const wvWare::Word97::SEP >)
void slotSubDocFound (const wvWare::FunctorBase *functor, int data)
void slotTableFound (const KWord::Table &table)
void slotPictureFound (const QString &frameName, const QString &pictureName, const wvWare::FunctorBase *)
void slotTableCellStart (int row, int column, int rowSize, int columnSize, const KoRect &cellRect, const QString &tableName, const wvWare::Word97::BRC &brcTop, const wvWare::Word97::BRC &brcBottom, const wvWare::Word97::BRC &brcLeft, const wvWare::Word97::BRC &brcRight, const wvWare::Word97::SHD &shd)
void slotTableCellEnd ()

Classes

struct  SubDocument

Constructor & Destructor Documentation

Document::Document ( const KoStore *  in,
QString  fileOut 
)

Parameters:
in tar file.

Parameters:
fileOut Output latex filename.

Definition at line 28 of file kspread/latex/export/document.cc.

Document::Document (  ) 

Constructor.

Creates a new instance of Document.

Definition at line 39 of file kword/latex/export/document.cc.

virtual Document::~Document (  )  [virtual]

Destructor.

Remove the list of headers, footers and the body.


Member Function Documentation

SType Document::getTypeFrameset ( const   QDomNode  ) 

Returns:
the next frame type (header, footer, body, footnote).

Definition at line 179 of file kword/latex/export/document.cc.

QString Document::extractData ( QString  key  ) 

Save the file in a temp file.

Definition at line 416 of file kword/latex/export/document.cc.

bool Document::analyse ( QPtrList< Element > *  elt  ) 

Analyse the latex tree and keep data.

Parameters:
elt The root tree which contaisn an entire latex document.
Returns:
false/code> if the analyse failed.

Definition at line 30 of file kword/latex/import/generator/document.cc.

bool Document::analyseDocumentClass ( Command documentclass  ) 

Analyse and get all information in a documentclass command.

Definition at line 40 of file kword/latex/import/generator/document.cc.

bool Document::generate ( KoStore *  store  ) 

Generate a kword document.

Parameters:
store The kword document zip file.
Returns:
true if the generation success.

Definition at line 56 of file kword/latex/import/generator/document.cc.

void Document::serialize ( KoStore *  store,
QDomDocument  tree 
)

Copy the DOM tree in a file.

Parameters:
out The doc store where to write the tree.
tree The tree to copy.
indent The tabulation to indent the XML tree.

Definition at line 85 of file kword/latex/import/generator/document.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys