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
15 #include "paragraphdlg.h"
17 #include "lyxparagraph.h"
22 class ParagraphDlgImpl : public ParagraphDlg
28 ParagraphDlgImpl(FormParagraph *form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
31 void setReadOnly(bool);
32 void setLabelWidth(const char *);
34 void setChecks(bool, bool, bool, bool, bool);
35 void setSpace(VSpace::vspace_kind, VSpace::vspace_kind, bool, bool);
36 void setAboveLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
37 void setBelowLength(float, float, float, LyXGlueLength::UNIT, LyXGlueLength::UNIT, LyXGlueLength::UNIT);
38 void setExtra(float, LyXGlueLength::UNIT, const string, int, bool, bool, LyXParagraph::PEXTRA_TYPE);
39 LyXGlueLength getAboveLength() const;
40 LyXGlueLength getBelowLength() const;
41 LyXLength getExtraWidth() const;
42 string getExtraWidthPercent() const;
43 // FIXME: return a std::string !
44 const char * getLabelWidth() const;
45 LyXAlignment getAlign() const;
46 bool getAboveKeep() const;
47 bool getBelowKeep() const;
48 bool getLineAbove() const;
49 bool getLineBelow() const;
50 bool getPagebreakAbove() const;
51 bool getPagebreakBelow() const;
52 bool getNoIndent() const;
53 VSpace::vspace_kind getSpaceAboveKind() const;
54 VSpace::vspace_kind getSpaceBelowKind() const;
55 LyXParagraph::PEXTRA_TYPE getExtraType() const;
56 LyXParagraph::MINIPAGE_ALIGNMENT getExtraAlign() const;
57 bool getHfillBetween() const;
58 bool getStartNewMinipage() const;
63 void closeEvent (QCloseEvent * e);
67 FormParagraph * form_;
68 VSpace::vspace_kind getSpaceKind(int val) const;
69 LyXLength::UNIT getLyXLength(int val) const;
70 int getItem(LyXLength::UNIT unit) const;
76 void cancel_adaptor();
77 void enable_extraOptions(int);
78 void enable_minipageOptions(int);
79 void enable_spacingAbove(int);
80 void enable_spacingBelow(int);
82 void restore_adaptor();
85 #endif // PARAGRAPHDLGIMPL_H