X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_xhtml.h;h=3877fb0c7b1c37b602998d5c8a3dbb9b84559524;hb=2abde5d16254e8aac29e344442b09e6272000f13;hp=529eca92748dcb4359f8a057288df1389676a8d5;hpb=c7d0862a941b620b28cec43dc3226d6bf6b26de9;p=lyx.git diff --git a/src/output_xhtml.h b/src/output_xhtml.h index 529eca9274..3877fb0c7b 100644 --- a/src/output_xhtml.h +++ b/src/output_xhtml.h @@ -4,7 +4,7 @@ * 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. */ @@ -12,29 +12,36 @@ #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); - /// \return true if tag was opened, false if not - bool openTag(odocstream & os, std::string const & tag, - std::string const & attr); - /// \return true if tag was opened, false if not - bool closeTag(odocstream & os, std::string const & tag); -} +/// \return a string appropriate for setting alignment in CSS +/// Does NOT return "justify" for "block" +std::string alignmentToCSS(LyXAlignment align); + } // namespace lyx #endif