editor.h
1
22#ifndef KOMPOSER_EDITOR_H
23#define KOMPOSER_EDITOR_H
24
25#include "plugin.h"
26
27#include <tqstringlist.h>
28
29namespace KParts {
30 class Part;
31}
32
33namespace Komposer {
34
35 class Core;
36
37 class Editor : public Plugin
38 {
39 TQ_OBJECT
40
41 public:
42 enum TextType {
43 Plain = 1 << 0,
44 RichText = 1 << 1,
45 HTML = 1 << 2
46 };
47 virtual ~Editor();
48
53 virtual TQWidget *widget() =0;
54
55 int supportedTextFormats() const;
56
60 virtual TQString text() const =0;
61
66 virtual void select();
67
77 virtual TQStringList configModules() const { return TQStringList(); }
78
79
80 public slots:
86 virtual void setText( const TQString &txt ) =0;
87
92 virtual void changeSignature( const TQString &txt ) =0;
93
94 protected:
95 Editor( TQObject *parent, const char *name, const TQStringList &args );
96
97 private:
98 class Private;
99 Private *d;
100 };
101
102}
103
104#endif
editor.h
attachment.h
Definition: attachment.h:29