]> git.lyx.org Git - lyx.git/commitdiff
Initial HTML information for layouts. Much of this is prelimiary,
authorRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 17:51:03 +0000 (17:51 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 5 Jun 2009 17:51:03 +0000 (17:51 +0000)
some of it is really only for testing purposes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29953 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/logicalmkup.module
lib/layouts/paper.layout
lib/layouts/stdclass.inc
lib/layouts/stdinsets.inc
lib/layouts/stdlayouts.inc
lib/layouts/stdlists.inc
lib/layouts/stdsections.inc
lib/layouts/stdtitle.inc

index d31acfecdb6166a91913408c29f5e7c8b9a686eb..fa8032c80264d6000c81401dec10661e9ab9c8cc 100644 (file)
@@ -17,6 +17,13 @@ InsetLayout CharStyle:Noun
        EndFont
        Requires              noun
        InToc                 true
+       HTMLTag               span
+       HTMLAttr              class='noun'
+       HTMLStyle
+               span.noun {
+                       font-family: sans-serif;
+               }
+       EndHTMLStyle
 End
 
 
@@ -29,6 +36,7 @@ InsetLayout CharStyle:Emph
          Shape               Italic
        EndFont
        InToc                 true
+       HTMLTag               em
 End
 
 
@@ -44,6 +52,7 @@ InsetLayout CharStyle:Strong
        \newcommand{\strong}[1]{\textbf{#1}}
        EndPreamble
        InToc                 true
+       HTMLTag               strong
 End
 
 
@@ -59,4 +68,5 @@ InsetLayout CharStyle:Code
        \newcommand{\code}[1]{\texttt{#1}}
        EndPreamble
        InToc                 true
+       HTMLTag               code
 End
index 244fd4c61f736f4131068f249f45110f882853c5..cd3203c10a2d513240dd281d5d56d73e27a98be7 100644 (file)
@@ -10,7 +10,6 @@ Sides                   1
 SecNumDepth             3
 TocDepth                3
 
-
 Style Standard
        Margin                Static
        LatexType             Paragraph
@@ -20,6 +19,7 @@ Style Standard
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
+       HTMLTag               p
 End
 
 Input stdtitle.inc
index 8494b028cf23a9a2f17f025ca23c3ad9cdd97441..afd863f98aea3ebbca586c2f628aed2fa7412fc9 100644 (file)
@@ -35,6 +35,7 @@ Style Standard
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
+       HTMLTag               p
 End
 
 #Input stdcharstyles.inc
index 075a49af619aaa1b7a877417ccd2a37958a745ca..d916a326a9cb2d25916b2bc21cb67a1957db4c59 100644 (file)
@@ -97,6 +97,8 @@ InsetLayout Foot
          Size                Small
        EndFont
        MultiPar              true
+       HTMLTag               span
+       HTMLAttr              class='footnote'
 End
 
 InsetLayout Note:Comment
@@ -322,3 +324,9 @@ InsetLayout Info:shortcuts
          Family              sans
        EndFont
 End
+
+InsetLayout Box
+       HTMLStyle
+               span.Frameless { font-family: sans-serif; }
+       EndHTMLStyle
+End
index 381102129df34b9269ebf178c40cb68b94a9b3dc..d4b099c526a909d8820b2447ce9ddd27ceaafd5d 100644 (file)
@@ -24,6 +24,9 @@ Style Quotation
        ParSep                0
        Align                 Block
        AlignPossible         Block, Left, Right, Center
+       HTMLTag               blockquote
+       HTMLAttr              class='quotation'
+       HTMLItem              p
 End
 
 
@@ -41,6 +44,9 @@ Style Quote
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        LabelType             No_Label
+       HTMLTag               blockquote
+       HTMLAttr              class='quote'
+       HTMLItem              p
 End
 
 
@@ -61,6 +67,9 @@ Style Verse
        Align                 Block
        AlignPossible         Block, Left
        LabelType             No_Label
+       HTMLTag               blockquote
+       HTMLAttr              class='verse'
+       HTMLItem              p
 End
 
 
index 5d467b3d65dc48141c69df54464132f8c9b125ab..d4beb4ae9f93784d7e6c424b9f1ecfcbb4653e20 100644 (file)
@@ -24,6 +24,8 @@ Style Itemize
        AlignPossible         Block, Left
        LabelType             Itemize
        LabelString           "*"
+       HTMLTag               ul
+       HTMLItem              li
 End
 
 
@@ -44,6 +46,8 @@ Style Enumerate
        AlignPossible         Block, Left
        LabelType             Enumerate
        LabelCounter          "enum"
+       HTMLTag               ol
+       HTMLItem              li
 End
 
 Style Description
@@ -66,6 +70,9 @@ Style Description
        LabelFont
          Series              Bold
        EndFont
+       HTMLTag               dl
+       HTMLItem              dd
+       HTMLLabel             dt
 End
 
 
@@ -84,6 +91,11 @@ Style List
        AlignPossible         Block, Left
        LabelType             Manual
        LabelString           "00.00.0000"
+       HTMLTag               ol
+       HTMLAttr              class='lyxlist'
+       HTMLItem              li
+       HTMLLabel             span
+       HTMLLabelAttr         class='lyxlist'
 
        #define the environment lyxlist
        Preamble
@@ -95,4 +107,13 @@ Style List
                                 \renewcommand{\makelabel}[1]{##1\hfil}}}
                        {\end{list}}
        EndPreamble
+
+       HTMLStyle
+               ol.lyxlist {
+                       list-style-type: none;
+               }
+               span.lyxlist {
+                       margin-right: 3em;
+               }
+       EndHTMLStyle
 End
index ad70dcfc80f9668fac69d614bb913d466ec07d24..f3cbc605f134ad2fea0eb87c33bad025b8bb7eb5 100644 (file)
@@ -30,6 +30,8 @@ Style Part
          Series              Bold
          Size                Huge
        EndFont
+       HTMLTag               h1
+       HTMLAttr              class='part'
 End
 
 
@@ -55,6 +57,8 @@ Style Chapter
          Series              Bold
          Size                Huge
        EndFont
+       HTMLTag               h1
+       HTMLAttr              class='chapter'
 End
 
 
@@ -79,6 +83,11 @@ Style Section
          Series              Bold
          Size                Larger
        EndFont
+       HTMLTag               h2
+       HTMLAttr              class='section'
+       HTMLStyle
+               h2.section { font-family: sans-serif; }
+       EndHTMLStyle
 End
 
 
@@ -94,6 +103,8 @@ Style Subsection
          Series              Bold
          Size                Large
        EndFont
+       HTMLTag               h3
+       HTMLAttr              class='subsection'
 End
 
 
@@ -108,6 +119,8 @@ Style Subsubsection
          Series              Bold
          Size                Normal
        EndFont
+       HTMLTag               h4
+       HTMLAttr              class='subsubsection'
 End
 
 
@@ -118,6 +131,8 @@ Style Paragraph
        LatexName             paragraph
        TopSep                0.4
        BottomSep             0
+       HTMLTag               span
+       HTMLAttr              class='paragraph'
 End
 
 
@@ -128,6 +143,8 @@ Style Subparagraph
        LatexName             subparagraph
        NextNoIndent          0
        LeftMargin            MM
+       HTMLTag               span
+       HTMLAttr              class='subparagraph'
 End
 
 Input numarticle.inc
index ee92a419786e422fc870ace12759ceec9a5b597a..6b7b65f288c941567b0530e55d46c0d229d85bba 100644 (file)
@@ -25,6 +25,8 @@ Style Title
        Font
          Size                Largest
        EndFont
+       HTMLTag               h1
+       HTMLAttr              class='title'
 End
 
 
@@ -44,6 +46,8 @@ Style Author
        Font
          Size                Large
        EndFont
+       HTMLTag               h2
+       HTMLAttr              class='author'
 End
 
 
@@ -63,4 +67,6 @@ Style Date
        Font
          Size                Large
        EndFont
+       HTMLTag               h2
+       HTMLAttr              class='date'
 End