Remove "self.font" and "self.media_list" from the BaseDoc interface as they are only common to a couple of formats.

svn: r8342
This commit is contained in:
Brian Matherly 2007-04-01 04:21:44 +00:00
parent 6a864bb44c
commit c71b782345
5 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2007-03-31 Brian Matherly <brian@gramps-project.org>
* src/BaseDoc.py:
* src/docgen/AbiWord2Doc.py:
* src/docgen/ODFDoc.py:
* src/OpenOfficeDoc.py:
Remove "self.font" and "self.media_list" from the BaseDoc interface as they
are only common to a couple of formats.
2007-03-31 Brian Matherly <brian@gramps-project.org>
* src/docgen/AbiWord2Doc.py: Fix PaperStyle typos.

View File

@ -1243,12 +1243,10 @@ class BaseDoc:
self.title = ""
self.draw_styles = {}
self.font = FontStyle()
self.style_list = styles.get_styles()
self.table_styles = {}
self.cell_styles = {}
self.name = ""
self.media_list = []
self.print_req = 0
self.init_called = False

View File

@ -58,6 +58,7 @@ class AbiWordDoc(BaseDoc.BaseDoc):
"""Initializes the AbiWordDoc class, calling the __init__ routine
of the parent BaseDoc class"""
BaseDoc.BaseDoc.__init__(self,styles,type,template)
self.media_list = []
self.f = None
self.level = 0
self.new_page = 0

View File

@ -76,6 +76,7 @@ class ODFDoc(BaseDoc.BaseDoc):
def __init__(self,styles,type,template):
BaseDoc.BaseDoc.__init__(self,styles,type,template)
self.media_list = []
self.cntnt = None
self.filename = None
self.level = 0

View File

@ -72,6 +72,7 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
def __init__(self,styles,type,template):
BaseDoc.BaseDoc.__init__(self,styles,type,template)
self.media_list = []
self.cntnt = None
self.filename = None
self.level = 0