+// -*- C++ -*-
/**
* \file ControlInclude.h
* Copyright 2001 the LyX Team
: public ControlInset<InsetInclude, InsetInclude::Params>
{
public:
+ ///
+ enum Type {
+ ///
+ INPUT,
+ ///
+ VERBATIM,
+ ///
+ INCLUDE
+ };
///
ControlInclude(LyXView &, Dialogs &);
- /// The file dialog popup requires a LyXView * ???
- LyXView * lv() const;
+ /// Browse for a file
+ string const Browse(string const &, Type);
+
+ /// load a file
+ void load(string const & file);
private:
/// Dispatch the changed parameters to the kernel.
virtual void applyParamsToInset();
/// Should be used but currently isn't
virtual void applyParamsNoInset() {}
- /// not needed.
- virtual void clearDaughterParams() {}
/// get the parameters from the string passed to createInset.
virtual InsetInclude::Params const getParams(string const &)
{ return InsetInclude::Params(); }