LibreOffice plugin to pipe whole Writer documents through Google Translate, that ought to keep most of the page formatting.

⌈⌋ branch:  PageTranslate


Artifact Content

Artifact ade7a2c50f723eadb46b5f80789b55ab224594f3:

  • File OptionsDialog.xcu — part of check-in [10276ceb8e] at 2020-05-25 17:22:37 on branch trunk — Remove some logging, fix setLevel on debug mode. Move config dialog into Language settings leave. Remove `crlf` in favour of `quick` mode. (user: mario size: 1368)

<?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.w2.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <node oor:name="Nodes">
    <node oor:name="LanguageSettings" oor:op="fuse">  <!-- previously in name="Writer" -->
      <node oor:name="Leaves">
        <node oor:name="vnd.include-once.OptionsPageTranslate.leaf" oor:op="fuse">
          <prop oor:name="Id">
            <value>vnd.include-once.OptionsPageTranslate</value>
            <!-- seems irrelevant / just an ID,
                 and can be different from EventHandlerService even -->
          </prop>
          <prop oor:name="Label">
            <value xml:lang="en-US">PageTranslate</value>
          </prop>
          <prop oor:name="OptionsPage">
            <value>%origin%/OptionsDialog.xdl</value>
          </prop>
          <prop oor:name="EventHandlerService">
            <value>vnd.include-once.OptionsPageTranslate</value>
            <!-- must match g_ImplementationHelper.addImplementation(class, "IMPLEMENTATION_NAME", ())
                 and doesn't even have to be a service:….pyuno.… URL or anything specific -->
          </prop>
        </node>
      </node>
    </node>
  </node>
</oor:component-data>