// -*- C++ -*-
+/**
+ * \file ParagraphParameters.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Angus Leeming
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
+ */
#ifndef PARAGRAPHPARAMETERS_H
#define PARAGRAPHPARAMETERS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "LString.h"
#include "ShareContainer.h"
#include "layout.h"
#include "ParameterStruct.h"
+#include <iosfwd>
+
class VSpace;
class Spacing;
+class LyXLex;
+class Paragraph;
///
LyXLength const & leftIndent() const;
///
void leftIndent(LyXLength const &);
+
+ /// read the parameters from a lex
+ void read(LyXLex & lex);
+
+ /// write out the parameters to a stream
+ void write(std::ostream & os) const;
+
private:
///
void set_from_struct(ParameterStruct const &);
{
return param->depth;
}
+
+
+/** Generate a string \param data from \param par's ParagraphParameters.
+ The function also generates some additional info needed by the
+ Paragraph dialog.
+ */
+void params2string(Paragraph const & par, string & data);
+
+/** Given \param data, an encoding of the ParagraphParameters generated
+ in the Paragraph dialog, this function sets the current paragraph
+ appropriately.
+ */
+void setParagraphParams(BufferView & bv, string const & data);
+
#endif