lyx_mirror/src/frontends/controllers/ControlParagraph.h

55 lines
1.1 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file ControlParagraph.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Edwin Leuven
*
* Full author contact details are available in file CREDITS
*/
#ifndef CONTROLPARAGRAPH_H
#define CONTROLPARAGRAPH_H
#include "Dialog.h"
#include "layout.h" // for LyXAlignment
class ParagraphParameters;
class ControlParagraph : public Dialog::Controller {
public:
///
ControlParagraph(Dialog &);
///
virtual void initialiseParams(string const & data);
/// clean-up on hide.
virtual void clearParams();
/// clean-up on hide.
virtual void dispatchParams();
///
virtual bool isBufferDependent() const { return true; }
///
ParagraphParameters & params();
///
ParagraphParameters const & params() const;
///
bool inInset() const;
///
LyXAlignment alignPossible() const;
///
LyXAlignment alignDefault() const;
private:
///
boost::scoped_ptr<ParagraphParameters> params_;
///
bool ininset_;
///
LyXAlignment alignpossible_;
///
LyXAlignment aligndefault_;
};
#endif // CONTROLPARAGRAPH_H