2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-27 16:03:28 +00:00
|
|
|
/**
|
|
|
|
* \file ControlPreamble.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.
|
2001-03-27 16:03:28 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-27 16:03:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPREAMBLE_H
|
|
|
|
#define CONTROLPREAMBLE_H
|
|
|
|
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
2001-03-27 16:03:28 +00:00
|
|
|
|
2003-09-05 17:23:11 +00:00
|
|
|
#include "support/std_string.h"
|
2002-06-18 15:44:30 +00:00
|
|
|
|
2001-03-27 16:03:28 +00:00
|
|
|
/** A controller for Preamble dialogs.
|
|
|
|
*/
|
2002-01-16 14:47:58 +00:00
|
|
|
class ControlPreamble : public ControlDialogBD {
|
2001-03-27 16:03:28 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlPreamble(LyXView &, Dialogs &);
|
|
|
|
|
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
string const & params() const;
|
|
|
|
///
|
|
|
|
void params(string const & newparams);
|
2001-03-27 16:03:28 +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();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-27 16:03:28 +00:00
|
|
|
///
|
2002-10-21 17:38:09 +00:00
|
|
|
string params_;
|
2001-03-27 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPREAMBLE_H
|