]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphParameters.h
ws changes only
[lyx.git] / src / ParagraphParameters.h
index 491b55c9c0711e15a5e3424c526ad24f635b8059..7c1726267a6d40fb7a749a5c880a76f5c51da128 100644 (file)
@@ -1,21 +1,34 @@
 // -*- 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
 
-#include "LString.h"
-#include "ShareContainer.h"
 #include "layout.h"
+#include "ShareContainer.h"
 
-#include "ParameterStruct.h"
+#include "support/types.h"
 
 #include <iosfwd>
+#include <string>
 
-class VSpace;
-class Spacing;
+class BufferView;
+class LyXLength;
 class LyXLex;
 class Paragraph;
-
+class ParameterStruct;
+class Spacing;
+class VSpace;
 
 ///
 class ParagraphParameters {
@@ -63,7 +76,7 @@ public:
        ///
        void align(LyXAlignment);
        ///
-       typedef ParameterStruct::depth_type depth_type;
+       typedef lyx::depth_type depth_type;
        ///
        depth_type depth() const;
        ///
@@ -77,13 +90,13 @@ public:
        ///
        void appendix(bool);
        ///
-       string const & labelString() const;
+       std::string const & labelString() const;
        ///
-       void labelString(string const &);
+       void labelString(std::string const &);
        ///
-       string const & labelWidthString() const;
+       std::string const & labelWidthString() const;
        ///
-       void labelWidthString(string const &);
+       void labelWidthString(std::string const &);
        ///
        LyXLength const & leftIndent() const;
        ///
@@ -105,23 +118,16 @@ private:
 };
 
 
-inline
-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);
+void params2string(Paragraph const & par, std::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);
+void setParagraphParams(BufferView & bv, std::string const & data);
 
 #endif