Forward declare ParagraphParameters in ControlParagraph.h.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-06-12 14:27:30 +00:00
parent 35de4638f7
commit 4bd1dd129c
5 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-12 Angus Leeming <leeming@lyx.org>
* ControlParagraph.[Ch]: forward declare ParagraphParameters.
2002-06-12 Angus Leeming <leeming@lyx.org>
* ControlInset.tmpl: add missing header file, ButtonControllerBase.h.

View File

@ -16,6 +16,7 @@
#include "ViewBase.h"
#include "ButtonControllerBase.h"
#include "ControlParagraph.h"
#include "ParagraphParameters.h"
#include "Dialogs.h"
#include "Liason.h"
#include "LyXView.h"
@ -37,22 +38,30 @@ ControlParagraph::ControlParagraph(LyXView & lv, Dialogs & d)
d_.showParagraph = boost::bind(&ControlParagraph::show, this);
}
ControlParagraph::~ControlParagraph()
{}
ParagraphParameters & ControlParagraph::params()
{
lyx::Assert(pp_.get());
return *pp_;
}
bool ControlParagraph::inInset() const
{
return ininset_;
}
LyXAlignment ControlParagraph::alignPossible() const
{
return alignpos_;
}
void ControlParagraph::apply()
{
if (!lv_.view()->available())
@ -84,6 +93,7 @@ void ControlParagraph::apply()
setMinibuffer(&lv_, _("Paragraph layout set"));
}
void ControlParagraph::setParams()
{
if (!pp_.get())

View File

@ -17,7 +17,9 @@
#endif
#include "ControlDialog_impl.h"
#include "ParagraphParameters.h"
#include "layout.h" // for LyXAlignment
class ParagraphParameters;
/** A controller for Paragraph dialogs.
*/
@ -26,6 +28,9 @@ 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();

View File

@ -1,3 +1,8 @@
2002-06-12 Angus Leeming <leeming@lyx.org>
* FormParagraph.C: include ParagraphParameters.h now that
ParagraphParameters is forward declared in ControlParagraph.h.
2002-05-24 Martin Vermeer <martin.vermeer@hut.fi>
* FormMathsDelim.C: fix delimiter pre-display rendering

View File

@ -17,6 +17,7 @@
#include "FormParagraph.h"
#include "form_paragraph.h"
#include "ControlParagraph.h"
#include "ParagraphParameters.h"
#include "xforms_helpers.h"
#include "lyxrc.h" // to set the deafult length values
#include "input_validators.h"