]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Move the RefPrefix definitions to their own file, for easy inclusion in
[lyx.git] / lib / layouts / stdinsets.inc
index a09aa48e8fc4248341dd07876c184a1ac092c09e..368ef2183e64ba1d466a82ce0a173d0876d46fac 100644 (file)
@@ -53,7 +53,7 @@
 #                         be comma-separated.
 #End
 
-Format 16
+Format 25
 
 Provides stdinsets 1
 
@@ -62,71 +62,61 @@ InsetLayout Marginal
        LatexType             command
        LatexName             marginpar
        Font
-         Color               foreground
          Size                Small
-         Family              Roman
-         Shape               Up
-         Series              Medium
-         Misc                No_Emph
-         Misc                No_Noun
-         Misc                No_Bar
        EndFont
        LabelFont
          Color               marginlabel
          Size                Small
        EndFont
        MultiPar              true
-       HTMLTag               span
-       HTMLAttr              class='marginal'
+       NeedProtect           true
        HTMLStyle
-               span.marginal {
+               div.marginal {
                        border: 2px solid black; 
                        padding: 1ex; 
                        margin: 1ex; 
                        background-color: #F0F0F0; 
                        float:right;
+                       font-size: small;
+                       font-weight: medium;
+                       font-family: serif;
+                       font-variant: normal;
+                       font-style: normal;
                }
        EndHTMLStyle
 End
 
 InsetLayout Foot
        LabelString           foot
-       LatexType             command
-       LatexName             footnote
        Counter               footnote
        Font
-         Color               foreground
          Size                Small
-         Family              Roman
-         Shape               Up
-         Series              Medium
-         Misc                No_Emph
-         Misc                No_Noun
-         Misc                No_Bar
        EndFont
        LabelFont
          Color               footlabel
          Size                Small
        EndFont
        MultiPar              true
-       HTMLTag               span
-       HTMLAttr              class='footwrapper'
-       HTMLLabel             "<span class='notenum'>\arabic{footnote}</span>"
-       HTMLInnerTag          span
-       HTMLInnerAttr         class='footnote'
+       RefPrefix             fn
+       HTMLLabel             \arabic{footnote}
+       HTMLInnerTag          div
        HTMLStyle
-               span.notenum { 
-                       vertical-align: super; 
-                       font-size: smaller; 
+               span.foot_label {
+                       vertical-align: super;
+                       font-size: smaller;
+                       font-weight: bold;
+                       text-decoration: underline;
                }
-               span.footnote {
-                       display: none;
-                       font-size: medium;
-                       font-weight: normal;
-                       font-style: normal;
+               div.foot { 
+                       display: inline; 
+                       font-size: small;
+                       font-weight: medium;
+                       font-family: serif;
                        font-variant: normal;
+                       font-style: normal;
                }
-               span.footwrapper:hover span.footnote { 
+               div.foot_inner { display: none; }
+               div.foot:hover div.foot_inner { 
                        display: block; 
                        border: 1px double black; 
                        margin: 0em 1em;
@@ -146,6 +136,7 @@ InsetLayout Note:Comment
        EndFont
        MultiPar              true
        HTMLTag               !--
+       HTMLIsBlock           false
 End
 
 
@@ -159,8 +150,11 @@ InsetLayout Note:Note
          Size                Small
        EndFont
        MultiPar              true
+       HTMLIsBlock           false
+# FIXME HTML Need CSS
 End
 
+
 InsetLayout Note:Greyedout
        LabelString           greyedout
        LatexType             environment
@@ -171,11 +165,15 @@ InsetLayout Note:Greyedout
          Size                Small
        EndFont
        MultiPar              true
-       HTMLTag               span
-       HTMLAttr              class='notegrey'
        HTMLStyle
-               span.notegrey { color: gray; }
+               div.note_greyedout { 
+                       display: inline;
+                       color: #A0A0A0; 
+                       padding-left: 1ex;
+                       padding-right: 1ex;
+               }
        EndHTMLStyle
+       HTMLIsBlock           false
 End
 
 InsetLayout ERT
@@ -226,6 +224,7 @@ InsetLayout Listings
        KeepEmpty             true
        FreeSpacing           true
        ForceLTR              true
+       RefPrefix             lst
 End
 
 InsetLayout Branch
@@ -236,22 +235,14 @@ InsetLayout Branch
        EndFont
        MultiPar              true
        InToc                 true
+       HTMLIsBlock           false
 End
 
 InsetLayout Index
        LabelString           Idx
-       LatexType             command
-       LatexName             index
        Decoration            classic
        Font
-         Color               foreground
          Size                Small
-         Family              Roman
-         Shape               Up
-         Series              Medium
-         Misc                No_Emph
-         Misc                No_Noun
-         Misc                No_Bar
        EndFont
        LabelFont
          Color               indexlabel
@@ -260,7 +251,7 @@ InsetLayout Index
        MultiPar              false
        CustomPars            false
        ForcePlain            true
-       NeedProtect           true
+       ContentAsLabel        true
 End
 
 InsetLayout Box
@@ -269,6 +260,9 @@ InsetLayout Box
          Size                Small
        EndFont
        MultiPar              true
+       HTMLStyle
+               div.Frameless { font-family: sans-serif; }
+       EndHTMLStyle
 End
 
 InsetLayout Box:Shaded
@@ -286,6 +280,12 @@ InsetLayout Float
          Size                Small
        EndFont
        MultiPar              true
+       HTMLStyle
+               div.float {
+                       border: 2px solid black;
+                       text-align: center;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout Wrap
@@ -294,15 +294,30 @@ InsetLayout Wrap
          Size                Small
        EndFont
        MultiPar              true
+       RefPrefix             wrap
+       HTMLStyle
+               div.wrap { 
+                       float: right;
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout URL
        LyXType               standard
-       LatexName             url
-       LatexType             command
        Decoration            classic
        LabelString           URL
+       ContentAsLabel        true
+       LatexName             url
+       LatexType             command
+       Requires              url
+       MultiPar              false
+       CustomPars            false
+       ForcePlain            true
        PassThru              true
+       FreeSpacing           true
        ForceLTR              true
        Font
          Family              Typewriter
@@ -313,7 +328,7 @@ InsetLayout URL
          Color               urllabel
          Size                Small
        EndFont
-       Requires              url
+       HTMLIsBlock           false
 End
 
 InsetLayout OptArg
@@ -327,9 +342,15 @@ End
 
 InsetLayout Info
        Decoration            conglomerate
+       HTMLStyle
+               span.info { font-family: sans-serif; }
+       EndHTMLStyle
+       HTMLTag            span
+       MultiPar           false
 End
 
 InsetLayout Info:menu
+       CopyStyle             Info
        LatexType             command
        LatexName             menuitem
        Preamble
@@ -339,9 +360,14 @@ InsetLayout Info:menu
        Font
          Family              sans
        EndFont
+       HTMLAttr          "class='info menu'"
+       HTMLStyle
+               span.menu { font-family: sans-serif; }
+       EndHTMLStyle
 End
 
 InsetLayout Info:shortcut
+       CopyStyle             Info
        LatexType             command
        LatexName             shortcut
        Preamble
@@ -351,9 +377,14 @@ InsetLayout Info:shortcut
        Font
          Family              sans
        EndFont
+       HTMLAttr          "class='info shortcut'"
+       HTMLStyle
+               span.shortcut { font-family: sans-serif; }
+       EndHTMLStyle
 End
 
 InsetLayout Info:shortcuts
+       CopyStyle             Info
        LatexType             command
        LatexName             shortcut
        Preamble
@@ -363,10 +394,20 @@ InsetLayout Info:shortcuts
        Font
          Family              sans
        EndFont
+       HTMLAttr          "class='info shortcut'"
+       HTMLStyle
+               span.shortcuts { font-family: sans-serif; }
+       EndHTMLStyle
 End
 
-InsetLayout Box
+InsetLayout Caption
        HTMLStyle
-               span.Frameless { font-family: sans-serif; }
+               div.float-caption {
+                       text-align: center;
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+               }
        EndHTMLStyle
 End
+