4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
16 #include "support/types.h"
17 #include "support/docstream.h"
30 * Escape the given character, if necessary,
31 * to an SGML entity. Returns true
32 * if it was a whitespace character.
34 std::pair<bool, std::string> escapeChar(char c);
36 /// Escape a word instead of a single character
37 std::string escapeString(std::string const & raw);
39 /// replaces illegal characters from SGML/XML ID attributes
40 std::string cleanID(Buffer const & buf, OutputParams const & runparams,
41 std::string const & orig);
43 /// returns a unique numeric id
44 std::string const uniqueID(std::string const label);
47 void openTag(lyx::odocstream & os, std::string const & name,
48 std::string const & attribute = std::string());
51 void openTag(Buffer const & buf, lyx::odocstream & os,
52 OutputParams const & runparams, Paragraph const & par);
55 void closeTag(lyx::odocstream & os, std::string const & name);
58 void closeTag(lyx::odocstream & os, Paragraph const & par);