2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-27 16:03:28 +00:00
|
|
|
/**
|
|
|
|
* \file ControlPreamble.h
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
* See the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLPREAMBLE_H
|
|
|
|
#define CONTROLPREAMBLE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2002-01-16 14:47:58 +00:00
|
|
|
#include "ControlDialog_impl.h"
|
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 &);
|
|
|
|
|
|
|
|
///
|
|
|
|
string & params() const;
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
///
|
|
|
|
string * params_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLPREAMBLE_H
|