1.9.7 Envelop

<..configure ooffice latex..>+
 \Configure{tableofcontents}
    {\IgnorePar\EndP\HCode{<.start toc.>}\IgnorePar}
    {}
    {\IgnorePar\EndP\HCode{<.end toc.>}\ShowPar}
    {\HCode{\Hnewline}}   {}
-_-_-

<..start toc..>
 <text:table-of-content
         text:name="toc"
         text:style-name="Sect1"
         text:protected="true"  >\Hnewline
    <text:table-of-content-source
                text:outline-level="<.outline level.>"  >\Hnewline
       <.toc outline.>%
    </text:table-of-content-source>\Hnewline
    <text:index-body>\Hnewline
    \ifx\contentsname\empty \else
      \ifx\contentsname\:UnDef \else
       <text:index-title text:style-name="Sect2" text:name="contents"
                          >
          <text:p text:style-name="Contents-Heading"
                          >\contentsname</text:p>
       </text:index-title>
    \fi \fi
-_-_-

<..configure ooffice latex..>+
 \NewConfigureOO{Sect1}
 \ConfigureOO{Sect1}{\Hnewline
    <style:style style:name="Sect1"
                 style:family="section">
    <\style:sectionproperties>
       <style:columns fo:column-count="1"
                    fo:column-gap="0cm">
          <style:column fo:margin-top="0.5cm"
                       fo:margin-left="0cm"
                       fo:margin-right="0cm"
          />
       </style:columns>
    </\style:sectionproperties>
    </style:style>
 \Hnewline }
-_-_-

<..configure ooffice latex..>+
 \NewConfigureOO{Sect2}
 \ConfigureOO{Sect2}{\Hnewline
 <style:style    style:name="Sect2"
    style:family="section">
    <\style:sectionproperties>
       <style:columns fo:column-count="0" fo:column-gap="0cm"/>
    </\style:sectionproperties>
 </style:style>
 \Hnewline }
-_-_-

<..configure ooffice latex..>+
 \NewConfigureOO{Contents Heading}
 \ConfigureOO{Contents Heading}{\Hnewline
    <style:style style:name="Contents-Heading"
                 style:family="paragraph"
                 style:parent-style-name="Heading"
                 style:class="index">
    <style:paragraph-properties
                 fo:margin-top="0.5cm"
                 fo:margin-bottom="0.2cm"
                 fo:margin-left="0cm"
                 fo:margin-right="0cm"
                 fo:font-size="16pt"
                 fo:font-weight="bold"
                 style:font-size-asian="16pt"
                 style:font-weight-asian="bold"
                 style:font-size-complex="16pt"
                 style:font-weight-complex="bold"
                 fo:text-indent="0cm"
                 style:auto-text-indent="false"
                 text:number-lines="false"
                 text:line-number="0"
    />
    </style:style>
 \Hnewline }
-_-_-

<..configure ooffice article..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice book..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice report..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice amsart..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice amsproc..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice nwart..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice nwrep..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..configure ooffice nwbk..>
 \def\tableofcontents{\:tableofcontents}
-_-_-

<..outline level..>
 6
-_-_-

<..end toc..>
    </text:index-body>\Hnewline
 </text:table-of-content>%
 \Hnewline
-_-_-

<..toc outline..>
 <text:index-title-template
    text:style-name="Contents-Heading"  >\contentsname
 </text:index-title-template>\Hnewline
 <.toc template 1.>%
 <.toc template 2.>%
 <.toc template 3.>%
 <.toc template 4.>%
 <.toc template 5.>%
 <.toc template 6.>%
 <.toc template 7.>%
 <.toc template 8.>%
 <.toc template 9.>%
 <.toc template 10.>%
-_-_-

<..automatic styles..>
 <.automatic style 1.>%
 <.automatic style 2.>%
 <.automatic style 3.>%
 <.automatic style 4.>%
 <.automatic style 5.>%
 <.automatic style 6.>%
 <.automatic style 7.>%
 <.automatic style 8.>%
-_-_-

<..content styles..>
 <.content style 1.>%
 <.content style 2.>%
 <.content style 3.>%
 <.content style 4.>%
 <.content style 5.>%
 <.content style 6.>%
 <.content style 7.>%
 <.content style 8.>%
-_-_-