78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
-
+
+
|
setattr(xCol, k, w)
xColumnModel.addColumn(xCol)
for k, w in kwargs.items():
setattr(xGridModel, k, w)
self.xDialog.insertByName(name, xGridModel)
return xGridModel
def run (self, sLang):
def run (self, sLang, oPersonalDicJSON):
# ui lang
self.dUI = sw_strings.getUI(sLang)
self.oPersonalDicJSON = oPersonalDicJSON
# dialog
self.xDialog = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.UnoControlDialogModel', self.ctx)
self.xDialog.Width = 350
self.xDialog.Height = 305
self.xDialog.Title = self.dUI.get('title', "#title#")
#xWindowSize = helpers.getWindowSize()
|
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
-
+
|
elif xActionEvent.ActionCommand == "Close":
self.xContainer.endExecute()
except:
traceback.print_exc()
def initSpellChecker (self):
if not self.oSpellChecker:
self.oSpellChecker = sc.SpellChecker("fr", "fr.bdic", "", "", "")
self.oSpellChecker = sc.SpellChecker("fr", "fr.bdic", "", "", self.oPersonalDicJSON)
@_waitPointer
def searchSimilar (self):
self.initSpellChecker()
sWord = self.xWord.Text.strip()
if sWord:
xGridDataModel = self.xGridModel.GridDataModel
|