filters

#include <document.h>

Inheritance diagram for Document:
XmlParser Config XmlParser

Public Types

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

Public Member Functions

 Document (const KoStore *in, TQString fileOut)
void analyse ()
void generate ()
 Document ()
virtual ~Document ()
SType getTypeFrameset (const TQDomNode)
void analyse (const TQDomNode)
void analysePixmaps (const TQDomNode)
void generate (TQTextStream &, bool)
Element * searchAnchor (TQString)
Element * searchFootnote (TQString)
Key * searchKey (TQString keyName)
TQString extractData (TQString key)
bool analyse (TQPtrList< Element > *elt)
bool analyseDocumentClass (Command *documentclass)
bool generate (KoStore *store)
void serialize (KoStore *store, TQDomDocument tree)
 Document (const std::string &fileName, TQDomDocument &mainDocument, TQDomDocument &documentInfo, TQDomElement &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)
Public Member Functions inherited from XmlParser
 XmlParser (TQString)
 XmlParser (TQByteArray)
 XmlParser (const KoStore *)
TQString getFilename () const
TQString getDocument () const
Document * getRoot () const
FileHeader * getFileHeader () const
TQString getChildName (TQDomNode, int)
TQDomNode getChild (TQDomNode, TQString)
TQDomNode getChild (TQDomNode, TQString, int)
TQDomNode getChild (TQDomNode, int)
TQString getData (TQDomNode, int)
TQString getData (TQDomNode, TQString)
int getNbChild (TQDomNode, TQString)
int getNbChild (TQDomNode)
TQString getAttr (TQDomNode, TQString) const
bool isChild (TQDomNode, TQString)
void setFileHeader (FileHeader *h)
void setRoot (Document *r)
TQDomNode init ()
 XmlParser (Config *, TQString)
 XmlParser (Config *, TQByteArray)
 XmlParser (Config *, const KoStore *)
TQString getFilename () const
TQString getDocument () const
Document * getRoot () const
KoStore * getStorage () const
TQString getChildName (TQDomNode, int)
TQDomNode getChild (TQDomNode, TQString)
TQDomNode getChild (TQDomNode, TQString, int)
TQDomNode getChild (TQDomNode, int)
TQString getData (TQDomNode, int)
int getNbChild (TQDomNode, TQString)
int getNbChild (TQDomNode)
TQString getAttr (TQDomNode, TQString) const
bool isChild (TQDomNode, TQString)
void setRoot (Document *r)
TQDomNode init ()

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 TQString &frameName, const TQString &pictureName, const wvWare::FunctorBase *)
void slotTableCellStart (int row, int column, int rowSize, int columnSize, const KoRect &cellRect, const TQString &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 ()

Additional Inherited Members

Static Protected Attributes inherited from XmlParser
static FileHeader * _fileHeader = 0
static Document * _root = 0
static TQString _filename

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.

Member Typedef Documentation

◆ FunctorPtr

typedef const wvWare::FunctorBase* Document::FunctorPtr

Definition at line 78 of file kword/msword/document.h.

Member Enumeration Documentation

◆ EGenerate

enum Document::EGenerate

Definition at line 43 of file kword/latex/export/document.h.

Constructor & Destructor Documentation

◆ Document() [1/4]

Document::Document ( const KoStore * in,
TQString fileOut )
Parameters
intar file.
fileOutOutput latex filename.

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

◆ ~Document() [1/3]

Document::~Document ( )
virtual

Definition at line 40 of file kspread/latex/export/document.cpp.

◆ Document() [2/4]

Document::Document ( )

Constructor.

Creates a new instance of Document.

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

◆ ~Document() [2/3]

virtual Document::~Document ( )
virtual

Destructor.

Remove the list of headers, footers and the body.

◆ Document() [3/4]

Document::Document ( )
inline

Definition at line 34 of file kword/latex/import/generator/document.h.

◆ ~Document() [3/3]

Document::~Document ( )
inline

Definition at line 38 of file kword/latex/import/generator/document.h.

◆ Document() [4/4]

Document::Document ( const std::string & fileName,
TQDomDocument & mainDocument,
TQDomDocument & documentInfo,
TQDomElement & framesetsElement,
KoFilterChain * chain )

Definition at line 43 of file kword/msword/document.cpp.

Member Function Documentation

◆ analyse() [1/3]

void Document::analyse ( )

Definition at line 45 of file kspread/latex/export/document.cpp.

◆ analyse() [2/3]

void Document::analyse ( const TQDomNode balise)

Definition at line 54 of file kword/latex/export/document.cpp.

◆ analyse() [3/3]

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

Analyse the latex tree and keep data.

Parameters
eltThe 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.cpp.

◆ analyseDocumentClass()

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.cpp.

◆ analysePixmaps()

void Document::analysePixmaps ( const TQDomNode balise)

Definition at line 162 of file kword/latex/export/document.cpp.

◆ bodyEnd()

void Document::bodyEnd ( )
virtual

Definition at line 244 of file kword/msword/document.cpp.

◆ bodyFound()

bool Document::bodyFound ( ) const
inline

Definition at line 61 of file kword/msword/document.h.

◆ bodyStart()

void Document::bodyStart ( )
virtual

Definition at line 225 of file kword/msword/document.cpp.

◆ createPictureFrameSet()

KoStoreDevice * Document::createPictureFrameSet ( const KoSize & size)

Definition at line 488 of file kword/msword/document.cpp.

◆ extractData()

TQString Document::extractData ( TQString key)

Save the file in a temp file.

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

◆ finishDocument()

void Document::finishDocument ( )

Definition at line 85 of file kword/msword/document.cpp.

◆ footnoteEnd()

void Document::footnoteEnd ( )
virtual

Definition at line 342 of file kword/msword/document.cpp.

◆ footnoteStart()

void Document::footnoteStart ( )
virtual

Definition at line 319 of file kword/msword/document.cpp.

◆ generate() [1/3]

void Document::generate ( )

Definition at line 54 of file kspread/latex/export/document.cpp.

◆ generate() [2/3]

bool Document::generate ( KoStore * store)

Generate a kword document.

Parameters
storeThe kword document zip file.
Returns
true if the generation success.

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

◆ generate() [3/3]

void Document::generate ( TQTextStream & out,
bool hasPreambule )

Definition at line 189 of file kword/latex/export/document.cpp.

◆ getTypeFrameset()

SType Document::getTypeFrameset ( const TQDomNode balise)

Accessors.

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

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

◆ hasParser()

bool Document::hasParser ( ) const
inline

Definition at line 60 of file kword/msword/document.h.

◆ headerEnd()

void Document::headerEnd ( )
virtual

Definition at line 314 of file kword/msword/document.cpp.

◆ headerStart()

void Document::headerStart ( wvWare::HeaderData::Type type)
virtual

Definition at line 289 of file kword/msword/document.cpp.

◆ parse()

bool Document::parse ( )

Definition at line 218 of file kword/msword/document.cpp.

◆ processSubDocQueue()

void Document::processSubDocQueue ( )

Definition at line 457 of file kword/msword/document.cpp.

◆ searchAnchor()

Element * Document::searchAnchor ( TQString anchor)

Definition at line 359 of file kword/latex/export/document.cpp.

◆ searchFootnote()

Element * Document::searchFootnote ( TQString footnote)

Definition at line 389 of file kword/latex/export/document.cpp.

◆ searchKey()

Key * Document::searchKey ( TQString keyName)

Definition at line 402 of file kword/latex/export/document.cpp.

◆ serialize()

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

Copy the DOM tree in a file.

Parameters
outThe doc store where to write the tree.
treeThe tree to copy.
indentThe tabulation to indent the XML tree.

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

◆ slotFirstSectionFound

void Document::slotFirstSectionFound ( wvWare::SharedPtr< const wvWare::Word97::SEP > sep)
protectedslot

Definition at line 252 of file kword/msword/document.cpp.

◆ slotPictureFound

void Document::slotPictureFound ( const TQString & frameName,
const TQString & pictureName,
const wvWare::FunctorBase * pictureFunctor )
protectedslot

Definition at line 450 of file kword/msword/document.cpp.

◆ slotSubDocFound

void Document::slotSubDocFound ( const wvWare::FunctorBase * functor,
int data )
protectedslot

Definition at line 439 of file kword/msword/document.cpp.

◆ slotTableCellEnd

void Document::slotTableCellEnd ( )
protectedslot

Definition at line 369 of file kword/msword/document.cpp.

◆ slotTableCellStart

void Document::slotTableCellStart ( int row,
int column,
int rowSize,
int columnSize,
const KoRect & cellRect,
const TQString & 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 )
protectedslot

Definition at line 348 of file kword/msword/document.cpp.

◆ slotTableFound

void Document::slotTableFound ( const KWord::Table & table)
protectedslot

Definition at line 445 of file kword/msword/document.cpp.


The documentation for this class was generated from the following files: