W2L custom config ui refactoring & enhancements

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@79 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2010-12-09 19:30:33 +00:00
parent 84f4d5cb20
commit ea5d8679c9
10 changed files with 322 additions and 161 deletions

View file

@ -6,7 +6,10 @@
<dlg:checkbox dlg:id="UseCaption" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="240" dlg:height="12" dlg:value="Use caption.sty to format captions (also for tables)" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigUseCaption"/>
<dlg:checkbox dlg:id="AlignFrames" dlg:tab-index="2" dlg:left="10" dlg:top="36" dlg:width="240" dlg:height="12" dlg:value="Center figures" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigAlignFrames"/>
<dlg:text dlg:id="FigureSequenceLabel" dlg:tab-index="3" dlg:left="10" dlg:top="50" dlg:width="90" dlg:height="12" dlg:value="Figure sequence name"/>
<dlg:textfield dlg:id="FigureSequenceName" dlg:tab-index="4" dlg:left="120" dlg:top="48" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigFigureSequenceName"/>
<dlg:combobox dlg:id="FigureSequenceName" dlg:tab-index="4" dlg:left="120" dlg:top="48" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigFigureSequenceName" dlg:spin="true" dlg:linecount="10">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:text dlg:id="GraphicsLabel" dlg:tab-index="5" dlg:left="5" dlg:top="64" dlg:width="245" dlg:height="12" dlg:value="Graphics"/>
<dlg:checkbox dlg:id="NoImages" dlg:tab-index="6" dlg:left="10" dlg:top="78" dlg:width="240" dlg:height="12" dlg:value="Do not export graphics" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigNoImages">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:NoImagesChange" script:language="UNO"/>

View file

@ -17,12 +17,27 @@
<dlg:text dlg:id="TableHeadLabel" dlg:tab-index="7" dlg:left="25" dlg:top="106" dlg:width="90" dlg:height="12" dlg:value="Style for head"/>
<dlg:text dlg:id="TableFootLabel" dlg:tab-index="8" dlg:left="25" dlg:top="120" dlg:width="90" dlg:height="12" dlg:value="Style for foot"/>
<dlg:text dlg:id="TableLastFootLabel" dlg:tab-index="9" dlg:left="25" dlg:top="134" dlg:width="90" dlg:height="12" dlg:value="Style for last foot"/>
<dlg:textfield dlg:id="TableFirstHeadStyle" dlg:tab-index="10" dlg:left="120" dlg:top="90" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableFirstHeadStyle"/>
<dlg:textfield dlg:id="TableHeadStyle" dlg:tab-index="11" dlg:left="120" dlg:top="104" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableHeadStyle"/>
<dlg:textfield dlg:id="TableFootStyle" dlg:tab-index="12" dlg:left="120" dlg:top="118" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableFootStyle"/>
<dlg:textfield dlg:id="TableLastFootStyle" dlg:tab-index="13" dlg:left="120" dlg:top="132" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableLastFootStyle"/>
<dlg:combobox dlg:id="TableFirstHeadStyle" dlg:tab-index="10" dlg:left="120" dlg:top="90" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableFirstHeadStyle" dlg:spin="true" dlg:linecount="15">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:combobox dlg:id="TableHeadStyle" dlg:tab-index="11" dlg:left="120" dlg:top="104" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableHeadStyle" dlg:spin="true" dlg:linecount="15">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:combobox dlg:id="TableFootStyle" dlg:tab-index="12" dlg:left="120" dlg:top="118" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableFootStyle" dlg:spin="true" dlg:linecount="15">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:combobox dlg:id="TableLastFootStyle" dlg:tab-index="13" dlg:left="120" dlg:top="132" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableLastFootStyle" dlg:spin="true" dlg:linecount="15">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:text dlg:id="TableSequenceLabel" dlg:tab-index="14" dlg:left="10" dlg:top="150" dlg:width="90" dlg:height="12" dlg:value="Table sequence name"/>
<dlg:textfield dlg:id="TableSequenceName" dlg:tab-index="15" dlg:left="120" dlg:top="148" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableSequenceName"/>
<dlg:combobox dlg:id="TableSequenceName" dlg:tab-index="15" dlg:left="120" dlg:top="148" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigTableSequenceName" dlg:spin="true" dlg:linecount="10">
<dlg:menupopup>
</dlg:menupopup>
</dlg:combobox>
<dlg:checkbox dlg:id="UseColortbl" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="240" dlg:height="12" dlg:value="Use colortbl.sty (background color in cells)" dlg:checked="false" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigUseColortbl"/>
</dlg:bulletinboard>
</dlg:window>

View file

@ -33,7 +33,10 @@
<paragraph role="paragraph" xml-lang="en-US">This option can be set to a sequence name in the source document.
OpenDocument has a very weak sense of figure captions: A figure caption is a paragraph containing a sequence number.
If you use %PRODUCTNAME's defaults, Writer2LaTeX can guess which sequence name to use.
If it fails, you can type the name here. Normally it should be left empty.</paragraph>
If it fails, you can type the name here, or select the name from the list. (Note that %PRODUCTNAME Writer has four
basic sequence names which always will be displayed in English here. These are Drawing, Illustration, Table, Text.)
Normally this field should be left empty.</paragraph>
<paragraph role="heading" level="2" xml-lang="en-US">Graphics</paragraph>

View file

@ -43,7 +43,8 @@
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigTableFirstHeadStyle" id="bm_configtablefirstheadstyle"/>
<paragraph role="heading" level="3" xml-lang="en-US">Style for first head</paragraph>
<paragraph role="paragraph" xml-lang="en-US">This option is used to produce advanced tables, that are not supported in
%PRODUCTNAME Writer. Enter the name of a paragraph style. If the first paragraph of the first cell in a row is formatted
%PRODUCTNAME Writer. Enter the name of a paragraph style, or select a style in the list.
If the first paragraph of the first cell in a row is formatted
with this paragraph style, the row in question will be used for the first head in a multipage table.</paragraph>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigTableHeadStyle" id="bm_configtableheadstyle"/>
@ -66,6 +67,8 @@
<paragraph role="paragraph" xml-lang="en-US">This option can be set to a sequence name in the source document.
OpenDocument has a very weak sense of table captions: A table caption is a paragraph containing a sequence number.
If you use %PRODUCTNAME's defaults, Writer2LaTeX can guess which sequence name to use.
If it fails, you can type the name here. Normally it should be left empty.</paragraph>
If it fails, you can type the name here, or select the name from the list. (Note that %PRODUCTNAME Writer has four
basic sequence names which always will be displayed in English here. These are Drawing, Illustration, Table, Text.)
Normally this field should be left empty.</paragraph>
</body>
</helpdocument>