2001-03-05 12:04:43 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-16 17:20:06 +00:00
|
|
|
/**
|
2001-03-05 12:04:43 +00:00
|
|
|
* \file FormCharacter.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
2001-03-16 17:20:06 +00:00
|
|
|
*
|
2001-03-05 12:04:43 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORM_CHARACTER_H
|
|
|
|
#define FORM_CHARACTER_H
|
|
|
|
|
|
|
|
#include "DialogBase.h"
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
class Dialogs;
|
|
|
|
class CharDlgImpl;
|
|
|
|
|
|
|
|
class FormCharacter : public DialogBase {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
FormCharacter(LyXView *, Dialogs *);
|
|
|
|
///
|
|
|
|
~FormCharacter();
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// Apply changes.
|
|
|
|
void apply();
|
|
|
|
/// Close connections.
|
|
|
|
void close();
|
2001-03-16 17:20:06 +00:00
|
|
|
|
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
private:
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// Show the dialog.
|
|
|
|
void show();
|
|
|
|
/// Hide the dialog.
|
|
|
|
void hide();
|
|
|
|
/// Update the dialog.
|
|
|
|
void update(bool switched = false);
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// Real GUI implementation.
|
|
|
|
CharDlgImpl * dialog_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// the LyXView we belong to.
|
|
|
|
LyXView * lv_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/** Which Dialogs do we belong to?
|
|
|
|
* Used so we can get at the signals we have to connect to.
|
|
|
|
*/
|
|
|
|
Dialogs * d_;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// is the buffer readonly?
|
|
|
|
bool readonly;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
/// Hide connection.
|
2001-03-16 17:20:06 +00:00
|
|
|
SigC::Connection h_;
|
2001-03-05 12:04:43 +00:00
|
|
|
|
|
|
|
/// Update connection.
|
2001-03-16 17:20:06 +00:00
|
|
|
SigC::Connection u_;
|
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|