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
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-06-11 16:40:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPARAGRAPH_H
|
|
|
|
#define CONTROLPARAGRAPH_H
|
|
|
|
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "ControlDialog_impl.h"
|
2002-06-12 14:27:30 +00:00
|
|
|
#include "layout.h" // for LyXAlignment
|
|
|
|
|
|
|
|
class ParagraphParameters;
|
2002-06-11 16:40:18 +00:00
|
|
|
|
|
|
|
/** A controller for Paragraph dialogs.
|
|
|
|
*/
|
2002-10-21 17:38:09 +00:00
|
|
|
class ControlParagraph : public ControlDialogBD {
|
2002-06-11 16:40:18 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlParagraph(LyXView &, Dialogs &);
|
2002-06-12 14:27:30 +00:00
|
|
|
/** Declaring this out of line allows us to forward declare
|
|
|
|
ParagraphParameters without upsetting boost::scoped_ptr. */
|
|
|
|
~ControlParagraph();
|
2002-06-11 16:40:18 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
ParagraphParameters & params();
|
|
|
|
///
|
|
|
|
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-08-02 12:28:59 +00:00
|
|
|
void changedParagraph();
|
2002-06-11 16:40:18 +00:00
|
|
|
private:
|
|
|
|
/// Get changed parameters and Dispatch them to the kernel.
|
|
|
|
virtual void apply();
|
|
|
|
/// set the params before show or update.
|
|
|
|
virtual void setParams();
|
|
|
|
|
|
|
|
///
|
|
|
|
boost::scoped_ptr<ParagraphParameters> pp_;
|
|
|
|
///
|
|
|
|
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
|