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
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-02-14 19:43:56 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
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-09-24 13:57:09 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
#include "Qt2Base.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
#include <vector>
|
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-08-12 14:28:43 +00:00
|
|
|
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QParagraph
|
|
|
|
: public Qt2CB<ControlParagraph, Qt2DB<QParagraphDialog> >
|
2002-07-17 15:51:23 +00:00
|
|
|
{
|
2002-10-20 01:48:28 +00:00
|
|
|
public:
|
2002-07-17 15:51:23 +00:00
|
|
|
friend class QParagraphDialog;
|
2001-02-14 19:43:56 +00:00
|
|
|
|
2002-08-12 14:28:43 +00:00
|
|
|
QParagraph();
|
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();
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-07-17 15:51:23 +00:00
|
|
|
std::vector<string> units_;
|
2001-02-14 19:43:56 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QPARAGRAPH_H
|