]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
Change cursor shape for clickable math insets
[lyx.git] / src / insets / Inset.cpp
index cb10fa52cc65e9a04ffdaa80b6e76fb9c24a74a6..7d05c8ef1fa3097e8ae9cc8af773232e894ad969 100644 (file)
@@ -237,6 +237,20 @@ docstring Inset::layoutName() const
 }
 
 
+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();
@@ -261,6 +275,18 @@ bool Inset::isInToc() const
 }
 
 
+FontInfo Inset::getFont() const
+{
+       return getLayout().font();
+}
+
+
+FontInfo Inset::getLabelfont() const
+{
+       return getLayout().labelfont();
+}
+
+
 docstring Inset::toolTip(BufferView const &, int, int) const
 {
        return docstring();
@@ -580,20 +606,6 @@ bool Inset::covers(BufferView const & bv, int x, int y) const
 }
 
 
-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();