]> git.lyx.org Git - lyx.git/blob - src/sgml.h
copy some code over to allow work to start on prefs
[lyx.git] / src / sgml.h
1 /**
2  * \file sgml.h
3  * Copyright 2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author José Matos
7  * \author John Levon <levon@movementarian.org>
8  */
9
10 #ifndef SGML_H
11 #define SGML_H
12  
13 #include "LString.h"
14  
15 #include <algorithm>
16 #include <iosfwd>
17  
18 namespace sgml {
19
20 /**
21  * Escape the given character if necessary
22  * to an SGML entity. Returns true
23  * if it was a whitespace character.
24  */
25 std::pair<bool, string> escapeChar(char c);
26
27 /// FIXME
28 int openTag(std::ostream & os, Paragraph::depth_type depth,
29             bool mixcont, string const & latexname);
30
31 /// FIXME
32 int closeTag(std::ostream & os, Paragraph::depth_type depth,
33             bool mixcont, string const & latexname);
34 }
35
36 #endif // SGML_H