mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
a97c4f51c3
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg38939.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4393 a592a061-630c-0410-9148-cb99ea01b6c8
76 lines
1.7 KiB
C++
76 lines
1.7 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormCharacter.h
|
|
* Copyright 2001 The LyX Team.
|
|
* See the file COPYING.
|
|
*
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
|
*/
|
|
|
|
#ifndef FORM_CHARACTER_H
|
|
#define FORM_CHARACTER_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "FormBase.h"
|
|
#include "lyxfont.h" // for LyXFont enums
|
|
#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_character;
|
|
|
|
/**
|
|
* This class provides an XForms implementation of the Character Dialog.
|
|
* The character dialog allows users to change the character settings
|
|
* in their documents.
|
|
*/
|
|
class FormCharacter
|
|
: public FormCB<ControlCharacter, FormDB<FD_character> > {
|
|
public:
|
|
///
|
|
FormCharacter(ControlCharacter &);
|
|
private:
|
|
|
|
/// Apply from dialog
|
|
virtual void apply();
|
|
|
|
/// Build the dialog
|
|
virtual void build();
|
|
|
|
/// Update the dialog.
|
|
virtual void update();
|
|
|
|
/// 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 *);
|
|
|
|
///
|
|
boost::scoped_ptr<Combox> combo_language2_;
|
|
///
|
|
std::vector<LyXFont::FONT_FAMILY> family_;
|
|
///
|
|
std::vector<LyXFont::FONT_SERIES> series_;
|
|
///
|
|
std::vector<LyXFont::FONT_SHAPE> shape_;
|
|
///
|
|
std::vector<LyXFont::FONT_SIZE> size_;
|
|
///
|
|
std::vector<frnt::FONT_STATE> bar_;
|
|
///
|
|
std::vector<LColor::color> color_;
|
|
///
|
|
std::vector<string> lang_;
|
|
};
|
|
|
|
#endif
|