2002-06-11 16:40:18 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlParagraph.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-06-11 16:40:18 +00:00
|
|
|
*
|
2002-10-21 17:38:09 +00:00
|
|
|
* \author Edwin Leuven
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-06-11 16:40:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPARAGRAPH_H
|
|
|
|
#define CONTROLPARAGRAPH_H
|
|
|
|
|
2003-03-13 13:56:25 +00:00
|
|
|
#include "Dialog.h"
|
2002-06-12 14:27:30 +00:00
|
|
|
#include "layout.h" // for LyXAlignment
|
|
|
|
|
|
|
|
class ParagraphParameters;
|
2002-06-11 16:40:18 +00:00
|
|
|
|
2003-03-13 13:56:25 +00:00
|
|
|
class ControlParagraph : public Dialog::Controller {
|
2002-06-11 16:40:18 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-13 13:56:25 +00:00
|
|
|
ControlParagraph(Dialog &);
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
virtual bool initialiseParams(std::string const & data);
|
2003-03-13 13:56:25 +00:00
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
2004-01-26 00:43:56 +00:00
|
|
|
///
|
2003-03-13 13:56:25 +00:00
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2002-06-11 16:40:18 +00:00
|
|
|
///
|
|
|
|
ParagraphParameters & params();
|
|
|
|
///
|
2003-03-13 13:56:25 +00:00
|
|
|
ParagraphParameters const & params() const;
|
|
|
|
///
|
2002-06-11 16:40:18 +00:00
|
|
|
bool inInset() const;
|
|
|
|
///
|
|
|
|
LyXAlignment alignPossible() const;
|
2002-08-02 12:28:59 +00:00
|
|
|
///
|
2002-10-30 13:57:01 +00:00
|
|
|
LyXAlignment alignDefault() const;
|
2002-06-11 16:40:18 +00:00
|
|
|
|
2003-03-13 13:56:25 +00:00
|
|
|
private:
|
2002-06-11 16:40:18 +00:00
|
|
|
///
|
2003-03-13 13:56:25 +00:00
|
|
|
boost::scoped_ptr<ParagraphParameters> params_;
|
2002-06-11 16:40:18 +00:00
|
|
|
///
|
|
|
|
bool ininset_;
|
|
|
|
///
|
2002-10-30 13:57:01 +00:00
|
|
|
LyXAlignment alignpossible_;
|
|
|
|
///
|
|
|
|
LyXAlignment aligndefault_;
|
2002-06-11 16:40:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPARAGRAPH_H
|