]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormInset.h
use exclicit temp var
[lyx.git] / src / frontends / xforms / FormInset.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000-2001 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMCOMMAND_H
13 #define FORMCOMMAND_H
14
15 #include "FormBaseDeprecated.h"
16 #include "insets/insetcommand.h"
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22
23 /** This class is an XForms GUI base class to insets
24  */
25 class FormInset : public FormBaseBD {
26 protected:
27         /// Constructor
28         FormInset(LyXView *, Dialogs *, string const &);
29
30         /// Connect signals. Also perform any necessary initialisation.
31         virtual void connect();
32         /// Disconnect signals. Also perform any necessary housekeeping.
33         virtual void disconnect();
34
35         /// bool indicates if a buffer switch took place
36         virtual void updateSlot(bool);
37
38         /// inset::hide connection.
39         SigC::Connection ih_;
40 };
41
42
43 /** This class is an XForms GUI base class to insets derived from
44     InsetCommand
45  */
46 class FormCommand : public FormInset {
47 protected:
48         /// Constructor
49         FormCommand(LyXView *, Dialogs *, string const &);
50
51         /// Disconnect signals. Also perform any necessary housekeeping.
52         virtual void disconnect();
53
54         /// Slot launching dialog to (possibly) create a new inset
55         void createInset(string const &);
56         /// Slot launching dialog to an existing inset
57         void showInset(InsetCommand *);
58
59         /// pointer to the inset passed through showInset
60         InsetCommand * inset_;
61         /// the nitty-griity. What is modified and passed back
62         InsetCommandParams params;
63 };
64
65 #endif