2001-06-14 08:20:41 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-14 19:43:56 +00:00
|
|
|
/**
|
2001-08-19 13:25:15 +00:00
|
|
|
* \file QParagraph.h
|
2001-02-14 19:43:56 +00:00
|
|
|
* Copyright 2001 LyX Team
|
|
|
|
* see the file COPYING
|
|
|
|
*
|
2002-07-17 15:51:23 +00:00
|
|
|
* \author Edwin Leuven <leuven@fee.uva.nl>
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
2001-02-14 19:43:56 +00:00
|
|
|
*/
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QPARAGRAPH_H
|
|
|
|
#define QPARAGRAPH_H
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include "Qt2Base.h"
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
class ControlParagraph;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QParagraphDialog;
|
2002-07-17 15:51:23 +00:00
|
|
|
class Dialogs;
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
class QParagraph :
|
|
|
|
public Qt2CB<ControlParagraph, Qt2DB<QParagraphDialog> >
|
|
|
|
{
|
|
|
|
friend class QParagraphDialog;
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
public:
|
|
|
|
QParagraph(ControlParagraph &, Dialogs &);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
private:
|
2002-07-17 15:51:23 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
std::vector<string> units_;
|
2001-02-14 19:43:56 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QPARAGRAPH_H
|