#include "gettext.h"
#include "Color.h"
#include "Lexer.h"
-#include "LyXText.h"
+#include "Text.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
}
-std::auto_ptr<InsetBase> InsetVSpace::doClone() const
+std::auto_ptr<Inset> InsetVSpace::doClone() const
{
- return std::auto_ptr<InsetBase>(new InsetVSpace(*this));
+ return std::auto_ptr<Inset>(new InsetVSpace(*this));
}
}
case LFUN_MOUSE_RELEASE:
- InsetVSpaceMailer(*this).showDialog(&cur.bv());
+ if (!cur.selection())
+ InsetVSpaceMailer(*this).showDialog(&cur.bv());
break;
default:
- InsetBase::doDispatch(cur, cmd);
+ Inset::doDispatch(cur, cmd);
break;
}
}
if (space_.length().len().value() >= 0.0)
height = max(height, space_.inPixels(*mi.base.bv));
- LyXFont font;
+ Font font;
font.decSize();
font.decSize();
int a = 0;
int d = 0;
- LyXFont font;
+ Font font;
font.setColor(Color::added_space);
font.decSize();
font.decSize();
int InsetVSpace::latex(Buffer const & buf, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << from_ascii(space_.asLatexCommand(buf.params())) << '\n';
return 1;
int InsetVSpace::plaintext(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << "\n\n";
return PLAINTEXT_NEWLINE;
int InsetVSpace::docbook(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << '\n';
return 1;