Cogs.Core
el_before_after.h
1#ifndef LH_EL_BEFORE_AFTER_H
2#define LH_EL_BEFORE_AFTER_H
3
4#include "html_tag.h"
5
6namespace litehtml
7{
9 {
10 public:
11 el_before_after_base(const std::shared_ptr<litehtml::document>& doc, bool before);
12 virtual ~el_before_after_base();
13
14 virtual void add_style(const litehtml::style& st) override;
15 virtual void apply_stylesheet(const litehtml::css& stylesheet) override;
16 private:
17 void add_text(const tstring& txt);
18 void add_function(const tstring& fnc, const tstring& params);
19 tchar_t convert_escape(const tchar_t* txt);
20 };
21
23 {
24 public:
25 el_before(const std::shared_ptr<litehtml::document>& doc) : el_before_after_base(doc, true)
26 {
27
28 }
29 };
30
32 {
33 public:
34 el_after(const std::shared_ptr<litehtml::document>& doc) : el_before_after_base(doc, false)
35 {
36
37 }
38 };
39}
40
41#endif // LH_EL_BEFORE_AFTER_H