]> git.lyx.org Git - features.git/commitdiff
Minor cleanup: We should use the usual conventions for
authorRichard Heck <rgheck@lyx.org>
Tue, 17 Apr 2012 20:44:04 +0000 (16:44 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 31 May 2012 16:24:08 +0000 (12:24 -0400)
InsetLayout names.

lib/layouts/stdinsets.inc
src/insets/InsetTOC.cpp

index 4bc60d9101aa483184615a47200fb7eff79164a0..11d86a0c5b1ba420284fa3e3d81f626f7e975b72 100644 (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
index 3b407b7eb4dd5f5429d9ce46544b1d2ad98a5bab..414d6780fd534f72806a12cf2b45147e11637ed4 100644 (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();
 }