Photon 1.0.0
Loading...
Searching...
No Matches
el_before_after.h
Go to the documentation of this file.
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<document>& doc, bool before);
12
13 void add_style(const style& style) override;
14 private:
15 void add_text(const string& txt);
16 void add_function(const string& fnc, const string& params);
17 static string convert_escape(const char* txt);
18 };
19
21 {
22 public:
23 explicit el_before(const std::shared_ptr<document>& doc) : el_before_after_base(doc, true)
24 {
25
26 }
27 };
28
30 {
31 public:
32 explicit el_after(const std::shared_ptr<document>& doc) : el_before_after_base(doc, false)
33 {
34
35 }
36 };
37}
38
39#endif // LH_EL_BEFORE_AFTER_H
Definition el_before_after.h:30
el_after(const std::shared_ptr< document > &doc)
Definition el_before_after.h:32
Definition el_before_after.h:9
void add_style(const style &style) override
Definition el_before_after.cpp:13
void add_function(const string &fnc, const string &params)
Definition el_before_after.cpp:141
static string convert_escape(const char *txt)
Definition el_before_after.cpp:209
void add_text(const string &txt)
Definition el_before_after.cpp:81
Definition el_before_after.h:21
el_before(const std::shared_ptr< document > &doc)
Definition el_before_after.h:23
Definition html_tag.h:18
Definition style.h:40
Definition background.h:12