2003-08-23 00:17:00 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-08-09 00:42:12 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file sgml.h
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-08-09 00:42:12 +00:00
|
|
|
|
*
|
|
|
|
|
* \author Jos<EFBFBD> Matos
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author John Levon
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-08-09 00:42:12 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef SGML_H
|
|
|
|
|
#define SGML_H
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
2003-09-06 17:23:08 +00:00
|
|
|
|
#include "support/types.h"
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
2003-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
2002-10-21 16:21:56 +00:00
|
|
|
|
#include <iosfwd>
|
2003-09-07 21:25:37 +00:00
|
|
|
|
#include <utility>
|
2002-12-01 22:59:25 +00:00
|
|
|
|
|
2002-08-09 00:42:12 +00:00
|
|
|
|
namespace sgml {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Escape the given character if necessary
|
2002-10-21 16:21:56 +00:00
|
|
|
|
* to an SGML entity. Returns true
|
2002-08-09 00:42:12 +00:00
|
|
|
|
* if it was a whitespace character.
|
|
|
|
|
*/
|
|
|
|
|
std::pair<bool, string> escapeChar(char c);
|
|
|
|
|
|
2002-10-21 16:21:56 +00:00
|
|
|
|
/// FIXME
|
2003-09-06 17:23:08 +00:00
|
|
|
|
int openTag(std::ostream & os, lyx::depth_type depth,
|
2002-10-21 16:21:56 +00:00
|
|
|
|
bool mixcont, string const & latexname);
|
|
|
|
|
|
|
|
|
|
/// FIXME
|
2003-09-06 17:23:08 +00:00
|
|
|
|
int closeTag(std::ostream & os, lyx::depth_type depth,
|
2002-10-21 16:21:56 +00:00
|
|
|
|
bool mixcont, string const & latexname);
|
2002-08-09 00:42:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // SGML_H
|