3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
10 #include "ShareContainer.h"
13 #include "ParameterStruct.h"
19 // Not yet... lyx 1.3.x or so
20 //#define NO_PEXTRA_REALLY 1
23 class ParagraphParameters {
26 ParagraphParameters();
30 bool sameLayout(ParagraphParameters const &) const;
32 VSpace const & spaceTop() const;
34 void spaceTop(VSpace const &);
36 VSpace const & spaceBottom() const;
38 void spaceBottom(VSpace const &);
40 Spacing const & spacing() const;
42 void spacing(Spacing const &);
44 bool noindent() const;
52 bool lineBottom() const;
54 void lineBottom(bool);
56 bool pagebreakTop() const;
58 void pagebreakTop(bool);
60 bool pagebreakBottom() const;
62 void pagebreakBottom(bool);
64 LyXAlignment align() const;
66 void align(LyXAlignment);
68 typedef ParameterStruct::depth_type depth_type;
70 depth_type depth() const;
72 void depth(depth_type);
74 bool startOfAppendix() const;
76 void startOfAppendix(bool);
78 bool appendix() const;
82 string const & labelString() const;
84 void labelString(string const &);
86 string const & labelWidthString() const;
88 void labelWidthString(string const &);
89 #ifndef NO_PEXTRA_REALLY
91 int pextraType() const;
95 string const & pextraWidth() const;
97 void pextraWidth(string const &);
99 string const & pextraWidthp() const;
101 void pextraWidthp(string const &);
103 int pextraAlignment() const;
105 void pextraAlignment(int);
107 bool pextraHfill() const;
109 void pextraHfill(bool);
111 bool pextraStartMinipage() const;
113 void pextraStartMinipage(bool);
117 void set_from_struct(ParameterStruct const &);
119 boost::shared_ptr<ParameterStruct> param;
121 static ShareContainer<ParameterStruct> container;
126 ParagraphParameters::depth_type ParagraphParameters::depth() const