lyx_mirror/src/frontends/xforms/FormRef.h
Jean-Marc Lasgouttes d46b4d4360 Jose's DocBook tables patch; Angus latest preference patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1169 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-27 10:04:51 +00:00

95 lines
1.6 KiB
C++

// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2000 The LyX Team.
*
* ======================================================
*/
#ifndef FORMREF_H
#define FORMREF_H
#ifdef __GNUG__
#pragma interface
#endif
#include "FormInset.h"
struct FD_form_ref;
/** This class provides an XForms implementation of the FormRef Dialog.
*/
class FormRef : public FormCommand {
public:
///
FormRef(LyXView *, Dialogs *);
///
~FormRef();
private:
///
enum Type{
///
REF,
///
PAGEREF,
///
VREF,
///
VPAGEREF,
///
PRETTYREF
};
///
enum Goto{
///
GOREF,
///
GOBACK,
///
GOFIRST
};
/// Connect signals etc. Set form's max size.
virtual void connect();
/// Disconnect signals. Also perform any necessary housekeeping.
virtual void disconnect();
/// Build the dialog
virtual void build();
/// Filter the input
virtual bool input( FL_OBJECT *, long );
/// Update dialog before showing it
virtual void update();
/// Not used but must be instantiated
virtual void apply();
/// Pointer to the actual instantiation of the xform's form
virtual FL_FORM * form() const;
///
void updateBrowser( std::vector<string> ) const;
///
void showBrowser() const;
///
void hideBrowser() const;
///
void setSize( int, int ) const;
///
FD_form_ref * build_ref();
///
Type getType() const;
///
string getName( Type type ) const;
///
Goto toggle;
///
std::vector<string> refs;
/// Real GUI implementation.
FD_form_ref * dialog_;
};
#endif