#ifndef INSET_LATEXCOMMAND_H
#define INSET_LATEXCOMMAND_H
-
#include "inset.h"
#include "insetcommandparams.h"
#include "render_button.h"
#include "mailinset.h"
+#include "cursor.h"
+
// Created by Alejandro 970222
/** Used to insert a LaTeX command automatically
class InsetCommand : public InsetOld {
public:
///
- explicit
- InsetCommand(InsetCommandParams const &,
- std::string const & mailer_name);
+ InsetCommand(InsetCommandParams const &, std::string const & mailer_name);
///
~InsetCommand();
///
///
std::string const & getOptions() const { return p_.getOptions(); }
///
+ std::string const & getSecOptions() const { return p_.getSecOptions(); }
+ ///
RenderButton & button() const { return button_; }
protected:
///
- virtual
- DispatchResult
- priv_dispatch(BufferView & bv, FuncRequest const & cmd);
+ void priv_dispatch(LCursor & cur, FuncRequest & cmd);
///
std::string const getCommand() const { return p_.getCommand(); }
///
///
void setOptions(std::string const & o) { p_.setOptions(o); }
///
+ void setSecOptions(std::string const & s) { p_.setSecOptions(s); }
+ ///
void setParams(InsetCommandParams const &);
/// This should provide the text for the button
virtual std::string const getScreenLabel(Buffer const &) const = 0;