21#ifndef KWEF_KWORDLEADER_H
22#define KWEF_KWORDLEADER_H
24#include <tqiodevice.h>
26#include <KoFilterChain.h>
28#include "KWEFStructures.h"
29#include "KWEFBaseWorker.h"
30#include <koffice_export.h>
32class KOFFICEFILTER_EXPORT KWEFKWordLeader
35 KWEFKWordLeader( void);
37 virtual ~KWEFKWordLeader( void);
41 KoFilter::ConversionStatus convert( KoFilterChain* chain,
42 const TQCString& from, const TQCString& to);
44 void createBookmarkFormatData( ParaData& paraData );
46 bool loadSubFile( const TQString& fileName, TQByteArray& array);
47 TQIODevice* getSubFileDevice( const TQString& fileName);
49 bool doFullDocumentInfo ( const KWEFDocumentInfo &docInfo);
51 bool doFullDocument ( const TQValueList<ParaData> &);
52 bool doPageInfo ( const int headerType, const int footerType);
53 bool doFullPaperFormat ( const int format, const double width, const double height, const int orientation);
54 bool doFullPaperBorders ( const double top, const double left, const double bottom, const double right);
59 bool doFullPaperFormatOther ( const int columns, const double columnspacing, const int numPages );
60 bool doOpenHead ( void);
61 bool doCloseHead ( void);
62 bool doOpenBody ( void);
63 bool doCloseBody ( void);
64 bool doOpenStyles ( void);
65 bool doCloseStyles ( void);
67 bool doOpenSpellCheckIgnoreList ( void);
68 bool doCloseSpellCheckIgnoreList ( void);
69 bool doFullSpellCheckIgnoreWord ( const TQString& ignoreword);
70 bool doHeader( const HeaderData&);
71 bool doFooter( const FooterData&);
72 bool doDeclareNonInlinedFramesets( TQValueList<FrameAnchor>& pictureAnchors, TQValueList<FrameAnchor>& tableAnchors );
74 TQValueList<FootnoteData> footnoteList;
76 void setHeaderType( int hType) { m_hType = hType; }
77 void setFooterType( int fType) { m_fType = fType; }
78 int headerType() { return m_hType; }
79 int footerType() { return m_fType; }
82 bool doOpenFile ( const TQString& filenameOut, const TQString& to);
83 bool doCloseFile ( void);
84 bool doAbortFile ( void);
85 bool doOpenDocument ( void);
86 bool doCloseDocument ( void);
93 TQString m_currentFramesetName;
95 TQMap<TQString,int> m_paraCountMap;
97 TQValueList<Bookmark> m_bookmarkList;
98 TQStringList m_unanchoredFramesets;
99 TQValueList<FrameAnchor> m_nonInlinedPictureAnchors;
100 TQValueList<FrameAnchor> m_nonInlinedTableAnchors;
103 KoFilterChain* m_chain;
104 int m_hType, m_fType;
Base worker of the libexport system.
see <VARIABLESETTINGS> in the KWord DTD
|