Config ui + Writer4LaTeX
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@41 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
97144ad818
commit
04ed9dae7a
23 changed files with 886 additions and 239 deletions
|
@ -7,9 +7,9 @@
|
|||
</dlg:styles>
|
||||
<dlg:bulletinboard>
|
||||
<dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="0" dlg:left="6" dlg:top="32" dlg:width="248" dlg:height="2"/>
|
||||
<dlg:img dlg:style-id="0" dlg:id="ImageControl1" dlg:tab-index="1" dlg:left="8" dlg:top="6" dlg:width="21" dlg:height="21" dlg:scale-image="false" dlg:src="file:///home/henrik/workspace/Writer2LaTeX%20trunk/source/oxt/writer2latex/images/w2licon.png"/>
|
||||
<dlg:img dlg:style-id="0" dlg:id="ImageControl1" dlg:tab-index="1" dlg:left="8" dlg:top="6" dlg:width="21" dlg:height="21" dlg:scale-image="false" dlg:src="../images/w2licon.png"/>
|
||||
<dlg:text dlg:style-id="1" dlg:id="Label1" dlg:tab-index="2" dlg:left="34" dlg:top="10" dlg:width="193" dlg:height="16" dlg:value="Writer2LaTeX Custom Configuration"/>
|
||||
<dlg:text dlg:id="Label2" dlg:tab-index="3" dlg:left="34" dlg:top="43" dlg:width="194" dlg:height="78" dlg:value="This is where you create a custom configuration for the Writer2LaTeX export filter. You can define how to convert text, tables, figures etc. to LaTeX code. Creating a custom configuration requires some knowledge of LaTeX.
You can export your configuration as an extension, that can be deployed to another OpenOffice.org installation." dlg:multiline="true"/>
|
||||
<dlg:button dlg:id="ExportButton" dlg:tab-index="4" dlg:left="34" dlg:top="140" dlg:width="190" dlg:height="12" dlg:value="Export as extension..."/>
|
||||
<dlg:button dlg:id="ExportButton" dlg:tab-index="4" dlg:left="34" dlg:top="140" dlg:width="190" dlg:height="12" dlg:value="Export as extension..." dlg:disabled="true" />
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -36,7 +36,7 @@
|
|||
</dlg:menupopup>
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:WriterLevelChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="LaTeXLevelLabel" dlg:tab-index="5" dlg:left="10" dlg:top="56" dlg:width="100" dlg:height="12" dlg:value="LaTeX level"/>
|
||||
<dlg:text dlg:id="LaTeXLevelLabel" dlg:tab-index="5" dlg:left="15" dlg:top="56" dlg:width="95" dlg:height="12" dlg:value="LaTeX level"/>
|
||||
<dlg:combobox dlg:id="LaTeXLevel" dlg:tab-index="6" dlg:left="140" dlg:top="54" dlg:width="40" dlg:height="12" dlg:spin="true" dlg:linecount="7">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="-1"/>
|
||||
|
@ -48,7 +48,7 @@
|
|||
<dlg:menuitem dlg:value="5"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:combobox>
|
||||
<dlg:text dlg:id="LaTeXNameLabel" dlg:tab-index="7" dlg:left="10" dlg:top="70" dlg:width="100" dlg:height="12" dlg:value="LaTeX heading name"/>
|
||||
<dlg:text dlg:id="LaTeXNameLabel" dlg:tab-index="7" dlg:left="15" dlg:top="70" dlg:width="95" dlg:height="12" dlg:value="LaTeX heading name"/>
|
||||
<dlg:combobox dlg:id="LaTeXName" dlg:tab-index="8" dlg:left="140" dlg:top="68" dlg:width="100" dlg:height="12" dlg:spin="true" dlg:linecount="7">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="part"/>
|
||||
|
|
10
source/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl
Normal file
10
source/oxt/writer2latex/W2LDialogs2/LoadDefaults.xdl
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="LoadDefaults" dlg:left="255" dlg:top="145" dlg:width="160" dlg:height="64" dlg:closeable="true" dlg:moveable="true" dlg:title="Load default mappings">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="InfoLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="150" dlg:height="12" dlg:value="Do you wish to load the default mappings?"/>
|
||||
<dlg:text dlg:id="OverwriteLabel" dlg:tab-index="1" dlg:left="5" dlg:top="22" dlg:width="150" dlg:height="12" dlg:value="(This will overwrite %s existing mappings)"/>
|
||||
<dlg:button dlg:id="YesButton" dlg:tab-index="2" dlg:left="5" dlg:top="42" dlg:width="50" dlg:height="12" dlg:value="Yes" dlg:button-type="ok"/>
|
||||
<dlg:button dlg:id="NoButton" dlg:tab-index="3" dlg:left="60" dlg:top="42" dlg:width="50" dlg:height="12" dlg:value="No" dlg:button-type="cancel"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -13,32 +13,38 @@
|
|||
</dlg:menupopup>
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:StyleFamilyChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:menulist dlg:id="StyleName" dlg:tab-index="2" dlg:left="80" dlg:top="26" dlg:width="80" dlg:height="12" dlg:spin="true">
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:StyleNameChange" script:language="UNO"/>
|
||||
<dlg:menulist dlg:id="StyleName" dlg:tab-index="2" dlg:left="80" dlg:top="26" dlg:width="80" dlg:height="12" dlg:spin="true" dlg:linecount="10">
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:StyleNameChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="StyleNameLabel" dlg:tab-index="3" dlg:left="10" dlg:top="28" dlg:width="60" dlg:height="12" dlg:value="Style name"/>
|
||||
<dlg:button dlg:id="NewStyleButton" dlg:tab-index="4" dlg:left="165" dlg:top="26" dlg:width="40" dlg:height="12" dlg:value="New...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:NewStyleClick" script:language="UNO"/>
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:NewStyleClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:button dlg:id="DeleteStyleButton" dlg:tab-index="5" dlg:left="210" dlg:top="26" dlg:width="40" dlg:height="12" dlg:value="Delete...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:DeleteStyleClick" script:language="UNO"/>
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:DeleteStyleClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="BeforeLabel" dlg:tab-index="6" dlg:left="15" dlg:top="42" dlg:width="60" dlg:height="12" dlg:value="LaTeX code before"/>
|
||||
<dlg:textfield dlg:id="Before" dlg:tab-index="7" dlg:left="80" dlg:top="40" dlg:width="170" dlg:height="12"/>
|
||||
<dlg:text dlg:id="AfterLabel" dlg:tab-index="8" dlg:left="15" dlg:top="56" dlg:width="60" dlg:height="12" dlg:value="LaTeX code after"/>
|
||||
<dlg:textfield dlg:id="After" dlg:tab-index="9" dlg:left="80" dlg:top="54" dlg:width="170" dlg:height="12"/>
|
||||
<dlg:text dlg:id="NextLabel" dlg:tab-index="10" dlg:left="15" dlg:top="70" dlg:width="60" dlg:height="12" dlg:value="Next style(s)"/>
|
||||
<dlg:textfield dlg:id="Next" dlg:tab-index="11" dlg:left="80" dlg:top="68" dlg:width="170" dlg:height="12"/>
|
||||
<dlg:checkbox dlg:id="LineBreak" dlg:tab-index="13" dlg:left="15" dlg:top="98" dlg:width="235" dlg:height="12" dlg:value="Line break inside" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="OtherStylesLabel" dlg:tab-index="14" dlg:left="10" dlg:top="118" dlg:width="100" dlg:height="12" dlg:value="Other styles"/>
|
||||
<dlg:menulist dlg:id="OtherStyles" dlg:tab-index="15" dlg:left="120" dlg:top="116" dlg:width="130" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menulist dlg:id="Next" dlg:tab-index="10" dlg:left="80" dlg:top="68" dlg:width="80" dlg:height="12" dlg:spin="true"/>
|
||||
<dlg:button dlg:id="AddNextButton" dlg:tab-index="11" dlg:left="165" dlg:top="68" dlg:width="40" dlg:height="12" dlg:value="Add...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AddNextClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:button dlg:id="RemoveNextButton" dlg:tab-index="12" dlg:left="210" dlg:top="68" dlg:width="40" dlg:height="12" dlg:value="Remove...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:RemoveNextClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="NextLabel" dlg:tab-index="13" dlg:left="15" dlg:top="70" dlg:width="60" dlg:height="12" dlg:value="Next style(s)"/>
|
||||
<dlg:checkbox dlg:id="LineBreak" dlg:tab-index="15" dlg:left="15" dlg:top="98" dlg:width="235" dlg:height="12" dlg:value="Line break inside" dlg:checked="false"/>
|
||||
<dlg:text dlg:id="OtherStylesLabel" dlg:tab-index="17" dlg:left="10" dlg:top="138" dlg:width="65" dlg:height="12" dlg:value="Other styles"/>
|
||||
<dlg:menulist dlg:id="OtherStyles" dlg:tab-index="18" dlg:left="80" dlg:top="136" dlg:width="170" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Ignore"/>
|
||||
<dlg:menuitem dlg:value="Convert"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:checkbox dlg:id="Verbatim" dlg:tab-index="12" dlg:left="15" dlg:top="84" dlg:width="235" dlg:height="12" dlg:value="Verbatim content" dlg:checked="false"/>
|
||||
<dlg:menulist dlg:id="Formatting" dlg:tab-index="17" dlg:left="120" dlg:top="136" dlg:width="130" dlg:height="12" dlg:spin="true">
|
||||
<dlg:checkbox dlg:id="Verbatim" dlg:tab-index="14" dlg:left="15" dlg:top="84" dlg:width="235" dlg:height="12" dlg:value="Verbatim content" dlg:checked="false"/>
|
||||
<dlg:menulist dlg:id="Formatting" dlg:tab-index="20" dlg:left="80" dlg:top="150" dlg:width="170" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Ignore all"/>
|
||||
<dlg:menuitem dlg:value="Ignore most"/>
|
||||
|
@ -47,6 +53,9 @@
|
|||
<dlg:menuitem dlg:value="Convert all"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="FormattingLabel" dlg:tab-index="16" dlg:left="10" dlg:top="138" dlg:width="100" dlg:height="12" dlg:value="Other formatting"/>
|
||||
<dlg:text dlg:id="FormattingLabel" dlg:tab-index="19" dlg:left="10" dlg:top="152" dlg:width="65" dlg:height="12" dlg:value="Other formatting"/>
|
||||
<dlg:button dlg:id="LoadDefaults" dlg:tab-index="16" dlg:left="10" dlg:top="112" dlg:width="120" dlg:height="14" dlg:value="Load default mappings">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:LoadDefaultsClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -13,4 +13,5 @@
|
|||
<library:element library:name="TextAndMath"/>
|
||||
<library:element library:name="NewDialog"/>
|
||||
<library:element library:name="Characters"/>
|
||||
<library:element library:name="LoadDefaults"/>
|
||||
</library:library>
|
8
source/oxt/writer4latex/W4LDialogs/AutoConfigInfo.xdl
Normal file
8
source/oxt/writer4latex/W4LDialogs/AutoConfigInfo.xdl
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
|
||||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="AutoConfigInfo" dlg:left="211" dlg:top="115" dlg:width="250" dlg:height="205" dlg:closeable="true" dlg:moveable="true" dlg:title="Automatic configuration">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:textfield dlg:id="Info" dlg:tab-index="0" dlg:left="10" dlg:top="10" dlg:width="230" dlg:height="160" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true" dlg:readonly="true"/>
|
||||
<dlg:button dlg:id="OKButton" dlg:tab-index="1" dlg:left="10" dlg:top="180" dlg:width="70" dlg:height="12" dlg:value="Close" dlg:button-type="ok"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -3,4 +3,5 @@
|
|||
<library:library xmlns:library="http://openoffice.org/2000/library" library:name="W4LDialogs" library:readonly="false" library:passwordprotected="false">
|
||||
<library:element library:name="Configuration"/>
|
||||
<library:element library:name="LogViewer"/>
|
||||
<library:element library:name="AutoConfigInfo"/>
|
||||
</library:library>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<node oor:name="Filters">
|
||||
|
||||
<!-- Temp. disable TeX import for 1.1.1 alpha release
|
||||
<node oor:name="org.openoffice.da.writer4latex.latex" oor:op="replace" oor:finalized="true" oor:mandatory="true">
|
||||
<prop oor:name="UIName"><value>LaTeX</value></prop>
|
||||
<prop oor:name="Type"><value>org.openoffice.da.writer4latex.LaTeX_File</value></prop>
|
||||
|
@ -25,7 +26,7 @@
|
|||
<prop oor:name="UserData"/>
|
||||
<prop oor:name="FileFormatVersion"><value>0</value></prop>
|
||||
<prop oor:name="TemplateName"/>
|
||||
</node>
|
||||
</node>-->
|
||||
|
||||
</node>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue