2.2 g-brief

<..configure ooffice g-brief..>
 \Configure{g-brief}
    {\ifvmode \IgnorePar\fi \EndP <.open g-brief.>}
    {\ifvmode \IgnorePar\fi \EndP <.end open g-brief.>}
    {\ifvmode \IgnorePar\fi \EndP \par}
    {\ifvmode \IgnorePar\fi \EndP \par}
-_-_-

<..open g-brief..>
 \let\sv:br =\\%
 \let\sv:@imakebox=\@imakebox
 \def\\{\HCode{</table:table-row>\Hnewline<table:table-row>}}%
 \let\:clearpage\clearpage
 \def\clearpage{\let\clearpage\:clearpage
    \ifvmode \IgnorePar\fi \EndP
    \HCode{<table:table table:style-name="date">
        <table:table-column/><table:table-column/>
        <table:table-column/><table:table-column/>
        <table:table-row>\Hnewline}%
    \IgnorePar
 }%
 \def\@imakebox[##1][##2]##3{%
   \HCode{<table:table-cell>\Hnewline
           <text:p text:style-name="makebox-##2">}%
   \bgroup \let\\=\sv:br \let\@imakebox\sv:@imakebox
           \let\par\sv:par
           ##3%
   \egroup
   \HCode{</text:p></table:table-cell>}%
   \def\par{\let\par\brf:par
      \ifvmode \IgnorePar\fi \EndP
      \HCode{</table:table-row></table:table>}}%
 }%
-_-_-

<..end open g-brief..>
 \let\@imakebox\sv:@imakebox
 \let\\=\sv:br
-_-_-

<..configure ooffice g-brief..>+
 \OOstyles{%
 <style:style style:name="makebox-r" \Hnewline
            style:family="paragraph" >\Hnewline
     <style:paragraph-properties   fo:text-align="end"
            style:justify-single-word="false" />\Hnewline
 </style:style>\Hnewline
 }
-_-_-

<..open g-brief..>+
 \let\brf:par\par
 \HTML:PAR{p-g-brief}{p-g-brief}%
-_-_-

<..end open g-brief..>+
 \HTML:PAR{p-\ifHCond nopar\else noindent\fi}%
          {p-\ifdim \parindent=\z@ no\fi indent}%
-_-_-

<..configure ooffice g-brief..>+
 \OOstyles{%
  <style:style style:name="p-g-brief"
          style:family="paragraph"
          style:parent-style-name="Text-body">\Hnewline
     <style:paragraph-properties
        fo:text-align="justify"
        style:auto-text-indent="false"
        style:justify-single-word="false"
        fo:margin-top="0.7cm"
        fo:margin-bottom="0.7cm"
     />\Hnewline
  </style:style>\Hnewline
 }
-_-_-

<..configure ooffice g-briefNO..>
 \Configure{letterfoot}
    {\ifvmode \IgnorePar\fi \EndP
     \bgroup
         \Configure{halignTB<>}{tabular}{\HCode{\Hnewline
              table:style-name="letterfoot"
              }<>\HAlign}%
         \Configure{table-column-style}
              {table:style-name="letterfoot\ar:cnt"}%
    }
    {}
    {\egroup}
 \OOstyles{%
 <style:style style:name="letterfoot"
              style:family="table">\Hnewline
 <style:text-properties
                  fo:margin-top="2cm"
                  table:align="margins"/>\Hnewline
 </style:style>\Hnewline
 }
 \OOstyles{%
 <style:style style:name="letterfoot1"
              style:family="table-column">\Hnewline
 <style:text-properties style:column-width="3cm"
 style:rel-column-width="3030*"
     />\Hnewline
 </style:style>\Hnewline
 }
-_-_-

The above styles don’t work?

<..configure ooffice g-brief..>+
 \Configure{letterfoot}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<text:p text:style-name="letterfoot">}%
     \bgroup
         \Configure{tabular}
            {}{} {}{\HCode{<text:line-break/>}} {}{~~}%
    }
    {}
    {\egroup \HCode{</text:p>}}
 \OOstyles{%
    {<style:style style:name="letterfoot"
          style:family="paragraph"
          style:parent-style-name="Text-body">\Hnewline
       <style:paragraph-properties
          fo:text-align="justify"
          style:auto-text-indent="false"
          fo:margin-top="2cm"
          fo:margin-bottom="0cm"
          style:justify-single-word="false"/>\Hnewline
     </style:style>\Hnewline}
 }
-_-_-

The above styles don’t work?

<..configure ooffice g-brief..>+
 \Configure{letterhead}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<text:section
                   text:style-name="header-style" text:name="header">
           <text:p text:style-name="left-col">}}
    {\HCode{</text:p>}}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{</text:section>
            <text:p text:style-name="p-retouradresse">}}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{</text:p><text:p text:style-name="postage">}}
    {\HCode{</text:p>}}
 \Configure{retouradresse}
   {\HCode{<text:span text:style-name="retouradresse">}}
   {\HCode{</text:span>}}
-_-_-

<..configure ooffice g-brief..>+
 \NewConfigureOO{g-brief-header}
 \ConfigureOO{g-brief-header}{\Hnewline
 <style:style style:name="header-style" style:family="section">\Hnewline
    <style:text-properties text:dont-balance-text-columns="false"
                      fo:margin-bottom="2cm">\Hnewline
       <style:columns    fo:column-count="2"
                         fo:column-gap="1in">\Hnewline
           <style:column fo:margin-left="0in"
                         fo:margin-right="0in"/>\Hnewline
           <style:column fo:margin-left="0in"
                         fo:margin-right="0in"/>\Hnewline
       </style:columns>\Hnewline
    </style:text-properties>\Hnewline
 </style:style>\Hnewline
 }
-_-_-

<..configure ooffice g-briefNO..>+
 \OOstyles{%
 <style:style style:name="header-style" style:family="section">\Hnewline
    <style:text-properties text:dont-balance-text-columns="false"
                      fo:margin-bottom="2cm">\Hnewline
       <style:columns    fo:column-count="2"
                         fo:column-gap="1in">\Hnewline
           <style:column fo:margin-left="0in"
                         fo:margin-right="0in"/>\Hnewline
           <style:column fo:margin-left="0in"
                         fo:margin-right="0in"/>\Hnewline
       </style:columns>\Hnewline
    </style:text-properties>\Hnewline
 </style:style>\Hnewline
 }
-_-_-

<..configure ooffice g-brief..>+
 \OOstyles{%
 <style:style style:name="p-retouradresse" \Hnewline
              style:family="paragraph" \Hnewline
              style:parent-style-name="Standard">\Hnewline
     <style:paragraph-properties  fo:margin-top="0.7cm" \Hnewline
                       fo:margin-bottom="0.7cm"/>\Hnewline
 </style:style>\Hnewline
 }
 \OOstyles{%
 <style:style style:name="postage" \Hnewline
              style:family="paragraph" \Hnewline
              style:parent-style-name="Standard">\Hnewline
     <style:paragraph-properties  fo:margin-top="0.5cm" \Hnewline
                       fo:margin-bottom="0.5cm"/>\Hnewline
 </style:style>\Hnewline
 }
-_-_-

The following configuration does not show.

<..configure ooffice g-brief..>+
 \OOstyles{%
 <style:style style:name="tabular"
              style:family="table"
              style:parent-style-name="header-style">\Hnewline
 <\style:tableproperties style:rel-width="46\%"
                  fo:margin-left="1cm"
                  fo:margin-right="0cm"
                  table:align="margins"/>\Hnewline
 </style:style>\Hnewline
 }
-_-_-

<..configure ooffice g-brief..>+
 \Configure{betreff}
   {\HCode{<text:span text:style-name="betreff">}}
   {\HCode{</text:span>}}
 \Configure{betrefftext}
   {\HCode{<text:span text:style-name="betrefftext">}}
   {\HCode{</text:span>}}
 \Configure{gruss}
   {\HCode{<text:span text:style-name="gruss">}}
   {\HCode{</text:span>}}
 \Configure{grussskip}
   {\HCode{<text:span text:style-name="grussskip">}}
   {\HCode{</text:span>}}
 \Configure{unterschrift}
    {\HCode{<text:span text:style-name="unterschrift">}}
    {\HCode{</text:span>}}
 \Configure{datumtext}
   {\HCode{<text:span text:style-name="datumtext">}}
   {\HCode{</text:span>}}
 \Configure{datum}
   {\HCode{<text:span text:style-name="datum">}}
   {\HCode{</text:span>}}
 \Configure{anlagen}
   {\HCode{<text:span text:style-name="anlagen">}}
   {\HCode{</text:span>}}
 \Configure{verteiler}
    {\HCode{<text:span text:style-name="verteiler">}}
    {\HCode{</text:span>}}
 \Configure{sprache}
   {\HCode{<text:span text:style-name="sprache">}}
   {\HCode{</text:span>}}
-_-_-

<..configure ooffice g-brief..>+
 \Configure{telefontex}
   {\HCode{<text:span text:style-name="telefontex">}}
   {\HCode{</text:span>}}
 \Configure{telefaxtext}
   {\HCode{<text:span text:style-name="telefaxtext">}}
   {\HCode{</text:span>}}
 \Configure{telextext}
   {\HCode{<text:span text:style-name="telextext">}}
   {\HCode{</text:span>}}
 \Configure{telefax}
   {\HCode{<text:span text:style-name="telefax">}}
   {\HCode{</text:span>}}
 \Configure{telefon}
   {\HCode{<text:span text:style-name="telefon">}}
   {\HCode{</text:span>}}
 \Configure{telex}
   {\HCode{<text:span text:style-name="telex">}}
   {\HCode{</text:span>}}
-_-_-

<..configure ooffice g-brief..>+
 \Configure{emailtext}
   {\HCode{<text:span text:style-name="emailtext">}}
   {\HCode{</text:span>}}
 \Configure{email}
   {\HCode{<text:span text:style-name="email">}}
   {\HCode{</text:span>}}
 \Configure{httptext}
   {\HCode{<text:span text:style-name="httptext">}}
   {\HCode{</text:span>}}
 \Configure{http}
   {\HCode{<text:span text:style-name="http">}}
   {\HCode{</text:span>}}
 \Configure{banktext}
   {\HCode{<text:span text:style-name="banktext">}}
   {\HCode{</text:span>}}
 \Configure{bank}
   {\HCode{<text:span text:style-name="bank">}}
   {\HCode{</text:span>}}
 \Configure{konto}
   {\HCode{<text:span text:style-name="konto">}}
   {\HCode{</text:span>}}
 \Configure{blztext}
   {\HCode{<text:span text:style-name="blztext">}}
   {\HCode{</text:span>}}
 \Configure{blz}
   {\HCode{<text:span text:style-name="blz">}}
   {\HCode{</text:span>}}
-_-_-

<..configure ooffice g-brief..>+
 \Configure{ihrzeichentext}
   {\HCode{<text:span text:style-name="ihrzeichentext">}}
   {\HCode{</text:span>}}
 \Configure{ihrzeichen}
   {\HCode{<text:span text:style-name="ihrzeichen">}}
   {\HCode{</text:span>}}
 \Configure{ihrschreibentext}
   {\HCode{<text:span text:style-name="ihrschreibentext">}}
   {\HCode{</text:span>}}
 \Configure{ihrschreiben}
   {\HCode{<text:span text:style-name="ihrschreiben">}}
   {\HCode{</text:span>}}
 \Configure{meinzeichentext}
   {\HCode{<text:span text:style-name="meinzeichentext">}}
   {\HCode{</text:span>}}
 \Configure{meinzeichen}
   {\HCode{<text:span text:style-name="meinzeichen">}}
   {\HCode{</text:span>}}
 \Configure{unserzeichentext}
   {\HCode{<text:span text:style-name="unserzeichentext">}}
   {\HCode{</text:span>}}
-_-_-

<..configure ooffice g-brief..>+
 \Configure{adresse}
   {\HCode{<text:span text:style-name="adresse">}}
   {\HCode{</text:span>}}
 \Configure{land}
   {\HCode{<text:span text:style-name="land">}}
   {\HCode{</text:span>}}
 \Configure{name}
   {\HCode{<text:span text:style-name="name">}}
   {\HCode{</text:span>}}
 \Configure{ort}
   {\HCode{<text:span text:style-name="ort">}}
   {\HCode{</text:span>}}
 \Configure{postvermerk}
   {\HCode{<text:span text:style-name="postvermerk">}}
   {\HCode{</text:span>}}
 \Configure{strasse}
   {\HCode{<text:span text:style-name="strasse">}}
   {\HCode{</text:span>}}
 \Configure{zusatz}
   {\HCode{<text:span text:style-name="zusatz">}}
   {\HCode{</text:span>}}
-_-_-

<..configure oolatex g-briefNO..>
 \Configure{anrede}
   {\ifvmode \IgnorePar\fi \EndP \HCode{<text:p text:style-name="anrede">}}
   {\HCode{</text:p>}}
-_-_-