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:
Martin Vermeer 2007-08-25 12:18:23 +00:00
parent e4a160c6cf
commit 6c74eefd9f
2 changed files with 1 additions and 6 deletions

View File

@ -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:

View File

@ -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();