def __init__(self, ctrl_getter, app, step2Master, font_name_handler): StyleChangeControlHandler.__init__(self, ctrl_getter, app, step2Master) evt_handler.ItemEventHandler.__init__(self) self.font_name_handler = font_name_handler self.optStandard = ctrl_getter.get(_dlgdef.OPT_FONT_STANDARD) self.optComplex = ctrl_getter.get(_dlgdef.OPT_FONT_COMPLEX) self.optAsian = ctrl_getter.get(_dlgdef.OPT_FONT_ASIAN) self.radios = [ dutil.RadioTuple(self.optStandard, 'Western'), dutil.RadioTuple(self.optComplex, 'Complex'), dutil.RadioTuple(self.optAsian, 'Asian') ]
def __init__(self, ctrl_getter, app, step2Master, style_name_handler, style_checkbox_handler): StyleChangeControlHandler.__init__(self, ctrl_getter, app, step2Master) evt_handler.ItemEventHandler.__init__(self) self.style_name_handler = style_name_handler self.style_checkbox_handler = style_checkbox_handler self.optNoChange = ctrl_getter.get(_dlgdef.OPT_NO_CHANGE) self.optParaStyle = ctrl_getter.get(_dlgdef.OPT_PARA_STYLE) self.optCharStyle = ctrl_getter.get(_dlgdef.OPT_CHAR_STYLE) self.optNoStyle = ctrl_getter.get(_dlgdef.OPT_NO_STYLE) self.radios = [ dutil.RadioTuple(self.optNoChange, StyleType.NO_CHANGE), dutil.RadioTuple(self.optParaStyle, StyleType.PARA), dutil.RadioTuple(self.optCharStyle, StyleType.CHAR), dutil.RadioTuple(self.optNoStyle, StyleType.CUSTOM) ]
def __init__(self, ctrl_getter, app): self.app = app evt_handler.ItemEventHandler.__init__(self) self.radios = [ dutil.RadioTuple(ctrl_getter.get(_dlgdef.OPT_SCOPE_WHOLE_DOC), ScopeType.WHOLE_DOC), dutil.RadioTuple( ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT_INCLUDING_STYLE), ScopeType.FONT_WITH_STYLE), dutil.RadioTuple( ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT_EXCLUDING_STYLE), ScopeType.FONT_WITHOUT_STYLE), dutil.RadioTuple(ctrl_getter.get(_dlgdef.OPT_SCOPE_PARA_STYLE), ScopeType.PARASTYLE), dutil.RadioTuple(ctrl_getter.get(_dlgdef.OPT_SCOPE_CHAR_STYLE), ScopeType.CHARSTYLE) ] self.whichScope = ScopeType.FONT_WITH_STYLE self.USERVAR = 'ScopeType' self.lblStylesUsed = ctrl_getter.get(_dlgdef.LBL_STYLES_USED)
def __init__(self, unoObjs, ctrl_getter, evtHandler, userVars): self.unoObjs = unoObjs self.evtHandler = evtHandler self.userVars = userVars self.txtLangName = ctrl_getter.get(_dlgdef.TXT_LANG_NAME) self.txtOutfile = ctrl_getter.get(_dlgdef.TXT_OUTFILE) self.fctlWordList = ctrl_getter.get(_dlgdef.FCTL_WORD_LIST) self.listboxScriptType = ctrl_getter.get(_dlgdef.LISTBOX_SCRIPT_TYPE) self.txtLangTag = ctrl_getter.get(_dlgdef.TXT_LANG_TAG) self.txtWordFormingPunct = ctrl_getter.get( _dlgdef.TXT_WORD_FORMING_PUNCT) self.txtFont = ctrl_getter.get(_dlgdef.TXT_FONT) self.fctlAffix = ctrl_getter.get(_dlgdef.FCTL_AFFIX) self.optNormNFC = ctrl_getter.get(_dlgdef.OPT_NORM_NFC) self.optNormNFD = ctrl_getter.get(_dlgdef.OPT_NORM_NFD) self.optNormNone = ctrl_getter.get(_dlgdef.OPT_NORM_NONE) self.txtVersion = ctrl_getter.get(_dlgdef.TXT_VERSION) self.listDictType = ctrl_getter.get(_dlgdef.LIST_DICT_TYPE) self.txtPublisher = ctrl_getter.get(_dlgdef.TXT_PUBLISHER) self.txtPublisherURL = ctrl_getter.get(_dlgdef.TXT_PUBLISHER_URL) btnBrowse = ctrl_getter.get(_dlgdef.BTN_BROWSE) btnOK = ctrl_getter.get(_dlgdef.BTN_OK) btnCancel = ctrl_getter.get(_dlgdef.BTN_CANCEL) ## Listeners btnBrowse.setActionCommand("ShowFilePicker") btnOK.setActionCommand("Close_and_Run") btnCancel.setActionCommand("Cancel") for ctrl in (btnBrowse, btnOK, btnCancel): ctrl.addActionListener(self.evtHandler) self.radiosNormalize = [ dutil.RadioTuple(self.optNormNFC, 'NFC'), dutil.RadioTuple(self.optNormNFD, 'NFD'), dutil.RadioTuple(self.optNormNone, 'None') ]
def __init__(self, unoObjs, ctrl_getter, evtHandler): self.unoObjs = unoObjs self.evtHandler = evtHandler self.txtConverterName = ctrl_getter.get(_dlgdef.TXT_CNVTR_NAME) self.chkDirectionReverse = ctrl_getter.get(_dlgdef.CHK_DIRECTION_REVERSE) self.chkVerify = ctrl_getter.get(_dlgdef.CHK_VERIFY) self.optScopeWholeDoc = ctrl_getter.get(_dlgdef.OPT_SCOPE_WHOLE_DOC) self.optScopeSelection = ctrl_getter.get(_dlgdef.OPT_SCOPE_SELECTION) self.optScopeFont = ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT) self.optScopeFontWestern = ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT_REGULAR) self.optScopeFontComplex = ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT_CTL) self.optScopeFontAsian = ctrl_getter.get(_dlgdef.OPT_SCOPE_FONT_ASIAN) self.optTargetFontWestern = ctrl_getter.get(_dlgdef.OPT_TARGET_FONT_REGULAR) self.optTargetFontComplex = ctrl_getter.get(_dlgdef.OPT_TARGET_FONT_CTL) self.optTargetFontAsian = ctrl_getter.get(_dlgdef.OPT_TARGET_FONT_ASIAN) self.optTargetNoChange = ctrl_getter.get(_dlgdef.OPT_TARGET_NO_CHANGE) self.optTargetFont = ctrl_getter.get(_dlgdef.OPT_TARGET_FONT) self.comboScopeFont = ctrl_getter.get(_dlgdef.CMBX_SCOPE_FONT) self.listTargetFont = ctrl_getter.get(_dlgdef.LIST_TARGET_FONT) self.txtFontSize = ctrl_getter.get(_dlgdef.TXT_FONT_SIZE) btnSelectConv = ctrl_getter.get(_dlgdef.BTN_SELECT_CONV) btnNoConverter = ctrl_getter.get(_dlgdef.BTN_NO_CONVERTER) btnOK = ctrl_getter.get(_dlgdef.BTN_OK) btnCancel = ctrl_getter.get(_dlgdef.BTN_CANCEL) btnSelectConv.setActionCommand('SelectConverter') btnNoConverter.setActionCommand('NoConverter') btnOK.setActionCommand('Close_and_Convert') btnCancel.setActionCommand('Cancel') for ctrl in (btnSelectConv, btnNoConverter, btnOK, btnCancel): ctrl.addActionListener(self.evtHandler) self.radiosScopeFont = [ dutil.RadioTuple(self.optScopeFontWestern, 'Western'), dutil.RadioTuple(self.optScopeFontComplex, 'Complex'), dutil.RadioTuple(self.optScopeFontAsian, 'Asian')] self.radiosTargetFont = [ dutil.RadioTuple(self.optTargetFontWestern, 'Western'), dutil.RadioTuple(self.optTargetFontComplex, 'Complex'), dutil.RadioTuple(self.optTargetFontAsian, 'Asian')] self.radiosWhichScope = [ dutil.RadioTuple(self.optScopeWholeDoc, 'WholeDoc'), dutil.RadioTuple(self.optScopeSelection, 'Selection'), dutil.RadioTuple(self.optScopeFont, 'Font')] self.radiosWhichTarget = [ dutil.RadioTuple(self.optTargetNoChange, 'NoChange'), dutil.RadioTuple(self.optTargetFont, 'Font')] self.combos = None