X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormParagraph.h;h=d55ae062aec0ef6bd94500fa5945c46516e1428e;hb=d5443737342903de489d527802cd2cdd38987d74;hp=224b4b4a9ea871f94e5de561e998b0d307152e64;hpb=f4c407e4f64f8d742aefdd151b165928f5875e01;p=lyx.git diff --git a/src/frontends/xforms/FormParagraph.h b/src/frontends/xforms/FormParagraph.h index 224b4b4a9e..d55ae062ae 100644 --- a/src/frontends/xforms/FormParagraph.h +++ b/src/frontends/xforms/FormParagraph.h @@ -1,81 +1,49 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright 2000-2001 The LyX Team. +/** + * \file FormParagraph.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * @author Jürgen Vigna + * \author Jürgen Vigna * - *======================================================*/ + * Full author contact details are available in file CREDITS. + */ #ifndef FORM_PARAGRAPH_H #define FORM_PARAGRAPH_H -#include - -#ifdef __GNUG_ -#pragma interface -#endif +#include "FormDialogView.h" +#include "RadioButtonGroup.h" -#include "FormBaseDeprecated.h" +namespace lyx { +namespace frontend { -class Paragraph; -struct FD_form_paragraph; +class ControlParagraph; +struct FD_paragraph; /** This class provides an XForms implementation of the FormParagraph dialog. - * @author Jürgen Vigna */ -class FormParagraph : public FormBaseBD { +class FormParagraph + : public FormController > { public: /// - FormParagraph(LyXView *, Dialogs *); + FormParagraph(Dialog &); 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; - - /// Fdesign generated method - FD_form_paragraph * build_paragraph(); - - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// The ButtonController - ButtonController bc_; - - /// Changed Paragraph connection. - SigC::Connection cp_; + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); - /// The current Paragraph - Paragraph const * par_; + /// alignment radio buttons + RadioButtonGroup alignment_; }; +} // namespace frontend +} // namespace lyx -inline -xformsBC & FormParagraph::bc() -{ - return bc_; -} #endif