]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/paragraphdlgimpl.h
implement getLabelList
[lyx.git] / src / frontends / qt2 / paragraphdlgimpl.h
1 /**
2  * \file paragraphdlgimpl.h
3  * Copyright 2001 LyX Team
4  * see the file COPYING
5  *
6  * \author John Levon, moz@compsoc.man.ac.uk
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #ifndef PARAGRAPHDLGIMPL_H
11 #define PARAGRAPHDLGIMPL_H
12
13 #include "paragraphdlg.h"
14 #include "vspace.h"
15 #include "lyxparagraph.h"
16
17
18 class FormParagraph;
19
20 class ParagraphDlgImpl : public ParagraphDlg
21 {
22    Q_OBJECT
23      
24  public:
25    
26     ParagraphDlgImpl(FormParagraph *form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
27     ~ParagraphDlgImpl();
28    
29    void setReadOnly(bool);
30    void setLabelWidth(const char *);
31    void setAlign(int);
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;
56    
57    
58  protected:
59    
60    void closeEvent (QCloseEvent * e);
61    
62    
63  private:
64    
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;
69    
70    
71  protected slots:
72    
73     void apply_adaptor();
74     void cancel_adaptor();
75     void enable_extraOptions(int);
76     void enable_minipageOptions(int);
77     void enable_spacingAbove(int);
78     void enable_spacingBelow(int);
79     void ok_adaptor();
80     void restore_adaptor();
81
82 };
83
84 #endif // PARAGRAPHDLGIMPL_H