/*************************************************************************************
 * Copyright (c) 2004 Actuate Corporation and others.
 * 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 implementation.
 ************************************************************************************/

package org.eclipse.birt.report;

import org.eclipse.birt.report.engine.api.HTMLRenderOption;

public interface IBirtConstants
{

	// Oprand Name Value pair: Names
	public static final String OPRAND_PAGENO = "page"; //$NON-NLS-1$
	public static final String OPRAND_BOOKMARK = "bookmark"; //$NON-NLS-1$
	public static final String OPRAND_TOC = "isToc"; //$NON-NLS-1$
	public static final String OPRAND_SVG = "svg"; //$NON-NLS-1$
	public static final String OPRAND_PARAM = "param"; //$NON-NLS-1$
	public static final String OPRAND_IID = "iid"; //$NON-NLS-1$
	public static final String OPRAND_TASKID = "taskid"; //$NON-NLS-1$
	
	public static final String MIME_TYPE = "text/xml"; //$NON-NLS-1$
	public static final String HTML_RENDER_FORMAT = HTMLRenderOption.OUTPUT_FORMAT_HTML;
	public static final String PDF_RENDER_FORMAT = HTMLRenderOption.OUTPUT_FORMAT_PDF;
	public static final String POSTSCRIPT_RENDER_FORMAT = "postscript"; //$NON-NLS-1$
	
	// Servlet path for parameter model.
	public static final String SERVLET_PATH_PARAMETER = "/parameter"; //$NON-NLS-1$

	// Servlet path for preview model.
	public static final String SERVLET_PATH_PREVIEW = "/preview"; //$NON-NLS-1$

	// Servlet path for frameset model.
	public static final String SERVLET_PATH_FRAMESET = "/frameset"; //$NON-NLS-1$

	// Servlet path for running model.
	public static final String SERVLET_PATH_RUN = "/run"; //$NON-NLS-1$

	// Servlet path for download model.
	public static final String SERVLET_PATH_DOWNLOAD = "/download"; //$NON-NLS-1$

	// parameter viewer model.
	public static final String VIEWER_PARAMETER = "parameter"; //$NON-NLS-1$

	// frameset viewer model.
	public static final String VIEWER_FRAMESET = "frameset"; //$NON-NLS-1$

	// run viewer model.
	public static final String VIEWER_RUN = "run"; //$NON-NLS-1$
	
	// preview viewer model.
	public static final String VIEWER_PREVIEW = "preview"; //$NON-NLS-1$

	// request GET method.
	public static final String REQUEST_GET = "get"; //$NON-NLS-1$

	// request POST method.
	public static final String REQUEST_POST = "post"; //$NON-NLS-1$

	// suffix of design file
	public static final String SUFFIX_DESIGN_FILE = "rptdesign"; //$NON-NLS-1$

	// suffix of template file
	public static final String SUFFIX_TEMPLATE_FILE = "rpttemplate"; //$NON-NLS-1$

	// suffix of library file
	public static final String SUFFIX_LIBRARY_FILE = "rptlibrary"; //$NON-NLS-1$

	// suffix of design document file
	public static final String SUFFIX_DESIGN_DOCUMENT = "rptdocument"; //$NON-NLS-1$

	// suffix of design config file
	public static final String SUFFIX_DESIGN_CONFIG = "rptconfig"; //$NON-NLS-1$
	
	// Attribute Bean
	public static final String ATTRIBUTE_BEAN = "attributeBean"; //$NON-NLS-1$
	
	// If Cascade parameter
	public static final String IS_CASCADE = "isCascade"; //$NON-NLS-1$
	
	// Property -- type
	public static final String PROP_TYPE = "type"; //$NON-NLS-1$
	
	// Property -- value expression
	public static final String PROP_EXPR = "expr"; //$NON-NLS-1$	
	
	// Task Map
	public static final String TASK_MAP = "tasks"; //$NON-NLS-1$
	
	// default value of viewer settings
	public static final String DEFAULT_VIEWER_CONFIG_FILE = "WEB-INF/viewer.properties"; //$NON-NLS-1$
	public static final String DEFAULT_DOCUMENT_FOLDER = "documents";//$NON-NLS-1$
	public static final String DEFAULT_IMAGE_FOLDER = "report/images"; //$NON-NLS-1$
	public static final String DEFAULT_LOGS_FOLDER = "logs"; //$NON-NLS-1$
	public static final String DEFAULT_SCRIPTLIB_FOLDER = "scriptlib"; //$NON-NLS-1$
	
	// Open type
	public static final String OPEN_TYPE_INLINE = "inline"; //$NON-NLS-1$
	public static final String OPEN_TYPE_ATTACHMENT = "attachment"; //$NON-NLS-1$
	
	// Action name
	public static final String ACTION_PRINT = "print"; //$NON-NLS-1$
	
	// Message type
	public static final String MSG_ERROR = "error"; //$NON-NLS-1$
	public static final String MSG_COMPLETE = "complete"; //$NON-NLS-1$
	
	// Flag
	public static final String VAR_ON = "ON"; //$NON-NLS-1$
	public static final String VAR_OFF = "OFF"; //$NON-NLS-1$
}
@@ -1484,24 +1484,93 @@
 $NON-NLS-1$%0A
+%09public static final String DOC_RENDER_FORMAT = %22doc%22; //$NON-NLS-1$%0A
 %09%0A%09// Servle

Add a constant for DOC format for fixing bug 180435