id_ = id_arg;
}
-void Inset::setFont(BufferView *, LyXFont const &, bool, bool )
+void Inset::setFont(BufferView *, LyXFont const &, bool, bool)
{}
return false;
}
+int Inset::latexTextWidth(BufferView * bv) const
+{
+ if (owner())
+ return (owner()->latexTextWidth(bv));
+ return bv->workWidth();
+}
// some stuff for inset locking
int UpdatableInset::getMaxWidth(BufferView * bv, UpdatableInset const *) const
{
int w;
- if (owner()){
+ if (owner()) {
w = static_cast<UpdatableInset*>
(owner())->getMaxWidth(bv, this);
} else {