]> git.lyx.org Git - lyx.git/blob - src/ParameterStruct.h
the spellcheck cleanup
[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 "layout.h"
16 #include "lyxlength.h"
17 #include "Spacing.h"
18 #include "vspace.h"
19
20 #include "support/types.h"
21
22
23 ///
24 struct ParameterStruct {
25         ///
26         typedef lyx::depth_type depth_type;
27         ///
28         ParameterStruct();
29         ///
30         VSpace added_space_top;
31         ///
32         VSpace added_space_bottom;
33         ///
34         Spacing spacing;
35         ///
36         bool noindent;
37         ///
38         LyXAlignment align;
39         ///
40         depth_type depth;
41         ///
42         bool start_of_appendix;
43         ///
44         bool appendix;
45         ///
46         std::string labelstring;
47         ///
48         std::string labelwidthstring;
49         ///
50         LyXLength leftindent;
51 };
52
53
54 inline
55 ParameterStruct::ParameterStruct()
56         : noindent(false),
57           align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
58           appendix(false)
59 {}
60
61
62 inline
63 bool operator==(ParameterStruct const & ps1,
64                 ParameterStruct const & ps2)
65 {
66         return ps1.added_space_top == ps2.added_space_top
67                 && ps1.added_space_bottom == ps2.added_space_bottom
68                 && ps1.spacing == ps2.spacing
69                 && ps1.noindent == ps2.noindent
70                 && ps1.align == ps2.align
71                 && ps1.depth == ps2.depth
72                 && ps1.start_of_appendix == ps2.start_of_appendix
73                 && ps1.appendix == ps2.appendix
74                 && ps1.labelstring == ps2.labelstring
75                 && ps1.labelwidthstring == ps2.labelwidthstring
76                 && ps1.leftindent == ps2.leftindent;
77 }
78
79 #endif