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-09-05 14:10:50 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
|
|
|
* 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>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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.
|
|
|
|
*/
|
|
|
|
class ControlParagraph : public ControlDialogBD
|
|
|
|
{
|
|
|
|
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
|
|
|
///
|
|
|
|
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_;
|
|
|
|
///
|
|
|
|
LyXAlignment alignpos_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPARAGRAPH_H
|