Changeset 16689


Ignore:
Timestamp:
Aug 23, 2017, 11:56:04 AM (2 years ago)
Author:
jamado
Message:

final versions for both plugins

Location:
internals/2017/PluginAssinaturaOfficeSuite
Files:
74 added
8 edited

Legend:

Unmodified
Added
Removed
  • internals/2017/PluginAssinaturaOfficeSuite/README

    r16679 r16689  
    66
    77pteid-ms-plugin: contains the C#.NET source code for the MS Word PTEID plugin.
    8         -> developed in VisualStudio 2017 with .NET v4.5.2
     8        -> developed in VisualStudio 2017 with .NET v4.0
    99        -> works properly in MS Word 2013/10;
    1010        -> 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        .> link for the plugins setup file: https://drive.google.com/drive/folders/0Bz7DEueToZmiSVQzZ2pHMS1aMnc?usp=sharing
    1112
    1213NOTES: Pre-visualisation of the temporary pdf document in the PTEID middleware isn't showing;
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/config/config.properties

    r16679 r16689  
    55rpm-version-cmd=rpm -q --queryformat '%{VERSION}' pteid-mw
    66win-version-cmd=reg.exe query HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{824563DE-75AD-4166-9DC0-B6482F205055} /reg:64
    7 mac-registry-key=mac secret key
     7mac-version-cmd=pkgutil --pkg-info pt.cartaodecidadao.apps
    88linux-deb-distros=ubuntu debian
    99linux-rpm-distros=suse fedora oracle mandriva
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/dialog/InstallDialog.xdl

    r16675 r16689  
    33<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Install" dlg:left="270" dlg:top="186" dlg:width="220" dlg:height="54" dlg:closeable="true" dlg:moveable="true" dlg:title="Middleware Autenticação.gov Not Found">
    44 <dlg:bulletinboard>
    5   <dlg:text dlg:id="Label1" dlg:style-id="0" dlg:tab-index="0" dlg:left="8" dlg:top="11" dlg:width="199" dlg:height="10" dlg:value="Autenticação.gov middleware is not currently installed in your system!"/>
     5  <dlg:text dlg:id="Label1" dlg:tab-index="0" dlg:left="8" dlg:top="11" dlg:width="199" dlg:height="10" dlg:value="Autenticação.gov middleware is not currently installed in your system!"/>
    66  <dlg:text dlg:id="Label2" dlg:tab-index="1" dlg:left="31" dlg:top="22" dlg:width="148" dlg:height="10" dlg:value="Please download and install the necessary software."/>
    77  <dlg:button dlg:id="Button1" dlg:tab-index="2" dlg:left="83" dlg:top="36" dlg:width="50" dlg:height="12" dg:style="bold" dlg:value="Close">
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/comp/MiddlewareConnector.java

    r16679 r16689  
    4040               
    4141                String versionCmd = this.configurator.getVersionCmd(); //get command (or registy key for Win) to get MW version
    42                 result = this.executor.executeCommandWithOutput(versionCmd);
     42                result = this.executor.executeCommandWithOutput(versionCmd).toLowerCase();
    4343                               
    4444                if(this.configurator.getOsPrefix().equals("win")) { //Windows command returns exit code 0 on success and 11 on failure
    45                         if(result.contains("DisplayVersion")) {
     45                        if(result.contains("displayversion")) {
     46                                return true;
     47                        }
     48                } else if(this.configurator.getOsPrefix().equals("mac")) {
     49                        if(result.contains("version")) { //Does this condition always stand??
    4650                                return true;
    4751                        }
    4852                } else {
    49                         if(result.contains("svn")) { //Does this condition always stand??
     53                        if(!result.equals("")) {
    5054                                return true;
    5155                        }
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/dialog/Dialog.java

    r16675 r16689  
    2020                        XDialogProvider2 xDP = (XDialogProvider2) UnoRuntime.queryInterface(XDialogProvider2.class, oXDP2);
    2121                        File dialogFile = FileHelper.getDialogFilePath(xdlFile, context);
    22                         System.out.println("Temp file url: " + FileHelper.convertToURL(context, dialogFile));
    2322                        this.dialog = xDP.createDialogWithHandler(FileHelper.convertToURL(context, dialogFile), this);
    2423                       
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/dialog/SaveChangesDialog.java

    r16675 r16689  
    2222        @Override
    2323        public boolean callHandlerMethod(XDialog arg0, Object event, String methodName) throws WrappedTargetException {
    24                
     24                this.end();
    2525                if(methodName.equals(supportedActions[0])) { //store unsaved changes
    2626                        if(!FileHelper.saveCurrentChanges(this.context)) {
    27                                 return false;
     27                                SaveFailedDialog saveFailed = new SaveFailedDialog(this.context);
     28                                saveFailed.show();
     29                                this.terminate = true;
    2830                        }
    2931                } else if(methodName.equals(supportedActions[1])) { //continue without saving
     
    3436                        return false;
    3537                }
    36                 this.end();
    3738                return true;
    3839        }
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-lo-plugin/source/org/libreoffice/extension/helper/FileHelper.java

    r16679 r16689  
    5252                File temp = null;
    5353                try {
     54                        System.out.println("");
    5455                        /*set media descriptor propertiy definitions*/
    5556                        PropertyValue[] mediaDescriptor = new PropertyValue[1];
  • internals/2017/PluginAssinaturaOfficeSuite/pteid-ms-plugin/PteidWordPlugin.sln

    r16675 r16689  
    66Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PteidWordPlugin", "PteidWordPlugin\PteidWordPlugin.csproj", "{F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}"
    77EndProject
     8Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "PteidPluginSetup", "PteidPluginSetup\PteidPluginSetup.wixproj", "{B96E321C-9FEF-476D-AC0E-29C3530FC02C}"
     9EndProject
    810Global
    911        GlobalSection(SolutionConfigurationPlatforms) = preSolution
    1012                Debug|Any CPU = Debug|Any CPU
     13                Debug|x86 = Debug|x86
    1114                Release|Any CPU = Release|Any CPU
     15                Release|x86 = Release|x86
    1216        EndGlobalSection
    1317        GlobalSection(ProjectConfigurationPlatforms) = postSolution
    1418                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
    1519                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Debug|Any CPU.Build.0 = Debug|Any CPU
     20                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Debug|x86.ActiveCfg = Debug|Any CPU
     21                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Debug|x86.Build.0 = Debug|Any CPU
    1622                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Release|Any CPU.ActiveCfg = Release|Any CPU
    1723                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Release|Any CPU.Build.0 = Release|Any CPU
     24                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Release|x86.ActiveCfg = Release|Any CPU
     25                {F2540CB0-9196-44EF-A6B0-1FDA2FAA951A}.Release|x86.Build.0 = Release|Any CPU
     26                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Debug|Any CPU.ActiveCfg = Debug|x86
     27                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Debug|x86.ActiveCfg = Debug|x86
     28                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Debug|x86.Build.0 = Debug|x86
     29                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Release|Any CPU.ActiveCfg = Release|x86
     30                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Release|x86.ActiveCfg = Release|x86
     31                {B96E321C-9FEF-476D-AC0E-29C3530FC02C}.Release|x86.Build.0 = Release|x86
    1832        EndGlobalSection
    1933        GlobalSection(SolutionProperties) = preSolution
Note: See TracChangeset for help on using the changeset viewer.