#include "insets/RenderPreview.h"
#include "Buffer.h"
-#include "LCursor.h"
+#include "Cursor.h"
#include "debug.h"
#include "DispatchResult.h"
#include "Exporter.h"
case EX_HEIGHT:
lex.next();
- resizedata.height = LyXLength(lex.getString());
+ resizedata.height = Length(lex.getString());
break;
case EX_KEEPASPECTRATIO:
case EX_WIDTH:
lex.next();
- resizedata.width = LyXLength(lex.getString());
+ resizedata.width = Length(lex.getString());
break;
case EX_END:
InsetExternal::InsetExternal(InsetExternal const & other)
- : InsetOld(other),
+ : Inset(other),
boost::signals::trackable(),
params_(other.params_),
renderer_(other.renderer_->clone(this))
{}
-auto_ptr<InsetBase> InsetExternal::doClone() const
+auto_ptr<Inset> InsetExternal::doClone() const
{
- return auto_ptr<InsetBase>(new InsetExternal(*this));
+ return auto_ptr<Inset>(new InsetExternal(*this));
}
}
-void InsetExternal::doDispatch(LCursor & cur, FuncRequest & cmd)
+void InsetExternal::doDispatch(Cursor & cur, FuncRequest & cmd)
{
switch (cmd.action) {
break;
default:
- InsetBase::doDispatch(cur, cmd);
+ Inset::doDispatch(cur, cmd);
}
}
-bool InsetExternal::getStatus(LCursor & cur, FuncRequest const & cmd,
+bool InsetExternal::getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & flag) const
{
switch (cmd.action) {
return true;
default:
- return InsetBase::getStatus(cur, cmd, flag);
+ return Inset::getStatus(cur, cmd, flag);
}
}
-void InsetExternal::edit(LCursor & cur, bool)
+void InsetExternal::edit(Cursor & cur, bool)
{
InsetExternalMailer(*this).showDialog(&cur.bv());
}
return print_mailer_error("InsetExternalMailer", in, 1, name_);
// This is part of the inset proper that is usually swallowed
- // by LyXText::readInset
+ // by Text::readInset
string id;
lex >> id;
if (!lex || id != "External")