mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
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:
parent
08b63ad3c6
commit
67c03d202f
@ -249,6 +249,7 @@ InsetLayout Index
|
||||
MultiPar false
|
||||
CustomPars false
|
||||
ForcePlain true
|
||||
ContentAsLabel true
|
||||
End
|
||||
|
||||
InsetLayout Box
|
||||
|
@ -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"))
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user