]> git.lyx.org Git - lyx.git/blob - src/ParagraphParameters.h
fix typo
[lyx.git] / src / ParagraphParameters.h
1 // -*- C++ -*-
2
3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
5
6 #include "ShareContainer.h"
7 #include "LString.h"
8 #include "layout.h"
9 #include "ParameterStruct.h"
10
11 class VSpace;
12 class Spacing;
13
14
15 // Not yet... lyx 1.3.x or so
16 //#define NO_PEXTRA_REALLY 1
17
18 ///
19 class ParagraphParameters {
20 public:
21         ///
22         ParagraphParameters();
23         ///
24         void clear();
25         ///
26         bool sameLayout(ParagraphParameters const &) const;
27         ///
28         void makeSame(ParagraphParameters const & pp);
29         ///
30         VSpace const & spaceTop() const;
31         ///
32         void spaceTop(VSpace const &);
33         ///
34         VSpace const & spaceBottom() const;
35         ///
36         void spaceBottom(VSpace const &);
37         ///
38         Spacing const & spacing() const;
39         ///
40         void spacing(Spacing const &);
41         ///
42         bool noindent() const;
43         ///
44         void noindent(bool);
45         ///
46         bool lineTop() const;
47         ///
48         void lineTop(bool);
49         ///
50         bool lineBottom() const;
51         ///
52         void lineBottom(bool);
53         ///
54         bool pagebreakTop() const;
55         ///
56         void pagebreakTop(bool);
57         ///
58         bool pagebreakBottom() const;
59         ///
60         void pagebreakBottom(bool);
61         ///
62         LyXAlignment align() const;
63         ///
64         void align(LyXAlignment);
65         ///
66         typedef ParameterStruct::depth_type depth_type;
67         ///
68         depth_type depth() const;
69         ///
70         void depth(depth_type);
71         ///
72         bool startOfAppendix() const;
73         ///
74         void startOfAppendix(bool);
75         ///
76         bool appendix() const;
77         ///
78         void appendix(bool);
79         ///
80         string const & labelString() const;
81         ///
82         void labelString(string const &);
83         ///
84         string const & labelWidthString() const;
85         ///
86         void labelWidthString(string const &);
87 #ifndef NO_PEXTRA_REALLY
88         ///
89         int pextraType() const;
90         ///
91         void pextraType(int);
92         ///
93         string const & pextraWidth() const;
94         ///
95         void pextraWidth(string const &);
96         ///
97         string const & pextraWidthp() const;
98         ///
99         void pextraWidthp(string const &);
100         ///
101         int pextraAlignment() const;
102         ///
103         void pextraAlignment(int);
104         ///
105         bool pextraHfill() const;
106         ///
107         void pextraHfill(bool);
108         ///
109         bool pextraStartMinipage() const;
110         ///
111         void pextraStartMinipage(bool);
112 #endif
113 private:
114         ///
115         void set_from_struct(ParameterStruct const &);
116         ///
117         boost::shared_ptr<ParameterStruct> param;
118         ///
119         static ShareContainer<ParameterStruct> container;
120 };
121
122
123 inline
124 ParagraphParameters::depth_type ParagraphParameters::depth() const
125 {
126         return param->depth;
127 }
128 #endif