2001-06-13 13:44:23 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-21 13:27:03 +00:00
|
|
|
/**
|
|
|
|
* \file ControlCharacter.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming, a.leeming@.ac.uk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLCHARACTER_H
|
|
|
|
#define CONTROLCHARACTER_H
|
|
|
|
|
2001-06-13 13:44:23 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
|
2001-03-21 13:27:03 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-03-22 11:24:36 +00:00
|
|
|
#include "ControlDialogs.h"
|
2001-03-28 12:59:29 +00:00
|
|
|
#include "character.h"
|
2001-03-21 13:27:03 +00:00
|
|
|
|
|
|
|
/** A controller for Character dialogs.
|
|
|
|
*/
|
2001-03-22 11:24:36 +00:00
|
|
|
class ControlCharacter : public ControlDialog<ControlConnectBD>
|
2001-03-21 13:27:03 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlCharacter(LyXView &, Dialogs &);
|
|
|
|
|
|
|
|
///
|
|
|
|
void setFamily(LyXFont::FONT_FAMILY);
|
|
|
|
///
|
|
|
|
void setSeries(LyXFont::FONT_SERIES);
|
|
|
|
///
|
|
|
|
void setShape(LyXFont::FONT_SHAPE);
|
|
|
|
///
|
|
|
|
void setSize(LyXFont::FONT_SIZE);
|
|
|
|
///
|
2001-03-28 12:59:29 +00:00
|
|
|
void setBar(character::FONT_STATE);
|
2001-03-21 13:27:03 +00:00
|
|
|
///
|
|
|
|
void setColor(LColor::color);
|
|
|
|
///
|
|
|
|
void setLanguage(string const &);
|
|
|
|
///
|
|
|
|
void setToggleAll(bool);
|
|
|
|
|
2001-06-13 13:44:23 +00:00
|
|
|
///
|
|
|
|
LyXFont::FONT_FAMILY getFamily() const;
|
|
|
|
///
|
|
|
|
LyXFont::FONT_SERIES getSeries() const;
|
|
|
|
///
|
|
|
|
LyXFont::FONT_SHAPE getShape() const;
|
|
|
|
///
|
|
|
|
LyXFont::FONT_SIZE getSize() const;
|
|
|
|
///
|
|
|
|
character::FONT_STATE getBar() const;
|
|
|
|
///
|
|
|
|
LColor::color getColor() const;
|
|
|
|
///
|
|
|
|
string getLanguage() const;
|
|
|
|
///
|
|
|
|
bool getToggleAll() const;
|
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
private:
|
2001-03-21 13:27:03 +00:00
|
|
|
/// Get changed parameters and Dispatch them to the kernel.
|
|
|
|
virtual void apply();
|
2001-03-22 11:24:36 +00:00
|
|
|
/// set the params before show or update.
|
|
|
|
virtual void setParams();
|
2001-03-21 13:27:03 +00:00
|
|
|
|
2001-03-23 17:09:34 +00:00
|
|
|
///
|
2001-06-13 13:44:23 +00:00
|
|
|
boost::scoped_ptr<LyXFont> font_;
|
2001-03-23 17:09:34 +00:00
|
|
|
///
|
2001-03-21 13:27:03 +00:00
|
|
|
bool toggleall_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLCHARACTER_H
|