]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCharacter.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormCharacter.h
index da290e13eb095f2e4ff41f8343a2b5fd4bfd60a2..080b61dc3928fe1a7ebc3bb5a7c906378f03140a 100644 (file)
@@ -1,30 +1,23 @@
 // -*- C++ -*-
 /**
  * \file FormCharacter.h
- * Copyright 2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Edwin Leuven, leuven@fee.uva.nl
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Edwin Leuven
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORM_CHARACTER_H
 #define FORM_CHARACTER_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "FormBase.h"
-#include "lyxfont.h"          // for LyXFont enums
+#include "FormDialogView.h"
 #include "ControlCharacter.h" // for ControlCharacter enum
-#include "LColor.h"           // for LColor enum
-#include "character.h"        // for FONT_STATE enum
-
-#include <boost/scoped_ptr.hpp>
 
-class Combox;
-struct FD_form_character;
+struct LColor_color;
+struct FD_character;
 
 /**
  * This class provides an XForms implementation of the Character Dialog.
@@ -32,10 +25,10 @@ struct FD_form_character;
  * in their documents.
  */
 class FormCharacter
-       : public FormCB<ControlCharacter, FormDB<FD_form_character> > {
+       : public FormController<ControlCharacter, FormView<FD_character> > {
 public:
        ///
-       FormCharacter(ControlCharacter &);
+       FormCharacter(Dialog &);
 private:
 
        /// Apply from dialog
@@ -50,15 +43,6 @@ private:
        /// Filter the inputs on callback from xforms
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
 
-       /** Callback method (used only to activate Apply button when
-           combox is changed */
-       static void ComboInputCB(int, void *, Combox *);
-
-       /// Fdesign generated method
-       FD_form_character * build_character();
-
-       ///
-       boost::scoped_ptr<Combox> combo_language2_;
        ///
        std::vector<LyXFont::FONT_FAMILY>  family_;
        ///
@@ -70,9 +54,9 @@ private:
        ///
        std::vector<frnt::FONT_STATE>      bar_;
        ///
-       std::vector<LColor::color>         color_;
+       std::vector<LColor_color>            color_;
        ///
-       std::vector<string>                lang_;
+       std::vector<std::string>                lang_;
 };
 
 #endif