* src/Plugins.py: Add more values for book item registration.
* src/plugins/FtmStyleDescendants.py: Comply with book changes. * src/plugins/FtmStyleAncestors.py: Likewise. * src/plugins/BookReport.py: Rewrite most of the code using new classes: BookItem, Book, BookList, BookParser, BookListDisplay. Add open/save/edit functionality. * src/plugins/book.glade: Add new dialog for BookListDisplay. Also add a text entry field for saving book and new buttons: Open, Edit, Save. svn: r1706
This commit is contained in:
@@ -523,13 +523,13 @@ def relationship_function():
|
||||
# Book item registration
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def register_book_item(name,category,options_dialog,write_book_item,options,style):
|
||||
def register_book_item(name,category,options_dialog,write_book_item,options,style_name,style_file,make_default_style):
|
||||
"""Register a book item"""
|
||||
|
||||
for n in _bkitems:
|
||||
if n[0] == name:
|
||||
return
|
||||
_bkitems.append((name,category,options_dialog,write_book_item,options,style))
|
||||
_bkitems.append((name,category,options_dialog,write_book_item,options,style_name,style_file,make_default_style))
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user