]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/dinbrief.layout
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / dinbrief.layout
index 15f0e747878f35a18d1665d899e33c4494effcdd..02706fa04724c2666babe89a80f4f3228ae747ad 100644 (file)
@@ -4,8 +4,9 @@
 # German DIN-Brief textclass definition file.
 # Author : Juergen Vigna <jug@sad.it>
 # Modified by: Carsten Kaemmerer <kammerer@ips.cs.tu-bs.de>
-# Modified by: Guenter Milde <g.milde@users.berlios.de>
+# Modified by: Guenter Milde <milde@lyx.org>
 #    Dummy Style DinBrief for common layout features (removed at eof)
+#    Dummy Style Addresses for common address features (removed at eof)
 #    Generic style names (there are german translations for most names)
 #    Additional Styles and twiddeled layout
 #    Many "ObsoletedBy" to ease conversion from g-brief, scrletter,
@@ -13,7 +14,9 @@
 # Modified by: Juergen Spitzmueller <spitz@lyx.org>
 #    use English strings, localization is done by gettext!
 
-Format 40
+# TODO: DocBook doesn't support several letters in the same file.
+
+Format 99
 
 Input letter.layout
 
@@ -27,6 +30,7 @@ EndPreamble
 # the LeftMargin is set to the probably longest string
 # (no typo! the umlaut is delibarately omitted)
 Style DinBrief
+       Category    Letter
        LatexType       Command
        Margin          Static
        LeftMargin      "Rucksende-Adresse:"
@@ -38,19 +42,29 @@ Style DinBrief
          Series        Medium
          Shape         Italic
          Size          Small
-         Color         blue
+         Color         textlabel1
        EndFont
 End
 
+Style Addresses
+       CopyStyle       DinBrief
+       Category    "Postal Data"
+End
+
 # Open a new letter
 # in dinbrief, this is an environment spanning the whole letter
 # (see scrlettr2 for an alternative lyx-implementation)
 Style Send_To_Address
-       CopyStyle       DinBrief
+       CopyStyle       Addresses
        LabelString     "Address:"
        KeepEmpty       1
        BottomSep       0.1
        LatexName       letter
+    DocBookTag         NONE
+    DocBookWrapperTag  address
+       DocBookWrapperAttr role='send-to-address'
+    DocBookWrapperMergeWithPrevious  true
+    DocBookInInfo      always
 End
 
 # Data Fields, placed according to DIN norm
@@ -60,60 +74,96 @@ End
 
 # backaddress in letter head
 Style My_Address
-       CopyStyle       DinBrief
+       CopyStyle       Addresses
        LabelString     "Sender Address:"
        LatexName       address
        KeepEmpty       1
        BottomSep       0.5
        AlignPossible   Block, Left, Right, Center
+    DocBookTag      address
+    DocBookInInfo   always
 End
 
 # backaddress in address window
 Style "Return address"
-       CopyStyle       DinBrief
+       CopyStyle       Addresses
        LabelString     "Backaddress:"
        LatexName       backaddress
        TextFont
            Size        Small
        EndFont
+    DocBookTag         NONE
+    DocBookWrapperTag  address
+       DocBookWrapperAttr role='return-address'
+    DocBookInInfo      always
 End
 
 # Printed above the address (e.g., Air Mail, Registered Mail)
 Style "Postal comment"
-       CopyStyle       DinBrief
+       CopyStyle       Addresses
        LabelString     "Postal Remark:"
        LatexName       postremark
+    DocBookTag         otheraddr
+       DocBookAttr        role='postal-comment'
+       DocBookTagType     paragraph
+    DocBookWrapperTag  address
+       DocBookWrapperAttr role='send-to-address'
+    DocBookWrapperMergeWithPrevious  true
+    DocBookInInfo      always
 End
 
 # Printed right next to Receiver (e.g., Urgent, Confidential)
 Style Handling
-       CopyStyle       DinBrief
+       CopyStyle       Addresses
        LabelString     "Handling:"
        LatexName       handling
+    DocBookTag         otheraddr
+       DocBookAttr        role='handling'
+       DocBookTagType     paragraph
+    DocBookWrapperTag  address
+       DocBookWrapperAttr role='send-to-address'
+    DocBookWrapperMergeWithPrevious  true
+    DocBookInInfo      always
 End
 
 Style YourRef
        CopyStyle       DinBrief
        LabelString     "Your ref.:"
        LatexName       yourmail
+       DocBookTag      productnumber
+       DocBookAttr     role='your-ref'
+       DocBookTagType  paragraph
+       DocBookInInfo   always
 End
 
 Style MyRef
        CopyStyle       DinBrief
        LabelString     "Our ref.:"
        LatexName       sign
+       DocBookTag      productnumber
+       DocBookAttr     role='my-ref'
+       DocBookTagType  paragraph
+       DocBookInInfo   always
 End
 
 Style Writer
        CopyStyle       DinBrief
        LabelString     "Writer:"
        LatexName       writer
+       DocBookTag            personname
+       DocBookTagType        paragraph
+       DocBookWrapperTag     othercredit
+       DocBookWrapperAttr    class='typesetter'
+       DocBookInInfo         always 
 End
 
 Style Signature
        CopyStyle       DinBrief
+       Category        Closings
        LabelString     "Signature:"
        LatexName       signature
+       DocBookTag            para
+       DocBookAttr           role='opening'
 End
 
 # contact info at the bottom of the first page
@@ -122,6 +172,9 @@ Style Bottomtext
        LabelString     "Bottom text:"
        LatexName       bottomtext
        AlignPossible   Block, Left, Right, Center
+       # TODO: DocBook, this is typically within the <info> elements in LyX, but that makes no sense for DocBook.
+       DocBookTag  para
+       DocBookAttr role='bottom-text'
 End
 
 # dinbrief's \phone has 2 args, area and number,
@@ -131,6 +184,11 @@ Style "Area code"
        CopyStyle       DinBrief
        LabelString     "Area Code:"
        LatexName       "renewcommand{\areacode}"
+       # TODO: should be in <address>, but too far away from these paragraphs.
+       DocBookTag     phone
+       DocBookAttr    role='area-code'
+       DocBookTagType paragraph
+       DocBookInInfo  always
 End
 
 Style Telephone
@@ -138,6 +196,10 @@ Style Telephone
        LabelString     "Telephone:"
        LatexName       phone
        LatexParam      {\areacode}
+       # TODO: should be in <address>, but too far away from these paragraphs.
+       DocBookTag     phone
+       DocBookTagType paragraph
+       DocBookInInfo  always
 End
 
 Style Location
@@ -148,12 +210,20 @@ Style Location
        TopSep          0.1
        BottomSep       0.1
        ParSep          0.1
+       DocBookTag     address
+       DocBookAttr    role='location'
+       DocBookInInfo  always
 End
 
 Style Date
        CopyStyle       Location
        LabelString     "Date:"
        LatexName       date
+       DocBookTag     date
+       DocBookAttr    ""
+       DocBookTagType paragraph
+       DocBookInInfo  always
+    DocBookNoFontInside   true
 End
 
 # dinbrief does not emphasize the subject line
@@ -166,6 +236,9 @@ Style Subject
        ParSep          0.4
        Align           Block
        AlignPossible   Block, Left, Right, Center
+       DocBookTag     title
+       DocBookTagType paragraph
+       DocBookInInfo  always
 End
 
 # Opening (Anrede)
@@ -175,13 +248,15 @@ End
 
 Style Opening
        CopyStyle       DinBrief
-       LabelType       Top_Environment
+       LabelType       Above
        LeftMargin      ""
        LabelString     "Opening:"
        LatexName       opening
        KeepEmpty       1
        TopSep          1.5
        BottomSep       1
+       DocBookTag  para
+       DocBookAttr role='opening'
 End
 
 # Backmatter (styles to be used at the end of the letter)
@@ -191,18 +266,21 @@ End
 
 Style Closing
        CopyStyle       Opening
+       Category        Closings
        LabelString     "Closing:"
        LatexName       closing
        Argument 1
-               LabelString   "Signature"
-               Shortcut      S
+               LabelString   "Signature|S"
                Tooltip       "Here you can insert a signature scan"
        EndArgument
        KeepEmpty       1
+       DocBookTag  para
+       DocBookAttr role='closing'
 End
 
 Style encl
        CopyStyle       Opening
+       Category        Closings
        LabelString     "encl:"
        LatexName       encl
        TopSep          0.4
@@ -212,14 +290,18 @@ Style encl
          Series        Medium
          Shape         Up
          Size          Normal
-         Color         black
+         Color         foreground
        EndFont
+       DocBookTag  para
+       DocBookAttr role='enclosed'
 End
 
 Style cc
        CopyStyle       encl
        LabelString     "cc:"
        LatexName       cc
+       DocBookTag  para
+       DocBookAttr role='carbon-copy'
 End
 
 Style PS
@@ -229,6 +311,8 @@ Style PS
        Align           Block
        AlignPossible   Block, Left
        ParSep          0.4
+       DocBookTag  para
+       DocBookAttr role='post-scriptum'
 End
 
 # Obsoleted (or differently named) styles
@@ -385,6 +469,7 @@ Style Verteiler
        ObsoletedBy     cc
 End
 
-# Remove auxiliary style
+# Remove auxiliary styles
 NoStyle                        DinBrief
+NoStyle                        Addresses