// 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.FixedText = (function(superClass) {
  extend(FixedText, superClass);

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

  FixedText.getName = function() {
    return "fixed_text";
  };

  FixedText.prototype.__renderPdfContent = function() {
    var data, span, text;
    data = this.getData();
    span = CUI.dom.span();
    text = ez5.loca.getBestFrontendValue(data.loca_fixed_text) || ("< " + ($$("pdf-creator.settings.node.fixed-text.empty-text")) + " >");
    CUI.dom.append(span, text);
    return span;
  };

  FixedText.prototype.__getSettingsFields = function() {
    var fields;
    fields = [
      {
        type: CUI.MultiInput,
        form: {
          label: $$("pdf-creator.settings.node.fixed-text.text|label")
        },
        control: ez5.loca.getLanguageControl(),
        name: "loca_fixed_text"
      }
    ];
    return fields;
  };

  FixedText.prototype.__getStyleSettings = function() {
    return ["class-name", "color", "font-size"];
  };

  return FixedText;

})(ez5.PdfCreator.Node.Div);

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