]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Allow literate documents other than noweb to work out of the box. Currently
[lyx.git] / lib / layouts / stdinsets.inc
index 5d1d3cd11485c7d10b82e70d4787ecacfb8ae7c6..075a49af619aaa1b7a877417ccd2a37958a745ca 100644 (file)
 #      EndFont               Nothing to put here, it's just a markup to indicate that we are
 #                         finished with the LabelFont definition.
 #      MultiPar              Indicates that multiple paragraphs are allowed within the inset
-#                         or not. FIXME: what is the default?
+#                         or not. Defaults to false. Sets CustomPars, as well, to the same
+#                         value, and sets ForcePlain to the opposite value. If you want
+#                         those to be different, then, you must set them after you set 
+#                         MultiPar.
+# CustomPars            Whether to allow the use of the Paragraph Settings dialog. Default is
+#                         false.
+# ForcePlain            Whether to force the PlainLayout. Default is true.
 #      Decoration:           Classic, Minimalistic, Conglomerate. Decoration styles
 #      PassThru              Do not do various LaTeX conversions, like the phrases
 #                              LaTeX, LyX, quote commands, etc.
@@ -47,7 +53,7 @@
 #                         be comma-separated.
 #End
 
-Format 6
+Format 11
 
 Provides stdinsets 1
 
@@ -143,12 +149,23 @@ InsetLayout ERT
          Size                Small
        EndFont
        MultiPar              true
+       CustomPars            false
+       ForcePlain            true
        PassThru              true
        KeepEmpty             true
        FreeSpacing           true
        ForceLTR              true
 End
 
+InsetLayout Phantom
+       Decoration            minimalistic
+       Font
+         Color               phantomtext
+       EndFont
+       CustomPars            false
+       ForcePlain            true
+End
+
 InsetLayout Listings
        LabelString           Listings
        LatexType             none
@@ -161,10 +178,12 @@ InsetLayout Listings
          Color               foreground
          Size                Small
        EndFont
+       BgColor               listingsbg
        MultiPar              true
        PassThru              true
        KeepEmpty             true
        FreeSpacing           true
+       ForceLTR              true
 End
 
 InsetLayout Branch
@@ -174,6 +193,7 @@ InsetLayout Branch
          Size                Small
        EndFont
        MultiPar              true
+       InToc                 true
 End
 
 InsetLayout Index
@@ -196,6 +216,8 @@ InsetLayout Index
          Size                Small
        EndFont
        MultiPar              false
+       CustomPars            false
+       ForcePlain            true
        NeedProtect           true
 End
 
@@ -216,8 +238,7 @@ InsetLayout Box:Shaded
        MultiPar              true
 End
 
-InsetLayout figure
-       LabelString           Figure
+InsetLayout Float
        LabelFont
          Color               collapsable
          Size                Small
@@ -225,17 +246,7 @@ InsetLayout figure
        MultiPar              true
 End
 
-InsetLayout table
-       LabelString           Table
-       LabelFont
-         Color               collapsable
-         Size                Small
-       EndFont
-       MultiPar              true
-End
-
-InsetLayout algorithm
-       LabelString           Algorithm
+InsetLayout Wrap
        LabelFont
          Color               collapsable
          Size                Small
@@ -260,7 +271,7 @@ InsetLayout URL
          Color               urllabel
          Size                Small
        EndFont
-       Requires              url
+       Requires              url
 End
 
 InsetLayout OptArg
@@ -271,3 +282,43 @@ InsetLayout OptArg
        EndFont
        MultiPar              false
 End
+
+InsetLayout Info
+       Decoration            conglomerate
+End
+
+InsetLayout Info:menu
+       LatexType             command
+       LatexName             menuitem
+       Preamble
+         \providecommand{\menuitem}[1]{\textsf{#1}}
+       EndPreamble
+       Decoration            conglomerate
+       Font
+         Family              sans
+       EndFont
+End
+
+InsetLayout Info:shortcut
+       LatexType             command
+       LatexName             shortcut
+       Preamble
+         \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
+       EndPreamble
+       Decoration            conglomerate
+       Font
+         Family              sans
+       EndFont
+End
+
+InsetLayout Info:shortcuts
+       LatexType             command
+       LatexName             shortcut
+       Preamble
+         \providecommand{\shortcut}[1]{\textsf{#1}}
+       EndPreamble
+       Decoration            conglomerate
+       Font
+         Family              sans
+       EndFont
+End