mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
ce708d095c
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5463 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.3 KiB
C++
63 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlERT.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Vigna
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef CONTROLERT_H
|
|
#define CONTROLERT_H
|
|
|
|
#include <vector>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "ControlInset.h"
|
|
#include "insets/insetert.h" // InsetERT::Status
|
|
|
|
/** This should be moved back into insetert.h and InsetERT should
|
|
contain an instance of it. */
|
|
|
|
struct ERTParams {
|
|
///
|
|
ERTParams();
|
|
///
|
|
ERTParams(InsetERT const &);
|
|
///
|
|
InsetERT::ERTStatus status;
|
|
};
|
|
|
|
|
|
///
|
|
bool operator==(ERTParams const &, ERTParams const &);
|
|
///
|
|
bool operator!=(ERTParams const &, ERTParams const &);
|
|
|
|
|
|
/** A controller for ERT dialogs.
|
|
*/
|
|
class ControlERT : public ControlInset<InsetERT, ERTParams> {
|
|
public:
|
|
///
|
|
ControlERT(LyXView &, Dialogs &);
|
|
private:
|
|
/// Dispatch the changed parameters to the kernel.
|
|
virtual void applyParamsToInset();
|
|
///
|
|
virtual void applyParamsNoInset();
|
|
/// get the parameters from the string passed to createInset.
|
|
virtual ERTParams const getParams(string const &)
|
|
{ return ERTParams(); }
|
|
/// get the parameters from the inset passed to showInset.
|
|
virtual ERTParams const getParams(InsetERT const &);
|
|
};
|
|
|
|
#endif
|