]> git.lyx.org Git - lyx.git/blob - src/ParagraphParameters.h
fix compilation bug
[lyx.git] / src / ParagraphParameters.h
1 // -*- C++ -*-
2
3 #ifndef PARAGRAPHPARAMETERS_H
4 #define PARAGRAPHPARAMETERS_H
5
6 #include "LString.h"
7 #include "ShareContainer.h"
8 #include "layout.h"
9
10 #include "ParameterStruct.h"
11
12 class VSpace;
13 class Spacing;
14
15
16 ///
17 class ParagraphParameters {
18 public:
19         ///
20         ParagraphParameters();
21         ///
22         void clear();
23         ///
24         bool sameLayout(ParagraphParameters const &) const;
25         ///
26         VSpace const & spaceTop() const;
27         ///
28         void spaceTop(VSpace const &);
29         ///
30         VSpace const & spaceBottom() const;
31         ///
32         void spaceBottom(VSpace const &);
33         ///
34         Spacing const & spacing() const;
35         ///
36         void spacing(Spacing const &);
37         ///
38         bool noindent() const;
39         ///
40         void noindent(bool);
41         ///
42         bool lineTop() const;
43         ///
44         void lineTop(bool);
45         ///
46         bool lineBottom() const;
47         ///
48         void lineBottom(bool);
49         ///
50         bool pagebreakTop() const;
51         ///
52         void pagebreakTop(bool);
53         ///
54         bool pagebreakBottom() const;
55         ///
56         void pagebreakBottom(bool);
57         ///
58         LyXAlignment align() const;
59         ///
60         void align(LyXAlignment);
61         ///
62         typedef ParameterStruct::depth_type depth_type;
63         ///
64         depth_type depth() const;
65         ///
66         void depth(depth_type);
67         ///
68         bool startOfAppendix() const;
69         ///
70         void startOfAppendix(bool);
71         ///
72         bool appendix() const;
73         ///
74         void appendix(bool);
75         ///
76         string const & labelString() const;
77         ///
78         void labelString(string const &);
79         ///
80         string const & labelWidthString() const;
81         ///
82         void labelWidthString(string const &);
83         ///
84         LyXLength const & leftIndent() const;
85         ///
86         void leftIndent(LyXLength const &);
87 private:
88         ///
89         void set_from_struct(ParameterStruct const &);
90         ///
91         boost::shared_ptr<ParameterStruct> param;
92         ///
93         static ShareContainer<ParameterStruct> container;
94 };
95
96
97 inline
98 ParagraphParameters::depth_type ParagraphParameters::depth() const
99 {
100         return param->depth;
101 }
102 #endif