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