2001-03-15 13:37:04 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-12 14:09:09 +00:00
|
|
|
/**
|
|
|
|
* \file FormBibtex.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
* \author John Levon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMBIBTEX_H
|
|
|
|
#define FORMBIBTEX_H
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
#include <boost/smart_ptr.hpp>
|
|
|
|
|
|
|
|
#include "FormInset.h"
|
|
|
|
#include "xformsBC.h"
|
|
|
|
|
2001-02-12 14:09:09 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct FD_form_bibtex;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* For bibtex database setting
|
|
|
|
*/
|
|
|
|
class FormBibtex : public FormCommand {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
FormBibtex(LyXView *, Dialogs *);
|
|
|
|
private:
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Pointer to the actual instantiation of the ButtonController.
|
|
|
|
virtual xformsBC & bc();
|
2001-02-12 14:09:09 +00:00
|
|
|
/// Connect signals etc. Set form's max size.
|
|
|
|
virtual void connect();
|
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
|
|
|
/// Update dialog before showing it
|
|
|
|
virtual void update();
|
|
|
|
/// input handler
|
|
|
|
virtual bool input(FL_OBJECT *, long);
|
|
|
|
/// Apply from dialog (modify or create inset)
|
|
|
|
virtual void apply();
|
2001-03-05 19:02:40 +00:00
|
|
|
/// Pointer to the actual instantiation of the xforms form
|
2001-02-12 14:09:09 +00:00
|
|
|
virtual FL_FORM * form() const;
|
|
|
|
///
|
|
|
|
FD_form_bibtex * build_bibtex();
|
|
|
|
/// Real GUI implementation.
|
2001-03-15 13:37:04 +00:00
|
|
|
boost::scoped_ptr<FD_form_bibtex> dialog_;
|
|
|
|
/// The ButtonController
|
|
|
|
ButtonController<OkCancelReadOnlyPolicy, xformsBC> bc_;
|
2001-02-12 14:09:09 +00:00
|
|
|
};
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
xformsBC & FormBibtex::bc()
|
|
|
|
{
|
|
|
|
return bc_;
|
|
|
|
}
|
2001-02-12 14:09:09 +00:00
|
|
|
#endif // FORMBIBTEX_H
|