Grammalecte  Check-in [f7bed407d3]

Overview
Comment:[lo] fix Grammalecte init
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lo | multid
Files: files | file ages | folders
SHA3-256: f7bed407d3fe82fd001948a1697723a2267b017b0d596b3113a4bd6e4cf22cad
User & Date: olr on 2018-02-16 17:43:16
Other Links: branch diff | manifest | tags
Context
2018-02-16
17:47
[lo] fix Grammalecte init check-in: 5aca2f6bbf user: olr tags: lo, multid
17:43
[lo] fix Grammalecte init check-in: f7bed407d3 user: olr tags: lo, multid
17:41
[lo] use spellchecker instead of ibdawg check-in: 6cde77e557 user: olr tags: lo, multid
Changes

Modified gc_core/py/oxt/Grammalecte.py from [0f730fb3f5] to [1551ba65fd].

39
40
41
42
43
44
45


46
47
48
49
50
51
52
        dOpt = Options.load(xCurCtx)
        gce.setOptions(dOpt)
        # store for results of big paragraphs
        self.dResult = {}
        self.nMaxRes = 1500
        self.lLastRes = deque(maxlen=self.nMaxRes)
        self.nRes = 0



    # XServiceName method implementations
    def getServiceName (self):
        return self.ImplementationName

    # XServiceInfo method implementations
    def getImplementationName (self):







>
>







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
        dOpt = Options.load(xCurCtx)
        gce.setOptions(dOpt)
        # store for results of big paragraphs
        self.dResult = {}
        self.nMaxRes = 1500
        self.lLastRes = deque(maxlen=self.nMaxRes)
        self.nRes = 0
        oSpellChecker = self.getSpellChecker();
        oSpellChecker.setPersonalDictionary("fr.personal.json")

    # XServiceName method implementations
    def getServiceName (self):
        return self.ImplementationName

    # XServiceInfo method implementations
    def getImplementationName (self):
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
        gce.resetIgnoreRules()

    # XServiceDisplayName
    def getServiceDisplayName (self, aLocale):
        return gce.name

    # Grammalecte
    def getDictionary (self):
        return gce.getDictionary()


g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(Grammalecte, "org.openoffice.comp.pyuno.Lightproof."+gce.pkg, ("com.sun.star.linguistic2.Proofreader",),)

# g_ImplementationHelper.addImplementation( opt_handler.LightproofOptionsEventHandler, \
#     "org.openoffice.comp.pyuno.LightproofOptionsEventHandler." + gce.pkg, ("com.sun.star.awt.XContainerWindowEventHandler",),)







|
|







130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
        gce.resetIgnoreRules()

    # XServiceDisplayName
    def getServiceDisplayName (self, aLocale):
        return gce.name

    # Grammalecte
    def getSpellChecker (self):
        return gce.getSpellChecker()


g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(Grammalecte, "org.openoffice.comp.pyuno.Lightproof."+gce.pkg, ("com.sun.star.linguistic2.Proofreader",),)

# g_ImplementationHelper.addImplementation( opt_handler.LightproofOptionsEventHandler, \
#     "org.openoffice.comp.pyuno.LightproofOptionsEventHandler." + gce.pkg, ("com.sun.star.awt.XContainerWindowEventHandler",),)