Grammalecte  Diff

Differences From Artifact [0df543aa25]:

To Artifact [afd6778ebd]:


   107    107           toolkit = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.ExtToolkit', self.ctx)
   108    108           self.xContainer.createPeer(toolkit, None)
   109    109           self.xContainer.execute()
   110    110   
   111    111       # XActionListener
   112    112       def actionPerformed (self, xActionEvent):
   113    113           try:
   114         -            xChild = self.xSettingNode.getByName("o_fr")
   115    114               if xActionEvent.ActionCommand == 'Apply':
   116         -                xChild.setPropertyValue("graphspell", self.xGraphspell.State)
   117         -                xChild.setPropertyValue("graphspellsugg", self.xGraphspellSugg.State)
          115  +                xChild = self.xSettingNode.getByName("o_fr")
          116  +                xChild.setPropertyValue("use_graphspell", self.xGraphspell.State)
          117  +                xChild.setPropertyValue("use_graphspell_sugg", self.xGraphspellSugg.State)
   118    118                   #xChild.setPropertyValue("extended_dic", self.xExtendedDic.State)
   119         -                xChild.setPropertyValue("personal_dic", self.xPersonalDic.State)
          119  +                xChild.setPropertyValue("use_personal_dic", self.xPersonalDic.State)
   120    120                   self.xSettingNode.commitChanges()
   121    121               elif xActionEvent.ActionCommand == "Import":
   122    122                   xFilePicker = self.xSvMgr.createInstanceWithContext('com.sun.star.ui.dialogs.SystemFilePicker', self.ctx)
   123    123                   xFilePicker.appendFilter("Supported files", "*.json; *.bdic")
   124    124                   #xFilePicker.setDisplayDirectory("")
   125    125                   #xFilePicker.setMultiSelectionMode(True)
   126    126                   nResult = xFilePicker.execute()
................................................................................
   141    141               dialog.run()
   142    142           except:
   143    143               traceback.print_exc()
   144    144   
   145    145       def _loadOptions (self):
   146    146           try:
   147    147               xChild = self.xSettingNode.getByName("o_fr")
   148         -            self.xGraphspell.State = xChild.getPropertyValue("graphspell")
   149         -            self.xGraphspellSugg.State = xChild.getPropertyValue("graphspellsugg")
          148  +            self.xGraphspell.State = xChild.getPropertyValue("use_graphspell")
          149  +            self.xGraphspellSugg.State = xChild.getPropertyValue("use_graphspell_sugg")
   150    150               #self.xExtendedDic.State = xChild.getPropertyValue("extended_dic")
   151         -            self.xPersonalDic.State = xChild.getPropertyValue("personal_dic")
          151  +            self.xPersonalDic.State = xChild.getPropertyValue("use_personal_dic")
   152    152           except:
   153    153               traceback.print_exc()
   154    154   
   155    155   
   156    156   #g_ImplementationHelper = unohelper.ImplementationHelper()
   157    157   #g_ImplementationHelper.addImplementation(DictOptions, 'net.grammalecte.graphspell.DictOptions', ('com.sun.star.task.Job',))