@classmethod
def register(kls, settingskls, posn=None):
    """Register a settings object with the stylesheet.
        This settings object is copied for each new document.
        """
    if posn is None:
        kls.registeredsettings.append(settingskls)
    else:
        kls.registeredsettings.insert(posn, settingskls)
