2001-06-13 13:44:23 +00:00
|
|
|
// -*- C++ -*-
|
2002-03-21 21:21:28 +00:00
|
|
|
/**
|
2001-02-26 15:17:19 +00:00
|
|
|
* \file FormCharacter.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 21:21:28 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Edwin Leuven
|
2002-12-01 22:59:25 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-02-26 15:17:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORM_CHARACTER_H
|
|
|
|
#define FORM_CHARACTER_H
|
|
|
|
|
2003-03-12 22:17:50 +00:00
|
|
|
#include "FormDialogView.h"
|
2001-03-21 13:27:03 +00:00
|
|
|
#include "ControlCharacter.h" // for ControlCharacter enum
|
2001-03-16 12:08:14 +00:00
|
|
|
|
2003-09-18 11:48:11 +00:00
|
|
|
struct LColor_color;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_character;
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
/**
|
2001-03-27 16:03:28 +00:00
|
|
|
* This class provides an XForms implementation of the Character Dialog.
|
2001-02-26 15:17:19 +00:00
|
|
|
* The character dialog allows users to change the character settings
|
|
|
|
* in their documents.
|
|
|
|
*/
|
2001-03-21 13:27:03 +00:00
|
|
|
class FormCharacter
|
2003-03-12 22:17:50 +00:00
|
|
|
: public FormController<ControlCharacter, FormView<FD_character> > {
|
2001-02-26 15:17:19 +00:00
|
|
|
public:
|
2001-03-15 13:37:04 +00:00
|
|
|
///
|
2003-03-12 22:17:50 +00:00
|
|
|
FormCharacter(Dialog &);
|
2001-02-26 15:17:19 +00:00
|
|
|
private:
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-04-03 14:30:58 +00:00
|
|
|
/// Apply from dialog
|
2001-03-15 13:37:04 +00:00
|
|
|
virtual void apply();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-04-03 14:30:58 +00:00
|
|
|
/// Build the dialog
|
2001-03-27 16:03:28 +00:00
|
|
|
virtual void build();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-06-12 13:54:04 +00:00
|
|
|
/// Update the dialog.
|
|
|
|
virtual void update();
|
|
|
|
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2001-03-28 13:11:08 +00:00
|
|
|
std::vector<LyXFont::FONT_FAMILY> family_;
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2001-03-28 13:11:08 +00:00
|
|
|
std::vector<LyXFont::FONT_SERIES> series_;
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2001-03-28 13:11:08 +00:00
|
|
|
std::vector<LyXFont::FONT_SHAPE> shape_;
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2001-03-28 13:11:08 +00:00
|
|
|
std::vector<LyXFont::FONT_SIZE> size_;
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2002-04-29 15:56:36 +00:00
|
|
|
std::vector<frnt::FONT_STATE> bar_;
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
2003-09-18 11:48:11 +00:00
|
|
|
std::vector<LColor_color> color_;
|
2002-04-29 14:26:42 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> lang_;
|
2001-02-26 15:17:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|