]> git.lyx.org Git - lyx.git/blob - src/ParameterStruct.h
remove mention of lyxrc from the splash
[lyx.git] / src / ParameterStruct.h
1 // -*- C++ -*-
2
3 #ifndef PARAMETERSTRUCT_H
4 #define PARAMETERSTRUCT_H
5
6 #include "vspace.h"
7 #include "Spacing.h"
8 #include "layout.h"
9 #include "lyxlength.h"
10
11 ///
12 struct ParameterStruct {
13         ///
14         ParameterStruct();
15         ///
16         typedef unsigned int depth_type;
17         ///
18         VSpace added_space_top;
19         ///
20         VSpace added_space_bottom;
21         ///
22         Spacing spacing;
23         ///
24         bool noindent;
25         ///
26         bool line_top;
27         ///
28         bool line_bottom;
29         ///
30         bool pagebreak_top;
31         ///
32         bool pagebreak_bottom;
33         ///
34         LyXAlignment align;
35         ///
36         depth_type depth;
37         ///
38         bool start_of_appendix;
39         ///
40         bool appendix;
41         ///
42         string labelstring;
43         ///
44         string labelwidthstring;
45         ///
46         LyXLength leftindent;
47 };
48
49
50 inline
51 ParameterStruct::ParameterStruct()
52         : noindent(false), line_top(false), line_bottom(false),
53           pagebreak_top(false), pagebreak_bottom(false),
54           align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
55           appendix(false)
56 {}
57
58
59 inline
60 bool operator==(ParameterStruct const & ps1,
61                 ParameterStruct const & ps2)
62 {
63         return ps1.added_space_top == ps2.added_space_top
64                 && ps1.added_space_bottom == ps2.added_space_bottom
65                 && ps1.spacing == ps2.spacing
66                 && ps1.noindent == ps2.noindent
67                 && ps1.line_top == ps2.line_top
68                 && ps1.line_bottom == ps2.line_bottom
69                 && ps1.pagebreak_top == ps2.pagebreak_top
70                 && ps1.pagebreak_bottom == ps2.pagebreak_bottom
71                 && ps1.align == ps2.align
72                 && ps1.depth == ps2.depth
73                 && ps1.start_of_appendix == ps2.start_of_appendix
74                 && ps1.appendix == ps2.appendix
75                 && ps1.labelstring == ps2.labelstring
76                 && ps1.labelwidthstring == ps2.labelwidthstring
77                 && ps1.leftindent == ps2.leftindent;
78
79 }
80
81 #endif