#include "vspace.h"
#include "Spacing.h"
#include "layout.h"
+#include "lyxlength.h"
///
struct ParameterStruct {
+ ///
+ ParameterStruct();
///
typedef unsigned int depth_type;
///
///
LyXAlignment align;
///
- depth_type depth;
+ depth_type depth;
///
bool start_of_appendix;
///
string labelstring;
///
string labelwidthstring;
-#ifndef NO_PEXTRA_REALLY
- ///
- int pextra_type;
- ///
- string pextra_width;
- ///
- string pextra_widthp;
- ///
- int pextra_alignment;
- ///
- bool pextra_hfill;
- ///
- bool pextra_start_minipage;
-#endif
+ ///
+ LyXLength leftindent;
};
+inline
+ParameterStruct::ParameterStruct()
+ : noindent(false), line_top(false), line_bottom(false),
+ pagebreak_top(false), pagebreak_bottom(false),
+ align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
+ appendix(false)
+{}
+
+
inline
bool operator==(ParameterStruct const & ps1,
- ParameterStruct const & ps2)
+ ParameterStruct const & ps2)
{
return ps1.added_space_top == ps2.added_space_top
&& ps1.added_space_bottom == ps2.added_space_bottom
&& ps1.appendix == ps2.appendix
&& ps1.labelstring == ps2.labelstring
&& ps1.labelwidthstring == ps2.labelwidthstring
-#ifndef NO_PEXTRA_REALLY
- && 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
- && ps1.pextra_start_minipage == ps2.pextra_start_minipage
-#endif
- ;
-
+ && ps1.leftindent == ps2.leftindent;
+
}
#endif