Writer2xhtml custom config ui + API changes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@53 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
6c82e57709
commit
e0cb22dd2e
23 changed files with 221 additions and 43 deletions
|
@ -125,7 +125,49 @@
|
|||
</prop>
|
||||
</node>
|
||||
|
||||
|
||||
<node oor:name="org.openoffice.da.writer2xhtml.configuration.styles2"
|
||||
oor:op="fuse">
|
||||
<prop oor:name="Id">
|
||||
<value>org.openoffice.da.writer2xhtml.configuration.styles2</value>
|
||||
</prop>
|
||||
<prop oor:name="GroupId">
|
||||
<value>org.openoffice.da.writer2xhtml.configuration</value>
|
||||
</prop>
|
||||
<prop oor:name="GroupIndex">
|
||||
<value>4</value>
|
||||
</prop>
|
||||
<prop oor:name="Label">
|
||||
<value xml:lang="en-US">Styles part II</value>
|
||||
</prop>
|
||||
<prop oor:name="OptionsPage">
|
||||
<value>%origin%/W2XDialogs2/StylesPartII.xdl</value>
|
||||
</prop>
|
||||
<prop oor:name="EventHandlerService">
|
||||
<value></value>
|
||||
</prop>
|
||||
</node>
|
||||
|
||||
<node oor:name="org.openoffice.da.writer2xhtml.configuration.content"
|
||||
oor:op="fuse">
|
||||
<prop oor:name="Id">
|
||||
<value>org.openoffice.da.writer2xhtml.configuration.content</value>
|
||||
</prop>
|
||||
<prop oor:name="GroupId">
|
||||
<value>org.openoffice.da.writer2xhtml.configuration</value>
|
||||
</prop>
|
||||
<prop oor:name="GroupIndex">
|
||||
<value>5</value>
|
||||
</prop>
|
||||
<prop oor:name="Label">
|
||||
<value xml:lang="en-US">Content</value>
|
||||
</prop>
|
||||
<prop oor:name="OptionsPage">
|
||||
<value>%origin%/W2XDialogs2/Content.xdl</value>
|
||||
</prop>
|
||||
<prop oor:name="EventHandlerService">
|
||||
<value></value>
|
||||
</prop>
|
||||
</node>
|
||||
|
||||
</node>
|
||||
</node>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</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: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="Writer2xhtml 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 Writer2xhtml export filter. You can define technical details of the generated XHTML documents and you can define how to map formatting to CSS. Creating a custom configuration requires some knowledge of XHTML and CSS." dlg:multiline="true"/>
|
||||
</dlg:bulletinboard>
|
||||
|
|
16
source/oxt/writer2xhtml/W2XDialogs2/Content.xdl
Normal file
16
source/oxt/writer2xhtml/W2XDialogs2/Content.xdl
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?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="Content" dlg:left="139" dlg:top="84" dlg:width="258" dlg:height="172" dlg:closeable="true" dlg:moveable="true" dlg:withtitlebar="false">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="FormulasHeadingLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="245" dlg:height="12" dlg:value="Formulas"/>
|
||||
<dlg:text dlg:id="FormulasLabel" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="110" dlg:height="12" dlg:value="Include as"/>
|
||||
<dlg:menulist dlg:id="ListBox1" dlg:tab-index="2" dlg:left="130" dlg:top="20" dlg:width="120" dlg:height="12" dlg:spin="true" dlg:linecount="4">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Image with StarMath code"/>
|
||||
<dlg:menuitem dlg:value="Image with LaTeX code"/>
|
||||
<dlg:menuitem dlg:value="StarMath code"/>
|
||||
<dlg:menuitem dlg:value="LaTeX code"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
23
source/oxt/writer2xhtml/W2XDialogs2/StylesPartII.xdl
Normal file
23
source/oxt/writer2xhtml/W2XDialogs2/StylesPartII.xdl
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?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="StylesPartII" dlg:left="139" dlg:top="84" dlg:width="260" dlg:height="185" dlg:closeable="true" dlg:moveable="true" dlg:withtitlebar="false">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="HardFormattingLabel" dlg:tab-index="0" dlg:left="5" dlg:top="8" dlg:width="245" dlg:height="12" dlg:value="Mappings for hard formatting"/>
|
||||
<dlg:text dlg:id="FormattingAttributeLabel" dlg:tab-index="1" dlg:left="10" dlg:top="22" dlg:width="100" dlg:height="12" dlg:value="Formatting attribute"/>
|
||||
<dlg:menulist dlg:id="FormattingAttribute" dlg:tab-index="2" dlg:left="120" dlg:top="20" dlg:width="130" dlg:height="12" dlg:spin="true" dlg:linecount="7">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Bold"/>
|
||||
<dlg:menuitem dlg:value="Italics"/>
|
||||
<dlg:menuitem dlg:value="Fixed pitch font"/>
|
||||
<dlg:menuitem dlg:value="Superscript"/>
|
||||
<dlg:menuitem dlg:value="Subscript"/>
|
||||
<dlg:menuitem dlg:value="Underline"/>
|
||||
<dlg:menuitem dlg:value="Overstrike"/>
|
||||
</dlg:menupopup>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="XhtmlLabel" dlg:tab-index="3" dlg:left="10" dlg:top="36" dlg:width="100" dlg:height="12" dlg:value="XHTML element"/>
|
||||
<dlg:combobox dlg:id="Xhtml" dlg:tab-index="4" dlg:left="120" dlg:top="34" dlg:width="130" dlg:height="12" dlg:spin="true"/>
|
||||
<dlg:text dlg:id="CSSLabel" dlg:tab-index="5" dlg:left="10" dlg:top="50" dlg:width="100" dlg:height="12" dlg:value="CSS class"/>
|
||||
<dlg:textfield dlg:id="Css" dlg:tab-index="6" dlg:left="120" dlg:top="48" dlg:width="130" dlg:height="12"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -6,8 +6,12 @@
|
|||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:CustomTemplateChange" script:language="UNO"/>
|
||||
</dlg:checkbox>
|
||||
<dlg:textfield dlg:id="Template" dlg:tab-index="1" dlg:left="18" dlg:top="22" dlg:width="232" dlg:height="96" dlg:hscroll="true" dlg:vscroll="true" dlg:multiline="true"/>
|
||||
<dlg:button dlg:id="Load" dlg:tab-index="2" dlg:left="18" dlg:top="120" dlg:width="60" dlg:height="12" dlg:value="Load..."/>
|
||||
<dlg:button dlg:id="Test" dlg:tab-index="3" dlg:left="190" dlg:top="120" dlg:width="60" dlg:height="12" dlg:value="Test"/>
|
||||
<dlg:button dlg:id="Load" dlg:tab-index="2" dlg:left="18" dlg:top="120" dlg:width="60" dlg:height="12" dlg:value="Load...">
|
||||
<script:event script:event-name="on-keyup" script:macro-name="vnd.sun.star.UNO:LoadClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:button dlg:id="Test" dlg:tab-index="3" dlg:left="190" dlg:top="120" dlg:width="60" dlg:height="12" dlg:value="Test">
|
||||
<script:event script:event-name="on-keyup" script:macro-name="vnd.sun.star.UNO:TestClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="ContentIdLabel" dlg:tab-index="4" dlg:left="18" dlg:top="140" dlg:width="50" dlg:height="12" dlg:value="Content id"/>
|
||||
<dlg:combobox dlg:id="ContentId" dlg:tab-index="5" dlg:left="72" dlg:top="138" dlg:width="50" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menupopup>
|
||||
|
|
|
@ -6,4 +6,6 @@
|
|||
<library:element library:name="Template"/>
|
||||
<library:element library:name="Formatting"/>
|
||||
<library:element library:name="StylesPartI"/>
|
||||
<library:element library:name="StylesPartII"/>
|
||||
<library:element library:name="Content"/>
|
||||
</library:library>
|
Loading…
Add table
Add a link
Reference in a new issue