26#include <tqvaluevector.h>
28#include <KoPageLayout.h>
42 Data(KoFilterChain *, const DRect &pageRect, KoPageLayout,
45 TQDomElement createElement( const TQString &name)
46 { return _document.createElement(name); }
47 void createParagraph( const TQString &text, ParagraphType type,
48 const TQValueVector<TQDomElement> &layouts,
49 const TQValueVector<TQDomElement> &formats);
51 KoFilterChain *chain() const { return _chain; }
52 const Options &options() const { return _options; }
53 TQDomDocument document() const { return _document; }
54 const DRect &pageRect() const { return _pageRect; }
55 uint imageIndex() const { return _imageIndex; }
56 uint textIndex() const { return _textIndex; }
57 TQDomElement bookmarks() const { return _bookmarks; }
58 TQDomElement pictures() const { return _pictures; }
60 TQDomElement pictureFrameset( const DRect &);
62 void initPage( const TQValueVector<DRect> &,
63 const TQValueList<TQDomElement> &pictures);
70 enum FramesetType { Text, Picture };
71 TQDomElement createFrameset(FramesetType, const TQString &name);
72 TQDomElement createFrame(FramesetType, const DRect &,
73 bool forceMainFrameset);
76 KoFilterChain *_chain;
77 TQDomDocument _document;
78 uint _imageIndex, _textIndex;
79 TQDomElement _mainElement, _framesets, _pictures, _bookmarks, _paper;
80 TQValueVector<TQDomElement> _textFramesets;
81 DRect _pageRect, _marginRect;
82 const Options &_options;
|