svn: r8445
This commit is contained in:
parent
7b7abd95dd
commit
b884474407
@ -557,14 +557,14 @@ class ParagraphStyle:
|
|||||||
using the values of the source instead of the default values.
|
using the values of the source instead of the default values.
|
||||||
"""
|
"""
|
||||||
if source:
|
if source:
|
||||||
self.font = FontStyle(source.font)
|
self.font = FontStyle(source.font)
|
||||||
self.rmargin = source.rmargin
|
self.rmargin = source.rmargin
|
||||||
self.lmargin = source.lmargin
|
self.lmargin = source.lmargin
|
||||||
self.first_indent = source.first_indent
|
self.first_indent = source.first_indent
|
||||||
self.tmargin = source.tmargin
|
self.tmargin = source.tmargin
|
||||||
self.bmargin = source.bmargin
|
self.bmargin = source.bmargin
|
||||||
self.align = source.align
|
self.align = source.align
|
||||||
self.level = source.level
|
self.level = source.level
|
||||||
self.top_border = source.top_border
|
self.top_border = source.top_border
|
||||||
self.bottom_border = source.bottom_border
|
self.bottom_border = source.bottom_border
|
||||||
self.right_border = source.right_border
|
self.right_border = source.right_border
|
||||||
@ -574,14 +574,14 @@ class ParagraphStyle:
|
|||||||
self.description = source.description
|
self.description = source.description
|
||||||
self.tabs = source.tabs
|
self.tabs = source.tabs
|
||||||
else:
|
else:
|
||||||
self.font = FontStyle()
|
self.font = FontStyle()
|
||||||
self.rmargin = 0
|
self.rmargin = 0
|
||||||
self.lmargin = 0
|
self.lmargin = 0
|
||||||
self.tmargin = 0
|
self.tmargin = 0
|
||||||
self.bmargin = 0
|
self.bmargin = 0
|
||||||
self.first_indent = 0
|
self.first_indent = 0
|
||||||
self.align = PARA_ALIGN_LEFT
|
self.align = PARA_ALIGN_LEFT
|
||||||
self.level = 0
|
self.level = 0
|
||||||
self.top_border = 0
|
self.top_border = 0
|
||||||
self.bottom_border = 0
|
self.bottom_border = 0
|
||||||
self.right_border = 0
|
self.right_border = 0
|
||||||
|
@ -468,7 +468,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
if self.HELP_TOPIC:
|
if self.HELP_TOPIC:
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
GrampsDisplay.help(self.HELP_TOPIC)
|
GrampsDisplay.help(self.HELP_TOPIC)
|
||||||
print "HELP CLICKED"
|
|
||||||
|
|
||||||
def on_ok_clicked(self, obj):
|
def on_ok_clicked(self, obj):
|
||||||
"""The user is satisfied with the dialog choices. Parse all options
|
"""The user is satisfied with the dialog choices. Parse all options
|
||||||
|
@ -88,10 +88,8 @@ class TextBufDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc):
|
|||||||
self.tag_table = gtk.TextTagTable()
|
self.tag_table = gtk.TextTagTable()
|
||||||
|
|
||||||
sheet = self.get_style_sheet()
|
sheet = self.get_style_sheet()
|
||||||
print sheet
|
|
||||||
|
|
||||||
for name in sheet.get_paragraph_style_names():
|
for name in sheet.get_paragraph_style_names():
|
||||||
print name
|
|
||||||
tag = gtk.TextTag(name)
|
tag = gtk.TextTag(name)
|
||||||
|
|
||||||
style = sheet.get_paragraph_style(name)
|
style = sheet.get_paragraph_style(name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user