]> git.lyx.org Git - lyx.git/blob - src/sgml.h
d3377e77df4c2d5d3caa0688a6210bc840b240b7
[lyx.git] / src / sgml.h
1 // -*- C++ -*-
2 /**
3  * \file sgml.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author José Matos
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef SGML_H
14 #define SGML_H
15
16 #include "paragraph.h"
17
18 #include "LString.h"
19 #include <algorithm>
20 #include <iosfwd>
21
22 namespace sgml {
23
24 /**
25  * Escape the given character if necessary
26  * to an SGML entity. Returns true
27  * if it was a whitespace character.
28  */
29 std::pair<bool, string> escapeChar(char c);
30
31 /// FIXME
32 int openTag(std::ostream & os, Paragraph::depth_type depth,
33             bool mixcont, string const & latexname);
34
35 /// FIXME
36 int closeTag(std::ostream & os, Paragraph::depth_type depth,
37             bool mixcont, string const & latexname);
38 }
39
40 #endif // SGML_H