From 2c12c0652d2b8c8440e1e908f004826840ed14ab Mon Sep 17 00:00:00 2001
From: Aleksey Veresov
"); + } +} + +void TexoProducerHTML::Put(const TexoCode &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put("
"); + } +} + +void TexoProducerHTML::Put(const TexoQuote &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put(""); + } +} + +void TexoProducerHTML::Put(const TexoMono &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put("
"); + } +} + +void TexoProducerHTML::Put(const TexoBold &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put(""); + } +} + +void TexoProducerHTML::Put(const TexoItalic &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put(""); + } +} + +void TexoProducerHTML::Put(const TexoUnderline &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put(""); + } +} + +void TexoProducerHTML::Put(const TexoStrike &piece) +{ + if (piece.closing) { + exporter.Put(""); + } else { + exporter.Put("
"); + } +} + +void TexoProducerHTML::Put(const TexoImage &piece) +{ + if (piece.path != "") { + bool link = piece.link != ""; + bool title = piece.title != ""; + if (link) { + exporter.Put(""); + } + exporter.Put(""); + if (link) { + exporter.Put(""); + } + } +} + +void TexoProducerHTML::Put(const TexoLink &piece) +{ + if (piece.text != "" && piece.link != "") { + exporter.Put(""); + exporter.Put(piece.text); + exporter.Put(""); + } +} + +void TexoProducerHTML::Put(const TexoLineBreak &piece) +{ + exporter.Put("
"); +} + +void TexoProducerHTML::Put(const TexoHorizontalRule &piece) +{ + exporter.Put("
"); +} + + +TexoImporterHTML::TexoImporterHTML(TexoProducer &producer): + TexoImporter(producer) +{} + +void TexoImporterHTML::Put(char c) +{ // TODO + producer.Put(Texo(c)); +} -- cgit v1.2.3