#ifndef PARAGRAPHPARAMETERS_H
#define PARAGRAPHPARAMETERS_H
+#ifdef __GNUG__
+#pragma interface
+#endif
+
#include "ShareContainer.h"
#include "LString.h"
#include "layout.h"
+// Not yet... lyx 1.3.x or so
+//#define NO_PEXTRA_REALLY 1
+
+#include "ParameterStruct.h"
+
class VSpace;
class Spacing;
-struct ParameterStruct;
+
///
class ParagraphParameters {
///
bool sameLayout(ParagraphParameters const &) const;
///
- void makeSame(ParagraphParameters const & pp);
- ///
VSpace const & spaceTop() const;
///
void spaceTop(VSpace const &);
///
void align(LyXAlignment);
///
- char depth() const;
+ typedef ParameterStruct::depth_type depth_type;
+ ///
+ depth_type depth() const;
///
- void depth(char);
+ void depth(depth_type);
///
bool startOfAppendix() const;
///
string const & labelWidthString() const;
///
void labelWidthString(string const &);
+#ifndef NO_PEXTRA_REALLY
///
int pextraType() const;
///
bool pextraStartMinipage() const;
///
void pextraStartMinipage(bool);
+#endif
private:
///
void set_from_struct(ParameterStruct const &);
///
static ShareContainer<ParameterStruct> container;
};
+
+
+inline
+ParagraphParameters::depth_type ParagraphParameters::depth() const
+{
+ return param->depth;
+}
#endif