]> git.lyx.org Git - lyx.git/blobdiff - src/sgml.h
fix reading the author field.
[lyx.git] / src / sgml.h
index e3040e57eaddcf02045c533282d3ee307c9a2fb4..e3f65c49e01cbce991ee0012d8d48a77b152356e 100644 (file)
@@ -1,29 +1,47 @@
+// -*- C++ -*-
 /**
  * \file sgml.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author José Matos
- * \author John Levon <levon@movementarian.org>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef SGML_H
 #define SGML_H
-#include <config.h>
 
-#include "LString.h"
-#include <algorithm>
+#include "support/types.h"
+
+#include <iosfwd>
+#include <utility>
+
 namespace sgml {
 
 /**
  * Escape the given character if necessary
- * to an SGML entity. The bool return is true
+ * to an SGML entity. Returns true
  * if it was a whitespace character.
  */
-std::pair<bool, string> escapeChar(char c);
+std::pair<bool, std::string> escapeChar(char c);
+
+/// FIXME
+int openTag(std::ostream & os, lyx::depth_type depth,
+           bool mixcont, std::string const & latexname,
+               std::string const & latexparam = std::string());
+
+/// FIXME
+int closeTag(std::ostream & os, lyx::depth_type depth,
+           bool mixcont, std::string const & latexname);
+
+///
+unsigned int closeEnvTags(std::ostream & os,
+               bool mixcont,
+               std::string const & environment_inner_depth,
+               std::string const & item_tag,
+               lyx::depth_type total_depth);
 
 }