]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlCharacter.h
dont use pragma impementation and interface anymore
[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
16 #include "ControlDialog_impl.h"
17 #include "character.h"
18
19 #include <boost/scoped_ptr.hpp>
20
21 /** A controller for Character dialogs.
22  */
23 class ControlCharacter : public ControlDialogBD {
24 public:
25         ///
26         ControlCharacter(LyXView &, Dialogs &);
27
28         ///
29         void setFamily(LyXFont::FONT_FAMILY);
30         ///
31         void setSeries(LyXFont::FONT_SERIES);
32         ///
33         void setShape(LyXFont::FONT_SHAPE);
34         ///
35         void setSize(LyXFont::FONT_SIZE);
36         ///
37         void setBar(frnt::FONT_STATE);
38         ///
39         void setColor(LColor::color);
40         ///
41         void setLanguage(string const &);
42         ///
43         void setToggleAll(bool);
44
45         ///
46         LyXFont::FONT_FAMILY getFamily() const;
47         ///
48         LyXFont::FONT_SERIES getSeries() const;
49         ///
50         LyXFont::FONT_SHAPE getShape() const;
51         ///
52         LyXFont::FONT_SIZE getSize() const;
53         ///
54         frnt::FONT_STATE getBar() const;
55         ///
56         LColor::color getColor() const;
57         ///
58         string getLanguage() const;
59         ///
60         bool getToggleAll() const;
61
62         /// Get changed parameters and Dispatch them to the kernel.
63         virtual void apply();
64 private:
65         /// set the params before show or update.
66         virtual void setParams();
67
68         ///
69         boost::scoped_ptr<LyXFont> font_;
70         ///
71         bool toggleall_;
72 };
73
74 #endif // CONTROLCHARACTER_H