2022-06-25 01:55:54 +02:00
|
|
|
#include "html_builder_bind.h"
|
|
|
|
#include "core/print_string.h"
|
|
|
|
#include "core/ustring.h"
|
|
|
|
|
|
|
|
//#include "web/http/request.h"
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::str(const String &str) {
|
2022-06-25 01:55:54 +02:00
|
|
|
result += " " + str;
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::style(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("style", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::href(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("href", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::cls(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("class", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::clsse(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val == "") {
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
attrib("class", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::id(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("id", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::name(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("name", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::content(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("content", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::value(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("value", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::accept(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("accept", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::src(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("src", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::alt(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("alt", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_off() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "off");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_on() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "on");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_prefix() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "honorific-prefix");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_given_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "given-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_additional_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "additional-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_family_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "family-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_suffix() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "honorific-suffix");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_name_nickname() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "nickname");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_email() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "email");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_username() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "username");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_new_password() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "new-password");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_current_password() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "current-password");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_one_time_code() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "one-time-code");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_organization_title() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "organization-title");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_organization() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "organization");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_street_address() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "street-address");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line1() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-line1");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line2() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-line2");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line3() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-line3");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_1() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-level1");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_2() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-level2");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_3() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-level3");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_4() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "address-level4");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_country() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "country");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_country_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "country-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_postal_code() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "postal-code");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_given_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-given-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_additional_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-additional-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_family_name() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-family-name");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_number() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-number");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-exp");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_month() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-exp-month");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_year() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-exp-year");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_csc() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-csc");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_type() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "cc-type");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_currency() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "transaction-currency");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_amount() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "transaction-amount");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_language() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "language");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_bday() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "bday");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_day() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "bday-day");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_month() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "bday-month");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_year() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "bday-year");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_sex() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "sex");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_country_code() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel-country-code");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_national() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel-national");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_area_code() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel-area-code");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_local() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel-local");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_extension() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "tel-extension");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_impp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "impp");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_url() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "url");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autocomplete_photo() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("autocomplete", "photo");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::onclick(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("onclick", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::list(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("list", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::checked(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " checked";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::selected(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " selected";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::autofocus(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " autofocus";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::disabled(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " disabled";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::multiple(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " multiple";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::required(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
result += " required";
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::spellcheck(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (val) {
|
|
|
|
attrib("spellcheck", "true");
|
|
|
|
} else {
|
|
|
|
attrib("spellcheck", "false");
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::max(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("max", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::min(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("min", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::step(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("step", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::step_any() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("step", "any");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::minlength(const int val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("minlength", String::num(val));
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::minlength(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("minlength", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::maxlength(const int val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("maxlength", String::num(val));
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::maxlength(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("maxlength", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::size(const int val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("size", String::num(val));
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::size(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("size", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::width(const int val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("width", String::num(val));
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::width(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("width", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::height(const int val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("height", String::num(val));
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::height(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("height", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::pattern(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("pattern", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::method(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("method", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::method_get() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("method", "get");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::method_post() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("method", "post");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::action(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("action", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::type(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::placeholder(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("placeholder", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::fora(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("for", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_stylesheet() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "stylesheet");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_alternate() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "alternate");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_author() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "author");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_bookmark() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "bookmark");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_external() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "external");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_help() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "help");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_next() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "next");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_nofollow() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "nofollow");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_noopener() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "noopener");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_noreferrer() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "noreferrer");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_prev() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "prev");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_search() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "search");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::rel_tag() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("rel", "tag");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::charset(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("charset", val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::charset_utf_8() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("charset", "utf-8");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itbutton() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "button");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itcheckbox() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "checkbox");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itcolor() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "color");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itdate() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "date");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itdatetime_local() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "datetime_local");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itemail() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "email");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itfile() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "file");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::ithidden() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "hidden");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itimage() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "image");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itmonth() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "month");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itnumber() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "number");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itpassword() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "password");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itradio() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "radio");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itrange() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "range");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itreset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "reset");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itsearch() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "search");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itsubmit() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "submit");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::ittel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "tel");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::ittext() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "text");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::ittime() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "time");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::iturl() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "url");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::itweek() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("type", "week");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_none() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "none");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_text() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "text");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_decimal() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "decimal");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_numeric() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "numeric");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_tel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "tel");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_search() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "search");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_email() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "email");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::inputmode_url() {
|
2022-06-25 01:55:54 +02:00
|
|
|
attrib("inputmode", "url");
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::attrib(const String &attr, const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
result += " " + attr + "=\"" + val + "\"";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::start(const String &p_tag, const bool p_simple) {
|
2022-06-25 01:55:54 +02:00
|
|
|
simple = p_simple;
|
|
|
|
|
|
|
|
result = "<" + p_tag;
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::reset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
result.clear();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLTag::close() {
|
|
|
|
if (simple) {
|
2022-06-25 01:55:54 +02:00
|
|
|
result += "/>";
|
2022-06-25 11:58:55 +02:00
|
|
|
} else {
|
2022-06-25 01:55:54 +02:00
|
|
|
result += ">";
|
2022-06-25 11:58:55 +02:00
|
|
|
}
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLTag>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLTag::f() {
|
2022-06-25 01:55:54 +02:00
|
|
|
return owner;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool _HTMLTag::has_data() {
|
|
|
|
return result.size() > 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
_HTMLTag::_HTMLTag() {
|
|
|
|
simple = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void _HTMLTag::_bind_methods() {
|
|
|
|
ClassDB::bind_method(D_METHOD("style", "val"), &_HTMLTag::style);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:29:50 +02:00
|
|
|
String _HTMLBuilder::get_result() {
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
void _HTMLBuilder::set_result(const String &str) {
|
|
|
|
result = str;
|
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::comment(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += "<!--" + val + "-->";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::doctype() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("!DOCTYPE");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::doctype(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += "<!DOCTYPE " + val + ">";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::a() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("a");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::abbr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("abbr");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::acronym() { // Not supported in HTML5. Use <abbr> instead. Defines an acronym
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("acronym");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::address() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("address");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::applet() { // Not supported in HTML5. Use <embed> or <object> instead. Defines an embedded applet
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("applet");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::area() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("area");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::article() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("article");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::aside() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("aside");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::audio() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("audio");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::b() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("b");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::basefont() { // Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("basefont");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::bdi() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("bdi");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::bdo() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("bdo");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::big() { // Not supported in HTML5. Use CSS instead. Defines big text
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("big");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::blockquote() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("blockquote");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::body() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("body");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::br() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("br", true);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::button() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("button");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::canvas() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("canvas");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::caption() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("caption");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::center() { // Not supported in HTML5. Use CSS instead. Defines centered text
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("center");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::cite() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("cite");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::code() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("code");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::col() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("col");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::colgroup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("colgroup");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::data() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("cite");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::datalist() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("datalist");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dd() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dd");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::del() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("del");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::details() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("details");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dfn() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dfn");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dialog() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dialog");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dir() { // Not supported in HTML5. Use <ul> instead.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dir");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::div() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("div");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dl() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dl");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::dt() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("dt");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::em() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("em");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::embed() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("embed");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::fieldset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("fieldset");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::figcaption() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("figcaption");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::figure() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("figure");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::font() { // Not supported in HTML5.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("font");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::footer() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("footer");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::form() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("form");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::frame() { // Not supported in HTML5.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("frame");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::frameset() { // Not supported in HTML5.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("frameset");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h1() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h1");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h2() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h2");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h3() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h3");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h4() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h4");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h5() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h5");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::h6() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("h6");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::head() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("head");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::header() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("header");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::hr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("hr");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::html() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("html");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::i() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("i");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::iframe() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("iframe");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::img() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("img");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::ins() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("ins");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::kbd() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("kbd");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::label() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("label");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::legend() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("legend");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::li() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("li");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::link() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("link");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::main() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("main");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::map() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("map");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::mark() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("mark");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::meta() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("meta");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::meter() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("meter");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::nav() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("nav");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::noframes() { // Not supported in HTML5.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("noframes");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::noscript() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("noscript");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::object() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("object");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::ol() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("ol");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::optgroup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("optgroup");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::option() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("option");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::output() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("output");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::p() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("p");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::param() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("param");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::picture() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("picture");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::pre() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("pre");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::progress() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("progress");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::q() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("q");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::rp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("rp");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::rt() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("rt");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::ruby() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("ruby");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::s() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("s");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::samp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("samp");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::script() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("script");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::section() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("section");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::select() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("select");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::small() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("small");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::source() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("source");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::span() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("span");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::strike() { // Not supported in HTML5
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("strike");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::strong() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("strong");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::style() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("style");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::sub() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("sub");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::summary() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("summary");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::sup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("sup");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::svg() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("svg");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::table() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("table");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::tbody() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("tbody");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::td() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("td");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::templateh() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("template");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::textarea() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("textarea");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::tfoot() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("tfoot");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::th() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("th");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::thead() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("thead");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::time() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("time");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::title() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("title");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::tr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("tr");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::track() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("track");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::tt() { // Not supported in HTML5.
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("tt");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::u() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("u");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::ul() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("ul");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::var() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("var");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::video() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("video");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::wbr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("wbr");
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
//Ref<_HTMLBuilder> _HTMLBuilder::a(const String &href, const String &cls, const String &id) {
|
2022-06-25 01:55:54 +02:00
|
|
|
/*
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> t = a();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->href(href);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
*/
|
2022-06-25 12:26:48 +02:00
|
|
|
// return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
//}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::fa(const String &href, const String &body, const String &cls, const String &id) {
|
2022-06-25 01:55:54 +02:00
|
|
|
//a(href, cls, id);
|
|
|
|
w(body);
|
|
|
|
ca();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::div(const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = div();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::fdiv(const String &body, const String &cls, const String &id) {
|
2022-06-25 01:55:54 +02:00
|
|
|
div(cls, id);
|
|
|
|
w(body);
|
|
|
|
cdiv();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::textarea(const String &name, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = textarea();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ftextarea(const String &name, const String &body, const String &cls, const String &id) {
|
2022-06-25 01:55:54 +02:00
|
|
|
textarea(name, cls, id);
|
|
|
|
w(body);
|
|
|
|
ctextarea();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::select(const String &name, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = select();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::option(const String &value) {
|
|
|
|
Ref<_HTMLTag> t = option();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->value(value);
|
|
|
|
|
|
|
|
return t;
|
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::foption(const String &value, const String &body, const bool selected) {
|
2022-06-25 01:55:54 +02:00
|
|
|
option(value)->selected(selected);
|
|
|
|
w(body);
|
|
|
|
coption();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Closing tags
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ca() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</a>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cabbr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</abbr>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cacronym() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</acronym>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::caddress() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</address>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::capplet() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</applet>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::carea() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</area>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::carticle() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</article>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::caside() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</aside>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::caudio() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</audio>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cb() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</b>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbasefont() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</basefont>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbdi() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</bdi>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbdo() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</bdo>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbig() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</big>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cblockquote() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</blockquote>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbody() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</body>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cbutton() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</button>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccanvas() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</canvas>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccaption() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</caption>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccenter() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</center>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccite() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</cite>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccode() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</code>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccol() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</col>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ccolgroup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</colgroup>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdata() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</data>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdatalist() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</datalist>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdd() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dd>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</del>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdetails() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</details>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdfn() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dfn>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdialog() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dialog>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdir() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dir>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdiv() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</div>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdl() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dl>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cdt() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</dt>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cem() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</em>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cembed() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</embed>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cfieldset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</fieldset>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cfigcaption() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</figcaption>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cfigure() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</figure>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cfont() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</font>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cfooter() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</footer>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cform() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</form>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cframe() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</frame>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cframeset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</frameset>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch1() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h1>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch2() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h2>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch3() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h3>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch4() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h4>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch5() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h5>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ch6() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</h6>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::chead() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</head>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cheader() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</header>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::chr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</hr>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::chtml() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</html>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ci() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</i>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ciframe() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</iframe>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cimg() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</img>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cinput() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</input>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cins() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</ins>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ckbd() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</kbd>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::clabel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</label>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::clegend() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</legend>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cli() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</li>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::clink() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</link>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cmain() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</main>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cmap() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</map>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cmark() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</mark>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cmeta() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</meta>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cmeter() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</meter>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cnav() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</nav>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cnoframes() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</noframes>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cnoscript() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</noscript>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cobject() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</object>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::c_ol() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</ol>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::coptgroup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</optgroup>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::coption() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</option>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::coutput() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</output>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</p>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cparam() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</param>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cpicture() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</picture>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cpre() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</pre>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cprogress() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</progress>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cq() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</a>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::crp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</rp>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::crt() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</rt>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cruby() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</ruby>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cs() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</s>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csamp() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</samp>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cscript() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</script>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csection() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</section>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cselect() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</select>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csmall() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</small>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csource() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</source>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cspan() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</span>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cstrike() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</strike>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cstrong() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</strong>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cstyle() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</style>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csub() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</sub>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csummary() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</summary>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csup() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</sup>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csvg() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</svg>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctable() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</table>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctbody() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</tbody>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctd() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</td>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctemplateh() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</templateh>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctextarea() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</textarea>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctfoot() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</tfoot>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cth() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</th>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cthead() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</thead>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctime() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</time>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctitle() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</title>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</tr>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctrack() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</track>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::ctt() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</tt>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cu() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</u>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cul() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</ul>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cvar() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</var>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cvideo() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</video>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::cwbr() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
result += "</wbr>";
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::form_get() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("form")->method_get();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::form_post() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("form")->method_post();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::form_get(const String &action, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = form_get();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->fora(action);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::form_post(const String &action, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = form_post();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->action(action);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::form_post(const String &action, Request *request, const String &cls, const String &id) {
|
2022-06-25 01:55:54 +02:00
|
|
|
form_post(action, cls, id);
|
|
|
|
csrf_token(request);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_button() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itbutton();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_checkbox() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itcheckbox();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_color() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itcolor();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_date() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itdate();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_datetime_local() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itdatetime_local();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_email() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itemail();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_file() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itfile();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_hidden() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->ithidden();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_image() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itimage();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_month() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itmonth();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_number() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itnumber();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_password() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itpassword();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_radio() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itradio();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_range() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itrange();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_reset() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itreset();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_search() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itsearch();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_submit() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itsubmit();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_tel() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->ittel();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_text() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->ittext();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_time() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->ittime();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_url() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->iturl();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLTag> _HTMLBuilder::input_week() {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
return tag->start("input")->itweek();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::label(const String &pfor, const String &plabel, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = label();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->fora(pfor);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
w(plabel);
|
|
|
|
|
|
|
|
clabel();
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_button(const String &name, const String &value, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_button();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_checkbox(const String &name, const String &value, const bool checked, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_checkbox();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
t->checked(checked);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_color(const String &name, const String &value, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_color();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_date(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) {
|
|
|
|
Ref<_HTMLTag> t = input_date();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_min != "") {
|
|
|
|
t->min(date_min);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_max != "") {
|
|
|
|
t->max(date_max);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_step != "") {
|
|
|
|
t->step(date_step);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_datetime_local(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) {
|
|
|
|
Ref<_HTMLTag> t = input_datetime_local();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_min != "") {
|
|
|
|
t->min(date_min);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_max != "") {
|
|
|
|
t->max(date_max);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (date_step != "") {
|
|
|
|
t->step(date_step);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_email(const String &name, const String &value, const String &placeholder, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_email();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_file(const String &name, const String &accept, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_file();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (accept != "") {
|
|
|
|
t->accept(accept);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_image(const String &name, const String &src, const String &alt, const String &cls, const String &id, const int width, const int height) {
|
|
|
|
Ref<_HTMLTag> t = input_image();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (src != "") {
|
|
|
|
t->src(src);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (alt != "") {
|
|
|
|
t->alt(alt);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (width != 0) {
|
|
|
|
t->width(width);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (height != 0) {
|
|
|
|
t->height(height);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_month(const String &name, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_month();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_number(const String &name, const String &vmin, const String &vmax, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_number();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (vmin != "") {
|
|
|
|
t->min(vmin);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmax != "") {
|
|
|
|
t->max(vmax);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_password(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) {
|
|
|
|
Ref<_HTMLTag> t = input_password();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (minlength != "") {
|
|
|
|
t->minlength(minlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (maxlength != "") {
|
|
|
|
t->maxlength(maxlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size != "") {
|
|
|
|
t->size(size);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_radio(const String &name, const String &value, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_password();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_range(const String &name, const String &value, const String &vmin, const String &vmax, const String &vstep, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_range();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmin != "") {
|
|
|
|
t->min(vmin);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmax != "") {
|
|
|
|
t->max(vmax);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vstep != "") {
|
|
|
|
t->step(vstep);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_reset(const String &name, const String &value, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_reset();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_search(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) {
|
|
|
|
Ref<_HTMLTag> t = input_search();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (minlength != "") {
|
|
|
|
t->minlength(minlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (maxlength != "") {
|
|
|
|
t->maxlength(maxlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size != "") {
|
|
|
|
t->size(size);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pattern != "") {
|
|
|
|
t->pattern(pattern);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_submit(const String &value, const String &cls, const String &id) {
|
|
|
|
Ref<_HTMLTag> t = input_submit();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->value(value);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_tel(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) {
|
|
|
|
Ref<_HTMLTag> t = input_tel();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (minlength != "") {
|
|
|
|
t->minlength(minlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (maxlength != "") {
|
|
|
|
t->maxlength(maxlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size != "") {
|
|
|
|
t->size(size);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pattern != "") {
|
|
|
|
t->pattern(pattern);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_text(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) {
|
|
|
|
Ref<_HTMLTag> t = input_text();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (minlength != "") {
|
|
|
|
t->minlength(minlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (maxlength != "") {
|
|
|
|
t->maxlength(maxlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size != "") {
|
|
|
|
t->size(size);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_time(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax, const String &vstep) {
|
|
|
|
Ref<_HTMLTag> t = input_time();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmin != "") {
|
|
|
|
t->min(vmin);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmax != "") {
|
|
|
|
t->max(vmax);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vstep != "") {
|
|
|
|
t->step(vstep);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_url(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) {
|
|
|
|
Ref<_HTMLTag> t = input_url();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (placeholder != "") {
|
|
|
|
t->placeholder(placeholder);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (minlength != "") {
|
|
|
|
t->minlength(minlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (maxlength != "") {
|
|
|
|
t->maxlength(maxlength);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (size != "") {
|
|
|
|
t->size(size);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_week(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax) {
|
|
|
|
Ref<_HTMLTag> t = input_week();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (cls != "") {
|
|
|
|
t->cls(cls);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (id != "") {
|
|
|
|
t->id(id);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmin != "") {
|
|
|
|
t->min(vmin);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vmax != "") {
|
|
|
|
t->max(vmax);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::input_hidden(const String &name, const String &value) {
|
|
|
|
Ref<_HTMLTag> t = input_hidden();
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
t->name(name);
|
|
|
|
|
|
|
|
if (value != "") {
|
|
|
|
t->value(value);
|
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csrf_token(const String &token) {
|
2022-06-25 01:55:54 +02:00
|
|
|
if (token == "") {
|
|
|
|
// don't waste html characters if it's an empty string anyway
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input_hidden("csrf_token", token);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
/*
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::csrf_token(Request *request) {
|
2022-06-25 01:55:54 +02:00
|
|
|
return csrf_token(request->get_csrf_token());
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
void _HTMLBuilder::f() {
|
|
|
|
write_tag();
|
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::w(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += val;
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wn(const double val, int p_decimals) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += String::num(val, p_decimals);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wns(const double val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += String::num_scientific(val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wr(const double val, const bool p_trailing) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
//TODO
|
|
|
|
//result += String::num_real(val, p_trailing);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wi(const int64_t val, const int base, const bool capitalize_hex) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += String::num_int64(val, base, capitalize_hex);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wui(const uint64_t val, const int base, const bool capitalize_hex) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += String::num_uint64(val, base, capitalize_hex);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wbn(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
//TODO
|
|
|
|
//result += String::bool_num(val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::wbs(const bool val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
write_tag();
|
|
|
|
|
|
|
|
//TODO
|
|
|
|
//result += String::bool_str(val);
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO!
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::we(const String &val) {
|
2022-06-25 01:55:54 +02:00
|
|
|
//print_error("_HTMLBuilder::write_excaped NYI!");
|
|
|
|
|
|
|
|
write_tag();
|
|
|
|
|
|
|
|
result += val;
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 11:58:55 +02:00
|
|
|
Ref<_HTMLBuilder> _HTMLBuilder::write_tag() {
|
|
|
|
if (tag->has_data()) {
|
|
|
|
tag->close();
|
|
|
|
result += tag->result;
|
|
|
|
tag->reset();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
2022-06-25 12:26:48 +02:00
|
|
|
return Ref<_HTMLBuilder>(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
_HTMLBuilder::_HTMLBuilder() {
|
2022-06-25 11:58:55 +02:00
|
|
|
tag.instance();
|
|
|
|
tag->owner.reference_ptr(this);
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
_HTMLBuilder::~_HTMLBuilder() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void _HTMLBuilder::_bind_methods() {
|
|
|
|
ClassDB::bind_method(D_METHOD("a"), &_HTMLBuilder::a);
|
2022-06-25 11:58:55 +02:00
|
|
|
//Ref<_HTMLTag> a();
|
2022-06-25 01:55:54 +02:00
|
|
|
}
|