2009-06-05 17:49:10 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file output_xhtml.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Richard Heck
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OUTPUT_XHTML_H
|
|
|
|
#define OUTPUT_XHTML_H
|
|
|
|
|
2010-09-15 14:06:36 +00:00
|
|
|
#include "LayoutEnums.h"
|
2013-05-07 04:19:34 +00:00
|
|
|
|
2009-11-19 16:29:57 +00:00
|
|
|
#include "support/docstream.h"
|
2009-11-25 22:18:47 +00:00
|
|
|
#include "support/strfwd.h"
|
2019-05-09 23:35:40 +00:00
|
|
|
#include "xml.h"
|
2009-11-19 16:29:57 +00:00
|
|
|
|
|
|
|
#include <deque>
|
2016-06-02 17:13:55 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2009-06-05 17:49:10 +00:00
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2020-06-15 21:28:27 +00:00
|
|
|
docstring fontToHtmlTag(xml::FontTypes type);
|
|
|
|
docstring fontToHtmlAttribute(xml::FontTypes type);
|
2019-05-09 23:35:40 +00:00
|
|
|
|
2009-06-05 17:49:10 +00:00
|
|
|
class Buffer;
|
|
|
|
class OutputParams;
|
2009-08-09 18:35:39 +00:00
|
|
|
class Text;
|
2009-06-05 17:49:10 +00:00
|
|
|
|
2013-05-07 06:30:26 +00:00
|
|
|
///
|
2019-05-09 23:35:40 +00:00
|
|
|
xml::FontTag xhtmlStartFontTag(xml::FontTypes type);
|
2013-05-07 06:30:26 +00:00
|
|
|
///
|
2019-05-09 23:35:40 +00:00
|
|
|
xml::EndFontTag xhtmlEndFontTag(xml::FontTypes type);
|
2009-11-19 16:29:57 +00:00
|
|
|
|
2009-11-19 16:35:58 +00:00
|
|
|
///
|
|
|
|
void xhtmlParagraphs(Text const & text,
|
|
|
|
Buffer const & buf,
|
2019-05-09 23:35:40 +00:00
|
|
|
XMLStream & xs,
|
2009-11-19 16:35:58 +00:00
|
|
|
OutputParams const & runparams);
|
2009-11-19 16:29:57 +00:00
|
|
|
|
2010-09-15 14:06:36 +00:00
|
|
|
/// \return a string appropriate for setting alignment in CSS
|
|
|
|
/// Does NOT return "justify" for "block"
|
|
|
|
std::string alignmentToCSS(LyXAlignment align);
|
|
|
|
|
2009-06-05 17:49:10 +00:00
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif
|