]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCharacter.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlCharacter.h
index 6266b10f38cbc252f38d276d34767263b93cfa04..b479886633e43986a87b0deee35948a28aa4a19e 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file ControlCharacter.h
  * Copyright 2001 The LyX Team.
@@ -9,6 +10,8 @@
 #ifndef CONTROLCHARACTER_H
 #define CONTROLCHARACTER_H
 
+#include <boost/smart_ptr.hpp>
+
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -41,16 +44,31 @@ public:
        ///
        void setToggleAll(bool);
 
+       ///
+       LyXFont::FONT_FAMILY getFamily() const;
+       ///
+       LyXFont::FONT_SERIES getSeries() const;
+       ///
+       LyXFont::FONT_SHAPE getShape() const;
+       ///
+       LyXFont::FONT_SIZE getSize() const;
+       ///
+       character::FONT_STATE getBar() const;
+       ///
+       LColor::color getColor() const;
+       ///
+       string getLanguage() const;
+       ///
+       bool getToggleAll() const;
+
 private:
        /// Get changed parameters and Dispatch them to the kernel.
        virtual void apply();
        /// set the params before show or update.
        virtual void setParams();
-       /// clean-up on hide.
-       virtual void clearParams();
 
        ///
-       LyXFont * font_;
+       boost::scoped_ptr<LyXFont> font_;
        ///
        bool toggleall_;
 };