#ifndef CONTROLPREAMBLE_H
#define CONTROLPREAMBLE_H
+#include "Dialog.h"
-#include "ControlDialog_impl.h"
-
-#include "LString.h"
+namespace lyx {
+namespace frontend {
/** A controller for Preamble dialogs.
*/
-class ControlPreamble : public ControlDialogBD {
+class ControlPreamble : public Dialog::Controller {
public:
///
- ControlPreamble(LyXView &, Dialogs &);
-
+ ControlPreamble(Dialog &);
///
- string const & params() const;
+ virtual bool initialiseParams(std::string const &);
///
- void params(string const & newparams);
-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();
+ ///
+ virtual void dispatchParams();
+ ///
+ virtual bool isBufferDependent() const { return true; }
///
- string params_;
+ std::string const & params() const;
+ ///
+ void params(std::string const & newparams);
+private:
+ ///
+ std::string params_;
};
+} // namespace frontend
+} // namespace lyx
+
#endif // CONTROLPREAMBLE_H