diff options
Diffstat (limited to 'src/gui_htmlattrtext.hh')
| -rw-r--r-- | src/gui_htmlattrtext.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui_htmlattrtext.hh b/src/gui_htmlattrtext.hh index 91e1cc1..96b0447 100644 --- a/src/gui_htmlattrtext.hh +++ b/src/gui_htmlattrtext.hh @@ -7,10 +7,23 @@ class HtmlAttributedText : public AttributedText { public: + class Listener { + public: + virtual ~Listener() {} + + virtual void changed(HtmlAttributedText* text) = 0; + + protected: + Listener() {} + }; + static HtmlAttributedText* create(); virtual std::string html() const = 0; + virtual void add_listener(Listener* listener) = 0; + virtual void remove_listener(Listener* listener) = 0; + protected: HtmlAttributedText() {} }; |
