]> git.lyx.org Git - lyx.git/blob - src/ParagraphParameters.h
Added splash for qt2 frontend, Edwin
[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 ///
15 class ParagraphParameters {
16 public:
17         ///
18         ParagraphParameters();
19         ///
20         void clear();
21         ///
22         bool sameLayout(ParagraphParameters const &) const;
23         ///
24         void makeSame(ParagraphParameters const & pp);
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         char depth() const;
63         ///
64         void depth(char);
65         ///
66         bool startOfAppendix() const;
67         ///
68         void startOfAppendix(bool);
69         ///
70         bool appendix() const;
71         ///
72         void appendix(bool);
73         ///
74         string const & labelString() const;
75         ///
76         void labelString(string const &);
77         ///
78         string const & labelWidthString() const;
79         ///
80         void labelWidthString(string const &);
81         ///
82         int pextraType() const;
83         ///
84         void pextraType(int);
85         ///
86         string const & pextraWidth() const;
87         ///
88         void pextraWidth(string const &);
89         ///
90         string const & pextraWidthp() const;
91         ///
92         void pextraWidthp(string const &);
93         ///
94         int pextraAlignment() const;
95         ///
96         void pextraAlignment(int);
97         ///
98         bool pextraHfill() const;
99         ///
100         void pextraHfill(bool);
101         ///
102         bool pextraStartMinipage() const;
103         ///
104         void pextraStartMinipage(bool);
105 private:
106         ///
107         void set_from_struct(ParameterStruct const &);
108         ///
109         boost::shared_ptr<ParameterStruct> param;
110         ///
111         static ShareContainer<ParameterStruct> container;
112 };
113 #endif