Changeset 16679


Ignore:
Timestamp:
Aug 18, 2017, 11:43:09 AM (3 years ago)
Author:
jamado
Message:

fixed problem with LO plugin

Location:
internals/2017/PluginAssinaturaOfficeSuite
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • internals/2017/PluginAssinaturaOfficeSuite/README

    r16634 r16679  
    1 Test commit
     1pteid-lo-plugin: contains the Java source code for the LibreOffice PTEID plugin.
     2        -> developed in Eclipse with the LibreOfficeExtension Eclipse plugin to create the .oxt file and for debug ease;
     3        -> unfinished pom.xml Maven file; (How to create the .oxt file??)
     4        -> default behavior if the currently active document is yet to be stored in disk memory is to do nothing;
     5        -> link for the plugins latest version .oxt file: https://drive.google.com/drive/folders/0Bz7DEueToZmienJfeGRpU083QlU?usp=sharing
     6
     7pteid-ms-plugin: contains the C#.NET source code for the MS Word PTEID plugin.
     8        -> developed in VisualStudio 2017 with .NET v4.5.2
     9        -> works properly in MS Word 2013/10;
     10        -> default behavior if the currently active document is yet to be stored in disk memory is to prompt the user with an Office built-in "Save As" dialog;
     11
     12NOTES: Pre-visualisation of the temporary pdf document in the PTEID middleware isn't showing;
     13           The temporary pdf files created are properly exported according to the user's choice of maintaining or discarding unsaved document changes, if any;
     14           Both plugins were tested in WindowsOS and both seem to work as expected for the advanced signature option of the mw, the only option available for testing;
     15           The LO plugin is also working properly and calling the proper commands in Linux, but is yet to be tested with the mw latest version;
     16           
     17
     18       
    219
    320
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/config/config.properties

    r16675 r16679  
    44deb-version-cmd=dpkg-query --showformat='${Version}' --show pteid-mw
    55rpm-version-cmd=rpm -q --queryformat '%{VERSION}' pteid-mw
    6 win-version-cmd=reg.exe query HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{824563DE-75AD-4166-9DC0-B6482F205055}
     6win-version-cmd=reg.exe query HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{824563DE-75AD-4166-9DC0-B6482F205055} /reg:64
    77mac-registry-key=mac secret key
    88linux-deb-distros=ubuntu debian
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/registry/org/openoffice/Office/Accelerators.xcu

    r16675 r16679  
    66                <node oor:name="Modules">
    77                        <node oor:name="com.sun.star.text.TextDocument">
    8                                 <node oor:name="S_SHIFT_MOD1" oor:op="replace">
     8                                <node oor:name="B_SHIFT_MOD1" oor:op="replace">
    99                                        <prop oor:name="Command"> <!-- the event that will be triggered; connects this XML file to the java source code -->
    1010                                                <!-- emits the "actionOne" event from the "org.libreoffice.example.StarterProject" service; supported services are defined in the Java code entry point -->
    11                                                 <value xml:lang="en-US">service:org.libreoffice.extension.PteidLOExtension?simpleSigning</value>
     11                                                <value xml:lang="en-US">service:org.libreoffice.extension.PteidLOExtension?basicSigning</value>
    1212                                        </prop>
    1313                                </node>
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/registry/org/openoffice/Office/Addons.xcu

    r16675 r16679  
    77                        <node oor:name="libreoffice.extension.PteidLOExtension.imageSimpleSign" oor:op="replace">
    88                                <prop oor:name="URL" oor:type="xs:string">
    9                                         <value>service:org.libreoffice.extension.PteidLOExtension?simpleSigning</value>
     9                                        <value>service:org.libreoffice.extension.PteidLOExtension?basicSigning</value>
    1010                                </prop>
    1111                                <node oor:name="UserDefinedImages">
     
    4848                                <node oor:name="b02" oor:op="replace">
    4949                                        <prop oor:name="URL" oor:type="xs:string">
    50                                                 <value>service:org.libreoffice.extension.PteidLOExtension?simpleSigning</value>
     50                                                <value>service:org.libreoffice.extension.PteidLOExtension?basicSigning</value>
    5151                                        </prop>
    5252                                        <prop oor:name="Target" oor:type="xs:string">
     
    5757                                        </prop>
    5858                                        <prop oor:name="Title">
    59                                                 <value xml:lang="de">Simple Signature</value>
     59                                                <value xml:lang="de">Basic Signature</value>
    6060                                        </prop>
    6161                                </node>
     
    7474                                        <node oor:name="M1" oor:op="replace">
    7575                                                <prop oor:name="Title">
    76                                                         <value xml:lang="en-US">Simple Signature</value>
     76                                                        <value xml:lang="en-US">Basic Signature</value>
    7777                                                </prop>
    7878                                                <prop oor:name="URL">
    79                                                         <value>service:org.libreoffice.extension.PteidLOExtension?simpleSigning</value>
     79                                                        <value>service:org.libreoffice.extension.PteidLOExtension?basicSigning</value>
    8080                                                </prop>
    8181                                                <prop oor:name="Target" oor:type="xs:string">
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/comp/Configurator.java

    r16675 r16679  
    113113         */
    114114        public String getSigningCmd() {
    115                 if(this.getOsPrefix().equals("win")) { //Windows command outputs only 1 or 0
     115                if(this.getOsPrefix().equals("win")) {
    116116                        return new String(this.configuration.getProperty("win-mw-call"));
    117117                } else {
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/comp/MiddlewareConnector.java

    r16675 r16679  
    4242                result = this.executor.executeCommandWithOutput(versionCmd);
    4343                               
    44                 if(this.configurator.getOsPrefix().equals("win")) { //Windows command outputs only 1 or 0
     44                if(this.configurator.getOsPrefix().equals("win")) { //Windows command returns exit code 0 on success and 11 on failure
    4545                        if(result.contains("DisplayVersion")) {
    4646                                return true;
     
    5555       
    5656        /**
    57          * Executes call to middleware based on @signMode and passing @temp as parameter.
     57         * Executes call to middleware based on @signMode and passing @temp as an argument.
    5858         *
    5959         * @param temp .pdf file argument for middleware call.
     
    6969                cmd.append("\"");
    7070                System.out.println(cmd.toString());
    71                 this.executor.executeCommandWithThread(/*cmd.toString()*/"firefox " + temp.toString());
     71                this.executor.executeCommandWithThread(cmd.toString());
    7272        }
    7373       
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/comp/PteidLOExtensionImpl.java

    r16675 r16679  
    3030    private static final String m_implementationName = PteidLOExtensionImpl.class.getName();
    3131    private static final String[] m_serviceNames = { "org.libreoffice.extension.PteidLOExtension" };
    32     private static final String[] actionNames = { "simpleSigning", "advancedSigning" };
     32    private static final String[] actionNames = { "basicSigning", "advancedSigning" };
    3333   
    3434    public PteidLOExtensionImpl( XComponentContext xContext )
     
    8484    public void trigger(String event) {
    8585       
    86         System.out.println("pteid-lo-extension triggered");
    8786        if(!verify()) {
    8887                return;
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/helper/FileHelper.java

    r16675 r16679  
    151151       
    152152        /**
    153          * Returns a path to a dialog .xdl file
    154          */
    155        
    156         /**
    157153         * Returns a file path for a file in the installed extension, or null on failure.
    158154         */
Note: See TracChangeset for help on using the changeset viewer.