Initial commit.
This commit is contained in:
commit
59c6161fdb
134 changed files with 4751 additions and 0 deletions
12
src/web/html/HtmlDocument.cpp
Normal file
12
src/web/html/HtmlDocument.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "HtmlDocument.h"
|
||||
|
||||
HtmlDocument::HtmlDocument()
|
||||
: XmlDocument()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::shared_ptr<HtmlDocument> HtmlDocument::Create()
|
||||
{
|
||||
return std::make_shared<HtmlDocument>();
|
||||
}
|
14
src/web/html/HtmlDocument.h
Normal file
14
src/web/html/HtmlDocument.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
#include <memory>
|
||||
#include "XmlDocument.h"
|
||||
|
||||
class HtmlDocument : public XmlDocument
|
||||
{
|
||||
public:
|
||||
|
||||
HtmlDocument();
|
||||
|
||||
static std::shared_ptr<HtmlDocument> Create();
|
||||
};
|
||||
|
||||
using HtmlDocumentPtr = std::shared_ptr<HtmlDocument>;
|
0
src/web/html/HtmlDomManager.cpp
Normal file
0
src/web/html/HtmlDomManager.cpp
Normal file
0
src/web/html/HtmlDomManager.h
Normal file
0
src/web/html/HtmlDomManager.h
Normal file
11
src/web/html/HtmlElement.cpp
Normal file
11
src/web/html/HtmlElement.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "HtmlElement.h"
|
||||
|
||||
HtmlElement::HtmlElement()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static std::shared_ptr<HtmlElement> HtmlElement::Create()
|
||||
{
|
||||
return std::make_shared<HtmlElement>();
|
||||
}
|
12
src/web/html/HtmlElement.h
Normal file
12
src/web/html/HtmlElement.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
#include <memory>
|
||||
#include "XmlElement.h"
|
||||
|
||||
class HtmlElement : public XmlElement
|
||||
{
|
||||
HtmlElement();
|
||||
|
||||
static std::shared_ptr<HtmlElement> Create();
|
||||
};
|
||||
|
||||
using HtmlElementPtr = std::shared_ptr<HtmlElement>;
|
11
src/web/html/HtmlWriter.cpp
Normal file
11
src/web/html/HtmlWriter.cpp
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "HtmlWriter.h"
|
||||
|
||||
HtmlWriter::HtmlWriter()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::string HtmlWriter::ToString(HtmlDocumentPtr document)
|
||||
{
|
||||
return "<html>Uh oh!!!!</html>";
|
||||
}
|
12
src/web/html/HtmlWriter.h
Normal file
12
src/web/html/HtmlWriter.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include "HtmlDocument.h"
|
||||
|
||||
class HtmlWriter
|
||||
{
|
||||
public:
|
||||
|
||||
HtmlWriter();
|
||||
|
||||
std::string ToString(HtmlDocumentPtr document);
|
||||
};
|
0
src/web/html/elements/HtmlBodyElement.cpp
Normal file
0
src/web/html/elements/HtmlBodyElement.cpp
Normal file
0
src/web/html/elements/HtmlBodyElement.h
Normal file
0
src/web/html/elements/HtmlBodyElement.h
Normal file
0
src/web/html/elements/HtmlHeadElement.cpp
Normal file
0
src/web/html/elements/HtmlHeadElement.cpp
Normal file
0
src/web/html/elements/HtmlHeadElement.h
Normal file
0
src/web/html/elements/HtmlHeadElement.h
Normal file
0
src/web/html/elements/HtmlParagraphElement.cpp
Normal file
0
src/web/html/elements/HtmlParagraphElement.cpp
Normal file
0
src/web/html/elements/HtmlParagraphElement.h
Normal file
0
src/web/html/elements/HtmlParagraphElement.h
Normal file
Loading…
Add table
Add a link
Reference in a new issue