Logo Search packages:      
Sourcecode: calibre version File versions

calibre::ebooks::lrf::pylrs::pylrs::Book Class Reference

Inheritance diagram for calibre::ebooks::lrf::pylrs::pylrs::Book:

calibre::ebooks::lrf::pylrs::pylrs::Delegator

List of all members.


Detailed Description

    Main class for any lrs or lrf.  All objects must be appended to
    the Book class in some way or another in order to be rendered as
    an LRS or LRF file.

    The following settings are available on the contructor of Book:

    author="book author" or author=("book author", "sort as")
    Author of the book.

    title="book title" or title=("book title", "sort as")
    Title of the book.

    sourceencoding="codec"
    Gives the assumed encoding for all non-unicode strings.


    thumbnail="thumbnail file name"
    A small (80x80?) graphics file with a thumbnail of the book's cover.

    bookid="book id"
    A unique id for the book.

    textstyledefault=<dictionary of settings>
    Sets the default values for all TextStyles.

    pagetstyledefault=<dictionary of settings>
    Sets the default values for all PageStyles.

    blockstyledefault=<dictionary of settings>
    Sets the default values for all BlockStyles.

    booksetting=BookSetting()
    Override the default BookSetting.

    setdefault=StyleDefault()
    Override the default SetDefault.

    There are several other settings -- see the BookInfo class for more.

Definition at line 366 of file pylrs.py.


Public Member Functions

def __init__
def __init__
def append
def appendDelegates
def appendReferencedObjects
def applySetting
def applySettings
def create_block_style
def create_page
def create_page_style
def create_text_block
def create_text_style
def embed_font
def getMethods
def getSettings
def last_page
def pages
def rationalize_font_sizes
def render
def renderLrf
def renderLrs
def set_author
def set_title
def toElement
def toLrf
def toLrfDelegates

Public Attributes

 allow_new_page
 defaultBlockStyle
 defaultPageStyle
 defaultTextStyle
 delegatedMethods
 delegates
 gc_count
 optimizeCompression
 optimizeTags
 parent
 sourceencoding

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index