lyx_mirror/src/frontends/xforms/FormInset.h
Jean-Marc Lasgouttes 0464bef7be idiot-patch from Angus, new latvian keymap
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1149 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-24 15:15:25 +00:00

72 lines
1.8 KiB
C++

// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2000 The LyX Team.
*
* ======================================================
*/
#ifndef FORMCOMMAND_H
#define FORMCOMMAND_H
#include "FormBase.h"
#include "insets/insetcommand.h"
#ifdef __GNUG__
#pragma interface
#endif
/** This class is an XForms GUI base class to insets
*/
class FormInset : public FormBaseBD {
protected:
/// Constructor
FormInset( LyXView *, Dialogs *, string const &,
ButtonPolicy * bp = new OkCancelReadOnlyPolicy,
char const * close = N_("Close"),
char const * cancel = N_("Cancel"));
/// Connect signals. Also perform any necessary initialisation.
virtual void connect();
/// Disconnect signals. Also perform any necessary housekeeping.
virtual void disconnect();
/// bool indicates if a buffer switch took place
virtual void updateSlot(bool);
/// inset::hide connection.
Connection ih_;
};
/** This class is an XForms GUI base class to insets derived from
InsetCommand
*/
class FormCommand : public FormInset {
protected:
/// Constructor
FormCommand( LyXView *, Dialogs *, string const &,
ButtonPolicy * = new OkCancelReadOnlyPolicy,
char const * close = N_("Close"),
char const * cancel = N_("Cancel"));
/// Disconnect signals. Also perform any necessary housekeeping.
virtual void disconnect();
/// Slot launching dialog to (possibly) create a new inset
void createInset( string const & );
/// Slot launching dialog to an existing inset
void showInset( InsetCommand * );
/// pointer to the inset passed through showInset
InsetCommand * inset_;
/// the nitty-griity. What is modified and passed back
InsetCommandParams params;
};
#endif