3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
7 #include "ShareContainer.h"
10 #include "ParameterStruct.h"
20 class ParagraphParameters {
23 ParagraphParameters();
27 bool sameLayout(ParagraphParameters const &) const;
29 VSpace const & spaceTop() const;
31 void spaceTop(VSpace const &);
33 VSpace const & spaceBottom() const;
35 void spaceBottom(VSpace const &);
37 Spacing const & spacing() const;
39 void spacing(Spacing const &);
41 bool noindent() const;
49 bool lineBottom() const;
51 void lineBottom(bool);
53 bool pagebreakTop() const;
55 void pagebreakTop(bool);
57 bool pagebreakBottom() const;
59 void pagebreakBottom(bool);
61 LyXAlignment align() const;
63 void align(LyXAlignment);
65 typedef ParameterStruct::depth_type depth_type;
67 depth_type depth() const;
69 void depth(depth_type);
71 bool startOfAppendix() const;
73 void startOfAppendix(bool);
75 bool appendix() const;
79 string const & labelString() const;
81 void labelString(string const &);
83 string const & labelWidthString() const;
85 void labelWidthString(string const &);
87 LyXLength const & leftIndent() const;
89 void leftIndent(LyXLength const &);
91 /// read the parameters from a lex
92 void read(LyXLex & lex);
94 /// write out the parameters to a stream
95 void write(std::ostream & os) const;
99 void set_from_struct(ParameterStruct const &);
101 boost::shared_ptr<ParameterStruct> param;
103 static ShareContainer<ParameterStruct> container;
108 ParagraphParameters::depth_type ParagraphParameters::depth() const