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