mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
0de182f257
* Constify many ButtonController/View methods. * Try and document the code ;-) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6495 a592a061-630c-0410-9148-cb99ea01b6c8
74 lines
1.3 KiB
C++
74 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlCharacter.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef CONTROLCHARACTER_H
|
|
#define CONTROLCHARACTER_H
|
|
|
|
|
|
#include "Dialog.h"
|
|
#include "character.h"
|
|
|
|
|
|
class ControlCharacter : public Dialog::Controller {
|
|
public:
|
|
///
|
|
ControlCharacter(Dialog &);
|
|
///
|
|
virtual bool initialiseParams(string const & data);
|
|
///
|
|
virtual void clearParams();
|
|
///
|
|
virtual void dispatchParams();
|
|
///
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
///
|
|
void setFamily(LyXFont::FONT_FAMILY);
|
|
///
|
|
void setSeries(LyXFont::FONT_SERIES);
|
|
///
|
|
void setShape(LyXFont::FONT_SHAPE);
|
|
///
|
|
void setSize(LyXFont::FONT_SIZE);
|
|
///
|
|
void setBar(frnt::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;
|
|
///
|
|
frnt::FONT_STATE getBar() const;
|
|
///
|
|
LColor::color getColor() const;
|
|
///
|
|
string getLanguage() const;
|
|
///
|
|
bool getToggleAll() const;
|
|
private:
|
|
///
|
|
boost::scoped_ptr<LyXFont> font_;
|
|
///
|
|
bool toggleall_;
|
|
};
|
|
|
|
#endif // CONTROLCHARACTER_H
|