* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Richard Heck
+ * \author Richard Kimberly Heck
*
* Full author contact details are available in file CREDITS.
*/
#ifndef OUTPUT_XHTML_H
#define OUTPUT_XHTML_H
+#include "LayoutEnums.h"
+
#include "support/strfwd.h"
+#include "xml.h"
+
namespace lyx {
+docstring fontToHtmlTag(xml::FontTypes type);
+docstring fontToHtmlAttribute(xml::FontTypes type);
+
class Buffer;
class OutputParams;
-class ParagraphList;
+class Text;
///
-void xhtmlParagraphs(ParagraphList const & subset,
+xml::FontTag xhtmlStartFontTag(xml::FontTypes type);
+///
+xml::EndFontTag xhtmlEndFontTag(xml::FontTypes type);
+
+///
+void xhtmlParagraphs(Text const & text,
Buffer const & buf,
- odocstream & os,
+ XMLStream & xs,
OutputParams const & runparams);
-namespace html {
- docstring escapeChar(char_type c);
- void openTag(odocstream & os, std::string tag, std::string attr);
- void closeTag(odocstream & os, std::string tag);
-}
+/// \return a string appropriate for setting alignment in CSS
+/// Does NOT return "justify" for "block"
+std::string alignmentToCSS(LyXAlignment align);
+
} // namespace lyx
#endif