]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphParameters.h
Alfredo's second patch
[lyx.git] / src / ParagraphParameters.h
index a4b7ebbf8fdd03b716496984fc2db375bdcec66d..491b55c9c0711e15a5e3424c526ad24f635b8059 100644 (file)
@@ -3,18 +3,18 @@
 #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;
 
 
 ///
@@ -88,6 +88,13 @@ public:
        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 &);
@@ -103,4 +110,18 @@ ParagraphParameters::depth_type ParagraphParameters::depth() 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