git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@194 f0f2a975-2e09-46c8-9428-3b39399b9f3c

This commit is contained in:
henrikjust 2014-10-29 20:32:19 +00:00
parent ec3c92fa8d
commit d1e9232914
22 changed files with 117 additions and 85 deletions

View file

@ -0,0 +1,83 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
<!-- Defines the menus and toolbars provided by Writer2LaTeX -->
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="org.openoffice.da.writer2latex.OfficeToolBar" oor:op="replace">
<node oor:name="button1" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Insert BibTeX citation</value>
<value xml:lang="da">Indsæt BibTeX-reference</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:InsertBibTeX</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/bibtex</value>
</prop>
</node>
<node oor:name="button2" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Publish to LaTeX</value>
<value xml:lang="da">Publicer til LaTeX</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:ProcessDocument</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/latex</value>
</prop>
</node>
<node oor:name="button3" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">View log files</value>
<value xml:lang="da">Vis logfiler</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:ViewLog</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/log</value>
</prop>
</node>
<node oor:name="button4" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Edit custom format</value>
<value xml:lang="da">Rediger brugerdefineret format</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>.uno:OptionsTreeDialog?OptionsPageURL:string=%origin%/W2LDialogs2/Documentclass.xdl</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/custom</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,88 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Addons" oor:package="org.openoffice.Office">
<!-- Defines the menus and toolbars provided by Writer2LaTeX -->
<node oor:name="AddonUI">
<node oor:name="OfficeToolBar">
<node oor:name="org.openoffice.da.writer2latex.OfficeToolBar.AOO4" oor:op="replace">
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Writer2LaTeX</value>
</prop>
<node oor:name="ToolBarItems">
<node oor:name="button1" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Insert BibTeX citation</value>
<value xml:lang="da">Indsæt BibTeX-reference</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:InsertBibTeX</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/bibtex</value>
</prop>
</node>
<node oor:name="button2" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Publish to LaTeX</value>
<value xml:lang="da">Publicer til LaTeX</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:ProcessDocument</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/latex</value>
</prop>
</node>
<node oor:name="button3" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">View log files</value>
<value xml:lang="da">Vis logfiler</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>org.openoffice.da.writer2latex:ViewLog</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/log</value>
</prop>
</node>
<node oor:name="button4" oor:op="replace">
<prop oor:name="Context" oor:type="xs:string">
<value>com.sun.star.text.TextDocument</value>
</prop>
<prop oor:name="Title" oor:type="xs:string">
<value xml:lang="en-US">Edit custom format</value>
<value xml:lang="da">Rediger brugerdefineret format</value>
</prop>
<prop oor:name="Target" oor:type="xs:string">
<value>_self</value>
</prop>
<prop oor:name="URL" oor:type="xs:string">
<value>.uno:OptionsTreeDialog?OptionsPageURL:string=%origin%/W2LDialogs2/Documentclass.xdl</value>
</prop>
<prop oor:name="ImageIdentifier" oor:type="xs:string">
<value>%origin%/icons/custom</value>
</prop>
</node>
</node>
</node>
</node>
</node>
</oor:component-data>

View file

@ -13,6 +13,10 @@
manifest:full-path="w2l_filters.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="ToolbarOptionPages.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="OptionPages.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
@ -24,6 +28,30 @@
<manifest:file-entry
manifest:full-path="Options.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="ToolbarOptions.xcs"
manifest:media-type="application/vnd.sun.star.configuration-schema"/>
<manifest:file-entry
manifest:full-path="ToolbarOptions.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="ProtocolHandler.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="Addons.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="AddonsAOO4.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="Office/UI/WriterWindowState.xcu"
manifest:media-type="application/vnd.sun.star.configuration-data"/>
<manifest:file-entry
manifest:full-path="W2LDialogs/"
@ -32,7 +60,11 @@
<manifest:file-entry
manifest:full-path="W2LDialogs2/"
manifest:media-type="application/vnd.sun.star.basic-library"/>
<manifest:file-entry
manifest:full-path="W4LDialogs/"
manifest:media-type="application/vnd.sun.star.basic-library"/>
<manifest:file-entry
manifest:full-path="writer2latex.rdb"
manifest:media-type="application/vnd.sun.star.uno-typelibrary;type=RDB"/>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
oor:name="WriterWindowState"
oor:package="org.openoffice.Office.UI">
<node oor:name="UIElements">
<node oor:name="States">
<node oor:name="private:resource/toolbar/addon_org.openoffice.da.writer2latex.OfficeToolBar" oor:op="replace">
<prop oor:name="UIName" oor:type="xs:string">
<value>Writer2LaTeX</value>
</prop>
</node>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="ProtocolHandler" oor:package="org.openoffice.Office" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Declares the dispatch protocol handled by Writer2LaTeX -->
<node oor:name="HandlerSet">
<!-- It seems that the node name must equal the implementation name of the service -->
<node oor:name="org.openoffice.da.comp.writer2latex.Writer2LaTeX" oor:op="replace">
<prop oor:name="Protocols" oor:type="oor:string-list">
<value>org.openoffice.da.writer2latex:*</value>
</prop>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,72 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="OptionsDialog" oor:package="org.openoffice.Office"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<node oor:name="Modules">
<!-- This node should appear in the Writer module -->
<node oor:name="com.sun.star.text.TextDocument" oor:op="fuse">
<node oor:name="Nodes">
<node oor:name="org.openoffice.da.writer2latex.toolbar.configuration"
oor:op="fuse">
</node>
</node>
</node>
</node>
<node oor:name="Nodes">
<!-- We define a single root node -->
<node oor:name="org.openoffice.da.writer2latex.toolbar.configuration"
oor:op="fuse">
<prop oor:name="Id">
<value>org.openoffice.da.writer2latex.toolbar.configuration</value>
</prop>
<prop oor:name="Label">
<value xml:lang="en-US">Writer2LaTeX toolbar</value>
</prop>
<prop oor:name="OptionsPage">
<value>%origin%/W4LDialogs/ConfigurationRoot.xdl</value>
</prop>
<prop oor:name="EventHandlerService">
<value></value>
</prop>
<node oor:name="Leaves">
<!-- and the root node has several leaves -->
<node oor:name="org.openoffice.da.writer2latex.toolbar.configuration.applications"
oor:op="fuse">
<prop oor:name="Id">
<value>org.openoffice.da.writer2latex.toolbar.applications</value>
</prop>
<prop oor:name="Label">
<value xml:lang="en-US">Applications</value>
</prop>
<prop oor:name="OptionsPage">
<value>%origin%/W4LDialogs/Applications.xdl</value>
</prop>
<prop oor:name="EventHandlerService">
<value>org.openoffice.da.writer2latex.ApplicationsDialog</value>
</prop>
</node>
<node oor:name="org.openoffice.da.writer2latex.toolbar.configuration.bibliography"
oor:op="fuse">
<prop oor:name="Id">
<value>org.openoffice.da.writer2latex.toolbar.bibliography</value>
</prop>
<prop oor:name="Label">
<value xml:lang="en-US">Bibliography</value>
</prop>
<prop oor:name="OptionsPage">
<value>%origin%/W4LDialogs/Bibliography.xdl</value>
</prop>
<prop oor:name="EventHandlerService">
<value>org.openoffice.da.writer2latex.BibliographyDialog</value>
</prop>
</node>
</node>
</node>
</node>
</oor:component-data>

View file

@ -0,0 +1,38 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-schema oor:name="ToolbarOptions"
oor:package="org.openoffice.da.Writer2LaTeX.toolbar"
xml:lang="en-US"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<templates>
<group oor:name="Application">
<prop oor:name="Executable" oor:type="xs:string" />
<prop oor:name="Options" oor:type="xs:string" />
</group>
</templates>
<component>
<group oor:name="Applications">
<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" />
<node-ref oor:name="BibTeX" oor:node-type="Application" />
<node-ref oor:name="Makeindex" oor:node-type="Application" />
<node-ref oor:name="Mk4ht" oor:node-type="Application" />
<node-ref oor:name="Dvips" oor:node-type="Application" />
<node-ref oor:name="DVIViewer" oor:node-type="Application" />
<node-ref oor:name="PostscriptViewer" oor:node-type="Application" />
<node-ref oor:name="PdfViewer" oor:node-type="Application" />
</group>
<group oor:name="BibliographyOptions">
<prop oor:name="UseExternalBibTeXFiles" oor:type="xs:boolean" />
<prop oor:name="ConvertZoteroCitations" oor:type="xs:boolean" />
<prop oor:name="ConvertJabRefCitations" oor:type="xs:boolean" />
<prop oor:name="IncludeOriginalCitations" oor:type="xs:boolean" />
<prop oor:name="BibTeXLocation" oor:type="xs:short" />
<prop oor:name="BibTeXDir" oor:type="xs:string" />
<prop oor:name="UseNatbib" oor:type="xs:boolean" />
<prop oor:name="NatbibOptions" oor:type="xs:string" />
</group>
</component>
</oor:component-schema>

View file

@ -0,0 +1,115 @@
<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data oor:name="ToolbarOptions"
oor:package="org.openoffice.da.Writer2LaTeX.toolbar"
xml:lang="en-US"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<node oor:name="Applications">
<node oor:name="LaTeX" oor:type="xs:string">
<prop oor:name="Executable">
<value>latex</value>
</prop>
<prop oor:name="Options">
<value>--interaction=batchmode %s</value>
</prop>
</node>
<node oor:name="PdfLaTeX" oor:type="xs:string">
<prop oor:name="Executable">
<value>pdflatex</value>
</prop>
<prop oor:name="Options">
<value>--interaction=batchmode %s</value>
</prop>
</node>
<node oor:name="XeLaTeX" oor:type="xs:string">
<prop oor:name="Executable">
<value>xelatex</value>
</prop>
<prop oor:name="Options">
<value>--interaction=batchmode %s</value>
</prop>
</node>
<node oor:name="BibTeX" oor:type="xs:string">
<prop oor:name="Executable">
<value>bibtex</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
<node oor:name="Makeindex" oor:type="xs:string">
<prop oor:name="Executable">
<value>makeindex</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
<node oor:name="Mk4ht" oor:type="xs:string">
<prop oor:name="Executable">
<value>mk4ht</value>
</prop>
<prop oor:name="Options">
<value>oolatex %s</value>
</prop>
</node>
<node oor:name="Dvips" oor:type="xs:string">
<prop oor:name="Executable">
<value>dvips</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
<node oor:name="DVIViewer" oor:type="xs:string">
<prop oor:name="Executable">
<value>evince</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
<node oor:name="PostscriptViewer" oor:type="xs:string">
<prop oor:name="Executable">
<value>evince</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
<node oor:name="PdfViewer" oor:type="xs:string">
<prop oor:name="Executable">
<value>evince</value>
</prop>
<prop oor:name="Options">
<value>%s</value>
</prop>
</node>
</node>
<node oor:name="BibliographyOptions">
<prop oor:name="UseExternalBibTeXFiles" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="ConvertZoteroCitations" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="ConvertJabRefCitations" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="IncludeOriginalCitations" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="BibTeXLocation" oor:type="xs:short">
<value>2</value><!-- document directory -->
</prop>
<prop oor:name="BibTeXDir" oor:type="xs:string">
<value></value>
</prop>
<prop oor:name="UseNatbib" oor:type="xs:boolean">
<value>false</value>
</prop>
<prop oor:name="NatbibOptions" oor:type="xs:string">
<value></value>
</prop>
</node>
</oor:component-data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -38,6 +38,32 @@
</prop>
<prop oor:name="Flags"><value>EXPORT ALIEN 3RDPARTYFILTER</value></prop>
</node>
<!-- TeX import is disabled currently
<node oor:name="org.openoffice.da.writer2latex.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.writer2latex.LaTeX_File</value></prop>
<prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
<prop oor:name="FilterService"><value>org.openoffice.da.comp.writer2latex.TeXImportFilter</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="Flags"><value>IMPORT TEMPLATE TEMPLATEPATH ALIEN 3RDPARTYFILTER</value></prop>
<prop oor:name="UserData"/>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="TemplateName"/>
</node>
<node oor:name="org.openoffice.da.writer2latex.xelatex" oor:op="replace" oor:finalized="true" oor:mandatory="true">
<prop oor:name="UIName"><value>XeLaTeX</value></prop>
<prop oor:name="Type"><value>org.openoffice.da.writer2latex.XeLaTeX_File</value></prop>
<prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
<prop oor:name="FilterService"><value>org.openoffice.da.comp.writer2latex.TeXImportFilter</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="Flags"><value>IMPORT TEMPLATE TEMPLATEPATH ALIEN 3RDPARTYFILTER</value></prop>
<prop oor:name="UserData"/>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="TemplateName"/>
</node>-->
</node>

View file

@ -26,7 +26,29 @@
</prop>
<prop oor:name="ClipboardFormat"/>
</node>
<node oor:name="org.openoffice.da.writer2latex.LaTeX_File" oor:op="replace" oor:finalized="true" oor:mandatory="true">
<prop oor:name="UIName"><value>LaTeX File</value></prop>
<prop oor:name="MediaType"/>
<prop oor:name="ClipboardFormat"/>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>tex</value></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="DetectService"><value>org.openoffice.da.comp.writer2latex.TeXDetectService</value></prop>
<prop oor:name="PreferredFilter"><value>org.openoffice.da.writer2latex.latex</value></prop>
</node>
<node oor:name="org.openoffice.da.writer2latex.XeLaTeX_File" oor:op="replace" oor:finalized="true" oor:mandatory="true">
<prop oor:name="UIName"><value>XeLaTeX File</value></prop>
<prop oor:name="MediaType"/>
<prop oor:name="ClipboardFormat"/>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>tex</value></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="DetectService"><value>org.openoffice.da.comp.writer2latex.TeXDetectService</value></prop>
<prop oor:name="PreferredFilter"><value>org.openoffice.da.writer2latex.xelatex</value></prop>
</node>
</node>
</oor:component-data>