]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / Inset.cpp
index 65687c89499d59d3d21b55767c025789c87b3642..916278d96c779b44575f6ab0c0193a98d5c6a8dc 100644 (file)
@@ -168,6 +168,7 @@ static void build_translator()
        insetnames[MATH_XARROW_CODE] = InsetName("mathxarrow");
        insetnames[MATH_XYARROW_CODE] = InsetName("mathxyarrow");
        insetnames[MATH_XYMATRIX_CODE] = InsetName("mathxymatrix");
+       insetnames[MATH_DIAGRAM_CODE] = InsetName("mathdiagram");
        insetnames[MATH_MACRO_CODE] = InsetName("mathmacro");
 
        passed = true;
@@ -233,12 +234,19 @@ bool Inset::allowEmpty() const
        return getLayout().isKeepEmpty();
 }
 
+
 bool Inset::forceLTR() const
 {
        return getLayout().forceLTR();
 }
 
 
+bool Inset::isInToc() const
+{
+       return getLayout().isInToc();
+}
+
+
 docstring Inset::toolTip(BufferView const &, int, int) const
 {
        return docstring();