X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormParagraph.h;h=d55ae062aec0ef6bd94500fa5945c46516e1428e;hb=d5443737342903de489d527802cd2cdd38987d74;hp=3fd36d7d30ace8f4615ff4af9f431507850a0b00;hpb=d1182f17daa1a164d9527ccbe6500840d7ac6bc8;p=lyx.git diff --git a/src/frontends/xforms/FormParagraph.h b/src/frontends/xforms/FormParagraph.h index 3fd36d7d30..d55ae062ae 100644 --- a/src/frontends/xforms/FormParagraph.h +++ b/src/frontends/xforms/FormParagraph.h @@ -1,91 +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_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 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; - - /// - 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 dialog_; - /// - boost::scoped_ptr general_; - /// 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