2001-02-27 11:03:25 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-26 15:17:19 +00:00
|
|
|
/**
|
|
|
|
* \file FormCharacter.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORM_CHARACTER_H
|
|
|
|
#define FORM_CHARACTER_H
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
|
|
|
|
#include "FormBaseDeprecated.h"
|
|
|
|
#include "xformsBC.h"
|
2001-02-26 15:17:19 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG_
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
class Dialogs;
|
|
|
|
class Combox;
|
|
|
|
struct FD_form_character;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class provides an XForms implementation of the FormCharacter Dialog.
|
|
|
|
* The character dialog allows users to change the character settings
|
|
|
|
* in their documents.
|
|
|
|
*/
|
|
|
|
class FormCharacter : public FormBaseBD {
|
|
|
|
public:
|
2001-03-15 13:37:04 +00:00
|
|
|
///
|
|
|
|
FormCharacter(LyXView *, Dialogs *);
|
2001-02-26 15:17:19 +00:00
|
|
|
private:
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Pointer to the actual instantiation of the ButtonController.
|
|
|
|
virtual xformsBC & bc();
|
|
|
|
|
|
|
|
/// Build the popup
|
|
|
|
virtual void build();
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Apply from popup
|
|
|
|
virtual void apply();
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Update the popup.
|
|
|
|
virtual void update();
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Pointer to the actual instantiation of the xform's form
|
|
|
|
virtual FL_FORM * form() const;
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
///
|
|
|
|
FD_form_character * build_character();
|
2001-02-26 15:17:19 +00:00
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Real GUI implementation.
|
|
|
|
boost::scoped_ptr<FD_form_character> dialog_;
|
|
|
|
|
|
|
|
///
|
|
|
|
boost::scoped_ptr<Combox> combo_language2_;
|
|
|
|
|
|
|
|
/// The ButtonController
|
|
|
|
ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
|
2001-02-26 15:17:19 +00:00
|
|
|
};
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
xformsBC & FormCharacter::bc()
|
|
|
|
{
|
|
|
|
return bc_;
|
|
|
|
}
|
2001-02-26 15:17:19 +00:00
|
|
|
#endif
|