mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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
|
MultiPar false
|
||||||
CustomPars false
|
CustomPars false
|
||||||
ForcePlain true
|
ForcePlain true
|
||||||
|
ContentAsLabel true
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout Box
|
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
|
ColorCode InsetIndex::labelColor() const
|
||||||
{
|
{
|
||||||
if (params_.index.empty() || params_.index == from_ascii("idx"))
|
if (params_.index.empty() || params_.index == from_ascii("idx"))
|
||||||
|
@ -74,8 +74,6 @@ private:
|
|||||||
///
|
///
|
||||||
void addToToc(DocIterator const &);
|
void addToToc(DocIterator const &);
|
||||||
///
|
///
|
||||||
docstring const buttonLabel(BufferView const & bv) const;
|
|
||||||
///
|
|
||||||
docstring toolTip(BufferView const & bv, int x, int y) const;
|
docstring toolTip(BufferView const & bv, int x, int y) const;
|
||||||
/// Updates needed features for this inset.
|
/// Updates needed features for this inset.
|
||||||
void validate(LaTeXFeatures & features) const;
|
void validate(LaTeXFeatures & features) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user