X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=0257ed0c45f1c56dad489b94ccbda9811dc89e2d;hb=546a6a2a310b12fa0d3692cca10920a938f07f9c;hp=2190be70567a257f417220d1dec7efa2a232927a;hpb=75bfed55079cab6b73fbea6ce4ae3f10d1af3b91;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 2190be7056..0257ed0c45 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -117,7 +117,7 @@ static void build_translator() insetnames[MATH_MACROARG_CODE] = InsetName("mathmacroarg"); insetnames[LISTINGS_CODE] = InsetName("listings"); insetnames[INFO_CODE] = InsetName("info", _("Info")); - insetnames[COLLAPSABLE_CODE] = InsetName("collapsable"); + insetnames[COLLAPSIBLE_CODE] = InsetName("collapsible"); insetnames[NEWPAGE_CODE] = InsetName("newpage"); insetnames[SCRIPT_CODE] = InsetName("script"); insetnames[CELL_CODE] = InsetName("tablecell"); @@ -414,7 +414,7 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd, } case LFUN_IN_MATHMACROTEMPLATE: - // By default we're not in a MathMacroTemplate inset + // By default we're not in a InsetMathMacroTemplate inset flag.setEnabled(false); return true; @@ -553,22 +553,6 @@ void Inset::drawMarkers(PainterInfo & pi, int x, int y) const } -void Inset::drawMarkers2(PainterInfo & pi, int x, int y) const -{ - ColorCode pen_color = mouseHovered(pi.base.bv) || editing(pi.base.bv)? - Color_mathframe : Color_mathcorners; - - drawMarkers(pi, x, y); - Dimension const dim = dimension(*pi.base.bv); - int const t = x + dim.width() - 1; - int const a = y - dim.ascent(); - pi.pain.line(x, a + 3, x, a, pen_color); - pi.pain.line(t, a + 3, t, a, pen_color); - pi.pain.line(x, a, x + 3, a, pen_color); - pi.pain.line(t - 3, a, t, a, pen_color); -} - - bool Inset::editing(BufferView const * bv) const { return bv->cursor().isInside(this);