def configs(self): config = Config() config.AltFont = "Arial" config.AltFontSize = 13 config.Created = "2015-06-15 13:06:35" config.Creator = "Mark Summerfield" config.Indent = IndentKind.FOUR_SPACES config.Title = '<span style="font-size: 14pt;">Index</span>' config.Note = "Note" config.Language = LanguageKind.AMERICAN config.MonoFont = "DejaVu Sans Mono" config.MonoFontSize = 12 config.MonoFontAsStrikeout = False config.Opened = 139 config.See = "<i>see</i> " config.SeeAlso = "<i>see also</i> " config.SeeAlsoPosition = SeeAlsoPositionKind.AFTER_PAGES config.SeeAlsoPrefix = ". " config.SeeAlsoSeparator = "; " config.SeeAlsoSuffix = "" config.SeePrefix = ". " config.SeeSeparator = "; " config.SeeSuffix = "" config.GenericConjunction = " and " config.SubSee = "<i>see</i> " config.SubSeeAlso = "<i>see also</i> " config.SubSeeAlsoPosition = SeeAlsoPositionKind.AFTER_PAGES config.SubSeeAlsoPrefix = ". " config.SubSeeAlsoSeparator = "; " config.SubSeeAlsoSuffix = "" config.SubSeePrefix = ". " config.SubSeeSeparator = "; " config.SubSeeSuffix = "" config.StdFont = "Times New Roman" config.StdFontSize = 13 config.TermPagesSeparator = ", " config.SortAsRules = "wordByWordCMS16" config.Updated = "2015-06-22 10:01:37" config.Worktime = 7325 config.XRefToSubentry = XRefToSubentryKind.COLON config.SectionPreLines = 1 config.SectionPostLines = 1 config.SectionTitles = True config.SectionSpecialTitle = """<span style="font-size: \ 10pt; font-family: 'Arial';"><b>Symbols & Numbers</b>""" config.Style = StyleKind.INDENTED config.RunInSeparator = "; " return config
def _acceptConfig(self): model = self.state.model config = Config() config.Title = self.generalOutputPanel.titleTextEdit.toHtml() config.Note = self.generalOutputPanel.noteTextEdit.toHtml() config.SectionPreLines = ( self.generalOutputPanel.blankBeforeSpinBox.value()) config.SectionPostLines = ( self.generalOutputPanel.blankAfterSpinBox.value()) config.SectionTitles = ( self.generalOutputPanel.sectionTitlesCheckBox.isChecked()) config.MonoFontAsStrikeout = ( self.generalOutputPanel.monoFontAsStrikeoutCheckbox.isChecked()) index = self.generalOutputPanel.styleComboBox.currentIndex() config.Style = StyleKind( self.generalOutputPanel.styleComboBox.itemData(index)) config.RunInSeparator = ( self.generalOutputPanel.runInSepTextEdit.toHtml()) config.SectionSpecialTitle = ( self.generalOutputPanel.sectionSpecialTitleTextEdit.toHtml()) config.TermPagesSeparator = ( self.generalOutputPanel.termPagesSepTextEdit.toHtml()) config.SeePrefix = ( self.entryXRefOutputPanel.seePrefixTextEdit.toHtml()) config.See = self.entryXRefOutputPanel.seeTextEdit.toHtml() config.SeeSeparator = ( self.entryXRefOutputPanel.seeSepTextEdit.toHtml()) config.SeeSuffix = ( self.entryXRefOutputPanel.seeSuffixTextEdit.toHtml()) config.SeeAlsoPrefix = ( self.entryXRefOutputPanel.seeAlsoPrefixTextEdit.toHtml()) config.SeeAlso = self.entryXRefOutputPanel.seeAlsoTextEdit.toHtml() config.SeeAlsoSeparator = ( self.entryXRefOutputPanel.seeAlsoSepTextEdit.toHtml()) config.SeeAlsoSuffix = ( self.entryXRefOutputPanel.seeAlsoSuffixTextEdit.toHtml()) index = ( self.entryXRefOutputPanel.seeAlsoPositionComboBox.currentIndex()) config.SeeAlsoPosition = ( self.entryXRefOutputPanel.seeAlsoPositionComboBox.itemData(index)) config.GenericConjunction = ( self.entryXRefOutputPanel.genericConjunctionTextEdit.toHtml()) index = ( self.entryXRefOutputPanel.xrefToSubentryComboBox.currentIndex()) config.XRefToSubentry = ( self.entryXRefOutputPanel.xrefToSubentryComboBox.itemData(index)) config.SubSeePrefix = ( self.subentryXRefOutputPanel.seePrefixTextEdit.toHtml()) config.SubSee = self.subentryXRefOutputPanel.seeTextEdit.toHtml() config.SubSeeSeparator = ( self.subentryXRefOutputPanel.seeSepTextEdit.toHtml()) config.SubSeeSuffix = ( self.subentryXRefOutputPanel.seeSuffixTextEdit.toHtml()) config.SubSeeAlsoPrefix = ( self.subentryXRefOutputPanel.seeAlsoPrefixTextEdit.toHtml()) config.SubSeeAlso = ( self.subentryXRefOutputPanel.seeAlsoTextEdit.toHtml()) config.SubSeeAlsoSeparator = ( self.subentryXRefOutputPanel.seeAlsoSepTextEdit.toHtml()) config.SubSeeAlsoSuffix = ( self.subentryXRefOutputPanel.seeAlsoSuffixTextEdit.toHtml()) index = (self.subentryXRefOutputPanel.seeAlsoPositionComboBox. currentIndex()) config.SubSeeAlsoPosition = (self.subentryXRefOutputPanel. seeAlsoPositionComboBox.itemData(index)) model.setConfigs(config)