def __init__(self, session, orientation, layout):
        """Sets up a standard default document."""
        self.session = session
        self.pages = []
        self.fonts = []
        self.fontkeys = []               # array of used fonts

        self.images = []
        self.imagekeys = []
        self.image_filter = None

        self.margins = None
        self.orientation_default = orientation
        self.layout_default = layout
        self.justification = 'left'
        self.double_spacing = None
        self.diffs = []

        self._set_defaults()
def __init__ ( self , session , orientation , layout ) : self . session = session self . pages = [ ] self . fonts = [ ] self . fontkeys = [ ] self . images = [ ] self . imagekeys = [ ] self . image_filter = None self . margins = None self . orientation_default = orientation self . layout_default = layout self . justification = 'left' self . double_spacing = None self . diffs = [ ] self . _set_defaults ( )
Sets up a standard default document.