mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
|
// -*- C++ -*-
|
||
|
/* This file is part of
|
||
|
* ======================================================
|
||
|
*
|
||
|
* LyX, The Document Processor
|
||
|
*
|
||
|
* Copyright 2000 The LyX Team.
|
||
|
*
|
||
|
* ======================================================
|
||
|
*/
|
||
|
|
||
|
#ifndef FORMERROR_H
|
||
|
#define FORMERROR_H
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma interface
|
||
|
#endif
|
||
|
|
||
|
#include "FormBase.h"
|
||
|
#include "insets/inseterror.h"
|
||
|
|
||
|
struct FD_form_error;
|
||
|
|
||
|
/** This class provides an XForms implementation of the FormError Dialog.
|
||
|
*/
|
||
|
class FormError : public FormBase, public noncopyable {
|
||
|
public:
|
||
|
/// Constructor
|
||
|
FormError(LyXView *, Dialogs *);
|
||
|
///
|
||
|
~FormError();
|
||
|
private:
|
||
|
/// Slot launching dialog to an existing inset
|
||
|
void showInset( InsetError * const );
|
||
|
/// Update dialog before showing it
|
||
|
void update();
|
||
|
/// Build the dialog
|
||
|
void build();
|
||
|
/// Reset data when hide() is called
|
||
|
void clearStore();
|
||
|
/// Pointer to the actual instantiation of the xform's form
|
||
|
FL_FORM * const form() const;
|
||
|
/// Fdesign generated method
|
||
|
FD_form_error * build_error();
|
||
|
|
||
|
/// Real GUI implementation.
|
||
|
FD_form_error * dialog_;
|
||
|
/// inset::hide connection.
|
||
|
Connection ih_;
|
||
|
/// the error message
|
||
|
string message_;
|
||
|
};
|
||
|
|
||
|
#endif
|