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