2001-10-09 15:20:10 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file FormTexinfo.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Herbert Voss <voss@perce.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMTEXINFO_H
|
|
|
|
#define FORMTEXINFO_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FormBase.h"
|
2001-10-10 16:45:05 +00:00
|
|
|
#include "ControlTexinfo.h"
|
2001-10-09 15:20:10 +00:00
|
|
|
|
|
|
|
struct FD_form_texinfo;
|
|
|
|
|
|
|
|
class FormTexinfo : public FormCB<ControlTexinfo, FormDB<FD_form_texinfo> > {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
FormTexinfo(ControlTexinfo &);
|
|
|
|
|
|
|
|
/// preemptive handler for feedback messages
|
|
|
|
void feedbackCB(FL_OBJECT *, int);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// not needed
|
|
|
|
virtual void apply() {}
|
|
|
|
/// Build the dialog.
|
|
|
|
virtual void build();
|
|
|
|
/// not needed
|
|
|
|
virtual void update() {}
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
///
|
|
|
|
void feedback(FL_OBJECT *);
|
|
|
|
///
|
2001-10-10 16:45:05 +00:00
|
|
|
void updateStyles(ControlTexinfo::texFileSuffix);
|
2001-10-09 15:20:10 +00:00
|
|
|
/// Fdesign generated method
|
|
|
|
FD_form_texinfo * build_texinfo();
|
|
|
|
///
|
|
|
|
bool warningPosted;
|
|
|
|
///
|
2001-10-10 16:45:05 +00:00
|
|
|
ControlTexinfo::texFileSuffix activeStyle;
|
2001-10-09 15:20:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FORMTEXINFO_H
|