Files
core/HtmlFile2/Writers/IWriter.h
Kirill Polyakov 81ec569f59 Fix bug #80228
2026-02-20 03:55:40 +03:00

38 lines
1.1 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef IWRITER_H
#define IWRITER_H
#include "../../Common/3dParty/html/css/src/CNode.h"
#include "../Common.h"
namespace HTML
{
class IWriter
{
public:
IWriter() = default;
virtual ~IWriter() = default;
virtual void Begin(const std::wstring& wsDst) = 0;
virtual void End(const std::wstring& wsDst) = 0;
virtual bool WriteText(std::wstring wsText, const std::vector<NSCSS::CNode>& arSelectors) = 0;
virtual void WriteEmptyParagraph(bool bVahish = false, bool bInP = false) = 0;
virtual void PageBreak() = 0;
virtual void BeginBlock() = 0;
virtual void EndBlock(bool bAddBlock) = 0;
virtual void SetDataOutput(XmlString* pOutputData) = 0; // Задаем место вывода для интерпретатора
virtual void RevertDataOutput() = 0; // Возвращаем место вывода к исходному
virtual XmlString* GetCurrentDocument() const = 0;
//TODO:: перенести разруливание вложенных таблиц в конвертацию после изменения принципа работы с таблицами
virtual bool SupportNestedTables() const = 0;
};
}
#endif // IWRITER_H