w2l toolbar configuration: Define behavior of TeX-button
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@245 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
853ff0968d
commit
2953e5845c
10 changed files with 142 additions and 64 deletions
|
@ -13,6 +13,7 @@
|
|||
</templates>
|
||||
<component>
|
||||
<group oor:name="Applications">
|
||||
<prop oor:name="AfterExport" oor:type="xs:short" />
|
||||
<node-ref oor:name="LaTeX" oor:node-type="Application" />
|
||||
<node-ref oor:name="PdfLaTeX" oor:node-type="Application" />
|
||||
<node-ref oor:name="XeLaTeX" oor:node-type="Application" />
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
xmlns:oor="http://openoffice.org/2001/registry"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<node oor:name="Applications">
|
||||
<prop oor:name="AfterExport" oor:type="xs:short">
|
||||
<value>2</value><!-- compile and preview -->
|
||||
</prop>
|
||||
<node oor:name="LaTeX" oor:type="xs:string">
|
||||
<prop oor:name="Executable">
|
||||
<value>latex</value>
|
||||
|
|
|
@ -3,12 +3,17 @@
|
|||
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Configuration" dlg:left="139" dlg:top="84" dlg:width="260" dlg:height="185" dlg:closeable="true" dlg:moveable="true" dlg:title="Writer2LaTeX Toolbar Configuration" dlg:withtitlebar="false" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationDialog">
|
||||
<dlg:bulletinboard>
|
||||
<dlg:text dlg:id="ExternalAppsLabel" dlg:tab-index="0" dlg:left="6" dlg:top="4" dlg:width="210" dlg:height="12" dlg:value="External Applications"/>
|
||||
<dlg:text dlg:id="AppLabel" dlg:tab-index="1" dlg:left="12" dlg:top="18" dlg:width="55" dlg:height="12" dlg:value="Application"/>
|
||||
<dlg:button dlg:id="BrowseButton" dlg:tab-index="5" dlg:left="200" dlg:top="30" dlg:width="55" dlg:height="14" dlg:value="Browse...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:BrowseClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="ExecutableLabel" dlg:tab-index="3" dlg:left="12" dlg:top="32" dlg:width="55" dlg:height="12" dlg:value="Executable"/>
|
||||
<dlg:menulist dlg:id="Application" dlg:tab-index="2" dlg:left="72" dlg:top="16" dlg:width="120" dlg:height="12" dlg:spin="true" dlg:linecount="10" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationApplication">
|
||||
<dlg:text dlg:id="AfterExportLabel" dlg:tab-index="1" dlg:left="12" dlg:top="18" dlg:width="55" dlg:height="12" dlg:value="After export"/>
|
||||
<dlg:menulist dlg:id="AfterExport" dlg:tab-index="2" dlg:left="72" dlg:top="16" dlg:width="120" dlg:height="12" dlg:spin="true" dlg:linecount="3" dlg:help-url="org.openoffice.da.writer2latex.oxt:AfterExport">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Do nothing"/>
|
||||
<dlg:menuitem dlg:value="Build with LaTeX"/>
|
||||
<dlg:menuitem dlg:value="Build with LaTeX and view result" dlg:selected="true"/>
|
||||
</dlg:menupopup>
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:AfterExportChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:text dlg:id="AppLabel" dlg:tab-index="3" dlg:left="12" dlg:top="32" dlg:width="55" dlg:height="12" dlg:value="Application"/>
|
||||
<dlg:menulist dlg:id="Application" dlg:tab-index="4" dlg:left="72" dlg:top="30" dlg:width="120" dlg:height="12" dlg:spin="true" dlg:linecount="10" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationApplication">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="LaTeX" dlg:selected="true"/>
|
||||
<dlg:menuitem dlg:value="PdfLaTeX"/>
|
||||
|
@ -23,15 +28,19 @@
|
|||
</dlg:menupopup>
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ApplicationChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
<dlg:textfield dlg:id="Executable" dlg:tab-index="4" dlg:left="72" dlg:top="30" dlg:width="120" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationExecutable">
|
||||
<dlg:text dlg:id="ExecutableLabel" dlg:tab-index="5" dlg:left="12" dlg:top="46" dlg:width="55" dlg:height="12" dlg:value="Executable"/>
|
||||
<dlg:textfield dlg:id="Executable" dlg:tab-index="6" dlg:left="72" dlg:top="44" dlg:width="120" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationExecutable">
|
||||
<script:event script:event-name="on-blur" script:macro-name="vnd.sun.star.UNO:ExecutableUnfocus" script:language="UNO"/>
|
||||
</dlg:textfield>
|
||||
<dlg:textfield dlg:id="Options" dlg:tab-index="7" dlg:left="72" dlg:top="44" dlg:width="120" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationOptions">
|
||||
<dlg:button dlg:id="BrowseButton" dlg:tab-index="7" dlg:left="200" dlg:top="44" dlg:width="55" dlg:height="14" dlg:value="Browse...">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:BrowseClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="OptionsLabel" dlg:tab-index="8" dlg:left="12" dlg:top="60" dlg:width="55" dlg:height="12" dlg:value="Options"/>
|
||||
<dlg:textfield dlg:id="Options" dlg:tab-index="9" dlg:left="72" dlg:top="58" dlg:width="120" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationOptions">
|
||||
<script:event script:event-name="on-blur" script:macro-name="vnd.sun.star.UNO:OptionsUnfocus" script:language="UNO"/>
|
||||
</dlg:textfield>
|
||||
<dlg:button dlg:id="AutoButton" dlg:tab-index="8" dlg:left="72" dlg:top="64" dlg:width="120" dlg:height="14" dlg:value="Automatic configuration" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationAutoButton">
|
||||
<dlg:button dlg:id="AutoButton" dlg:tab-index="10" dlg:left="72" dlg:top="78" dlg:width="120" dlg:height="14" dlg:value="Automatic configuration" dlg:help-url="org.openoffice.da.writer2latex.oxt:ConfigurationAutoButton">
|
||||
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:AutomaticClick" script:language="UNO"/>
|
||||
</dlg:button>
|
||||
<dlg:text dlg:id="OptionsLabel" dlg:tab-index="6" dlg:left="12" dlg:top="46" dlg:width="55" dlg:height="12" dlg:value="Options"/>
|
||||
</dlg:bulletinboard>
|
||||
</dlg:window>
|
|
@ -67,7 +67,23 @@
|
|||
<paragraph xml-lang="en-US"><emph>Note</emph>: The Writer2LaTeX toolbar is not tested on Mac OS X.</paragraph>
|
||||
</case>
|
||||
</switch>
|
||||
|
||||
|
||||
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:AfterExport" id="bm_afterexport"/>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2latex.oxt:AfterExport" visibility="hidden">Choose the desired behavior after export</ahelp></paragraph>
|
||||
<paragraph role="heading" level="2" xml-lang="en-US">After Export</paragraph>
|
||||
<paragraph role="paragraph" xml-lang="en-US">After Export, Writer2LaTeX can build the result with LaTeX and display the final document in a viewer. Choose the desired behavior in the list.</paragraph>
|
||||
<list type="unordered">
|
||||
<listitem>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><emph>Do nothing</emph> will only export the document to LaTeX</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><emph>Build with LaTeX</emph> will build the converted document with LaTeX to produce the final result in DVI, PDF or PostScript format</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph role="paragraph" xml-lang="en-US"><emph>Build with LaTeX and view result</emph> will display the final result in a DVI, PDF or PostScript viewer</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
|
||||
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigurationAutoButton" id="bm_configurationautobutton"/>
|
||||
<paragraph role="heading" level="2" xml-lang="en-US">Automatic Configuration</paragraph>
|
||||
<paragraph role="paragraph" xml-lang="en-US">If you click this button, Writer2LaTeX will try to locate the external programs
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
<dlg:menulist dlg:id="XhtmlView" dlg:tab-index="4" dlg:left="72" dlg:top="30" dlg:width="120" dlg:height="12" dlg:spin="true" dlg:linecount="3" dlg:help-url="org.openoffice.da.writer2xhtml.oxt:SettingsXhtmlView">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="Do nothing"/>
|
||||
<dlg:menuitem dlg:value="open with default web browser" dlg:selected="true"/>
|
||||
<dlg:menuitem dlg:value="open with custom application"/>
|
||||
<dlg:menuitem dlg:value="Open with default web browser" dlg:selected="true"/>
|
||||
<dlg:menuitem dlg:value="Open with custom application"/>
|
||||
</dlg:menupopup>
|
||||
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:XhtmlViewChange" script:language="UNO"/>
|
||||
</dlg:menulist>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue