mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
2a31934f38
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
// -*- 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;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class ControlParagraph : public Dialog::Controller {
|
|
public:
|
|
///
|
|
ControlParagraph(Dialog &);
|
|
///
|
|
virtual bool initialiseParams(std::string const & data);
|
|
/// clean-up on hide.
|
|
virtual void clearParams();
|
|
///
|
|
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_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // CONTROLPARAGRAPH_H
|