]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCharacter.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormCharacter.h
index a2a2c1c880ec17f2c06f31bd6cd1dd459b155e0c..8de86771e47e79849c3c0615ca19d8ebd2f0df0c 100644 (file)
@@ -1,18 +1,18 @@
 // -*- 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
 
-#include <boost/smart_ptr.hpp>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 #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 FD_character;
 
 /**
  * This class provides an XForms implementation of the Character Dialog.
@@ -32,10 +34,10 @@ struct FD_form_character;
  * in their documents.
  */
 class FormCharacter
-       : public FormCB<ControlCharacter, FormDB<FD_form_character> > {
+       : public FormCB<ControlCharacter, FormDB<FD_character> > {
 public:
        ///
-       FormCharacter(ControlCharacter &);
+       FormCharacter();
 private:
 
        /// Apply from dialog
@@ -54,9 +56,6 @@ private:
            combox is changed */
        static void ComboInputCB(int, void *, Combox *);
 
-       /// Fdesign generated method
-       FD_form_character * build_character();
-
        ///
        boost::scoped_ptr<Combox> combo_language2_;
        ///
@@ -68,9 +67,11 @@ private:
        ///
        std::vector<LyXFont::FONT_SIZE>    size_;
        ///
-       std::vector<character::FONT_STATE> bar_;
+       std::vector<frnt::FONT_STATE>      bar_;
        ///
        std::vector<LColor::color>         color_;
+       ///
+       std::vector<string>                lang_;
 };
 
 #endif