]> git.lyx.org Git - lyx.git/blob - src/ParameterStruct.h
Remove a couple of #includes from buffer.h
[lyx.git] / src / ParameterStruct.h
1 // -*- C++ -*-
2 /**
3  * \file ParameterStruct.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef PARAMETERSTRUCT_H
13 #define PARAMETERSTRUCT_H
14
15 #include "vspace.h"
16 #include "Spacing.h"
17 #include "layout.h"
18 #include "lyxlength.h"
19 #include "support/types.h"
20
21
22 ///
23 struct ParameterStruct {
24         ///
25         typedef lyx::depth_type depth_type;
26         ///
27         ParameterStruct();
28         ///
29         VSpace added_space_top;
30         ///
31         VSpace added_space_bottom;
32         ///
33         Spacing spacing;
34         ///
35         bool noindent;
36         ///
37         bool line_top;
38         ///
39         bool line_bottom;
40         ///
41         bool pagebreak_top;
42         ///
43         bool pagebreak_bottom;
44         ///
45         LyXAlignment align;
46         ///
47         depth_type depth;
48         ///
49         bool start_of_appendix;
50         ///
51         bool appendix;
52         ///
53         string labelstring;
54         ///
55         string labelwidthstring;
56         ///
57         LyXLength leftindent;
58 };
59
60
61 inline
62 ParameterStruct::ParameterStruct()
63         : noindent(false), line_top(false), line_bottom(false),
64           pagebreak_top(false), pagebreak_bottom(false),
65           align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
66           appendix(false)
67 {}
68
69
70 inline
71 bool operator==(ParameterStruct const & ps1,
72                 ParameterStruct const & ps2)
73 {
74         return ps1.added_space_top == ps2.added_space_top
75                 && ps1.added_space_bottom == ps2.added_space_bottom
76                 && ps1.spacing == ps2.spacing
77                 && ps1.noindent == ps2.noindent
78                 && ps1.line_top == ps2.line_top
79                 && ps1.line_bottom == ps2.line_bottom
80                 && ps1.pagebreak_top == ps2.pagebreak_top
81                 && ps1.pagebreak_bottom == ps2.pagebreak_bottom
82                 && ps1.align == ps2.align
83                 && ps1.depth == ps2.depth
84                 && ps1.start_of_appendix == ps2.start_of_appendix
85                 && ps1.appendix == ps2.appendix
86                 && ps1.labelstring == ps2.labelstring
87                 && ps1.labelwidthstring == ps2.labelwidthstring
88                 && ps1.leftindent == ps2.leftindent;
89
90 }
91
92 #endif