2000-08-01 17:33:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORMCOMMAND_H
|
|
|
|
#define FORMCOMMAND_H
|
|
|
|
|
2000-09-27 05:40:29 +00:00
|
|
|
#include "FormBase.h"
|
2000-08-01 17:33:32 +00:00
|
|
|
#include "insets/insetcommand.h"
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** This class is an XForms GUI base class to insets derived from
|
|
|
|
InsetCommand
|
|
|
|
*/
|
2000-09-27 05:40:29 +00:00
|
|
|
class FormCommand : public FormBase {
|
2000-08-01 17:33:32 +00:00
|
|
|
public:
|
|
|
|
/// Constructor
|
2000-10-02 00:10:25 +00:00
|
|
|
FormCommand( LyXView *, Dialogs *, string const &,
|
|
|
|
ButtonPolicy * bp = new OkCancelReadOnlyPolicy );
|
2000-08-08 13:55:26 +00:00
|
|
|
|
2000-08-01 17:33:32 +00:00
|
|
|
protected:
|
2000-08-03 12:56:25 +00:00
|
|
|
/// Slot launching dialog to (possibly) create a new inset
|
2000-08-01 17:33:32 +00:00
|
|
|
void createInset( string const & );
|
2000-08-03 12:56:25 +00:00
|
|
|
/// Slot launching dialog to an existing inset
|
2000-08-01 17:33:32 +00:00
|
|
|
void showInset( InsetCommand * const );
|
2000-08-03 12:56:25 +00:00
|
|
|
|
|
|
|
/// pointer to the inset passed through showInset (if any)
|
|
|
|
InsetCommand * inset_;
|
|
|
|
/// the nitty-griity. What is modified and passed back
|
|
|
|
InsetCommandParams params;
|
2000-08-01 17:33:32 +00:00
|
|
|
/// inset::hide connection.
|
|
|
|
Connection ih_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|