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);
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 char ParagraphParameters::depth() const