w2l toolbar configuration: Enable the use of default applications for viewers

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@246 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2015-05-19 11:54:50 +00:00
parent 2953e5845c
commit 88f9974a51
9 changed files with 380 additions and 241 deletions

View file

@ -7,6 +7,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<templates>
<group oor:name="Application">
<prop oor:name="UseDefault" oor:type="xs:boolean" />
<prop oor:name="Executable" oor:type="xs:string" />
<prop oor:name="Options" oor:type="xs:string" />
</group>

View file

@ -9,6 +9,9 @@
<value>2</value><!-- compile and preview -->
</prop>
<node oor:name="LaTeX" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>latex</value>
</prop>
@ -17,6 +20,9 @@
</prop>
</node>
<node oor:name="PdfLaTeX" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>pdflatex</value>
</prop>
@ -25,6 +31,9 @@
</prop>
</node>
<node oor:name="XeLaTeX" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>xelatex</value>
</prop>
@ -33,6 +42,9 @@
</prop>
</node>
<node oor:name="BibTeX" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>bibtex</value>
</prop>
@ -41,6 +53,9 @@
</prop>
</node>
<node oor:name="Makeindex" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>makeindex</value>
</prop>
@ -49,6 +64,9 @@
</prop>
</node>
<node oor:name="Mk4ht" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>false</value>
</prop>
<prop oor:name="Executable">
<value>mk4ht</value>
</prop>
@ -57,6 +75,9 @@
</prop>
</node>
<node oor:name="Dvips" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>true</value>
</prop>
<prop oor:name="Executable">
<value>dvips</value>
</prop>
@ -65,6 +86,9 @@
</prop>
</node>
<node oor:name="DVIViewer" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>true</value>
</prop>
<prop oor:name="Executable">
<value>evince</value>
</prop>
@ -73,6 +97,9 @@
</prop>
</node>
<node oor:name="PostscriptViewer" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>true</value>
</prop>
<prop oor:name="Executable">
<value>evince</value>
</prop>
@ -81,6 +108,9 @@
</prop>
</node>
<node oor:name="PdfViewer" oor:type="xs:string">
<prop oor:name="UseDefault">
<value>true</value>
</prop>
<prop oor:name="Executable">
<value>evince</value>
</prop>

View file

@ -28,18 +28,23 @@
</dlg:menupopup>
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ApplicationChange" script:language="UNO"/>
</dlg:menulist>
<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">
<dlg:checkbox dlg:id="UseDefault" dlg:tab-index="5" dlg:left="12" dlg:top="46" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:UseDefault" dlg:value="Use the system's default application" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseDefaultChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="ExecutableLabel" dlg:tab-index="6" dlg:left="12" dlg:top="60" dlg:width="55" dlg:height="12" dlg:value="Executable"/>
<dlg:textfield dlg:id="Executable" dlg:tab-index="7" dlg:left="72" dlg:top="58" 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:button dlg:id="BrowseButton" dlg:tab-index="7" dlg:left="200" dlg:top="44" dlg:width="55" dlg:height="14" dlg:value="Browse...">
<dlg:button dlg:id="BrowseButton" dlg:tab-index="8" dlg:left="200" dlg:top="58" 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">
<dlg:text dlg:id="OptionsLabel" dlg:tab-index="9" dlg:left="12" dlg:top="74" dlg:width="55" dlg:height="12" dlg:value="Options"/>
<dlg:textfield dlg:id="Options" dlg:tab-index="10" dlg:left="72" dlg:top="72" 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="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">
<dlg:button dlg:id="AutoButton" dlg:tab-index="11" dlg:left="72" dlg:top="92" 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:bulletinboard>

View file

@ -4,11 +4,11 @@
<dlg:bulletinboard>
<dlg:text dlg:id="BibliographyLabel" dlg:tab-index="0" dlg:left="6" dlg:top="4" dlg:width="244" dlg:height="12" dlg:value="Citations and BibTeX files"/>
<dlg:checkbox dlg:id="UseExternalBibTeXFiles" dlg:tab-index="1" dlg:left="10" dlg:top="18" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyUseExternalBibTeXFiles" dlg:value="Use BibTeX as bibliography database" dlg:checked="false">
<dlg:checkbox dlg:id="UseExternalBibTeXFiles" dlg:tab-index="1" dlg:left="12" dlg:top="18" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyUseExternalBibTeXFiles" dlg:value="Use BibTeX as bibliography database" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseExternalBibTeXFilesChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="BibTeXLocationLabel" dlg:tab-index="2" dlg:left="10" dlg:top="32" dlg:width="55" dlg:height="12" dlg:value="BibTeX location"/>
<dlg:text dlg:id="BibTeXLocationLabel" dlg:tab-index="2" dlg:left="12" dlg:top="32" dlg:width="55" dlg:height="12" dlg:value="BibTeX location"/>
<dlg:menulist dlg:id="BibTeXLocation" dlg:tab-index="3" dlg:left="70" dlg:top="30" dlg:width="180" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyBibTeXLocation" dlg:spin="true" dlg:linecount="3">
<dlg:menupopup>
<dlg:menuitem dlg:value="In central folder"/>
@ -18,29 +18,29 @@
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:BibTeXLocationChange" script:language="UNO"/>
</dlg:menulist>
<dlg:text dlg:id="BibTeXDirLabel" dlg:tab-index="4" dlg:left="10" dlg:top="46" dlg:width="55" dlg:height="12" dlg:value="BibTeX folder"/>
<dlg:text dlg:id="BibTeXDirLabel" dlg:tab-index="4" dlg:left="12" dlg:top="46" dlg:width="55" dlg:height="12" dlg:value="BibTeX folder"/>
<dlg:textfield dlg:id="BibTeXDir" dlg:tab-index="5" dlg:left="70" dlg:top="44" dlg:width="130" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyBibTeXDir"/>
<dlg:button dlg:id="BibTeXDirButton" dlg:tab-index="6" dlg:left="210" dlg:top="44" dlg:width="40" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyBibTeXDirButton" dlg:value="Browse...">
<script:event script:event-name="on-mouseup" script:macro-name="vnd.sun.star.UNO:BibTeXDirClick" script:language="UNO"/>
</dlg:button>
<dlg:checkbox dlg:id="ConvertZoteroCitations" dlg:tab-index="7" dlg:left="10" dlg:top="60" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyConvertZoteroCitations" dlg:value="Convert Zotero citations" dlg:checked="false">
<dlg:checkbox dlg:id="ConvertZoteroCitations" dlg:tab-index="7" dlg:left="12" dlg:top="60" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyConvertZoteroCitations" dlg:value="Convert Zotero citations" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ConvertZoteroCitationsChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:checkbox dlg:id="ConvertJabRefCitations" dlg:tab-index="8" dlg:left="10" dlg:top="74" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyConvertJabRefCitations" dlg:value="Convert JabRef citations" dlg:checked="false">
<dlg:checkbox dlg:id="ConvertJabRefCitations" dlg:tab-index="8" dlg:left="12" dlg:top="74" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyConvertJabRefCitations" dlg:value="Convert JabRef citations" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:ConvertJabRefCitationsChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:checkbox dlg:id="IncludeOriginalCitations" dlg:tab-index="9" dlg:left="10" dlg:top="88" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyIncludeOriginalCitations" dlg:value="Include original citations as comments" dlg:checked="false"/>
<dlg:checkbox dlg:id="IncludeOriginalCitations" dlg:tab-index="9" dlg:left="12" dlg:top="88" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyIncludeOriginalCitations" dlg:value="Include original citations as comments" dlg:checked="false"/>
<dlg:text dlg:id="NatbibLabel" dlg:tab-index="10" dlg:left="6" dlg:top="102" dlg:width="244" dlg:height="11" dlg:value="Natbib"/>
<dlg:checkbox dlg:id="UseNatbib" dlg:tab-index="11" dlg:left="10" dlg:top="116" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyUseNatbib" dlg:value="Use natbib.sty" dlg:checked="false">
<dlg:checkbox dlg:id="UseNatbib" dlg:tab-index="11" dlg:left="12" dlg:top="116" dlg:width="240" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyUseNatbib" dlg:value="Use natbib.sty" dlg:checked="false">
<script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.UNO:UseNatbibChange" script:language="UNO"/>
</dlg:checkbox>
<dlg:text dlg:id="NatbibOptionsLabel" dlg:tab-index="12" dlg:left="19" dlg:top="130" dlg:width="45" dlg:height="12" dlg:value="Options"/>
<dlg:text dlg:id="NatbibOptionsLabel" dlg:tab-index="12" dlg:left="22" dlg:top="130" dlg:width="45" dlg:height="12" dlg:value="Options"/>
<dlg:textfield dlg:id="NatbibOptions" dlg:tab-index="13" dlg:left="70" dlg:top="128" dlg:width="180" dlg:height="12" dlg:help-url="org.openoffice.da.writer2latex.oxt:BibliographyNatbibOptions"/>
</dlg:bulletinboard>

View file

@ -9,8 +9,8 @@
<body>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigurationDialog" id="bm_configurationdialog"/>
<paragraph role="heading" level="1" xml-lang="en-US">Configuration of applications</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Before you can use Writer2LaTeX you must configure it to use your LaTeX
distribution as well as viewers for the different output formats.</paragraph>
<paragraph role="paragraph" xml-lang="en-US">On this page you can configure the interaction between Writer2LaTeX
and your LaTeX distribution as well as viewers for the different output formats.</paragraph>
<section id="howtoget" xml-lang="en-US">
Select <emph>Tools - Options - Writer2LaTeX toolbar - Applications</emph>
</section>
@ -88,7 +88,7 @@
<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
and configure them. You will be presented with a short report of the results. Any applications that Writer2LaTeX cannot find for
you must be configured manually.</paragraph>
you should be configured manually.</paragraph>
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2latex.oxt:ConfigurationAutoButton" visibility="hidden">Click here to let Writer2LaTeX configure your external applications automatically</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigurationApplication" id="bm_configurationapplication"/>
@ -123,6 +123,12 @@
</list>
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2latex.oxt:ConfigurationApplication" visibility="hidden">Select the external application you wish to configure here</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:UseDefault" id="bm_configurationusedefault"/>
<paragraph role="heading" level="2" xml-lang="en-US">Use the system's default application</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Select this if you wish to use the default application to view files
of the selected type.</paragraph>
<paragraph role="paragraph" xml-lang="en-US"><ahelp hid="org.openoffice.da.writer2latex.oxt:UseDefault" visibility="hidden">Select this to use the default application to view files of the selected type</ahelp></paragraph>
<bookmark xml-lang="en-US" branch="hid/org.openoffice.da.writer2latex.oxt:ConfigurationExecutable" id="bm_configurationexecutable"/>
<paragraph role="heading" level="2" xml-lang="en-US">Executable</paragraph>
<paragraph role="paragraph" xml-lang="en-US">Type the full path to the executable or click <emph>Browse</emph> to find