Disable stack execution on plugins
[claws.git] / src / plugins / litehtml_viewer / litehtml / el_text.h
blob4b8a442f38a34e97dfb6ac64c1c0f2dc40880c46
1 #ifndef LH_EL_TEXT_H
2 #define LH_EL_TEXT_H
4 #include "html_tag.h"
6 namespace litehtml
8 class el_text : public element
10 protected:
11 string m_text;
12 string m_transformed_text;
13 size m_size;
14 bool m_use_transformed;
15 bool m_draw_spaces;
16 public:
17 el_text(const char* text, const document::ptr& doc);
19 void get_text(string& text) override;
20 void compute_styles(bool recursive) override;
21 bool is_text() const override { return true; }
23 void draw(uint_ptr hdc, int x, int y, const position *clip, const std::shared_ptr<render_item> &ri) override;
24 string dump_get_name() override;
25 std::vector<std::tuple<string, string>> dump_get_attrs() override;
26 protected:
27 void get_content_size(size& sz, int max_width) override;
31 #endif // LH_EL_TEXT_H