2000-09-25 15:59:27 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-03-11 17:00:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Tooltips.h
|
|
|
|
|
* Copyright 2000-2001 the LyX Team
|
|
|
|
|
* Read the file COPYING
|
2000-09-25 15:59:27 +00:00
|
|
|
|
*
|
2002-03-11 17:00:41 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Vigna, jug@sad.it
|
|
|
|
|
*/
|
2000-09-25 15:59:27 +00:00
|
|
|
|
|
|
|
|
|
#ifndef FORM_PARAGRAPH_H
|
|
|
|
|
#define FORM_PARAGRAPH_H
|
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
#include <boost/smart_ptr.hpp>
|
2000-09-25 15:59:27 +00:00
|
|
|
|
|
|
|
|
|
#ifdef __GNUG_
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-03-16 12:08:14 +00:00
|
|
|
|
#include "FormBaseDeprecated.h"
|
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
|
class Paragraph;
|
2001-08-29 12:52:41 +00:00
|
|
|
|
struct FD_form_paragraph;
|
2000-09-25 15:59:27 +00:00
|
|
|
|
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/** This class provides an XForms implementation of the FormParagraph dialog.
|
2000-09-25 15:59:27 +00:00
|
|
|
|
*/
|
2000-10-13 05:57:05 +00:00
|
|
|
|
class FormParagraph : public FormBaseBD {
|
2000-09-25 15:59:27 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
2000-10-10 01:33:42 +00:00
|
|
|
|
FormParagraph(LyXView *, Dialogs *);
|
2000-09-25 15:59:27 +00:00
|
|
|
|
private:
|
2001-03-15 13:37:04 +00:00
|
|
|
|
/// Pointer to the actual instantiation of the ButtonController.
|
|
|
|
|
virtual xformsBC & bc();
|
2000-11-10 17:29:47 +00:00
|
|
|
|
/** Redraw the form (on receipt of a Signal indicating, for example,
|
2001-03-05 19:02:40 +00:00
|
|
|
|
that the xforms colours have been re-mapped). */
|
2000-11-10 17:29:47 +00:00
|
|
|
|
virtual void redraw();
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Build the dialog
|
2000-10-13 05:57:05 +00:00
|
|
|
|
virtual void build();
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Apply from dialog
|
2000-10-13 05:57:05 +00:00
|
|
|
|
virtual void apply();
|
2001-04-03 14:30:58 +00:00
|
|
|
|
/// Update the dialog
|
2000-10-24 13:13:59 +00:00
|
|
|
|
virtual void update();
|
2000-10-10 01:33:42 +00:00
|
|
|
|
/// Filter the inputs on callback from xforms
|
|
|
|
|
virtual bool input(FL_OBJECT * ob, long);
|
2001-06-15 16:18:43 +00:00
|
|
|
|
/// Connect signals
|
|
|
|
|
virtual void connect();
|
|
|
|
|
/// Disconnect signals
|
|
|
|
|
virtual void disconnect();
|
|
|
|
|
///
|
|
|
|
|
void changedParagraph();
|
|
|
|
|
///
|
2001-06-25 00:06:33 +00:00
|
|
|
|
Paragraph const * getCurrentParagraph() const;
|
2000-10-10 01:33:42 +00:00
|
|
|
|
///
|
|
|
|
|
virtual FL_FORM * form() const;
|
|
|
|
|
|
2001-08-29 12:52:41 +00:00
|
|
|
|
/// Fdesign generated method
|
|
|
|
|
FD_form_paragraph * build_paragraph();
|
2001-05-03 14:31:33 +00:00
|
|
|
|
|
2000-10-10 01:33:42 +00:00
|
|
|
|
/// Real GUI implementation.
|
2001-08-29 12:52:41 +00:00
|
|
|
|
boost::scoped_ptr<FD_form_paragraph> dialog_;
|
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
/// The ButtonController
|
|
|
|
|
ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
|
2001-08-29 12:52:41 +00:00
|
|
|
|
|
2001-06-15 16:18:43 +00:00
|
|
|
|
/// Changed Paragraph connection.
|
|
|
|
|
SigC::Connection cp_;
|
|
|
|
|
|
2001-06-25 00:06:33 +00:00
|
|
|
|
/// The current Paragraph
|
|
|
|
|
Paragraph const * par_;
|
2000-09-25 15:59:27 +00:00
|
|
|
|
};
|
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
|
|
|
|
|
inline
|
|
|
|
|
xformsBC & FormParagraph::bc()
|
|
|
|
|
{
|
|
|
|
|
return bc_;
|
|
|
|
|
}
|
2000-09-25 15:59:27 +00:00
|
|
|
|
#endif
|