mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
69fae0531d
* factory.C: handle new InsetPagebreak, InsetLine * ParagraphParameters.h: remove [line|pagebreak]_[above|below] and move handling into new InsetPagebreak, InsetLine * BufferView_pimpl.C: * LyXAction.C: * ParagraphParameters.C: * ParameterStruct.h: * lyxfunc.C: * lyxtext.h: * paragraph.C: * paragraph.h: * paragraph_funcs.C: * paragraph_pimpl.C: * rowpainter.C: * text.C: * text2.C: * text3.C: adjust etc git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7985 a592a061-630c-0410-9148-cb99ea01b6c8
80 lines
1.5 KiB
C++
80 lines
1.5 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \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ønnes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef PARAMETERSTRUCT_H
|
|
#define PARAMETERSTRUCT_H
|
|
|
|
#include "layout.h"
|
|
#include "lyxlength.h"
|
|
#include "Spacing.h"
|
|
#include "vspace.h"
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
///
|
|
struct ParameterStruct {
|
|
///
|
|
typedef lyx::depth_type depth_type;
|
|
///
|
|
ParameterStruct();
|
|
///
|
|
VSpace added_space_top;
|
|
///
|
|
VSpace added_space_bottom;
|
|
///
|
|
Spacing spacing;
|
|
///
|
|
bool noindent;
|
|
///
|
|
LyXAlignment align;
|
|
///
|
|
depth_type depth;
|
|
///
|
|
bool start_of_appendix;
|
|
///
|
|
bool appendix;
|
|
///
|
|
std::string labelstring;
|
|
///
|
|
std::string labelwidthstring;
|
|
///
|
|
LyXLength leftindent;
|
|
};
|
|
|
|
|
|
inline
|
|
ParameterStruct::ParameterStruct()
|
|
: noindent(false),
|
|
align(LYX_ALIGN_BLOCK), depth(0), start_of_appendix(false),
|
|
appendix(false)
|
|
{}
|
|
|
|
|
|
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.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
|
|
&& ps1.leftindent == ps2.leftindent;
|
|
}
|
|
|
|
#endif
|