]> git.lyx.org Git - lyx.git/blob - src/output_xhtml.h
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / output_xhtml.h
1 // -*- C++ -*-
2 /**
3  * \file output_xhtml.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Richard Kimberly Heck
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef OUTPUT_XHTML_H
13 #define OUTPUT_XHTML_H
14
15 #include "LayoutEnums.h"
16
17 #include "support/strfwd.h"
18 #include "xml.h"
19
20
21 namespace lyx {
22
23 docstring fontToHtmlTag(xml::FontTypes type);
24 docstring fontToHtmlAttribute(xml::FontTypes type);
25
26 class Buffer;
27 class OutputParams;
28 class Text;
29
30 ///
31 xml::FontTag xhtmlStartFontTag(xml::FontTypes type);
32 ///
33 xml::EndFontTag xhtmlEndFontTag(xml::FontTypes type);
34
35 ///
36 void xhtmlParagraphs(Text const & text,
37                        Buffer const & buf,
38                        XMLStream & xs,
39                        OutputParams const & runparams);
40
41 /// \return a string appropriate for setting alignment in CSS
42 /// Does NOT return "justify" for "block"
43 std::string alignmentToCSS(LyXAlignment align);
44
45 } // namespace lyx
46
47 #endif