﻿if (!Poseidon.Controls.Print.Module) {
    Poseidon.Controls.Print.Module = {};
}

Poseidon.Controls.Print.Module.DefaultPage = Ext.extend(Ext.Container, {
    style: 'margin: 0 auto; background-color: #ffffff; position: relative; border: 1px solid #000000;',

    layout: 'absolute',

    stretch: this.stretch || false,

    paper_size: this.paper_size || 'A4',

    moduleType: 'default_page',

    getObject: function () {
        return {
            "module_id": this.module_id,
            "module_name": this.module_name,
            "paper_size": this.paper_size,
            "width": this.width,
            "height": this.height,
            "page_width": this.page_width,
            "page_height": this.page_height
        };
    },

    z_index: this.z_index || 100,

    getModuleType: function () {
        return this.moduleType;
    }
});
