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
|
|
|
|
|
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.
|
|
|
|
|
*/
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::pair<bool, std::string> escapeChar(char c);
|
2002-08-09 00:42:12 +00:00
|
|
|
|
|
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,
|
2003-11-25 17:23:36 +00:00
|
|
|
|
bool mixcont, std::string const & latexname,
|
|
|
|
|
std::string const & latexparam = std::string());
|
2002-10-21 16:21:56 +00:00
|
|
|
|
|
|
|
|
|
/// FIXME
|
2003-09-06 17:23:08 +00:00
|
|
|
|
int closeTag(std::ostream & os, lyx::depth_type depth,
|
2003-10-06 15:43:21 +00:00
|
|
|
|
bool mixcont, std::string const & latexname);
|
2003-10-29 13:48:21 +00:00
|
|
|
|
|
|
|
|
|
///
|
2004-04-03 08:37:12 +00:00
|
|
|
|
unsigned int closeEnvTags(std::ostream & os,
|
2003-10-29 13:48:21 +00:00
|
|
|
|
bool mixcont,
|
|
|
|
|
std::string const & environment_inner_depth,
|
2003-11-25 17:23:36 +00:00
|
|
|
|
std::string const & item_tag,
|
2003-10-29 13:48:21 +00:00
|
|
|
|
lyx::depth_type total_depth);
|
|
|
|
|
|
2002-08-09 00:42:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // SGML_H
|