3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
10 #include "ShareContainer.h"
14 // Not yet... lyx 1.3.x or so
15 //#define NO_PEXTRA_REALLY 1
17 #include "ParameterStruct.h"
24 class ParagraphParameters {
27 ParagraphParameters();
31 bool sameLayout(ParagraphParameters const &) const;
33 VSpace const & spaceTop() const;
35 void spaceTop(VSpace const &);
37 VSpace const & spaceBottom() const;
39 void spaceBottom(VSpace const &);
41 Spacing const & spacing() const;
43 void spacing(Spacing const &);
45 bool noindent() const;
53 bool lineBottom() const;
55 void lineBottom(bool);
57 bool pagebreakTop() const;
59 void pagebreakTop(bool);
61 bool pagebreakBottom() const;
63 void pagebreakBottom(bool);
65 LyXAlignment align() const;
67 void align(LyXAlignment);
69 typedef ParameterStruct::depth_type depth_type;
71 depth_type depth() const;
73 void depth(depth_type);
75 bool startOfAppendix() const;
77 void startOfAppendix(bool);
79 bool appendix() const;
83 string const & labelString() const;
85 void labelString(string const &);
87 string const & labelWidthString() const;
89 void labelWidthString(string const &);
90 #ifndef NO_PEXTRA_REALLY
92 int pextraType() const;
96 string const & pextraWidth() const;
98 void pextraWidth(string const &);
100 string const & pextraWidthp() const;
102 void pextraWidthp(string const &);
104 int pextraAlignment() const;
106 void pextraAlignment(int);
108 bool pextraHfill() const;
110 void pextraHfill(bool);
112 bool pextraStartMinipage() const;
114 void pextraStartMinipage(bool);
118 void set_from_struct(ParameterStruct const &);
120 boost::shared_ptr<ParameterStruct> param;
122 static ShareContainer<ParameterStruct> container;
127 ParagraphParameters::depth_type ParagraphParameters::depth() const