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

⌈⌋ branch:  PageTranslate


Artifact Content

Artifact 156e7bf884caaa44e80f68d3600324333f409fa4:

  • File OptionsDialog.xcu — part of check-in [748623aaf6] at 2020-05-23 14:05:33 on branch trunk — Introduce pt_opts handler for settings window (user: mario size: 1513)

<?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="Writer" oor:op="fuse">
      <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>
<!-- https://github.com/p&mdash;-q/OptionsDialog/tree/master/OptionsDialog/src -->
<!-- https://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Adding_a_Leaf_to_an_Existing_Node -->