#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{KOMA-Script Letter (V. 1, Obsolete)}
#  \DeclareCategory{Obsolete}
# KOMA scrlettr textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1999/2/17.

Format 104

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

Style Description
	LabelFont
	  Family              Sans
	EndFont
End


Style Labeling
	CopyStyle             List
	LatexName             labeling
	# overwrite the preamble code definition
	Preamble
	EndPreamble
End

Style List
	Obsoletedby           Labeling
End

Input stdlayouts.inc



Style Letter
	Category              Letter
	LatexType             Command
	LatexName             letter
	KeepEmpty             1
	LabelSep              xx
	TopSep                1.5
	BottomSep             1.5
	ParSep                1.5
	Align                 Left
	LabelType             Static
	LabelString           "L"
	LabelFont
	  Series              Bold
	  Shape               Italic
	  Size                Small
	  Color               textlabel1
	EndFont
	# TODO: not supported by DocBook, it's related to having several letters in one document.
End


Style Opening
	CopyStyle             Letter
	LatexName             lyxopening
	LabelString           "O"
	Preamble
	  \newcommand{\lyxopening}[1]{\pagebreak\startbreaks\opening{#1}}
	EndPreamble
	DocBookTag            para
	DocBookAttr           role='opening'
End


Style Closing
	Category              Letter
	LatexType             Command
	LatexName             closing
	KeepEmpty             0
	TopSep                1.5
	BottomSep             1.5
	ParSep                1.5
	Align                 Left
	DocBookTag            para
	DocBookAttr           role='closing'
End


Style PS
	LatexType             Command
	LatexName             ps
	TopSep                0.4
	BottomSep             0.4
	ParSep                0.4
	Align                 Left
	DocBookTag            para
	DocBookAttr           role='post-scriptum'
End


Style CC
	LatexType             Command
	LatexName             cc
	LeftMargin            xxxx::xx
	LabelSep              xx
	TopSep                0.4
	BottomSep             0.4
	ParSep                0.4
	Align                 Left
	LabelType             Static
	LabelString           "cc:"
	DocBookTag            para
	DocBookAttr           role='carbon-copy'
End


Style Encl
	CopyStyle             CC
	LatexName             encl
	LabelString           "encl:"
	DocBookTag            para
	DocBookAttr           role='enclosed'
End


Style Name
	Category              Letter
	LatexType             Command
	LatexName             name
	KeepEmpty             1
	LeftMargin            xxxxxxxxxxxx::xx
	LabelSep              xx
	TopSep                0.4
	BottomSep             0.4
	ParSep                0.4
	Align                 Left
	LabelType             Static
	LabelString           "Name:"
	LabelFont
	  Series              Bold
	  Shape               Italic
	  Color               textlabel1
	EndFont
	DocBookTag            personname
	DocBookTagType        paragraph
	DocBookWrapperTag     author
	DocBookWrapperTagType inline
	DocBookInInfo         always 
End


Style Signature
	CopyStyle             Name
	LatexName             signature
	LabelString           "Signature:"
	DocBookTag            para
	DocBookAttr           role='signature'
End


Style Address
	CopyStyle             Name
	LatexName             address
	LabelString           "Address:"
    DocBookTag            NONE
    DocBookWrapperTag     address
	DocBookWrapperAttr    role='send-to-address'
    DocBookWrapperMergeWithPrevious  true
    DocBookInInfo         always
End


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


Style Place
	CopyStyle             Name
	LatexName             place
	LabelString           "Place:"
	DocBookTag            country
	DocBookTagType        paragraph
	DocBookWrapperTag     address
	DocBookWrapperTagType paragraph
	DocBookWrapperMergeWithPrevious true
	DocBookInInfo         always
End


Style Date
	CopyStyle             Name
	LatexName             date
	LabelString           "Date:"
	DocBookTag            date
	DocBookTagType        paragraph
	DocBookWrapperTag     NONE
	DocBookInInfo         always
    DocBookNoFontInside   true
End


Style Backaddress
	CopyStyle             Name
	LatexName             backaddress
	LabelString           "Backaddress:"
	DocBookTag            NONE
	DocBookWrapperTag     address
	DocBookWrapperTagType paragraph
	DocBookWrapperMergeWithPrevious true
	DocBookInInfo         always
End


Style Specialmail
	CopyStyle             Name
	LatexName             specialmail
	LabelString           "Specialmail:"
	# TODO: not implemented for DocBook, what is the meaning of this?
End


Style Location
	CopyStyle             Name
	LatexName             location
	LabelString           "Location:"
	# TODO: not implemented for DocBook, what is the meaning of this?
End


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


Style Subject
	CopyStyle             Name
	LatexName             subject
	LabelString           "Subject:"
	DocBookTag            title
	DocBookAttr           role='title'
	DocBookTagType        paragraph
	DocBookWrapperTag     NONE
	DocBookInInfo         maybe
End


Style Yourref
	CopyStyle             Name
	LatexName             yourref
	LabelString           "Your ref.:"
	LabelFont
	  Family              Sans
	  Series              Medium
	  Shape               Up
	  Size                Small
	  Color               None
	EndFont
End


Style Yourmail
	CopyStyle             Yourref
	LatexName             yourmail
	LabelString           "Your letter of:"
End


Style Myref
	CopyStyle             Yourref
	LatexName             myref
	LabelString           "Our ref.:"
End


Style Customer
	CopyStyle             Yourref
	LatexName             customer
	LabelString           "Customer no.:"
End


Style Invoice
	CopyStyle             Yourref
	LatexName             invoice
	LabelString           "Invoice no.:"
End
