var prtsp_title='', prtsp_dato='', prtsp_scale=0, prtsp_text='', prtsp_paper="A4";
var prtsp_landscape;
var prtsp_mapWidth, prtsp_mapHeight,prtsp_mapLeft, prtsp_mapTop, prtsp_mapZoom;
var prtsp_mapcenterX = -1, prtsp_mapCenterY = -1;

function PrintSetup () {
	prtsp_landscape = true;
	
	this.getTitle = printSetupGetTitle;
	this.getDateStr = printSetupGetDateStr;
	this.getScale = printSetupGetScale;
	this.getRemarkText = printSetupGetRemarkText;
	this.getPaperType = printSetupGetPaperType;
	this.isLandscape = printSetupIsLandscape;
	this.getMapWidthInPixel = printSetupGetMapWidthInPixel;
	this.getMapHeightInPixel = printSetupGetMapHeightInPixel;
	this.getMapZoom = printSetupGetMapZoom;
	this.getMapTopInPixel = printSetUpGetMapTopInPixel;
	this.getMapLeftInPixel = printSetUpGetMapLeftInPixel;
	this.getMapCenter = printSetupGetMapCenter;
	
	this.setTitle = printSetupSetTitle;
	this.setDateStr = printSetupSetDateStr;
	this.setScale = printSetupSetScale;
	this.setRemarkText = printSetupSetRemarkText;
	this.setPaperType = printSetupSetPaperType;
	this.setPaperLandscape = printSetupSetPaperLandscape;
	this.setMapWidthInPixel = printSetupSetMapWidthInPixel;
	this.setMapHeightInPixel = printSetupSetMapHeightInPixel;
	this.setMapZoom = printSetupSetMapZoom;
	this.setMapTopInPixel = printSetUpSetMapTopInPixel;
	this.setMapLeftInPixel = printSetUpSetMapLeftInPixel;
	this.setMapCenter = printSetupSetMapCenter;
	
}

function printSetupGetTitle () {
	return prtsp_title;
}
function printSetupGetDateStr () {
	return prtsp_dato;
}
function printSetupGetScale () {
	return prtsp_scale;
}
function printSetupGetRemarkText () {
	return prtsp_text;
}
function printSetupGetPaperType () {
	return prtsp_paper;
}
function printSetupGetMapWidthInPixel () {
	return prtsp_mapWidth;
}
function printSetupGetMapHeightInPixel () {
	return prtsp_mapHeight;
}
function printSetupGetMapZoom () {
	return prtsp_mapZoom;
}
function printSetUpGetMapTopInPixel () {
	return prtsp_mapTop;
}
function printSetUpGetMapLeftInPixel () {
	return prtsp_mapLeft;
}
function printSetupGetMapCenter() {
	return new Array(prtsp_mapCenterX, prtsp_mapCenterY);
}

function printSetupIsLandscape () {
	return prtsp_landscape;
}

function printSetupSetTitle (title) {
	prtsp_title = title;
}
function printSetupSetDateStr (dato) {
	prtsp_dato = dato;
}
function printSetupSetScale (scale) {
	prtsp_scale = scale;
}
function printSetupSetRemarkText (text) {
	prtsp_text = text;
}
function printSetupSetPaperType (paperType) {
	prtsp_paper = paperType;
}
function printSetupSetPaperLandscape (landscape) {
	prtsp_landscape = landscape;
}
function printSetupSetMapWidthInPixel (mapWidth) {
	prtsp_mapWidth = mapWidth;
}
function printSetupSetMapHeightInPixel (mapHeight) {
	prtsp_mapHeight = mapHeight;
}
function printSetupSetMapZoom (mapZoom) {
	prtsp_mapZoom = mapZoom;
}
function printSetUpSetMapTopInPixel (top) {
	prtsp_mapTop = top;
}
function printSetUpSetMapLeftInPixel (left) {
	prtsp_mapLeft = left;
}
function printSetupSetMapCenter (x, y) {
	prtsp_mapCenterX = x;
	prtsp_mapCenterY = y;
}


