2 * \file paragraphdlgimpl.h
3 * Copyright 2001 LyX Team
6 * \author John Levon, moz@compsoc.man.ac.uk
7 * \author Edwin Leuven, leuven@fee.uva.nl
10 #ifndef PARAGRAPHDLGIMPL_H
11 #define PARAGRAPHDLGIMPL_H
13 #include "paragraphdlg.h"
15 #include "lyxparagraph.h"
20 class ParagraphDlgImpl : public ParagraphDlg
26 ParagraphDlgImpl(FormParagraph *form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
29 void setReadOnly(bool);
30 void setLabelWidth(const char *);
32 void setChecks(bool, bool, bool, bool, bool);
33 void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
34 void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
35 void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
36 void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, LyXParagraph::PEXTRA_TYPE);
37 LyXGlueLength getAboveLength() const;
38 LyXGlueLength getBelowLength() const;
39 LyXLength getExtraWidth() const;
40 string getExtraWidthPercent() const;
41 const char * getLabelWidth() const;
42 LyXAlignment getAlign() const;
43 bool getAboveKeep() const;
44 bool getBelowKeep() const;
45 bool getLineAbove() const;
46 bool getLineBelow() const;
47 bool getPagebreakAbove() const;
48 bool getPagebreakBelow() const;
49 bool getNoIndent() const;
50 VSpace::vspace_kind getSpaceAboveKind() const;
51 VSpace::vspace_kind getSpaceBelowKind() const;
52 LyXParagraph::PEXTRA_TYPE getExtraType() const;
53 LyXParagraph::MINIPAGE_ALIGNMENT getExtraAlign() const;
54 bool getHfillBetween() const;
55 bool getStartNewMinipage() const;
60 void closeEvent (QCloseEvent * e);
65 FormParagraph * form_;
66 VSpace::vspace_kind getSpaceKind(int val) const;
67 LyXLength::UNIT getLyXLength(int val) const;
68 int getItem(LyXLength::UNIT unit) const;
74 void cancel_adaptor();
75 void enable_extraOptions(int);
76 void enable_minipageOptions(int);
77 void enable_spacingAbove(int);
78 void enable_spacingBelow(int);
80 void restore_adaptor();
84 #endif // PARAGRAPHDLGIMPL_H