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 VSpace const & spaceTop() const;
30 void spaceTop(VSpace const &);
32 VSpace const & spaceBottom() const;
34 void spaceBottom(VSpace const &);
36 Spacing const & spacing() const;
38 void spacing(Spacing const &);
40 bool noindent() const;
48 bool lineBottom() const;
50 void lineBottom(bool);
52 bool pagebreakTop() const;
54 void pagebreakTop(bool);
56 bool pagebreakBottom() const;
58 void pagebreakBottom(bool);
60 LyXAlignment align() const;
62 void align(LyXAlignment);
64 typedef ParameterStruct::depth_type depth_type;
66 depth_type depth() const;
68 void depth(depth_type);
70 bool startOfAppendix() const;
72 void startOfAppendix(bool);
74 bool appendix() const;
78 string const & labelString() const;
80 void labelString(string const &);
82 string const & labelWidthString() const;
84 void labelWidthString(string const &);
85 #ifndef NO_PEXTRA_REALLY
87 int pextraType() const;
91 string const & pextraWidth() const;
93 void pextraWidth(string const &);
95 string const & pextraWidthp() const;
97 void pextraWidthp(string const &);
99 int pextraAlignment() const;
101 void pextraAlignment(int);
103 bool pextraHfill() const;
105 void pextraHfill(bool);
107 bool pextraStartMinipage() const;
109 void pextraStartMinipage(bool);
113 void set_from_struct(ParameterStruct const &);
115 boost::shared_ptr<ParameterStruct> param;
117 static ShareContainer<ParameterStruct> container;
122 ParagraphParameters::depth_type ParagraphParameters::depth() const