2001-03-06 14:07:14 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file ParameterStruct.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
2001-03-06 14:07:14 +00:00
|
|
|
|
|
|
|
|
|
#ifndef PARAMETERSTRUCT_H
|
|
|
|
|
#define PARAMETERSTRUCT_H
|
|
|
|
|
|
|
|
|
|
#include "layout.h"
|
2002-05-08 12:58:16 +00:00
|
|
|
|
#include "lyxlength.h"
|
2003-09-06 23:01:26 +00:00
|
|
|
|
#include "Spacing.h"
|
|
|
|
|
#include "vspace.h"
|
|
|
|
|
|
2003-09-06 17:23:08 +00:00
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2001-03-06 14:07:14 +00:00
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
struct ParameterStruct {
|
2001-07-27 20:27:56 +00:00
|
|
|
|
///
|
2003-09-06 17:23:08 +00:00
|
|
|
|
typedef lyx::depth_type depth_type;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2003-09-06 17:23:08 +00:00
|
|
|
|
ParameterStruct();
|
2001-03-06 14:07:14 +00:00
|
|
|
|
///
|
|
|
|
|
VSpace added_space_top;
|
|
|
|
|
///
|
|
|
|
|
VSpace added_space_bottom;
|
|
|
|
|
///
|
|
|
|
|
Spacing spacing;
|
|
|
|
|
///
|
|
|
|
|
bool noindent;
|
|
|
|
|
///
|
|
|
|
|
LyXAlignment align;
|
|
|
|
|
///
|
2002-03-21 17:27:08 +00:00
|
|
|
|
depth_type depth;
|
2001-03-06 14:07:14 +00:00
|
|
|
|
///
|
|
|
|
|
bool start_of_appendix;
|
|
|
|
|
///
|
|
|
|
|
bool appendix;
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string labelstring;
|
2001-03-06 14:07:14 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string labelwidthstring;
|
2002-05-08 12:58:16 +00:00
|
|
|
|
///
|
|
|
|
|
LyXLength leftindent;
|
2001-03-06 14:07:14 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2001-07-27 20:27:56 +00:00
|
|
|
|
inline
|
|
|
|
|
ParameterStruct::ParameterStruct()
|
2003-10-27 12:41:26 +00:00
|
|
|
|
: noindent(false),
|
2001-07-27 20:27:56 +00:00
|
|
|
|
align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
|
|
|
|
|
appendix(false)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
2001-03-06 14:07:14 +00:00
|
|
|
|
inline
|
|
|
|
|
bool operator==(ParameterStruct const & ps1,
|
2002-03-21 17:27:08 +00:00
|
|
|
|
ParameterStruct const & ps2)
|
2001-03-06 14:07:14 +00:00
|
|
|
|
{
|
|
|
|
|
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.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
|
2002-08-20 20:30:45 +00:00
|
|
|
|
&& ps1.leftindent == ps2.leftindent;
|
2001-03-06 14:07:14 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|