With ContentAsLabel, we do not need this special code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32576 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-18 01:22:24 +00:00
parent 08b63ad3c6
commit 67c03d202f
3 changed files with 1 additions and 12 deletions

View File

@ -249,6 +249,7 @@ InsetLayout Index
MultiPar false
CustomPars false
ForcePlain true
ContentAsLabel true
End
InsetLayout Box

View File

@ -246,16 +246,6 @@ bool InsetIndex::getStatus(Cursor & cur, FuncRequest const & cmd,
}
docstring const InsetIndex::buttonLabel(BufferView const & bv) const
{
docstring s = _("Idx");
if (decoration() == InsetLayout::CLASSIC)
return isOpen(bv) ? s : getNewLabel(s);
else
return getNewLabel(s);
}
ColorCode InsetIndex::labelColor() const
{
if (params_.index.empty() || params_.index == from_ascii("idx"))

View File

@ -74,8 +74,6 @@ private:
///
void addToToc(DocIterator const &);
///
docstring const buttonLabel(BufferView const & bv) const;
///
docstring toolTip(BufferView const & bv, int x, int y) const;
/// Updates needed features for this inset.
void validate(LaTeXFeatures & features) const;