lyx_mirror/src/frontends/controllers/ControlParagraph.h
Angus Leeming 1eb8155fa0 This file is part of LyX, the document processor.
Licence details can be found in the file COPYING.

and thank God for sed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5211 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 15:14:23 +00:00

61 lines
1.2 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 <boost/scoped_ptr.hpp>
#ifdef __GNUG__
#pragma interface
#endif
#include "ControlDialog_impl.h"
#include "layout.h" // for LyXAlignment
class ParagraphParameters;
/** A controller for Paragraph dialogs.
*/
class ControlParagraph : public ControlDialogBD
{
public:
///
ControlParagraph(LyXView &, Dialogs &);
/** Declaring this out of line allows us to forward declare
ParagraphParameters without upsetting boost::scoped_ptr. */
~ControlParagraph();
///
ParagraphParameters & params();
///
bool inInset() const;
///
LyXAlignment alignPossible() const;
///
void changedParagraph();
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_;
///
LyXAlignment alignpos_;
};
#endif // CONTROLPARAGRAPH_H