mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Added html to md conversion for some tags
This commit is contained in:
33
HtmlFile2/Writers/IWriter.h
Normal file
33
HtmlFile2/Writers/IWriter.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef IWRITER_H
|
||||
#define IWRITER_H
|
||||
|
||||
#include "../../Common/3dParty/html/css/src/CNode.h"
|
||||
#include "HTMLParams.h"
|
||||
#include "../Common.h"
|
||||
|
||||
namespace HTML
|
||||
{
|
||||
class IWriter
|
||||
{
|
||||
public:
|
||||
IWriter() = default;
|
||||
virtual ~IWriter() = default;
|
||||
|
||||
virtual void Begin(const std::wstring& wsDst, const THtmlParams* pParams) = 0;
|
||||
virtual void End(const std::wstring& wsDst) = 0;
|
||||
|
||||
virtual bool WriteText(const std::wstring& wsText, const std::vector<NSCSS::CNode>& arSelectors) = 0;
|
||||
|
||||
virtual void WriteEmptyParagraph(bool bVahish = false, bool bInP = false) = 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;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // IWRITER_H
|
||||
Reference in New Issue
Block a user