]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Two places where coverity urges us to limit string length
[lyx.git] / lib / layouts / stdinsets.inc
index c5bf68df38e665b813d3884a31644c1ae50daf09..981feb056c4783b03f57fdfeb0b8bc7244733fc2 100644 (file)
@@ -4,10 +4,17 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 60
+Format 63
 
 Provides stdinsets 1
 
+OutlinerName marginalnote "Marginal notes"
+OutlinerName footnote     "Footnotes"
+OutlinerName note         "Notes"
+OutlinerName branch       "Branches"
+OutlinerName index        "Index Entries" #no AddToToc (built-in)
+OutlinerName listing      "Listings" #no AddToToc (built-in)
+
 InsetLayout Marginal
        LabelString           margin
        LatexType             command
@@ -35,6 +42,8 @@ InsetLayout Marginal
                        font-style: normal;
                }
        EndHTMLStyle
+       AddToToc              marginalnote
+       IsTocCaption          true
 End
 
 InsetLayout Foot
@@ -76,6 +85,8 @@ InsetLayout Foot
                        padding: 1em;
                }
        EndHTMLStyle
+       AddToToc              footnote
+       IsTocCaption          true
 End
 
 InsetLayout Foot:InTitle
@@ -115,6 +126,7 @@ InsetLayout Note:Comment
        LabelString           Comment
        LatexType             environment
        LatexName             comment
+       Requires              verbatim
        BgColor               commentbg
        LabelFont
          Color               comment
@@ -129,6 +141,8 @@ InsetLayout Note:Comment
                display: none;
        }
        EndHTMLStyle
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -143,6 +157,8 @@ InsetLayout Note:Note
        EndFont
        MultiPar              true
        # Not output for XHTML
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -150,6 +166,7 @@ InsetLayout Note:Greyedout
        LabelString           Greyedout
        LatexType             environment
        LatexName             lyxgreyedout
+       Requires              color,lyxgreyedout
        BgColor               greyedoutbg
        Font
          Color               greyedouttext
@@ -170,6 +187,8 @@ InsetLayout Note:Greyedout
                }
        EndHTMLStyle
        HTMLIsBlock           false
+       AddToToc              note
+       IsTocCaption          true
 End
 
 InsetLayout ERT
@@ -336,6 +355,8 @@ InsetLayout Branch
        MultiPar              true
        InToc                 true
        HTMLIsBlock           false
+       AddToToc              branch
+       IsTocCaption          true
 End
 
 InsetLayout Index
@@ -352,6 +373,7 @@ InsetLayout Index
        CustomPars            false
        ForcePlain            true
        ContentAsLabel        true
+       PassThruChars         @|!
 End
 
 InsetLayout Box
@@ -451,6 +473,10 @@ InsetLayout Float
        EndHTMLStyle
 End
 
+#InsetWrap requires these, independently of whether stdfloats.inc is included
+OutlinerName table        "Tables" #no AddToToc (built-in)
+OutlinerName figure       "Figures" #no AddToToc (built-in)
+
 InsetLayout Wrap
        LabelFont
          Color               collapsable