2002-03-07 15:06:57 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/*
|
|
|
|
* \file FormSendto.h
|
|
|
|
* Copyright 2002 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
2002-03-11 17:00:41 +00:00
|
|
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
2002-03-07 15:06:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMSENDTO_H
|
|
|
|
#define FORMSENDTO_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "FormBase.h"
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class ControlSendto;
|
|
|
|
class Format;
|
2002-06-13 13:43:51 +00:00
|
|
|
struct FD_sendto;
|
2002-03-07 15:06:57 +00:00
|
|
|
|
|
|
|
/** This class provides an XForms implementation of the Custom Export Dialog.
|
|
|
|
*/
|
2002-06-13 13:43:51 +00:00
|
|
|
class FormSendto : public FormCB<ControlSendto, FormDB<FD_sendto> > {
|
2002-03-07 15:06:57 +00:00
|
|
|
public:
|
|
|
|
///
|
2002-07-02 19:23:10 +00:00
|
|
|
FormSendto(ControlSendto &, Dialogs &);
|
2002-03-07 15:06:57 +00:00
|
|
|
private:
|
|
|
|
/// Apply from dialog (modify or create inset)
|
|
|
|
virtual void apply();
|
|
|
|
/// Build the dialog
|
|
|
|
virtual void build();
|
|
|
|
/// Update the dialog
|
|
|
|
virtual void update();
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
|
|
|
|
std::vector<Format const *> all_formats_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FORMSENDTO_H
|