mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
One more changeover charstyle -> insetlayout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19788 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e4a160c6cf
commit
6c74eefd9f
@ -1766,7 +1766,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
break;
|
break;
|
||||||
case LFUN_CHARSTYLE_INSERT:
|
case LFUN_CHARSTYLE_INSERT:
|
||||||
code = Inset::CHARSTYLE_CODE;
|
code = Inset::CHARSTYLE_CODE;
|
||||||
if (cur.buffer().params().getTextClass().charstyles().empty())
|
if (cur.buffer().params().getTextClass().insetlayouts().empty())
|
||||||
enable = false;
|
enable = false;
|
||||||
break;
|
break;
|
||||||
case LFUN_BOX_INSERT:
|
case LFUN_BOX_INSERT:
|
||||||
|
@ -704,11 +704,6 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
|
|||||||
il.labelfont = labelfont;
|
il.labelfont = labelfont;
|
||||||
il.preamble = preamble;
|
il.preamble = preamble;
|
||||||
insetlayoutlist_[name] = il;
|
insetlayoutlist_[name] = il;
|
||||||
|
|
||||||
// test name for CS:
|
|
||||||
if (il.lyxtype == "charstyle" || il.lyxtype == "custom") {
|
|
||||||
charstyles().push_back(il);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lexrc.popTable();
|
lexrc.popTable();
|
||||||
|
Loading…
Reference in New Issue
Block a user