From: Richard Heck Date: Tue, 17 Apr 2012 20:44:04 +0000 (-0400) Subject: Minor cleanup: We should use the usual conventions for X-Git-Tag: 2.1.0beta1~1815 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=03da96e0f7f2efe856146ac4c7fb8618bdca7307;p=features.git Minor cleanup: We should use the usual conventions for InsetLayout names. --- diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 4bc60d9101..11d86a0c5b 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -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 diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 3b407b7eb4..414d6780fd 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -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(); }