Bug 307321 BIRT Column page breaks do not respect page variables
When using an onPageEnd event to increment a page variable and a column page break on a table the html viewer recognizes the updated variable but if you export it to pdf the variable is not updated for every other page. See attached example.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/HTMLLayoutContext.java
/***********************************************************************
 * Copyright (c) 2004, 2007 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Actuate Corporation - initial API and implementation
 ***********************************************************************/
package org.eclipse.birt.report.engine.layout.html;
import org.eclipse.birt.report.engine.layout.html.buffer.IPageBuffer;
import org.eclipse.birt.report.engine.layout.html.buffer.PageBufferFactory;
public class HTMLLayoutContext
{
	protected String masterPage = null;
	protected boolean allowPageBreak = true;
	protected boolean finished;
	
	protected long pageNumber = 1;
	protected long pageCount = 1;
	protected HTMLReportLayoutEngine engine;
	protected HTMLLayoutPageHintManager pageHintMgr = new HTMLLayoutPageHintManager( this );
	protected IPageBuffer bufferMgr;