]> git.lyx.org Git - lyx.git/blob - src/sgml.h
7c34f5965b76ea8dcc1661db5603fc3e5b2b4d6d
[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 "LString.h"
17
18 #include <algorithm>
19 #include <iosfwd>
20
21 namespace sgml {
22
23 /**
24  * Escape the given character if necessary
25  * to an SGML entity. Returns true
26  * if it was a whitespace character.
27  */
28 std::pair<bool, string> escapeChar(char c);
29
30 /// FIXME
31 int openTag(std::ostream & os, Paragraph::depth_type depth,
32             bool mixcont, string const & latexname);
33
34 /// FIXME
35 int closeTag(std::ostream & os, Paragraph::depth_type depth,
36             bool mixcont, string const & latexname);
37 }
38
39 #endif // SGML_H