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"
33 * Escape the given character, if necessary,
36 docstring escapeChar(char_type c);
38 /// Escape a word instead of a single character
39 docstring escapeString(docstring const & raw);
41 /// replaces illegal characters from SGML/XML ID attributes
42 docstring cleanID(Buffer const & buf, OutputParams const & runparams,
43 docstring const & orig);
45 /// returns a unique numeric id
46 docstring const uniqueID(docstring const label);
49 void openTag(odocstream & os, std::string const & name,
50 std::string const & attribute = std::string());
53 void openTag(Buffer const & buf, odocstream & os,
54 OutputParams const & runparams, Paragraph const & par);
57 void closeTag(odocstream & os, std::string const & name);
60 void closeTag(odocstream & os, Paragraph const & par);