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:
parent
6a864bb44c
commit
c71b782345
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user