diff --git a/modules/web/config.py b/modules/web/config.py index 632a302f1..b09d9bb65 100644 --- a/modules/web/config.py +++ b/modules/web/config.py @@ -50,6 +50,14 @@ def get_doc_classes(): "FormField", "FormValidator", + "HTMLParserAttribute", + "HTMLParserTag", + "HTMLParser", + + "BBCodeParserAttribute", + "BBCodeParserTag", + "BBCodeParser", + "WebServerSimple", "StaticPage", diff --git a/modules/web/html/bbcode_parser.cpp b/modules/web/html/bbcode_parser.cpp index bd14b8968..cbb5ad665 100644 --- a/modules/web/html/bbcode_parser.cpp +++ b/modules/web/html/bbcode_parser.cpp @@ -87,6 +87,27 @@ void BBCodeParserAttribute::_bind_methods() { ClassDB::bind_method(D_METHOD("print"), &BBCodeParserAttribute::print); }; +int BBCodeParserTag::get_type() { + return _type; +} +void BBCodeParserTag::set_type(const int &val) { + _type = val; +} + +String BBCodeParserTag::get_tag() { + return _tag; +} +void BBCodeParserTag::set_tag(const String &val) { + _tag = val; +} + +String BBCodeParserTag::get_data() { + return _data; +} +void BBCodeParserTag::set_data(const String &val) { + _data = val; +} + void BBCodeParserTag::add_child_tag(const Ref &tag) { _tags.push_back(tag); } diff --git a/modules/web/html/html_parser.cpp b/modules/web/html/html_parser.cpp index 5c0044421..f08483864 100644 --- a/modules/web/html/html_parser.cpp +++ b/modules/web/html/html_parser.cpp @@ -35,7 +35,7 @@ bool HTMLParserAttribute::match_all_data(const Vector &d) { // todo return false; } -bool match_all_data_bind(const PoolStringArray &d) { +bool HTMLParserAttribute::match_all_data_bind(const PoolStringArray &d) { // todo return false; } @@ -88,6 +88,27 @@ void HTMLParserAttribute::_bind_methods() { ClassDB::bind_method(D_METHOD("print"), &HTMLParserAttribute::print); }; +int HTMLParserTag::get_type() { + return _type; +} +void HTMLParserTag::set_type(const int &val) { + _type = val; +} + +String HTMLParserTag::get_tag() { + return _tag; +} +void HTMLParserTag::set_tag(const String &val) { + _tag = val; +} + +String HTMLParserTag::get_data() { + return _data; +} +void HTMLParserTag::set_data(const String &val) { + _data = val; +} + void HTMLParserTag::add_child_tag(const Ref &tag) { _tags.push_back(tag); } diff --git a/modules/web/register_types.cpp b/modules/web/register_types.cpp index e67703435..876bc247c 100644 --- a/modules/web/register_types.cpp +++ b/modules/web/register_types.cpp @@ -26,8 +26,10 @@ SOFTWARE. #include "file_cache.h" +#include "html/bbcode_parser.h" #include "html/form_validator.h" #include "html/html_builder_bind.h" +#include "html/html_parser.h" #include "html/paginator.h" #include "http/csrf_token.h" @@ -79,6 +81,14 @@ void register_web_types() { ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); + ClassDB::register_class(); ClassDB::register_class();