# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageElementContainerBase(Sort, ContainerCopy, PageElementContainer, ObjectContainerBase):
#     """
#     *Element container*
#     
#     - stored in database
#     - handles page elements
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
# 
#     Interfaces: ``IContainer, IObject, IPageElement, IPageElementContainer``
#     """
#     implements(IPageElement, IPageElementContainer)


from nive_cms.i18n import _
from nive.definitions import StagPage, StagPageElement, ObjectConf, FieldConf
from nive_cms.baseobjects import PageElementContainerBase
    def GetContainer(self):
        # return the current element container
        return self.parent




#@nive_module
configuration =  ObjectConf(
    id = "box",
    name = _(u"Box"),
    dbparam = "box",
    context = "nive_cms.box.box",
    template = "box.pt",
    selectTag = StagPageElement,
    subtypes = ("nive.definitions.INonContainer",),
    container = True,
    icon = "nive_cms.cmsview:static/images/types/box.png",
    description = _(u"A box is a container to group elements on a page. It can be used as an" 
                    u"advanced styling element for web pages. The box itself only stores a title and styling selector.")
)

# data definition ------------------------------------------------------------------

configuration.data = [
    FieldConf(id="span", datatype="list", size=20, default=u"", listItems=(), 
              name=_(u"Block size"), description=u""),
    FieldConf(id="spanoffset", datatype="list", size=20, default=u"", listItems=(), 
              name=_(u"Block empty offset left"), description=_(u"Please note: The blocksize and offset values added together can not be larger than 12. Adjust both fields accordingly.")),
    FieldConf(id="highlight", datatype="bool", size=2, default=False,  

# Path: nive_cms/i18n.py

# 
# Path: nive_cms/baseobjects.py
# class PageElementContainerBase(Sort, ContainerCopy, PageElementContainer, ObjectContainerBase):
#     """
#     *Element container*
#     
#     - stored in database
#     - handles page elements
#     - supports paste of elements and pages
#     - contained pages and elements are sortable 
# 
#     Interfaces: ``IContainer, IObject, IPageElement, IPageElementContainer``
#     """
#     implements(IPageElement, IPageElementContainer)


# Path: nive_cms/box.py
from nive_cms.i18n import _
from nive.definitions import StagPage, StagPageElement, ObjectConf, FieldConf
from nive_cms.baseobjects import PageElementContainerBase

    def GetContainer(self):
        # return the current element container
        return self.parent




#@nive_module
configuration =  ObjectConf(
    id = "box",
    name = _(u"Box"),
    dbparam = "box",
    context = "nive_cms.box.box",
    template = "box.pt",
    selectTag = StagPageElement,
    subtypes = ("nive.definitions.INonContainer",),
    container = True,
    icon = "nive_cms.cmsview:static/images/types/box.png",
    description = _(u"A box is a container to group elements on a page. It can be used as an" 
                    u"advanced styling element for web pages. The box itself only stores a title and styling selector.")
)

# data definition ------------------------------------------------------------------

configuration.data = [
    FieldConf(id="span", datatype="list", size=20, default=u"", listItems=(), 
              name=_(u"Block size"), description=u""),
    FieldConf(id="spanoffset", datatype="list", size=20, default=u"", listItems=(), 
              name=_(u"Block empty offset left"), description=_(u"Please note: The blocksize and offset values added together can not be larger than 12. Adjust both fields accordingly.")),
    FieldConf(id="highlight", datatype="bool", size=2, default=False,  

              name=_(u"Highlight box contents"), description=_(u"This option will add a colored background to highlight the box and its contents.")),