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