]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.h
Add Sam Crawley to credits.
[lyx.git] / src / output_xhtml.h
index a3b8eb824e90468b7b5c75d337312b1db3eeee04..e9ca2716b84a0c2ff60b3264c41683a82091c21f 100644 (file)
 #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 Text;
 
+///
+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);
-       /// converts a string to a form safe for links, etc
-       docstring htmlize(docstring const & str);
-       /// \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