]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/scrlettr.layout
Make continuous spellcheck the default.
[lyx.git] / lib / layouts / scrlettr.layout
index cacc7a9322683542656ad734bf99c1909812c08d..cd41318c7906795b096dce1ac50fa4357572ab01 100644 (file)
@@ -1,51 +1,48 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[scrlettr]{letter (koma-script)}
-# KOMA scrlettr textclass definition file. 
+#  \DeclareLaTeXClass{KOMA-Script Letter (V. 1, Obsolete)}
+#  \DeclareCategory{Obsolete}
+# KOMA scrlettr textclass definition file.
 # Bernd Rellermeyer <100.41728@germanynet.de>, 1999/2/17.
 
-# Standard style definition
+Format 93
+
 Style Standard
+       Category              MainText
        LatexName             dummy
        ParSep                0.4
        AlignPossible         Block, Left, Right, Center
+       DocBookTag            para
 End
 
 Input stdlists.inc
+Input stdcounters.inc
+Input stdinsets.inc
 
-# Modify Description
 Style Description
        LabelFont
          Family              Sans
        EndFont
 End
 
-# Delete List
-NoStyle List
 
-# Labeling style definition
 Style Labeling
-       Margin                Manual
-       LatexType             List_Environment
+       CopyStyle             List
        LatexName             labeling
-       NextNoindent          1
-       LabelSep              xxx
-       ParSkip               0.4
-       TopSep                0.7
-       BottomSep             0.7
-       ParSep                0.5
-       Align                 Block
-       AlignPossible         Block, Left
-       LabelType             Manual
-       LabelString           00.00.0000
+       # overwrite the preamble code definition
+       Preamble
+       EndPreamble
+End
+
+Style List
+       Obsoletedby           Labeling
 End
 
 Input stdlayouts.inc
 
-# Delete Caption
-NoStyle Caption
 
-# Letter style definition
+
 Style Letter
+       Category              Letter
        LatexType             Command
        LatexName             letter
        KeepEmpty             1
@@ -54,31 +51,32 @@ Style Letter
        BottomSep             1.5
        ParSep                1.5
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
        LabelString           "L"
-
-       LabelFont 
+       LabelFont
          Series              Bold
          Shape               Italic
          Size                Small
-         Color               Blue
+         Color               textlabel1
        EndFont
+       # TODO: not supported by DocBook, it's related to having several letters in one document.
 End
 
-# Opening style definition
+
 Style Opening
        CopyStyle             Letter
        LatexName             lyxopening
        LabelString           "O"
-
        Preamble
          \newcommand{\lyxopening}[1]{\pagebreak\startbreaks\opening{#1}}
        EndPreamble
+       DocBookTag            para
+       DocBookAttr           role='opening'
 End
 
-# Closing style definition
+
 Style Closing
+       Category              Letter
        LatexType             Command
        LatexName             closing
        KeepEmpty             0
@@ -86,10 +84,11 @@ Style Closing
        BottomSep             1.5
        ParSep                1.5
        Align                 Left
-       AlignPossible         Left
+       DocBookTag            para
+       DocBookAttr           role='closing'
 End
 
-# PS style definition
+
 Style PS
        LatexType             Command
        LatexName             ps
@@ -97,10 +96,11 @@ Style PS
        BottomSep             0.4
        ParSep                0.4
        Align                 Left
-       AlignPossible         Left
+       DocBookTag            para
+       DocBookAttr           role='post-scriptum'
 End
 
-# CC style definition
+
 Style CC
        LatexType             Command
        LatexName             cc
@@ -110,20 +110,24 @@ Style CC
        BottomSep             0.4
        ParSep                0.4
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
        LabelString           "cc:"
+       DocBookTag            para
+       DocBookAttr           role='carbon-copy'
 End
 
-# Encl style definition
+
 Style Encl
        CopyStyle             CC
        LatexName             encl
        LabelString           "encl:"
+       DocBookTag            para
+       DocBookAttr           role='enclosed'
 End
 
-# Name style definition
+
 Style Name
+       Category              Letter
        LatexType             Command
        LatexName             name
        KeepEmpty             1
@@ -133,94 +137,139 @@ Style Name
        BottomSep             0.4
        ParSep                0.4
        Align                 Left
-       AlignPossible         Left
        LabelType             Static
        LabelString           "Name:"
-
-       LabelFont 
+       LabelFont
          Series              Bold
          Shape               Italic
-         Color               Blue
+         Color               textlabel1
        EndFont
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType inline
+       DocBookInInfo         always 
 End
 
-# Signature style definition
+
 Style Signature
        CopyStyle             Name
        LatexName             signature
        LabelString           "Signature:"
+       DocBookTag            para
+       DocBookAttr           role='signature'
 End
 
-# Address style definition
+
 Style Address
        CopyStyle             Name
        LatexName             address
        LabelString           "Address:"
+    DocBookTag            NONE
+    DocBookWrapperTag     address
+       DocBookWrapperAttr    role='send-to-address'
+    DocBookWrapperMergeWithPrevious  true
+    DocBookInInfo         always
 End
 
-# Telephone style definition
+
 Style Telephone
        CopyStyle             Name
        LatexName             telephone
        LabelString           "Telephone:"
+       # TODO: to be valid DocBook, this should be in the address.
+       DocBookTag            phone
+       DocBookTagType        paragraph
+       DocBookWrapperTag     author
+       DocBookWrapperTagType paragraph
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always    
 End
 
-# Place style definition
+
 Style Place
        CopyStyle             Name
        LatexName             place
        LabelString           "Place:"
+       DocBookTag            country
+       DocBookTagType        paragraph
+       DocBookWrapperTag     address
+       DocBookWrapperTagType paragraph
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
-# Date style definition
+
 Style Date
        CopyStyle             Name
        LatexName             date
        LabelString           "Date:"
+       DocBookTag            date
+       DocBookTagType        paragraph
+       DocBookWrapperTag     NONE
+       DocBookInInfo         always
+    DocBookNoFontInside   true
 End
 
-# Backaddress style definition
+
 Style Backaddress
        CopyStyle             Name
        LatexName             backaddress
        LabelString           "Backaddress:"
+       DocBookTag            NONE
+       DocBookWrapperTag     address
+       DocBookWrapperTagType paragraph
+       DocBookWrapperMergeWithPrevious true
+       DocBookInInfo         always
 End
 
-# Specialmail style definition
+
 Style Specialmail
        CopyStyle             Name
        LatexName             specialmail
        LabelString           "Specialmail:"
+       # TODO: not implemented for DocBook, what is the meaning of this?
 End
 
-# Location style definition
+
 Style Location
        CopyStyle             Name
        LatexName             location
        LabelString           "Location:"
+       # TODO: not implemented for DocBook, what is the meaning of this?
 End
 
-# Title style definition
+
 Style Title
        CopyStyle             Name
        LatexName             title
        LabelString           "Title:"
+       HTMLTitle             true
+       DocBookTag            title
+       DocBookAttr           role='title' # As opposed to subject.
+       DocBookTagType        paragraph
+       DocBookWrapperTag     NONE
+       DocBookInInfo         maybe
 End
 
-# Subject style definition
+
 Style Subject
        CopyStyle             Name
        LatexName             subject
        LabelString           "Subject:"
+       DocBookTag            title
+       DocBookAttr           role='title'
+       DocBookTagType        paragraph
+       DocBookWrapperTag     NONE
+       DocBookInInfo         maybe
 End
 
-# Yourref style definition
+
 Style Yourref
        CopyStyle             Name
        LatexName             yourref
        LabelString           "Your ref.:"
-
-       LabelFont 
+       LabelFont
          Family              Sans
          Series              Medium
          Shape               Up
@@ -229,28 +278,28 @@ Style Yourref
        EndFont
 End
 
-# Yourmail style definition
+
 Style Yourmail
        CopyStyle             Yourref
        LatexName             yourmail
        LabelString           "Your letter of:"
 End
 
-# Myref style definition
+
 Style Myref
        CopyStyle             Yourref
        LatexName             myref
        LabelString           "Our ref.:"
 End
 
-# Customer style definition
+
 Style Customer
        CopyStyle             Yourref
        LatexName             customer
        LabelString           "Customer no.:"
 End
 
-# Invoice style definition
+
 Style Invoice
        CopyStyle             Yourref
        LatexName             invoice