Minor cleanup: We should use the usual conventions for

InsetLayout names.
This commit is contained in:
Richard Heck 2012-04-17 16:44:04 -04:00
parent be89d37bd4
commit 03da96e0f7
2 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ InsetLayout Phantom
ForcePlain true
End
InsetLayout ListOfListings
InsetLayout TOC:Listings
# We need the [[List of Listings]] context, since "Listings" is also
# the name of the inset and translated differently.
# "Listings[[List of Listings]]" is the name of the "List of listings"
@ -187,7 +187,7 @@ InsetLayout ListOfListings
EndLangPreamble
End
InsetLayout IncludeListings
InsetLayout Include:Listings
BabelPreamble
\addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
EndBabelPreamble
@ -200,7 +200,7 @@ InsetLayout IncludeListings
End
InsetLayout Listings
CopyStyle IncludeListings
CopyStyle Include:Listings
LabelString Listings[[inset]]
LatexType none
Decoration minimalistic

View File

@ -96,7 +96,7 @@ void InsetTOC::doDispatch(Cursor & cur, FuncRequest & cmd) {
docstring InsetTOC::layoutName() const
{
if (getCmdName() == "lstlistoflistings")
return from_ascii("ListOfListings");
return from_ascii("TOC:Listings");
return docstring();
}