* src/Report.py: Clean up the split into BareReportDialog and
ReportDialog classes. * src/Plugins.py: Enable book item registration. * src/plugins/BookReport.py: lots of changes -- trying to get it work. * src/plugins/FtmStyleDescendants.py: book item functionality. svn: r1671
This commit is contained in:
@@ -78,6 +78,7 @@ _loaddir = []
|
||||
_textdoc = []
|
||||
_drawdoc = []
|
||||
_failmsg = []
|
||||
_bkitems = []
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -514,6 +515,20 @@ def relationship_function():
|
||||
global _relcalc_task
|
||||
return _relcalc_task
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Book item registration
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def register_book_item(name,category,options_dialog,write_book_item,get_options,get_style):
|
||||
"""Register a book item"""
|
||||
|
||||
for n in _bkitems:
|
||||
if n[0] == name:
|
||||
return
|
||||
_bkitems.append((name,category,options_dialog,write_book_item,get_options,get_style))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Image attributes
|
||||
|
Reference in New Issue
Block a user