]> git.lyx.org Git - lyx.git/blob - src/ParameterStruct.h
Remove debug message
[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
10 ///
11 struct ParameterStruct {
12         ///
13         VSpace added_space_top;
14         ///
15         VSpace added_space_bottom;
16         ///
17         Spacing spacing;
18         ///
19         bool noindent;
20         ///
21         bool line_top;
22         ///
23         bool line_bottom;
24         ///
25         bool pagebreak_top;
26         ///
27         bool pagebreak_bottom;
28         ///
29         LyXAlignment align;
30         ///
31         char depth; // wrong type (Lgb)
32         ///
33         bool start_of_appendix;
34         ///
35         bool appendix;
36         ///
37         string labelstring;
38         ///
39         string labelwidthstring;
40         ///
41         int pextra_type;
42         ///
43         string pextra_width;
44         ///
45         string pextra_widthp;
46         ///
47         int pextra_alignment;
48         ///
49         bool pextra_hfill;
50         ///
51         bool pextra_start_minipage;
52 };
53
54
55 inline
56 bool operator==(ParameterStruct const & ps1,
57                 ParameterStruct const & ps2) 
58 {
59         return ps1.added_space_top == ps2.added_space_top
60                 && ps1.added_space_bottom == ps2.added_space_bottom
61                 && ps1.spacing == ps2.spacing
62                 && ps1.noindent == ps2.noindent
63                 && ps1.line_top == ps2.line_top
64                 && ps1.line_bottom == ps2.line_bottom
65                 && ps1.pagebreak_top == ps2.pagebreak_top
66                 && ps1.pagebreak_bottom == ps2.pagebreak_bottom
67                 && ps1.align == ps2.align
68                 && ps1.depth == ps2.depth
69                 && ps1.start_of_appendix == ps2.start_of_appendix
70                 && ps1.appendix == ps2.appendix
71                 && ps1.labelstring == ps2.labelstring
72                 && ps1.labelwidthstring == ps2.labelwidthstring
73                 && ps1.pextra_type == ps2.pextra_type
74                 && ps1.pextra_width == ps2.pextra_width
75                 && ps1.pextra_widthp == ps2.pextra_widthp
76                 && ps1.pextra_alignment == ps2.pextra_alignment
77                 && ps1.pextra_hfill == ps2.pextra_hfill
78                 && ps1.pextra_start_minipage == ps2.pextra_start_minipage;
79 }
80
81 #endif