]> git.lyx.org Git - lyx.git/blob - src/ParameterStruct.h
Remove unused font variable which caused a warning.
[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         typedef unsigned int depth_type;
14         ///
15         VSpace added_space_top;
16         ///
17         VSpace added_space_bottom;
18         ///
19         Spacing spacing;
20         ///
21         bool noindent;
22         ///
23         bool line_top;
24         ///
25         bool line_bottom;
26         ///
27         bool pagebreak_top;
28         ///
29         bool pagebreak_bottom;
30         ///
31         LyXAlignment align;
32         ///
33         depth_type depth; 
34         ///
35         bool start_of_appendix;
36         ///
37         bool appendix;
38         ///
39         string labelstring;
40         ///
41         string labelwidthstring;
42 #ifndef NO_PEXTRA_REALLY
43         ///
44         int pextra_type;
45         ///
46         string pextra_width;
47         ///
48         string pextra_widthp;
49         ///
50         int pextra_alignment;
51         ///
52         bool pextra_hfill;
53         ///
54         bool pextra_start_minipage;
55 #endif
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 #ifndef NO_PEXTRA_REALLY
78                 && ps1.pextra_type == ps2.pextra_type
79                 && ps1.pextra_width == ps2.pextra_width
80                 && ps1.pextra_widthp == ps2.pextra_widthp
81                 && ps1.pextra_alignment == ps2.pextra_alignment
82                 && ps1.pextra_hfill == ps2.pextra_hfill
83                 && ps1.pextra_start_minipage == ps2.pextra_start_minipage
84 #endif
85         ;
86         
87 }
88
89 #endif