mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
62 lines
1.3 KiB
C
62 lines
1.3 KiB
C
|
/* This file is part of
|
||
|
* ======================================================
|
||
|
*
|
||
|
* LyX, The Document Processor
|
||
|
*
|
||
|
* Copyright 2001 The LyX Team.
|
||
|
*
|
||
|
* ======================================================
|
||
|
*
|
||
|
* \file ControlExternal.h
|
||
|
* \author Asger Alstrup
|
||
|
* \author John Levon
|
||
|
* \author Angus Leeming, a.leeming@ic.ac.uk
|
||
|
*/
|
||
|
|
||
|
#ifndef CONTROLEXTERNAL_H
|
||
|
#define CONTROLEXTERNAL_H
|
||
|
|
||
|
#ifdef __GNUG__
|
||
|
#pragma interface
|
||
|
#endif
|
||
|
|
||
|
#include "ControlInset.h"
|
||
|
#include "insets/insetexternal.h"
|
||
|
|
||
|
/** A controller for External dialogs.
|
||
|
*/
|
||
|
class ControlExternal
|
||
|
: public ControlInset<InsetExternal, InsetExternal::Params>
|
||
|
{
|
||
|
public:
|
||
|
///
|
||
|
ControlExternal(LyXView &, Dialogs &);
|
||
|
|
||
|
///
|
||
|
void editExternal();
|
||
|
///
|
||
|
void viewExternal();
|
||
|
///
|
||
|
void updateExternal();
|
||
|
///
|
||
|
std::vector<string> const getTemplates() const;
|
||
|
///
|
||
|
int getTemplateNumber(string const &) const;
|
||
|
///
|
||
|
ExternalTemplate getTemplate(int) const;
|
||
|
///
|
||
|
string const Browse(string const &) const;
|
||
|
|
||
|
private:
|
||
|
/// not needed.
|
||
|
virtual void applyParamsToInset() {}
|
||
|
///
|
||
|
virtual void applyParamsNoInset() {}
|
||
|
/// get the parameters from the string passed to createInset.
|
||
|
virtual InsetExternal::Params const getParams(string const &);
|
||
|
/// get the parameters from the inset passed to showInset.
|
||
|
virtual InsetExternal::Params const getParams(InsetExternal const &);
|
||
|
};
|
||
|
|
||
|
#endif // CONTROLEXTERNAL_H
|