mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
3e22b13963
contents of the character dialog even if the dialog is hidden. I think that the functionality of the character dialog/Font button on the toolbar is now as it was in 1.1.6. Oh, but we now have a working button controller that the GUI's get for free... Keep up the bug reports! Angus git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2114 a592a061-630c-0410-9148-cb99ea01b6c8
77 lines
1.4 KiB
C++
77 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \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
|
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "ControlDialogs.h"
|
|
#include "character.h"
|
|
|
|
/** A controller for Character dialogs.
|
|
*/
|
|
class ControlCharacter : public ControlDialog<ControlConnectBD>
|
|
{
|
|
public:
|
|
///
|
|
ControlCharacter(LyXView &, Dialogs &);
|
|
|
|
///
|
|
void setFamily(LyXFont::FONT_FAMILY);
|
|
///
|
|
void setSeries(LyXFont::FONT_SERIES);
|
|
///
|
|
void setShape(LyXFont::FONT_SHAPE);
|
|
///
|
|
void setSize(LyXFont::FONT_SIZE);
|
|
///
|
|
void setBar(character::FONT_STATE);
|
|
///
|
|
void setColor(LColor::color);
|
|
///
|
|
void setLanguage(string const &);
|
|
///
|
|
void setToggleAll(bool);
|
|
|
|
///
|
|
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;
|
|
|
|
private:
|
|
/// Get changed parameters and Dispatch them to the kernel.
|
|
virtual void apply();
|
|
/// set the params before show or update.
|
|
virtual void setParams();
|
|
|
|
///
|
|
boost::scoped_ptr<LyXFont> font_;
|
|
///
|
|
bool toggleall_;
|
|
};
|
|
|
|
#endif // CONTROLCHARACTER_H
|