]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlCharacter.h
prefs/tabular MVC work
[lyx.git] / src / frontends / controllers / ControlCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file ControlCharacter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLCHARACTER_H
13 #define CONTROLCHARACTER_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20 #include "character.h"
21
22 #include <boost/scoped_ptr.hpp>
23
24 /** A controller for Character dialogs.
25  */
26 class ControlCharacter : public ControlDialogBD {
27 public:
28         ///
29         ControlCharacter(LyXView &, Dialogs &);
30
31         ///
32         void setFamily(LyXFont::FONT_FAMILY);
33         ///
34         void setSeries(LyXFont::FONT_SERIES);
35         ///
36         void setShape(LyXFont::FONT_SHAPE);
37         ///
38         void setSize(LyXFont::FONT_SIZE);
39         ///
40         void setBar(frnt::FONT_STATE);
41         ///
42         void setColor(LColor::color);
43         ///
44         void setLanguage(string const &);
45         ///
46         void setToggleAll(bool);
47
48         ///
49         LyXFont::FONT_FAMILY getFamily() const;
50         ///
51         LyXFont::FONT_SERIES getSeries() const;
52         ///
53         LyXFont::FONT_SHAPE getShape() const;
54         ///
55         LyXFont::FONT_SIZE getSize() const;
56         ///
57         frnt::FONT_STATE getBar() const;
58         ///
59         LColor::color getColor() const;
60         ///
61         string getLanguage() const;
62         ///
63         bool getToggleAll() const;
64
65         /// Get changed parameters and Dispatch them to the kernel.
66         virtual void apply();
67 private:
68         /// set the params before show or update.
69         virtual void setParams();
70
71         ///
72         boost::scoped_ptr<LyXFont> font_;
73         ///
74         bool toggleall_;
75 };
76
77 #endif // CONTROLCHARACTER_H