X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormParagraph.h;h=d55ae062aec0ef6bd94500fa5945c46516e1428e;hb=d5443737342903de489d527802cd2cdd38987d74;hp=1a632672c39c9095c6750c6603206644391b494b;hpb=9c36dd0f40f2e2e90fce8b2f33519a5d99d9be8b;p=lyx.git diff --git a/src/frontends/xforms/FormParagraph.h b/src/frontends/xforms/FormParagraph.h index 1a632672c3..d55ae062ae 100644 --- a/src/frontends/xforms/FormParagraph.h +++ b/src/frontends/xforms/FormParagraph.h @@ -1,85 +1,49 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor - * - * Copyright (C) 2000 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 -#include "FormBaseDeprecated.h" -#include "xformsBC.h" +#include "FormDialogView.h" +#include "RadioButtonGroup.h" -#ifdef __GNUG_ -#pragma interface -#endif +namespace lyx { +namespace frontend { -struct FD_form_tabbed_paragraph; -struct FD_form_paragraph_general; -struct FD_form_paragraph_extra; +class ControlParagraph; +struct FD_paragraph; -/** This class provides an XForms implementation of the FormParagraph Popup. - * @author Jürgen Vigna +/** This class provides an XForms implementation of the FormParagraph dialog. */ -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 popup + /// Build the dialog virtual void build(); - /// Apply from popup + /// Apply from dialog virtual void apply(); - /// Update the popup. + /// Update the dialog virtual void update(); - /// Filter the inputs on callback from xforms - virtual bool input(FL_OBJECT * ob, long); - - /// - virtual FL_FORM * form() const; - - /// - void general_update(); - /// - void extra_update(); - /// - void general_apply(); - /// - void extra_apply(); - /// Typedefinitions from the fdesign produced Header file - FD_form_tabbed_paragraph * build_tabbed_paragraph(); - /// - FD_form_paragraph_general * build_paragraph_general(); - /// - FD_form_paragraph_extra * build_paragraph_extra(); + /// Filter the inputs on callback from xforms + virtual ButtonPolicy::SMInput input(FL_OBJECT *, long); - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// - boost::scoped_ptr general_; - /// - boost::scoped_ptr extra_; - /// The ButtonController - ButtonController bc_; + /// alignment radio buttons + RadioButtonGroup alignment_; }; +} // namespace frontend +} // namespace lyx -inline -xformsBC & FormParagraph::bc() -{ - return bc_; -} #endif