net.sf.jasperreports.engine.export.oasis.StyleBuilder Maven / Gradle / Ivy
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* JasperReports is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* JasperReports is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with JasperReports. If not, see .
*/
/*
* Special thanks to Google 'Summer of Code 2005' program for supporting this development
*
* Contributors:
* Majid Ali Khan - [email protected]
* Frank Sch�nheit - [email protected]
*/
package net.sf.jasperreports.engine.export.oasis;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.PrintPageFormat;
import net.sf.jasperreports.engine.base.JRBasePrintText;
import net.sf.jasperreports.engine.export.LengthUtil;
/**
* @author Teodor Danciu ([email protected])
*/
public class StyleBuilder
{
/**
*
*/
private WriterHelper writer;
/**
*
*/
public StyleBuilder(WriterHelper writer)
{
this.writer = writer;
}
/**
*
*/
public void buildBeforeAutomaticStyles(JasperPrint jasperPrint)
{
writer.write("\n");
writer.write("\n");
writer.write(" \n");
writer.write("");
writer.write(" \n");
writer.write(" \n");
writer.write(" \n");
}
/**
*
*/
public void buildPageLayout(int pageFormatIndex, PrintPageFormat pageFormat)
{
writer.write("\n");
writer.write(" \n");
writer.write(" \n");
}
/**
*
*/
public void buildMasterPages(int pageFormatCount)
{
writer.write(" \n");
writer.write(" \n");
for (int i = 0; i <= pageFormatCount; i++)
{
writer.write(" \n");
}
writer.write(" \n");
writer.write(" \n");
}
}