lyx_mirror/src/frontends/xforms/FormParagraph.h
Lars Gullik Bjønnes d1182f17da LyX Drinkers Union: patch 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2141 a592a061-630c-0410-9148-cb99ea01b6c8
2001-06-25 00:06:33 +00:00

92 lines
2.1 KiB
C++

// -*- C++ -*-
/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2000-2001 The LyX Team.
*
* @author Jürgen Vigna
*
*======================================================*/
#ifndef FORM_PARAGRAPH_H
#define FORM_PARAGRAPH_H
#include <boost/smart_ptr.hpp>
#ifdef __GNUG_
#pragma interface
#endif
#include "FormBaseDeprecated.h"
class Paragraph;
struct FD_form_tabbed_paragraph;
struct FD_form_paragraph_general;
struct FD_form_paragraph_extra;
/** This class provides an XForms implementation of the FormParagraph dialog.
* @author Jürgen Vigna
*/
class FormParagraph : public FormBaseBD {
public:
///
FormParagraph(LyXView *, Dialogs *);
private:
/// Pointer to the actual instantiation of the ButtonController.
virtual xformsBC & bc();
/** Redraw the form (on receipt of a Signal indicating, for example,
that the xforms colours have been re-mapped). */
virtual void redraw();
/// Build the dialog
virtual void build();
/// Apply from dialog
virtual void apply();
/// Update the dialog
virtual void update();
/// Filter the inputs on callback from xforms
virtual bool input(FL_OBJECT * ob, long);
/// Connect signals
virtual void connect();
/// Disconnect signals
virtual void disconnect();
///
void changedParagraph();
///
Paragraph const * getCurrentParagraph() const;
///
virtual FL_FORM * form() const;
///
void general_update();
///
void general_apply();
/// Fdesign generated methods
FD_form_tabbed_paragraph * build_tabbed_paragraph();
///
FD_form_paragraph_general * build_paragraph_general();
///
FD_form_paragraph_extra * build_paragraph_extra();
/// Real GUI implementation.
boost::scoped_ptr<FD_form_tabbed_paragraph> dialog_;
///
boost::scoped_ptr<FD_form_paragraph_general> general_;
/// The ButtonController
ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
/// Changed Paragraph connection.
SigC::Connection cp_;
/// The current Paragraph
Paragraph const * par_;
};
inline
xformsBC & FormParagraph::bc()
{
return bc_;
}
#endif