3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
6 #include "ShareContainer.h"
12 struct ParameterStruct;
14 // Not yet... lyx 1.3.x or so
15 //#define NO_PEXTRA_REALLY 1
18 class ParagraphParameters {
21 ParagraphParameters();
25 bool sameLayout(ParagraphParameters const &) const;
27 void makeSame(ParagraphParameters const & pp);
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);
69 bool startOfAppendix() const;
71 void startOfAppendix(bool);
73 bool appendix() const;
77 string const & labelString() const;
79 void labelString(string const &);
81 string const & labelWidthString() const;
83 void labelWidthString(string const &);
84 #ifndef NO_PEXTRA_REALLY
86 int pextraType() const;
90 string const & pextraWidth() const;
92 void pextraWidth(string const &);
94 string const & pextraWidthp() const;
96 void pextraWidthp(string const &);
98 int pextraAlignment() const;
100 void pextraAlignment(int);
102 bool pextraHfill() const;
104 void pextraHfill(bool);
106 bool pextraStartMinipage() const;
108 void pextraStartMinipage(bool);
112 void set_from_struct(ParameterStruct const &);
114 boost::shared_ptr<ParameterStruct> param;
116 static ShareContainer<ParameterStruct> container;