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.
|
|
|
|
*
|
2020-12-05 22:17:02 +00:00
|
|
|
* \author Richard Kimberly Heck
|
2009-06-05 17:49:10 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
2019-05-09 23:35:40 +00:00
|
|
|
#include "xml.h"
|
2009-11-19 16:29:57 +00:00
|
|
|
|
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
|