2001-03-06 14:07:14 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
|
|
|
#ifndef PARAMETERSTRUCT_H
|
|
|
|
#define PARAMETERSTRUCT_H
|
|
|
|
|
|
|
|
#include "vspace.h"
|
|
|
|
#include "Spacing.h"
|
|
|
|
#include "layout.h"
|
|
|
|
|
|
|
|
///
|
|
|
|
struct ParameterStruct {
|
2001-06-25 00:06:33 +00:00
|
|
|
///
|
|
|
|
typedef unsigned int depth_type;
|
2001-03-06 14:07:14 +00:00
|
|
|
///
|
|
|
|
VSpace added_space_top;
|
|
|
|
///
|
|
|
|
VSpace added_space_bottom;
|
|
|
|
///
|
|
|
|
Spacing spacing;
|
|
|
|
///
|
|
|
|
bool noindent;
|
|
|
|
///
|
|
|
|
bool line_top;
|
|
|
|
///
|
|
|
|
bool line_bottom;
|
|
|
|
///
|
|
|
|
bool pagebreak_top;
|
|
|
|
///
|
|
|
|
bool pagebreak_bottom;
|
|
|
|
///
|
|
|
|
LyXAlignment align;
|
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
depth_type depth;
|
2001-03-06 14:07:14 +00:00
|
|
|
///
|
|
|
|
bool start_of_appendix;
|
|
|
|
///
|
|
|
|
bool appendix;
|
|
|
|
///
|
|
|
|
string labelstring;
|
|
|
|
///
|
|
|
|
string labelwidthstring;
|
2001-03-16 00:09:53 +00:00
|
|
|
#ifndef NO_PEXTRA_REALLY
|
2001-03-06 14:07:14 +00:00
|
|
|
///
|
|
|
|
int pextra_type;
|
|
|
|
///
|
|
|
|
string pextra_width;
|
|
|
|
///
|
|
|
|
string pextra_widthp;
|
|
|
|
///
|
|
|
|
int pextra_alignment;
|
|
|
|
///
|
|
|
|
bool pextra_hfill;
|
|
|
|
///
|
|
|
|
bool pextra_start_minipage;
|
2001-03-16 00:09:53 +00:00
|
|
|
#endif
|
2001-03-06 14:07:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
bool operator==(ParameterStruct const & ps1,
|
|
|
|
ParameterStruct const & ps2)
|
|
|
|
{
|
|
|
|
return ps1.added_space_top == ps2.added_space_top
|
|
|
|
&& ps1.added_space_bottom == ps2.added_space_bottom
|
|
|
|
&& ps1.spacing == ps2.spacing
|
|
|
|
&& ps1.noindent == ps2.noindent
|
|
|
|
&& ps1.line_top == ps2.line_top
|
|
|
|
&& ps1.line_bottom == ps2.line_bottom
|
|
|
|
&& ps1.pagebreak_top == ps2.pagebreak_top
|
|
|
|
&& ps1.pagebreak_bottom == ps2.pagebreak_bottom
|
|
|
|
&& ps1.align == ps2.align
|
|
|
|
&& ps1.depth == ps2.depth
|
|
|
|
&& ps1.start_of_appendix == ps2.start_of_appendix
|
|
|
|
&& ps1.appendix == ps2.appendix
|
|
|
|
&& ps1.labelstring == ps2.labelstring
|
|
|
|
&& ps1.labelwidthstring == ps2.labelwidthstring
|
2001-03-16 00:09:53 +00:00
|
|
|
#ifndef NO_PEXTRA_REALLY
|
2001-03-06 14:07:14 +00:00
|
|
|
&& ps1.pextra_type == ps2.pextra_type
|
|
|
|
&& ps1.pextra_width == ps2.pextra_width
|
|
|
|
&& ps1.pextra_widthp == ps2.pextra_widthp
|
|
|
|
&& ps1.pextra_alignment == ps2.pextra_alignment
|
|
|
|
&& ps1.pextra_hfill == ps2.pextra_hfill
|
2001-03-16 00:09:53 +00:00
|
|
|
&& ps1.pextra_start_minipage == ps2.pextra_start_minipage
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2001-03-06 14:07:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|