79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
#include "htmlprint.h"
|
|
|
|
using namespace example_novel;
|
|
using namespace printer;
|
|
|
|
Access::Access(std::shared_ptr<ast_gen::ElementAccess> handle) :access_handle(handle) {}
|
|
|
|
std::shared_ptr<ast_gen::ElementAccess> Access::accessPeers() const { return access_handle; }
|
|
|
|
void Access::setHtmlRefer(const QString& href) { this->refers_store = href; }
|
|
|
|
QString Access::htmlRefer() const { return this->refers_store; }
|
|
|
|
Element::Element(std::shared_ptr<ast_gen::ElementAccess> handle) :Access(handle) {}
|
|
|
|
std::shared_ptr<Element> Element::siblingNext() const {
|
|
return this->sibling_store;
|
|
}
|
|
|
|
void Element::setNext(std::shared_ptr<Element> inst) {
|
|
this->sibling_store = inst;
|
|
}
|
|
|
|
Group::Group(std::shared_ptr<ast_gen::ElementAccess> handle) : Access(handle) {}
|
|
|
|
void Group::setChild(std::shared_ptr<Element> elm) {
|
|
this->element_store = elm;
|
|
}
|
|
|
|
std::shared_ptr<Element> Group::element() const {
|
|
return this->element_store;
|
|
}
|
|
|
|
StoryLine::StoryLine(std::shared_ptr<ast_gen::ElementAccess> handle) :Group(handle) {}
|
|
|
|
QString printer::StoryLine::toHTML() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
StoryVolume::StoryVolume(std::shared_ptr<ast_gen::ElementAccess> handle) : Group(handle) {}
|
|
|
|
QString printer::StoryVolume::toHTML() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
FragmentRef::FragmentRef(std::shared_ptr<ast_gen::ElementAccess> handle) : Element(handle) {}
|
|
|
|
QString printer::FragmentRef::toOutsideHTML() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
QString printer::FragmentRef::toDefinitionHTML() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
Fragment::Fragment(std::shared_ptr<ast_gen::ElementAccess> handle) : Element(handle) {}
|
|
|
|
void printer::Fragment::appendRefers(std::shared_ptr<FragmentRef> inst) {
|
|
this->additionals_store.append(inst);
|
|
}
|
|
|
|
QList<std::shared_ptr<FragmentRef>> printer::Fragment::additionals() const {
|
|
return this->additionals_store;
|
|
}
|
|
|
|
QString printer::Fragment::toOutsideHTML() const
|
|
{
|
|
return QString();
|
|
}
|
|
|
|
QString printer::Fragment::toDefinitionHTML() const
|
|
{
|
|
return QString();
|
|
}
|