kpimtextedit/richtextbuilders
kmarkupdirector.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KMARKUPDIRECTOR_H
00024 #define KMARKUPDIRECTOR_H
00025
00026
00027 #include "kabstractmarkupbuilder.h"
00028 #include <QTextDocument>
00029 class QTextFrame;
00030 class QTextTable;
00031 class QTextTableCell;
00032 class QTextList;
00033 class QTextCharFormat;
00034
00068 class KMarkupDirector
00069 {
00070 public:
00074 KMarkupDirector(KAbstractMarkupBuilder* builder);
00075
00077 virtual ~KMarkupDirector();
00078
00082 virtual void constructContent(QTextDocument* doc);
00083
00084 protected:
00085
00089 void processFrame(QTextFrame *frame);
00090
00094 void processTable(QTextTable *table);
00095
00099 void processTableCell(const QTextTableCell &cell);
00100
00105 void processList(const QTextBlock &block);
00106
00128 void processBlockContents(const QTextBlock &block);
00129
00133 void processDocumentContents(QTextFrame::iterator start, QTextFrame::iterator end);
00134
00143 void processBlock(const QTextBlock &block);
00144
00150 void processFragment(const QTextFragment &fragment);
00151
00152 private:
00153 class Private;
00154 friend class Private;
00155 Private *const d;
00156 };
00157
00158 #endif