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

⌈⌋ branch:  PageTranslate


Artifact Content

Artifact 72cc52be538dc6b3447f2bc9394498c7d160423a:

  • File OptionsDialog.xcu — part of check-in [2d2c5955a6] at 2020-05-29 15:04:35 on branch trunk — AOO compat. OptionsDialog XCU requires leaf name to equal handler ID. (user: mario size: 1543)

<?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" oor:op="fuse">
                   <!-- apparently AOO needs ↑ this equivalent to the EventHandlerService
                        identifier to pick up the relation between XDL and callback -->
          <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>