// Generated by CoffeeScript 1.12.7
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  hasProp = {}.hasOwnProperty;

ez5.PdfCreator.Node.Div = (function(superClass) {
  extend(Div, superClass);

  function Div() {
    return Div.__super__.constructor.apply(this, arguments);
  }

  Div.getName = function() {
    return "div";
  };

  Div.prototype.__renderPdfContent = function(opts) {
    var div, i, len, node, ref;
    div = CUI.dom.div();
    if (!this.children) {
      return div;
    }
    ref = this.children;
    for (i = 0, len = ref.length; i < len; i++) {
      node = ref[i];
      CUI.dom.append(div, node.renderPdfContent(opts));
    }
    return div;
  };

  Div.prototype.__getStyleSettings = function() {
    return ["class-name", "height", "width", "display", "background", "font-size", "color", "position-absolute", "top", "bottom", "left", "right", "margin-top", "margin-bottom", "margin-left", "margin-right", "padding-top", "padding-bottom", "padding-left", "padding-right", "border-top", "border-bottom", "border-left", "border-right"];
  };

  return Div;

})(ez5.PdfCreator.Node);

ez5.PdfCreator.plugins.registerPlugin(ez5.PdfCreator.Node.Div);
