3 * \file ParameterStruct.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
12 #ifndef PARAMETERSTRUCT_H
13 #define PARAMETERSTRUCT_H
18 #include "lyxlength.h"
21 struct ParameterStruct {
25 typedef unsigned int depth_type;
27 VSpace added_space_top;
29 VSpace added_space_bottom;
41 bool pagebreak_bottom;
47 bool start_of_appendix;
53 string labelwidthstring;
60 ParameterStruct::ParameterStruct()
61 : noindent(false), line_top(false), line_bottom(false),
62 pagebreak_top(false), pagebreak_bottom(false),
63 align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
69 bool operator==(ParameterStruct const & ps1,
70 ParameterStruct const & ps2)
72 return ps1.added_space_top == ps2.added_space_top
73 && ps1.added_space_bottom == ps2.added_space_bottom
74 && ps1.spacing == ps2.spacing
75 && ps1.noindent == ps2.noindent
76 && ps1.line_top == ps2.line_top
77 && ps1.line_bottom == ps2.line_bottom
78 && ps1.pagebreak_top == ps2.pagebreak_top
79 && ps1.pagebreak_bottom == ps2.pagebreak_bottom
80 && ps1.align == ps2.align
81 && ps1.depth == ps2.depth
82 && ps1.start_of_appendix == ps2.start_of_appendix
83 && ps1.appendix == ps2.appendix
84 && ps1.labelstring == ps2.labelstring
85 && ps1.labelwidthstring == ps2.labelwidthstring
86 && ps1.leftindent == ps2.leftindent;