}
+InsetLayout const & Inset::getLayout() const
+{
+ if (!buffer_)
+ return DocumentClass::plainInsetLayout();
+ return buffer().params().documentClass().insetLayout(layoutName());
+}
+
+
+bool Inset::isPassThru() const
+{
+ return getLayout().isPassThru();
+}
+
+
bool Inset::isFreeSpacing() const
{
return getLayout().isFreeSpacing();
}
+FontInfo Inset::getFont() const
+{
+ return getLayout().font();
+}
+
+
+FontInfo Inset::getLabelfont() const
+{
+ return getLayout().labelfont();
+}
+
+
docstring Inset::toolTip(BufferView const &, int, int) const
{
return docstring();
void Inset::dispatch(Cursor & cur, FuncRequest & cmd)
{
- if (buffer_ == 0) {
+ if (buffer_ == nullptr) {
lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl;
lyxerr << "LyX Code: " << lyxCode() << " name: "
<< insetName(lyxCode()) << std::endl;
}
-InsetLayout const & Inset::getLayout() const
-{
- if (!buffer_)
- return DocumentClass::plainInsetLayout();
- return buffer().params().documentClass().insetLayout(layoutName());
-}
-
-
-bool Inset::isPassThru() const
-{
- return getLayout().isPassThru();
-}
-
-
bool Inset::undefined() const
{
docstring const & n = getLayout().name();
// are in the CutAndPaste stack. See InsetGraphics, RenderGraphics and
// RenderPreview.
if (!buffer_)
- return 0;
- return theApp() ? theApp()->updateInset(this) : 0;
+ return nullptr;
+ return theApp() ? theApp()->updateInset(this) : nullptr;
}