2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "DialogBase.h"
21 #include "boost/utility.hpp"
22 #include "insets/inseterror.h"
24 #include <gtk--/container.h>
26 /** This class provides an Gnome implementation of the FormError Dialog.
28 class FormError : public DialogBase, public noncopyable {
31 FormError(LyXView *, Dialogs *);
35 /// Slot launching dialog to an existing inset
36 void showInset( InsetError * const );
38 /// Update dialog before showing it
39 virtual void update() { }
40 virtual void updateSlot(bool = false);
41 /// Apply from dialog (modify or create inset)
43 /// Explicitly free the dialog.
45 /// Create the dialog if necessary, update it and display it.
50 /** Which LyXFunc do we use?
51 We could modify Dialogs to have a visible LyXFunc* instead and
52 save a couple of bytes per dialog.
55 /** Which Dialogs do we belong to?
56 Used so we can get at the signals we have to connect to.
59 /// pointer to the inset passed through showInset (if any)
61 /// Update connection.
65 /// inset::hide connection.
68 /// Real GUI implementation.
69 Gtk::Container * dialog_;