46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
import DictOptions
xDialog = DictOptions.DictOptions(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "LE":
import LexiconEditor
xDialog = LexiconEditor.LexiconEditor(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "DS":
import DictionarySwitcher
xDialog = DictionarySwitcher.FrenchDictionarySwitcher(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "MA":
import Author
xDialog = Author.Author(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "OP":
import Options
xDialog = Options.GC_Options(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "EN":
import Enumerator
xDialog = Enumerator.Enumerator(self.ctx)
xDialog.run(self.sLang)
elif sCmd.startswith("FA/"):
findAll(sCmd[6:], (sCmd[3:4] == "y"), (sCmd[4:5] == "y"))
# elif sCmd.startswith("URL/"):
# # Call from context menu to launch URL?
# # http://opengrok.libreoffice.org/xref/core/sw/source/ui/lingu/olmenu.cxx#785
# xSystemShellExecute = self.ctx.getServiceManager().createInstanceWithContext('com.sun.star.system.SystemShellExecute', self.ctx)
# xSystemShellExecute.execute(url, "", uno.getConstantByName("com.sun.star.system.SystemShellExecuteFlags.URIS_ONLY"))
|
<
<
<
<
>
>
>
>
|
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
import DictOptions
xDialog = DictOptions.DictOptions(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "LE":
import LexiconEditor
xDialog = LexiconEditor.LexiconEditor(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "MA":
import Author
xDialog = Author.Author(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "OP":
import Options
xDialog = Options.GC_Options(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "EN":
import Enumerator
xDialog = Enumerator.Enumerator(self.ctx)
xDialog.run(self.sLang)
elif sCmd == "GO":
import GraphicOptions
xDialog = GraphicOptions.GraphicOptions(self.ctx)
xDialog.run(self.sLang)
elif sCmd.startswith("FA/"):
findAll(sCmd[6:], (sCmd[3:4] == "y"), (sCmd[4:5] == "y"))
# elif sCmd.startswith("URL/"):
# # Call from context menu to launch URL?
# # http://opengrok.libreoffice.org/xref/core/sw/source/ui/lingu/olmenu.cxx#785
# xSystemShellExecute = self.ctx.getServiceManager().createInstanceWithContext('com.sun.star.system.SystemShellExecute', self.ctx)
# xSystemShellExecute.execute(url, "", uno.getConstantByName("com.sun.star.system.SystemShellExecuteFlags.URIS_ONLY"))
|