svn commit: r825391 [15/18] - in /ofbiz/branches/addBirt/framework: base/config/ webapp/lib/ webapp/src/org/ofbiz/webapp/control/ webtools/ webtools/config/ webtools/data/helpdata/ webtools/servicedef/ webtools/src/org/ofbiz/birt/ webtools/src/org/ofbi...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r825391 [15/18] - in /ofbiz/branches/addBirt/framework: base/config/ webapp/lib/ webapp/src/org/ofbiz/webapp/control/ webtools/ webtools/config/ webtools/data/helpdata/ webtools/servicedef/ webtools/src/org/ofbiz/birt/ webtools/src/org/ofbi...

hansbak-2
Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js Thu Oct 15 04:48:28 2009
@@ -0,0 +1,854 @@
+/******************************************************************************
+ * Copyright (c) 2004-2008 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.
+ *****************************************************************************/
+
+/**
+ * All shared utility functions should be put here.
+ */
+
+BirtUtility = function( ) { };
+
+BirtUtility.prototype =
+{
+ /**
+ * The input control to save 'taskid'
+ */
+ __task_id : 'taskid',
+
+ /**
+ * URL parameter to indicate the client DPI setting
+ */
+ __PARAM_DPI : '__dpi',
+
+ /**
+ * @returns true if left button was pressed
+ */
+ isLeftButton : function( event )
+ {
+ return Event.isLeftClick( event ); //prototype library function
+ },
+
+ /**
+ * Recursively removes all element child nodes
+ * @param element DOM element
+ */
+ removeChildren : function( element )
+ {
+ while( element.childNodes.length > 0 )
+ {
+ if( element.firstChild.childNodes.length > 0 )
+ {
+ this.removeChildren( element.firstChild );
+ }
+ element.removeChild( element.firstChild );
+ }
+ },
+
+ haveTagName : function( domTree, tag )
+ {
+ return ( ( domTree.getElementsByTagName( tag ).length == 0 ) ? false : true );
+ },
+
+ /**
+ * It returns the data value of a single DOM leaf node
+ */
+ getDataReponseLeaf : function( leaf )
+ {
+ return( leaf[0].firstChild.data );
+ },
+
+ /**
+ * It is constructor function for creating object based on the leaf node of SOAP response DOM tree
+ * The idea is from the Element function of WRScrollLayout.js
+ * @param it - leaf node of SOAP response DOM tree
+ * @returns object that consists of content of the input "item"
+ */
+ extractResponseLeaf : function( item, newObject )
+ {
+ var children = item.childNodes;
+ var size = children.length;
+ for( var i = 0; i < size; i++ )
+ {
+ if( children[i].nodeType == "1" )
+ {
+ var childi = children[i];
+ var nName = children[i].nodeName;
+ var nData = null;
+ if( children[i].firstChild && children[i].firstChild.data )
+ {
+ nData = children[i].firstChild.data;
+ }
+ newObject[ nName ] = nData;
+ }
+ }
+ },
+
+ /**
+ * It is recursive function to find all text contents under a DOM node.
+ * @param node - root node of the DOM tree. We traverse recursively from here.
+ * @param resultArray - The result are stored in this array during tree traversal.
+ * @returns void
+ */
+ findAllTextchild : function( node, resultArray )
+ {
+ if ( node.nodeType == 3 )
+ {
+ // Text node
+ resultArray[ resultArray.length ] = node.data;
+ }
+ else
+ {
+ // Recursively traverse the tree
+ var kids = node.childNodes;
+ for ( var i = 0; i < node.childNodes.length; i++ )
+ {
+ this.findAllTextchild( kids[i], resultArray );
+ }
+ }
+ },
+
+ setTextContent : function( node, textString )
+ {
+
+ if ( node.textContent != undefined )
+ {
+ // For example, Firefox.
+ node.textContent = textString;
+ }
+ else if ( node.innerText != undefined )
+ {
+ // For example, IE.
+ node.innerText = textString;
+ }
+ },
+
+ /**
+ * Fire a simulated mouse event on an html element
+ * @param element html element to fire event on
+ * @param eventName - name of mouse event such as 'click' or 'mousedown'
+ * @param ctrlKey - optional,if present, event will be fired with control key pressed
+ */
+ fireMouseEvent : function( element, eventName, ctrlKey )
+ {
+ var evt;
+ var ctrl = ctrlKey || false;
+ if( element.fireEvent )
+ {
+ evt = document.createEventObject( );
+ evt.ctrlKey = ctrl;
+ evt.button = 1;
+ element.fireEvent( "on" + eventName, evt );
+ }
+ else if( element.dispatchEvent )
+ {
+ evt = document.createEvent( "MouseEvents" );
+ evt.initMouseEvent( eventName, false,
+ true, undefined, undefined,
+ 0, 0, 0, 0,
+ ctrl,
+ false,
+ false, false, 1,
+ undefined );
+ element.dispatchEvent( evt );
+ }
+ else
+ {
+ return null;
+ }
+ return evt;
+ },
+
+ /**
+ @returns boolean true if checked, false otherwise
+ */
+ setCheckBoxChecked : function( checkbox, checked )
+ {
+ // Both IE and Firefox have defaultChecked property. But they use it differently.
+ // On Firefox, the GUI box is checked when checkbox.checked is true.
+ // It is not true for IE. On IE, we also need to set checkbox.defaultChecked.
+ // I guess when the checkbox is FIRST shown, IE uses checkbox.defaultChecked to determine the GUI.
+ checkbox.defaultChecked = checked;
+ checkbox.checked = checked;
+ return checked;
+ },
+
+ /**
+ * Get a parameter specified in the URL. For example, if a URL is
+ * http://localhost:8080/iportal/wr?__report=/16.webrptdesign&iPortalID=YPTDAGCNPOYSOS
+ * getURLParameter(iPortalID) will return &iPortalID=YPTDAGCNPOYSOS
+ */
+ getURLParameter: function ( url, parameterName )
+ {
+ var paramString = "";
+ var paramStartIndex = url.indexOf( parameterName );
+ var equalSign = url.charAt(paramStartIndex + parameterName.length);
+
+ if ( paramStartIndex >= 0 && ( equalSign == "=" || equalSign == "&" ) )
+ {
+ var paramEndIndex = url.indexOf( "&", paramStartIndex );
+ if ( paramEndIndex >= 0 )
+ {
+ paramString = "&" + url.substring( paramStartIndex, paramEndIndex );
+ }
+ else
+ {
+ paramString = "&" + url.substring( paramStartIndex ); // get the substring till the end.
+ }
+ }
+ return paramString;
+ },
+
+ /**
+ * Adds a parameter to a given URL.
+ */
+ addURLParameter : function ( url, parameterName, parameterValue )
+ {
+ var paramPart = encodeURI(parameterName) + "=" + encodeURI(parameterValue)
+ var lastChar = url.charAt(url.length - 1);
+ if ( lastChar != "&" && lastChar != "?" )
+ {
+ if ( url.indexOf("?") > 0 )
+ {
+ paramPart = "&" + paramPart;
+ }
+ else
+ {
+ paramPart += "?" + paramPart;
+ }
+ }
+
+ var anchorPos = url.lastIndexOf("#");
+ if ( anchorPos >= 0 )
+ {
+ // insert the param part before the anchor
+ url = url.substr(url, anchorPos - 1) + paramPart + url.substr(anchorPos);
+ }
+ else
+ {
+ url += paramPart;
+ }
+ return url;
+ },
+
+ /**
+ * Deletes a parameter specified in the given URL.
+ * If for example the given URL is the following http://localhost/myUrl?param1=2&param2=3&param3=4
+ * and the value of parameterName is "param2", the resulting URL will be:
+ * http://localhost/myUrl?param1=2&param3=4
+ * @param url url to process
+ * @param parameterName parameter to remove
+ * @return processed url
+ */
+ deleteURLParameter : function(url, parameterName )
+ {
+ var reg = new RegExp( "([&|?]{1})" + escape(encodeURIComponent(parameterName)) + "\s*=[^&|^#]*", "gi" );
+ return url.replace( reg, "$1");
+ },
+
+ /**
+ * Removes the URL anchor.
+ */
+ deleteURLAnchor : function(url)
+ {
+ return url.replace( /#[a-zA-Z0-9\-_\$]*$/, "" );
+ },
+
+ /**
+ * Creates a hidden input form field.
+ * @param formObj form object
+ * @param paramName parameter name
+ * @param paramValue parameter value
+ * @return the newly created input element
+ */
+ addHiddenFormField : function(formObj, paramName, paramValue)
+ {
+ var param = document.createElement( "INPUT" );
+ formObj.appendChild( param );
+ param.TYPE = "HIDDEN";
+ param.name = paramName;
+ param.value = paramValue;
+ return param;
+ },
+
+ /**
+ * Insert a string into the cursor position of a textarea.<b>
+ * textarea: DOM element of textarea to be inserted.
+ * string: string to be inserted into the textarea.
+ */
+ insertStringCursorPosTextarea: function( textarea, string )
+ {
+ if ( textarea.selectionStart != undefined )
+ {
+ // Firefox
+ var startPos = textarea.selectionStart;
+ var endPos = textarea.selectionEnd;
+ textarea.value = textarea.value.substring( 0, startPos )+ string + textarea.value.substring( endPos, textarea.value.length );
+ }
+ else
+ {
+ // IE
+ textarea.focus();
+ var range = document.selection.createRange();
+ range.text = string;
+ }
+ },
+
+ /**
+ * Insert a string into the specified position of a textarea.<b>
+ * textarea: DOM element of textarea to be inserted.
+ * pos: For Firefox, it is an integer. For IE, it is an TextRange object.
+ * string: string to be inserted into the textarea.
+ */
+ insertStringTextarea: function( textarea, pos, string )
+ {
+ if ( textarea.selectionStart != undefined )
+ {
+ // Firefox
+
+ if ( pos == undefined || pos == null )
+ pos = 0;
+
+ textarea.value = textarea.value.substring( 0, pos )+ string + textarea.value.substring( pos, textarea.value.length );
+ }
+ else
+ {
+ // IE
+
+ textarea.focus( );
+
+ if (pos == undefined || pos == null )
+ pos = document.selection.createRange();
+
+ pos.text = string;
+ }
+ },
+
+ // get the cursor position of the textarea
+ getCursorPosTextarea: function( textarea )
+ {
+ if ( textarea.selectionStart != undefined )
+ {
+ // Firefox
+ return( textarea.selectionEnd );
+ }
+ else
+ {
+ // IE
+ textarea.focus( );
+ return( document.selection.createRange( ) );
+ }
+ },
+
+ // IE and Firefox behave so differently to insert a string into cursor position of text area.
+ // So, we create this preferred method. This method subsequently call other methods of string insertion based on browser type.
+ preferredInsertStringTextarea: function( textarea, pos, string )
+ {
+ if ( textarea.selectionStart != undefined )
+ {
+ // Firefox
+ this.insertStringCursorPosTextarea( textarea, string );
+ }
+ else
+ {
+ // IE
+ this.insertStringTextarea( textarea, pos, string );
+ }
+ },
+
+ // id: tableId
+ getSelectedTableColumns: function( id )
+ {
+ var handlerObject = ReportComponentIdRegistry.getObjectForId(id);
+ var tableInstance = handlerObject.selectionManager.getTableInstanceById(id);
+ var table = $( id );
+ var iid = table.iid;
+
+ //check that there is at least one column selected
+ var selectedColumns = tableInstance.getRLOrderedSelectedColumns();
+ if( !selectedColumns )
+ {
+ // #IV TODO integrate with IV error handling
+ throw new WRError("WRReportTable", "Must have one or more columns to apply format");
+ }
+
+ return selectedColumns;
+ },
+
+ // trim left blanks
+ ltrim: function ( str )
+ {
+ return str.replace( /^\s*/, '');
+ },
+
+ // trim right blanks
+ rtrim: function ( str )
+ {
+ return str.replace( /\s*$/, '');
+ },
+
+ // trim left and right blanks
+ trim: function ( str )
+ {
+ return this.rtrim( this.ltrim( str ) );
+ },
+
+ // set button if disabled
+ setButtonsDisabled: function ( target, flag )
+ {
+ if ( !target )
+ return;
+
+ var oTarget = $( target );
+ var oIEC;
+
+ if ( oTarget )
+ oIEC = oTarget.getElementsByTagName( "INPUT" );
+
+ if ( oIEC )
+ {
+ for( var i = 0; i < oIEC.length; i++ )
+ {
+ oIEC[i].disabled = flag;
+ }
+ }
+ },
+
+ // set current task id
+ setTaskId: function( id )
+ {
+ var taskid;
+ if( id )
+ {
+ // if pass id
+ taskid = id;
+ }
+ else
+ {
+ // use time stamp
+ var d = new Date( );
+ taskid = d.getFullYear( );
+ taskid += "-" + d.getMonth( );
+ taskid += "-" + d.getDate( );
+ taskid += "-" + d.getHours( );
+ taskid += "-" + d.getMinutes( );
+ taskid += "-" + d.getSeconds( );
+ taskid += "-" + d.getMilliseconds();
+ }
+
+ // find taskid input control
+ var oTaskId = $( this.__task_id );
+ if( oTaskId )
+ oTaskId.value = taskid;
+
+ return taskid;
+ },
+
+ // get current task id
+ getTaskId: function( )
+ {
+ // find taskid input control
+ var oTaskId = $( this.__task_id );
+ if( oTaskId )
+ return this.trim( oTaskId.value );
+
+ return "";
+ },
+
+ // clear current task id
+ clearTaskId: function( )
+ {
+ // find taskid input control
+ var oTaskId = $( this.__task_id );
+ if( oTaskId )
+ oTaskId.value = '';
+ },
+
+ // get current page number
+ getPageNumber: function( )
+ {
+ var oPage = $( 'pageNumber' );
+ var pageNum = 0;
+ if( oPage )
+ pageNum = parseInt( this.trim( oPage.innerHTML ) );
+
+ return pageNum;
+ },
+
+ // get total page number
+ getTotalPageNumber: function( )
+ {
+ var pageNum = 0;
+ var oPage = $( 'totalPage' );
+ if ( oPage )
+ {
+ pageNum = ( oPage.firstChild.data == '+' )? '+' : parseInt( oPage.firstChild.data );
+ }
+
+ return pageNum;
+ },
+
+ /**
+ * Checks the given page range syntax is valid, and if the page exist.
+ * @param range in the format "1-4,6,7"
+ * @return true if the range is correct
+ */
+ checkPageRange: function( range )
+ {
+ if ( !range )
+ {
+ return false;
+ }
+ var myRange = birtUtility.trim(range);
+
+ // check if the range format is correct
+ if ( !myRange.match( /^[0-9]+\s*(-\s*[0-9]+)?(\s*,\s*[0-9]+(-[0-9]+)?)*$/ ) )
+ {
+ return false;
+ }
+
+ var lastPage = this.getTotalPageNumber();
+
+ // split the range parts
+ var parts = myRange.split(",");
+ for ( i = 0; i < parts.length; i++ )
+ {
+ var part = parts[i];
+ var boundaries = part.split("-");
+
+ // page range
+ if ( boundaries.length == 2 )
+ {
+ var pageStart = parseInt( boundaries[0] );
+ var pageEnd = parseInt( boundaries[1] );
+ if ( isNaN( pageStart ) || isNaN( pageEnd )
+ || pageEnd <= pageStart || pageStart < 1 || pageEnd < 1
+ || pageStart > lastPage || pageEnd > lastPage )
+ {
+ return false;
+ }
+ }
+ // single page number
+ else if ( boundaries.length == 1 )
+ {
+ var pageNum = parseInt( boundaries[0] );
+ if ( isNaN( pageNum ) || pageNum < 1 || pageNum > lastPage )
+ {
+ return false;
+ }
+ }
+ // invalid format
+ else
+ {
+ return false;
+ }
+ }
+ return true;
+ },
+
+ /**
+ * Adds the current session id to the given url and returns it.
+ * If a session id already exists in the url, does nothing.
+ * @return processed url
+ */
+ initSessionId : function( url )
+ {
+ // remove existing session id from the URL
+ url = birtUtility.deleteURLParameter(url, Constants.PARAM_SESSION_ID);
+
+ // add session id in SOAP URL
+ if ( Constants.viewingSessionId )
+ {
+ url = birtUtility.addURLParameter( url, Constants.PARAM_SESSION_ID, Constants.viewingSessionId);
+ }
+ return url;
+ },
+
+ /**
+ * Initialize the client DPI setting
+ *
+ * @param, url
+ * @return, string
+ */
+ initDPI : function( url )
+ {
+ var href;
+
+ try
+ {
+ if( url )
+ {
+ href = url;
+ }
+ else
+ {
+ href = document.location.href;
+ }
+
+ var dpi;
+ if( screen.deviceXDPI )
+ dpi = screen.deviceXDPI;
+
+ if( dpi )
+ {
+ var reg = new RegExp( "([&|?]{1}" + this.__PARAM_DPI + "\s*)=([^&|^#]*)", "gi" );
+ if( href.search( reg ) < 0 )
+ href = href + "&" + this.__PARAM_DPI + "=" + dpi;
+ }
+ }
+ catch(e)
+ {}
+
+ return href;
+ },
+
+ /**
+ * Move selected items up
+ */
+ moveSelectedItemsUp : function( list )
+ {
+ if( !list || list.selectedIndex < 0 )
+ return;
+
+ var i = 0;
+ var value = "";
+ var text = "";
+ for( i=0; i<(list.options.length-1); i++ )
+ {
+ if (!list.options[i].selected && list.options[i+1].selected)
+ {
+ value = list.options[i].value;
+ text = list.options[i].text;
+ list.options[i] = new Option(list.options[i+1].text, list.options[i+1].value);
+ list.options[i].selected = true;
+ list.options[i+1] = new Option(text, value);
+ }
+ }
+ },
+
+ /**
+ * Move selected items down
+ */
+ moveSelectedItemsDown : function( list )
+ {
+ if( !list || list.selectedIndex < 0 )
+ return;
+
+ var i = 0;
+ var value = "";
+ var text = "";
+ for( i=list.options.length-1; i>0; i-- )
+ {
+ if (!list.options[i].selected && list.options[i-1].selected)
+ {
+ value = list.options[i].value;
+ text = list.options[i].text;
+ list.options[i] = new Option(list.options[i-1].text, list.options[i-1].value);
+ list.options[i].selected = true;
+ list.options[i-1] = new Option(text, value);
+ }
+ }
+ },
+
+ /**
+ * Formats the given messages by putting the given values in
+ * the placeholders. The placeholder format is {0}, {1}, ...
+ * @param message template text containing placeholders
+ * @param params an array of values to put into the placeholders,
+ * or a single string
+ * @return formatted text
+ */
+ formatMessage : function( message, params )
+ {
+ if ( !message )
+ {
+ return;
+ }
+
+ if ( !params )
+ {
+ return message;
+ }
+
+ if ( !(params.constructor == Array) )
+ {
+ params = new Array(params);
+ }
+
+ for ( i = 0; i < params.length; i++ )
+ {
+ var pattern = new RegExp("\\\{" + i + "\\\}","g");
+ message = message.replace(pattern, params[i]);
+ }
+ return message;
+ },
+
+ /**
+ *  This method is a workaround for a Mozilla/Firefox bug which prevents some HTML
+ * elements to be resized properly when a contained element's "display" style has
+ * been changed.
+ * The refresh is done by moving the element back and forth one pixel.
+ */
+ refreshElement : function( htmlElement )
+ {
+ var currentLeft = parseInt(htmlElement.style.left);
+ var currentTop = parseInt(htmlElement.style.top);
+ // shake it!
+ htmlElement.style.left = (currentLeft - 1) + "px";
+ htmlElement.style.top = (currentTop - 1) + "px";
+ htmlElement.style.left = currentLeft + "px";
+ htmlElement.style.top = currentTop + "px";
+ },
+
+ /**
+ * Do html decode for input string
+ *
+ */
+ htmlDecode : function( str )
+ {
+ if( !str )
+ return null;
+
+ // Replaces all HTML encoded string with original character.
+ str = str.replace( /&#09;/g, "\t" );
+ str = str.replace( /<br>/g, "\n" );
+ str = str.replace( /&#13;/g, "\r" );
+ str = str.replace( /&#32;/g, " " );
+ str = str.replace( /&#34;/g, "\"" );
+ str = str.replace( /&#39;/g, "'" );
+ str = str.replace( /&#60;/g, "<" );
+ str = str.replace( /&#62;/g, ">" );
+ str = str.replace( /&#96;/g, "`" );
+ str = str.replace( /&#38;/g, "&" );
+ str = str.replace( /&#92;/g, "\\" );
+ str = str.replace( /&#47;/g, "/" );
+
+ return str;
+ },
+
+ _TABBABLE_TAGS : new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME", "SELECT"),
+
+ /**
+ * Disables the tab indexs for all the tabbable elements
+ * which are children of the given element.
+ * @param element element
+ */
+ disableTabIndexes : function(element)
+ {
+ for (var j = 0; j < this._TABBABLE_TAGS.length; j++)
+ {
+ var tagElements = element.getElementsByTagName(this._TABBABLE_TAGS[j]);
+ for (var k = 0 ; k < tagElements.length; k++)
+ {
+ var el = tagElements[k];
+ el._tabIndexSaved = el.tabIndex;
+ el.tabIndex="-1";
+ }
+ }
+ },
+
+ /**
+ * Restores the tab indexs for all the tabbable elements
+ * which are children of the given element.
+ * @param element element
+ */
+ restoreTabIndexes : function(element) {
+ for (var j = 0; j < this._TABBABLE_TAGS.length; j++)
+ {
+ var tagElements = element.getElementsByTagName(this._TABBABLE_TAGS[j]);
+ for (var k = 0 ; k < tagElements.length; k++)
+ {
+ var el = tagElements[k];
+ if ( el._tabIndexSaved )
+ {
+ el.tabIndex = el._tabIndexSaved;
+ delete el._tabIndexSaved;
+ }
+ else
+ {
+ el.tabIndex = null;
+ }
+ }
+ }
+ },
+
+
+ /**
+ * Returns the HEAD element of the page.
+ */
+ getHeadElement : function()
+ {
+ if ( !this._headElement )
+ {
+ this._headElement = document.getElementsByTagName("head")[0];
+ }
+ return this._headElement;
+ },
+
+ /**
+ * Adds a style sheet into the managed document.
+ * @param styleContent style sheet content
+ */
+ addStyleSheet : function( styleContent )
+ {
+
+
+ var element = document.createElement("style");
+ element.type = "text/css";
+ if ( element.styleSheet )
+ {
+ element.styleSheet.cssText = styleContent;
+ }
+ else
+ {
+ element.appendChild( document.createTextNode( styleContent ) );
+ }
+ this.getHeadElement().appendChild( element );
+ },
+
+ noComma : "" //just to avoid javascript syntax errors
+}
+
+var birtUtility = new BirtUtility( );
+
+/**
+ * Extend prototype's Event.
+ * TODO: probably need a prototype extension.
+ */
+Event.prototype = Object.extend( Event,
+{
+ /**
+ * Extension to prototype 'Event' since Event.stop(event) isn't
+ * stopping in ie
+ */
+ stop: function( event )
+ {
+ event.cancelBubble = true;
+
+ if ( event.preventDefault )
+ {
+ event.preventDefault( );
+ event.stopPropagation( );
+    }
+    else
+    {
+ event.returnValue = false;
+    }
+ },
+
+ /**
+ * Stops click from propigating without using .bindAsEventListener
+ */
+ colClickStop: function( e )
+ {
+ if (!e) var e = $("Document").contentWindow.event;
+ debug( e.type);
+ Event.stop( e );
+ }
+});
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BirtUtility.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js Thu Oct 15 04:48:28 2009
@@ -0,0 +1,172 @@
+// Copyright 1994-2008, Actuate Software Corp., All rights reserved.
+
+BrowserUtility = Class.create();
+
+BrowserUtility.prototype = {
+
+ initialize: function()
+ {
+ this.isIE = this.__isIE();
+ if ( this.isIE )
+ {
+ this.isIE6 = false;
+ this.isIE7 = false;
+ this.isIE8 = false;
+ if (document.documentMode) {
+ if (document.documentMode >= 8) {
+ this.isIE8 = true;
+ } else if (document.documentMode >= 7) {
+ this.isIE7 = true;
+ } else {
+ this.isIE6 = true;
+ }
+ }
+ else if ( window.XMLHttpRequest )
+ {
+ this.isIE7 = true;
+ }
+ else
+ {
+ this.isIE6 = true;
+ }
+ }
+
+ this.isMozilla = this.__isMozilla();
+ this.isFirefox = this.__isFirefox();
+ this.isGecko = this.__isGecko();
+ this.isSafari = this.__isSafari();
+ this.isKHTML = this.__isKHTML();
+ this.isOpera = this.__isOpera();
+
+ if ( this.isFirefox )
+ {
+ var firefoxVersion = this._getAgentVersion("Firefox");
+ if ( firefoxVersion && firefoxVersion.length > 0 )
+ {
+ if ( firefoxVersion[0] == 2 )
+ {
+ this.isFirefox2 = true;
+ }
+ else if ( firefoxVersion[0] == 3 )
+ {
+ this.isFirefox3 = true;
+ }
+ }
+ }
+ },
+
+ _getAgentVersion : function( agentName )
+ {
+ var re = new RegExp(agentName + "\/([^\s])", "i");
+ var agentVersion = re.exec( navigator.userAgent );
+ if ( agentVersion && agentVersion[1] )
+ {
+ return this._getVersionComponents( agentVersion[1] );
+ }
+ else
+ {
+ return null;
+ }
+ },
+
+ _getVersionComponents : function( versionString )
+ {
+ if ( !versionString )
+ {
+ return null;
+ }
+ return versionString.split(".");
+ },
+
+ __isSafari: function()
+ {
+ return navigator.appVersion.match(/Safari/) != null;
+ },
+
+ __isKHTML: function()
+ {
+ return navigator.appVersion.match(/KHTML/) != null;
+ },
+
+ __isOpera: function()
+ {
+ return navigator.appName.match(/Opera/) != null;
+ },
+
+ __isIE: function()
+ {
+ var userAgent = navigator.userAgent.toLowerCase();
+ var useIFrame;
+ if(userAgent.indexOf('msie') > -1)
+ {
+ //Internet Explorer
+ return true;
+
+ }
+ else
+ {
+ return false;
+ }
+ },
+
+ __isMozilla : function()
+ {
+ var userAgent = navigator.userAgent.toLowerCase();
+ return (userAgent.indexOf('mozilla') > -1);
+ },
+
+ __isFirefox : function()
+ {
+ var userAgent = navigator.userAgent.toLowerCase();
+ return (userAgent.indexOf('firefox') > -1);
+ },
+
+ __isGecko : function()
+ {
+ var userAgent = navigator.userAgent.toLowerCase();
+ return (userAgent.indexOf('gecko') > -1);
+ },
+
+ useIFrame: function()
+ {
+ return this.isIE;
+ },
+
+ _getScrollBarWidth : function(container, viewportWidth, viewportHeight)
+ {
+ var defaultWidth = 20;
+
+ if (this.scrollBarWidth) {
+ return this.scrollBarWidth;
+ }
+ else if (container != null && viewportWidth > 0 && viewportHeight < container.offsetHeight)
+ {
+ var oldWidth = container.style.width;
+ var oldHeight = container.style.height;
+ var oldOverflowX = container.style.overflowX;
+ var oldOverflowY = container.style.overflowY;
+ var oldPosition = container.style.position;
+
+ // Sets report container's styles to calculate scroll bar's width.
+ container.style.width = "";
+ container.style.height = "";
+ container.style.overflowX = "scroll";
+ container.style.overflowY = "hidden";
+ container.style.position = "relative";
+
+ this.scrollBarWidth = viewportWidth - container.offsetWidth;
+ if (this.scrollBarWidth <= 0){
+ this.scrollBarWidth = defaultWidth;
+ }
+
+ // Restors report container's old styles.
+ container.style.width = oldWidth;
+ container.style.height = oldHeight;
+ container.style.overflowX = oldOverflowX;
+ container.style.overflowY = oldOverflowY;
+ container.style.position = oldPosition;
+ return this.scrollBarWidth;
+ }
+ return defaultWidth;
+ }
+}

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/BrowserUtility.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js Thu Oct 15 04:48:28 2009
@@ -0,0 +1,129 @@
+/******************************************************************************
+ * 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.
+ *****************************************************************************/
+
+var Constants = {
+
+ /** id of document managed BirtReportDocument*/
+ documentId: "Document",
+
+ /** element is a UI component managed by BirtReportBase */
+ reportBase: "ReportBase",
+
+ /** element is a table managed by BirtReportTable */
+ reportTable: "ReportTable",
+
+ /** element is a chart managed by BirtReportChart */
+ reportChart: "ReportChart",
+
+ /** element is a document managed BirtReportDocument */
+ isDocument: "isDocument",
+
+ /** contains number of selected column if there is one */
+ selColNum: "SelColNum",
+
+ /** contains number of selected column if there is one */
+ activeIds: "activeIds",
+ activeIdTypes: "activeIdTypes",
+
+ // Report object types.
+ Document : "Document",
+ Table : "Table",
+ Chart : "Chart",
+ Label : "Label",
+ Table_T : "Table_T", // template of table type
+ Chart_T : "Chart_T", // template of chart type
+ Label_T : "Label_T", // template of label type
+
+ // URL parameters name
+ PARAM_ACTION : '__action',
+ PARAM_FORMAT : '__format',
+ PARAM_ASATTACHMENT : '__asattachment',
+ PARAM_OVERWRITE : '__overwrite',
+ PARAM_PAGE : '__page',
+ PARAM_PAGERANGE : '__pagerange',
+ PARAM_PARAMETERPAGE : '__parameterpage',
+ PARAM_BOOKMARK : '__bookmark',
+ PARAM_INSTANCE_ID : '__instanceid',
+ PARAM_SVG : '__svg',
+ PARAM_TASKID : '__taskid',
+ PARAM_ISTOC : '__istoc',
+ PARAM_RESULTSETNAME : '__resultsetname',
+ PARAM_SELECTEDCOLUMNNUMBER : '__selectedcolumnnumber',
+ PARAM_SELECTEDCOLUMN : '__selectedcolumn',
+ PARAM_EXPORT_ENCODING : '__exportencoding',
+ PARAM_SEP : '__sep',
+ PARAM_EXPORT_DATATYPE : '__exportdatatype',
+ PARAM_LOCALENEUTRAL : '__localeneutral',
+ PARAM_DATA_EXTRACT_FORMAT : '__extractformat',
+ PARAM_DATA_EXTRACT_EXTENSION : '__extractextension',
+ PARAM_ISNULL : '__isnull',
+ PARAM_EMITTER_ID : '__emitterid',
+
+ PARAM_PRINTER_NAME : '__printer',
+ PARAM_PRINTER_COPIES : '__printer_copies',
+ PARAM_PRINTER_COLLATE : '__printer_collate',
+ PARAM_PRINTER_DUPLEX : '__printer_duplex',
+ PARAM_PRINTER_MODE : '__printer_mode',
+ PARAM_PRINTER_MEDIASIZE : '__printer_pagesize',
+
+ PARAM_PAGE_OVERFLOW : '__pageoverflow',
+ PARAM_PAGEBREAKONLY : '__pagebreakonly',
+
+ PARAM_SESSION_ID : '__sessionId',
+
+ // Parameter Data Type
+ TYPE_ANY : '0',
+ TYPE_STRING : '1',
+ TYPE_FLOAT : '2',
+ TYPE_DECIMAL : '3',
+ TYPE_DATE_TIME : '4',
+ TYPE_BOOLEAN : '5',
+ TYPE_INTEGER : '6',
+ TYPE_DATE : '7',
+ TYPE_TIME : '8',
+
+ // Servlet patterns
+ SERVLET_OUTPUT : 'output',
+ SERVLET_EXTRACT : 'extract',
+ SERVLET_FRAMESET : 'frameset',
+ SERVLET_PARAMETER : 'parameter',
+ SERVLET_PREVIEW : 'preview',
+
+ // Output formats
+ FORMAT_POSTSCRIPT : 'postscript',
+ FORMAT_PDF : 'pdf',
+ FORMAT_HTML : 'html',
+ FORMAT_PPT : 'ppt',
+
+ // Action names
+ ACTION_PRINT : 'print',
+
+ // Window names
+ WINDOW_PRINT_PREVIEW : 'birtPrint',
+
+ /**
+ event.returnvalue indicating that event has already been handled
+ as a selection
+ */
+ select: "select",
+
+ /**
+ event.returnvalue indicated that contextmenu has already been handled
+ */
+ context: "context",
+
+ error : { },
+
+ type: {UpdateRequest: "UpdateRequest"},
+ operation: "Operation",
+ target: "Target",
+ operator: {show: "Show", hide: "Hide", sort: "Sort"}
+}
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Constants.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js Thu Oct 15 04:48:28 2009
@@ -0,0 +1,251 @@
+/******************************************************************************
+ * 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.
+ *****************************************************************************/
+
+/**
+ * Show the debug window
+ */
+function showDebug(soapMessageDebug, regularDebug)
+{
+ if(soapMessageDebug == true)
+ {
+ var url = document.location.href;
+ var index = url.indexOf( "wr" );
+ url = url.substring( 0, index ) + "iportal/bizRD/test/DebugSoapMessage.jsp";
+ var oldWindow = window.open("", "DebugSoapMessage");
+ if(oldWindow)
+ {
+ oldWindow.close();
+ }
+ window.top.debugWindow = window.open(url, "DebugSoapMessage",
+ "left=300,top=300,width=450,height=300,scrollbars=yes,"
+                  +"status=yes,resizable=yes");
+ window.top.debugWindow.soapMsgWindow = true;
+ window.top.debugWindow.opener = self;
+
+ }
+ else if(regularDebug == true)
+ {
+  window.top.debugWindow =
+      window.open("",
+                  "Debug",
+                  "left=0,top=0,width=200,height=300,scrollbars=yes,"
+                  +"status=yes,resizable=yes");
+  window.top.debugWindow.opener = self;
+  // open the document for writing
+  window.top.debugWindow.document.open();
+  window.top.debugWindow.document.write(
+      "<HTML><HEAD><TITLE>Debug Window</TITLE></HEAD><BODY><PRE>\n");
+ }
+    
+}
+
+/*
+ * Checks if debugging is currently enabled.
+ */
+function isDebugging( )
+{
+ try
+ {
+ return window.top.debugWindow && !window.top.debugWindow.closed;
+ }
+ catch(e)
+ {
+ return false;
+ }
+}
+
+
+/*
+ * If the debug window exists, write debug messages to it.
+ * If isSoapMessage, write output to special soap message window
+ */
+function debug( text, isSoapMessage )
+{
+ //debug( birtSoapRequest.prettyPrintXML(request.responseXML.documentElement), true);
+ try
+ {
+ if ( isDebugging( ) )
+ {
+ if(window.top.debugWindow.soapMsgWindow)
+ {
+ var debugDiv;
+ if(isSoapMessage)
+ {
+ debugDiv = window.top.debugWindow.document.getElementById("soapMsgDebug");
+ var div = window.top.debugWindow.document.createElement("div");
+ div.innerHTML = "<pre>" + text;
+ //debugDiv.insertBefore(window.top.debugWindow.document.createTextNode("-------------END--------------"),debugDiv.firstChild);
+ debugDiv.insertBefore(div,debugDiv.firstChild);
+ div.style.display = "none";
+ var btn = addDebugButton(text);
+ debugDiv.insertBefore(btn, debugDiv.firstChild);
+ //debugDiv.insertBefore(window.top.debugWindow.document.createTextNode("-------------START----------------"),debugDiv.firstChild);
+ debugDiv.insertBefore(window.top.debugWindow.document.createElement("br"),debugDiv.firstChild);
+
+ }
+ else
+ {
+ debugDiv = window.top.debugWindow.document.getElementById("regularDebug").firstChild;
+ var div = window.top.debugWindow.document.createElement("div");
+ div.innerHTML = "<pre>" + text;
+ debugDiv.appendChild(div);
+ }
+ }
+
+ else
+ {
+     window.top.debugWindow.document.write(text+"\n");
+   }
+ }
+ }
+ catch(e){ }
+}
+
+g_debugButtonDivList = [];
+
+function addDebugButton(text)
+{
+ var numTargets = text.match(/Target&gt/g);
+ var txt = window.top.debugWindow.document.createTextNode((numTargets ? "XML" : " Text"));
+ var msgType = text.match(/(GetUpdatedObjectsResponse|GetUpdatedObjects)/);
+ if(msgType)
+ {
+ if(msgType[0] == "GetUpdatedObjectsResponse")
+ {
+ var msgTypeTxt = window.top.debugWindow.document.createTextNode("--Response--");
+ }
+ else if(msgType[0] == "GetUpdatedObjects")
+ {
+ var msgTypeTxt = window.top.debugWindow.document.createTextNode("--Request--");
+ }
+ }
+ else
+ {
+ var msgTypeTxt = window.top.debugWindow.document.createTextNode("no message type");
+ }
+ var buttonDiv = window.top.debugWindow.document.createElement("div");
+ buttonDiv.appendChild(msgTypeTxt);
+ buttonDiv.appendChild(txt);
+
+ if(numTargets && msgTypeTxt.nodeValue == "testing--Response--")
+ {
+ var updateData = text.match(/UpdateData&gt[\w\s\.()"&]*&lt\/UpdateData/g);
+ if(updateData)
+ {
+ for(var i = 0; i < updateData.length; i++)
+ {
+ var dataType = updateData[i].match(/&ltData&gt\s*&lt[\w]*&gt/g);
+ dataType = dataType[0];
+ dataType = dataType.match(/&gt\s*&lt[\w]*&gt/g);
+ dataType = dataType[0];
+ dataType = dataType.replace(/\s*/, "");
+ dataType = dataType.replace(/\n*/, "");
+ var targets = updateData[i].match(/Target&gt\s*[A-Za-z_]*\s*&lt\//g);
+ if(targets)
+ {
+ for(var j = 0; j < targets.length; j++)
+ {
+ var targTxt = targets[j].match(/\n\s*[A-Za-z_]*\n/);
+ if(targTxt)
+ {
+ var targetDiv = window.top.debugWindow.document.createElement("div");
+ targTxt = targTxt[0];
+ targTxt = targTxt.replace(/\s*/, "");
+ targTxt = targTxt.replace(/\n*/, "");
+ targetDiv.appendChild(window.top.debugWindow.document.createTextNode("Target: " + targTxt + " DataType: " + dataType));
+ buttonDiv.appendChild(targetDiv);
+ }
+ }
+ }
+ }
+ }
+ }
+ if(numTargets && msgTypeTxt.nodeValue == "--Response--")
+ {
+ var targets = text.match(/Target&gt\s*[A-Za-z_]*\s*&lt\//g);
+ if(targets)
+ {
+ for(var i = 0; i < targets.length; i++)
+ {
+ var targTxt = targets[i].match(/\n\s*[A-Za-z_]*\n/);
+ if(targTxt)
+ {
+ var targetDiv = window.top.debugWindow.document.createElement("div");
+ targTxt = targTxt[0];
+ targTxt = targTxt.replace(/\s*/, "");
+ targTxt = targTxt.replace(/\n*/, "");
+ targetDiv.appendChild(window.top.debugWindow.document.createTextNode("Target: " + targTxt));
+ buttonDiv.appendChild(targetDiv);
+ }
+ }
+ }
+
+ }
+ else if(msgTypeTxt.nodeValue == "--Request--")
+ {
+ var targets = text.match(/Operator&gt\s*[A-Za-z_]*\s*&lt\//g);
+ if(targets)
+ {
+ for(var i = 0; i < targets.length; i++)
+ {
+ var targTxt = targets[i].match(/\n\s*[A-Za-z_]*\n/);
+ if(targTxt)
+ {
+ var targetDiv = window.top.debugWindow.document.createElement("div");
+ targTxt = targTxt[0];
+ targTxt = targTxt.replace(/\s*/, "");
+ targTxt = targTxt.replace(/\n*/, "");
+ targetDiv.appendChild(window.top.debugWindow.document.createTextNode(targTxt));
+ buttonDiv.appendChild(targetDiv);
+ }
+ }
+ }
+ }
+ buttonDiv.style.backgroundColor = "#ccffcc";
+ buttonDiv.onmousedown = pushDebugButton;
+ g_debugButtonDivList.push(buttonDiv);
+ buttonDiv.listIndex = g_debugButtonDivList.length -1;
+ return buttonDiv;
+}
+
+function pushDebugButton(e)
+{
+ if(!e) var e = window.top.debugWindow.event;
+ var targ = Event.element(e);
+ while(!targ.listIndex && targ.listIndex != 0)
+ {
+ targ = targ.parentNode;
+ }
+ var btn = g_debugButtonDivList[targ.listIndex];
+ if(btn.nextSibling.style.display == "block")
+ {
+ btn.style.backgroundColor = "#ccffcc";
+ btn.nextSibling.style.display = "none";
+ }
+ else
+ {
+ btn.style.backgroundColor = "#ff0000";
+ btn.nextSibling.style.display = "block";
+ }
+
+}
+
+/**
+ * If the debug window exists, then close it
+ */
+function hideDebug()
+{
+ if (window.top.debugWindow && !window.top.debugWindow.closed)
+ {
+ window.top.debugWindow.close();
+ window.top.debugWindow = null;
+ }
+}
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Debug.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js Thu Oct 15 04:48:28 2009
@@ -0,0 +1,223 @@
+/******************************************************************************
+ * 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.
+ *****************************************************************************/
+
+/**
+ * Printer class.
+ */
+Printer = Class.create( );
+
+Printer.prototype =
+{
+ __name : null,
+ __status : null,
+ __model : null,
+ __info : null,
+
+ __copiesSupported : null,
+ __copies : null,
+
+ __collateSupported : null,
+ __collate : null,
+
+ __modeSupported : null,
+ __mode : null,
+
+ __duplexSupported : null,
+ __duplex : null,
+
+ __mediaSupported : null,
+ __mediaSize : null,
+ __mediaSizeNames : null,
+
+ /**
+ * Constants
+ */
+ MODE_MONOCHROME : "0",
+ MODE_COLOR : "1",
+
+ DUPLEX_SIMPLEX : "0",
+ DUPLEX_HORIZONTAL : "1",
+ DUPLEX_VERTICAL : "2",
+
+ /**
+ * Initialization routine required by "ProtoType" lib.
+ *
+ * @return, void
+ */
+ initialize: function( )
+ {
+ this.__copiesSupported = false;
+ this.__collateSupported = false;
+ this.__collate = false;
+ this.__modeSupported = false;
+ this.__duplexSupported = false;
+ this.__mediaSupported = false;
+
+ this.__mediaSizeNames = new Array( );
+ },
+
+ setName : function( name )
+ {
+ this.__name = name;
+ },
+
+ getName : function( )
+ {
+ return this.__name;
+ },
+
+ setStatus : function( status )
+ {
+ this.__status = status;
+ },
+
+ getStatus : function( )
+ {
+ return this.__status;
+ },
+
+ setModel : function( model )
+ {
+ this.__model = model;
+ },
+
+ getModel : function( )
+ {
+ return this.__model;
+ },
+
+ setInfo : function( info )
+ {
+ this.__info = info;
+ },
+
+ getInfo : function( )
+ {
+ return this.__info;
+ },
+
+ setCopiesSupported : function( copiesSupported )
+ {
+ this.__copiesSupported = copiesSupported;
+ },
+
+ isCopiesSupported : function( )
+ {
+ return this.__copiesSupported;
+ },
+
+ setCopies : function( copies )
+ {
+ this.__copies = copies;
+ },
+
+ getCopies : function( )
+ {
+ return this.__copies;
+ },
+
+ setCollateSupported : function( collateSupported )
+ {
+ this.__collateSupported = collateSupported;
+ },
+
+ isCollateSupported : function( )
+ {
+ return this.__collateSupported;
+ },
+
+ setCollate : function( collate )
+ {
+ this.__collate = collate;
+ },
+
+ isCollate : function( )
+ {
+ return this.__collate;
+ },
+
+ setModeSupported : function( modeSupported )
+ {
+ this.__modeSupported = modeSupported;
+ },
+
+ isModeSupported : function( )
+ {
+ return this.__modeSupported;
+ },
+
+ setMode : function( mode )
+ {
+ this.__mode = mode;
+ },
+
+ getMode : function( )
+ {
+ return this.__mode;
+ },
+
+ setDuplexSupported : function( duplexSupported )
+ {
+ this.__duplexSupported = duplexSupported;
+ },
+
+ isDuplexSupported : function( )
+ {
+ return this.__duplexSupported;
+ },
+
+ setDuplex : function( duplex )
+ {
+ this.__duplex = duplex;
+ },
+
+ getDuplex : function( )
+ {
+ return this.__duplex;
+ },
+
+ setMediaSupported : function( mediaSupported )
+ {
+ this.__mediaSupported = mediaSupported;
+ },
+
+ isMediaSupported : function( )
+ {
+ return this.__mediaSupported;
+ },
+
+ setMediaSize : function( mediaSize )
+ {
+ this.__mediaSize = mediaSize;
+ },
+
+ getMediaSize : function( )
+ {
+ return this.__mediaSize;
+ },
+
+ addMediaSizeName : function( mediaSize )
+ {
+ var index = this.__mediaSizeNames.length;
+ if( !this.__mediaSizeNames[index] )
+ this.__mediaSizeNames[index] = { };
+
+ this.__mediaSizeNames[index].name = mediaSize;
+ this.__mediaSizeNames[index].value = mediaSize;
+ },
+
+ getMediaSizeNames : function( )
+ {
+ return this.__mediaSizeNames;
+ }
+}
+
+var printers = new Array( );
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/ajax/utility/Printer.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,28 @@
+<%@ page import="org.eclipse.birt.report.utility.ParameterAccessor,
+ org.eclipse.birt.report.IBirtConstants,
+ org.eclipse.birt.report.session.*" %>
+
+<%-- Map Java attributes to Javascript constants --%>
+<script type="text/javascript">
+// <![CDATA[
+            
+    Constants.nullValue = '<%= IBirtConstants.NULL_VALUE %>';
+    
+ // Request attributes
+ if ( !Constants.request )
+ {
+ Constants.request = {};
+ }
+ Constants.request.format = '<%= ParameterAccessor.getFormat(request) %>';
+ Constants.request.rtl = <%= ParameterAccessor.isRtl( request ) %>;
+ Constants.request.isDesigner = <%= ParameterAccessor.isDesigner() %>;
+ Constants.request.servletPath = "<%= request.getAttribute( "ServletPath" ) %>".substr(1);
+ <%  IViewingSession viewingSession = ViewingSessionUtil.getSession(request);
+ String subSessionId = null;
+ if ( viewingSession != null )
+ {
+ subSessionId = viewingSession.getId();
+ }%>
+ Constants.viewingSessionId = <%= subSessionId!=null?"\"" + subSessionId + "\"":"null" %>;
+// ]]>
+</script>

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Attributes.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,55 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.core.exception.BirtException,
+ org.eclipse.birt.report.utility.ParameterAccessor,
+ org.eclipse.birt.report.resource.BirtResources,
+ java.io.PrintWriter" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="error" type="java.lang.Exception" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Error content
+-----------------------------------------------------------------------------%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+ <HEAD>
+ <TITLE>
+ <%= BirtResources.getMessage( "birt.viewer.title.error" )%>
+ </TITLE>
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
+ <LINK REL="stylesheet" HREF="<%= request.getContextPath( ) + "/webcontent/birt/styles/style.css" %>" TYPE="text/css">
+ </HEAD>
+ <BODY>
+ <TABLE CLASS="BirtViewer_Highlight_Label">
+ <TR><TD NOWRAP>
+ <%
+ if ( error != null )
+ {
+ if ( error.getMessage( ) != null )
+ {
+ out.println( ParameterAccessor.htmlEncode( new String( error.getMessage( ).getBytes( "ISO-8859-1" ),"UTF-8" ) ) );
+ }
+ else
+ {
+ PrintWriter writer = new PrintWriter( out );
+ error.printStackTrace( writer );
+ }
+ }
+ %>
+ </TD></TR>
+ </TABLE>
+ </BODY>
+</HTML>
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Error.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,17 @@
+<%@ page import="org.eclipse.birt.report.resource.BirtResources" %>
+
+<%-- Map Java resource messages to Javascript constants --%>
+<script type="text/javascript">
+// <![CDATA[
+ // Error msgs
+ Constants.error.invalidPageRange = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.dialog.page.error.invalidpagerange" )%>';
+ Constants.error.parameterRequired = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.error.parameterrequired" )%>';
+ Constants.error.parameterNotAllowBlank = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.error.parameternotallowblank" )%>';
+ Constants.error.parameterNotSelected = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.error.parameternotselected" )%>';
+ Constants.error.invalidPageNumber = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.navbar.error.blankpagenum" )%>';
+ Constants.error.unknownError = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.error.unknownerror" )%>';
+ Constants.error.generateReportFirst = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.error.generatereportfirst" )%>';
+ Constants.error.printPreviewAlreadyOpen = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.dialog.print.printpreviewalreadyopen" )%>';
+ Constants.error.confirmCancelTask = '<%= BirtResources.getJavaScriptMessage( "birt.viewer.progressbar.confirmcanceltask" )%>';
+// ]]>
+</script>

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/Locale.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,50 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.resource.BirtResources" %>
+
+<%-----------------------------------------------------------------------------
+ Progress page
+-----------------------------------------------------------------------------%>
+<%
+ boolean rtl = false;
+ String rtlParam = request.getParameter("__rtl");
+ if ( rtlParam != null )
+ {
+ rtl = Boolean.getBoolean(rtlParam);
+ }
+%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+ <HEAD>
+ <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
+ <LINK REL="stylesheet" HREF="<%= request.getContextPath( ) + "/webcontent/birt/styles/style.css" %>" TYPE="text/css">
+ </HEAD>
+ <BODY STYLE="background-color: #ECE9D8;">
+ <DIV ID="progressBar" ALIGN="center">
+ <TABLE WIDTH="250px" CLASS="birtviewer_progresspage" CELLSPACING="10px">
+ <TR>
+ <TD ALIGN="center">
+ <B>
+ <%= BirtResources.getMessage( "birt.viewer.progressbar.prompt" )%>
+ </B>
+ </TD>
+ </TR>
+ <TR>
+ <TD ALIGN="center">
+ <IMG SRC="<%= request.getContextPath( ) + "/webcontent/birt/images/" + (rtl?"Loading_rtl":"Loading") + ".gif" %>" ALT="Progress Bar Image"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </BODY>
+</HTML>
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/common/processing.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,118 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.context.BaseAttributeBean,
+ org.eclipse.birt.report.resource.BirtResources" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Navigation bar fragment
+-----------------------------------------------------------------------------%>
+<TR
+ <%
+ String imagesPath = "birt/images/";
+
+ if( attributeBean.isShowNavigationbar( ) )
+ {
+ %>
+ HEIGHT="25px"
+ <%
+ }
+ else
+ {
+ %>
+ style="display:none"
+ <%
+ }
+ %>
+>
+ <TD>
+ <DIV id="navigationBar">
+ <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%" HEIGHT="25px" CLASS="birtviewer_navbar">
+ <TR><TD></TD></TR>
+ <TR>
+ <TD WIDTH="6px">&nbsp;</TD>
+ <TD WIDTH="100%" NOWRAP>
+ <B>
+ <%
+ if ( attributeBean.getBookmark( ) != null )
+ {
+ %>
+ <%=
+ BirtResources.getMessage( "birt.viewer.navbar.prompt.one" )
+ %>&nbsp;
+ <SPAN ID='pageNumber'></SPAN>&nbsp;
+ <%= BirtResources.getMessage( "birt.viewer.navbar.prompt.two" )%>&nbsp;
+ <SPAN ID='totalPage'></SPAN>
+ <%
+ }
+ else
+ {
+ %>
+ <%= BirtResources.getMessage( "birt.viewer.navbar.prompt.one" )%>&nbsp;
+ <SPAN ID='pageNumber'><%= ""+attributeBean.getReportPage( ) %></SPAN>&nbsp;
+ <%= BirtResources.getMessage( "birt.viewer.navbar.prompt.two" )%>&nbsp;
+ <SPAN ID='totalPage'></SPAN>
+ <%
+ }
+ %>
+ </B>
+ </TD>
+ <TD WIDTH="15px">
+ <INPUT TYPE="image" SRC="<%= imagesPath + (attributeBean.isRtl()?"LastPage":"FirstPage") + "_disabled.gif" %>" NAME='first'
+ ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.first" )%>"
+ TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.first" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="2px">&nbsp;</TD>
+ <TD WIDTH="15px">
+ <INPUT TYPE="image" SRC="<%= imagesPath + (attributeBean.isRtl()?"NextPage":"PreviousPage") + "_disabled.gif" %>" NAME='previous'
+ ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.previous" )%>"
+ TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.previous" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="2px">&nbsp;</TD>
+ <TD WIDTH="15px">
+ <INPUT TYPE="image" SRC="<%= imagesPath + (attributeBean.isRtl()?"PreviousPage":"NextPage") + "_disabled.gif" %>" NAME='next'
+    ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.next" )%>"
+ TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.next" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="2px">&nbsp;</TD>
+ <TD WIDTH="15px">
+ <INPUT TYPE="image" SRC="<%= imagesPath + (attributeBean.isRtl()?"FirstPage":"LastPage") + "_disabled.gif" %>" NAME='last'
+    ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.last" )%>"
+ TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.last" )%>" CLASS="birtviewer_clickable">
+ </TD>
+
+ <TD WIDTH="8px">&nbsp;&nbsp;</TD>
+
+ <TD ALIGN="right" NOWRAP><LABEL for="gotoPage"><b><%= BirtResources.getMessage( "birt.viewer.navbar.lable.goto" )%></b></LABEL></TD>
+ <TD WIDTH="2px">&nbsp;</TD>
+ <TD ALIGN="right" WIDTH="50px">
+ <INPUT ID='gotoPage' TYPE='text' VALUE='' MAXLENGTH="8" SIZE='5' CLASS="birtviewer_navbar_input">
+ </TD>
+ <TD WIDTH="4px">&nbsp;</TD>
+ <TD ALIGN="right" WIDTH="10px">
+ <INPUT TYPE="image" SRC="<%= imagesPath + (attributeBean.isRtl()?"Go_rtl.gif":"Go.gif") %>" NAME='goto'
+    ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.goto" )%>"
+ TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.navbar.goto" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="6px">&nbsp;</TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+</TR>

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/NavigationbarFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,55 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.resource.BirtResources" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
+<%-----------------------------------------------------------------------------
+ Progress bar fragment
+-----------------------------------------------------------------------------%>
+<DIV ID="progressBar" STYLE="display:none;position:absolute;z-index:310">
+ <TABLE WIDTH="250px" CLASS="birtviewer_progressbar" CELLSPACING="10px">
+ <TR>
+ <TD ALIGN="center">
+ <B>
+ <%= BirtResources.getMessage( "birt.viewer.progressbar.prompt" )%>
+ </B>
+ </TD>
+ </TR>
+ <TR>
+ <TD ALIGN="center">
+ <IMG SRC="<%= "birt/images/" + (attributeBean.isRtl()?"Loading_rtl":"Loading") + ".gif" %>" ALT="Progress Bar Image"/>
+ </TD>
+ </TR>
+ <TR>
+ <TD ALIGN="center">
+ <DIV ID="cancelTaskButton" STYLE="display:none">
+ <TABLE WIDTH="100%">
+ <TR>
+ <TD ALIGN="center">
+ <INPUT TYPE="BUTTON" VALUE="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" )%>"  
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" )%>"
+   CLASS="birtviewer_progressbar_button"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ </TR>
+ <INPUT TYPE="HIDDEN" ID="taskid" VALUE=""/>
+ </TABLE>
+</DIV>
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ProgressBarFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,24 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ TOC fragment
+-----------------------------------------------------------------------------%>
+<DIV ID="display0" STYLE="display:none;width:250px;position:relative;overflow:auto">
+</DIV>

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/TocFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,98 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.resource.BirtResources,
+ org.eclipse.birt.report.utility.ParameterAccessor,
+ org.eclipse.birt.report.servlet.ViewerServlet" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Toolbar fragment
+-----------------------------------------------------------------------------%>
+<TR
+ <%
+ if( attributeBean.isShowToolbar( ) )
+ {
+ %>
+ HEIGHT="20px"
+ <%
+ }
+ else
+ {
+ %>
+ style="display:none"
+ <%
+ }
+ %>
+>
+ <TD COLSPAN='2'>
+ <DIV ID="toolbar">
+ <TABLE CELLSPACING="1px" CELLPADDING="1px" WIDTH="100%" CLASS="birtviewer_toolbar">
+ <TR><TD></TD></TR>
+ <TR>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='toc' SRC="birt/images/Toc.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.toc" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.toc" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='parameter' SRC="birt/images/Report_parameters.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.parameter" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.parameter" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='export' SRC="birt/images/Export.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.export" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.export" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='exportReport' SRC="birt/images/ExportReport.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.exportreport" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.exportreport" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='print' SRC="birt/images/Print.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.print" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.print" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <%
+ if( ParameterAccessor.isSupportedPrintOnServer )
+ {
+ %>
+ <TD WIDTH="6px"/>
+ <TD WIDTH="15px">
+   <INPUT TYPE="image" NAME='printServer' SRC="birt/images/PrintServer.gif"
+   TITLE="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.printserver" )%>"
+   ALT="<%= BirtResources.getHtmlMessage( "birt.viewer.toolbar.printserver" )%>" CLASS="birtviewer_clickable">
+ </TD>
+ <%
+ }
+ %>
+ <TD ALIGN='right'>
+ </TD>
+ <TD WIDTH="6px"/>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+</TR>

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/control/ToolbarFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,41 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.resource.ResourceConstants,
+ org.eclipse.birt.report.resource.BirtResources"  %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Confirmatin dialog fragment
+-----------------------------------------------------------------------------%>
+<TABLE CELLSPACING="2" CELLPADDING="2" CLASS="birtviewer_dialog_body">
+ <TR>
+ <TD VALIGN="bottom" ALIGN="center">
+ <TABLE CELLSPACING="2" CELLPADDING="2">
+ <TR>
+ <TD>
+ <iframe name="birt_confirmation_iframe"
+ class="birtviewer_confirmation_dialog_iframe"
+ frameBorder="0" src="<%= "birt/pages/common/processing.jsp?__rtl=" + Boolean.toString( attributeBean.isRtl() )  %>">
+ </iframe>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+</TABLE>
\ No newline at end of file

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ConfirmationDialogFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,98 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.context.BaseAttributeBean,
+ org.eclipse.birt.report.IBirtConstants,
+ org.eclipse.birt.report.utility.ParameterAccessor,
+ org.eclipse.birt.report.resource.BirtResources" %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+<jsp:useBean id="attributeBean" type="org.eclipse.birt.report.context.BaseAttributeBean" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Dialog container fragment, shared by all standard dialogs.
+-----------------------------------------------------------------------------%>
+<div id="<%= fragment.getClientId( ) %>" class="dialogBorder" style="display:none;position:absolute;z-index:220">
+ <iframe id="<%= fragment.getClientId( ) %>iframe"  name="<%= fragment.getClientId( ) %>iframe" style="z-index:-1; display: none; left:0px; top:0px;
+ background-color: #ff0000; opacity: .0; filter: alpha(opacity = 0); position: absolute;" frameBorder="0" scrolling="no" src="birt/pages/common/blank.html">
+ </iframe>
+ <div id="<%= fragment.getClientId( ) %>dialogTitleBar" class="dialogTitleBar dTitleBar">
+ <div class="dTitleTextContainer">
+ <table style="width: 100%; height: 100%;">
+ <tr>
+ <td class="dialogTitleText dTitleText">
+ <%= fragment.getTitle( ) %>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div class="dialogCloseBtnContainer dCloseBtnContainer">
+ <table style="width: 100%; height: 100%; border-collapse: collapse">
+ <tr>
+ <td>
+ <label class="birtviewer_hidden_label" for="<%= fragment.getClientId( ) %>dialogCloseBtn">
+ <%=
+ BirtResources.getMessage( "birt.viewer.dialog.close" )
+ %>
+ </label>
+ <div id="<%= fragment.getClientId( ) %>dialogCloseBtn" class="dialogCloseBtn dCloseBtn"/>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ <!-- overflow is set as workaround for Mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=167801 -->
+ <div  class="dialogBackground" style="overflow: auto;">
+ <div class="dBackground">
+ <div class="dialogContentContainer" id="<%= fragment.getClientId( ) %>dialogContentContainer">
+ <%
+ if ( fragment != null )
+ {
+ fragment.callBack( request, response );
+ }
+ %>
+ </div>
+ <div class="dialogBtnBarContainer">
+ <div>
+ <div class="dBtnBarDividerTop">
+ </div>
+ <div class="dBtnBarDividerBottom">
+ </div>
+ </div>
+ <div class="dialogBtnBar">
+ <div id="<%= fragment.getClientId( ) %>dialogCustomButtonContainer" class="dialogBtnBarButtonContainer">
+ <div id="<%= fragment.getClientId( ) %>okButton">
+ <div id="<%= fragment.getClientId( ) %>okButtonLeft" class="dialogBtnBarButtonLeftBackgroundEnabled"></div>
+ <div id="<%= fragment.getClientId( ) %>okButtonRight" class="dialogBtnBarButtonRightBackgroundEnabled"></div>
+ <input type="button" value="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.ok" ) %>"
+ title="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.ok" ) %>"  
+ class="dialogBtnBarButtonText dialogBtnBarButtonEnabled"/>
+ </div>
+ <div class="dialogBtnBarDivider"></div>
+ <div id="<%= fragment.getClientId( ) %>cancelButton">
+ <div class="dialogBtnBarButtonLeftBackgroundEnabled"></div>
+ <div class="dialogBtnBarButtonRightBackgroundEnabled"></div>
+ <input type="button" value="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" )%>"
+ title="<%= BirtResources.getHtmlMessage( "birt.viewer.dialog.cancel" )%>"  
+ class="dialogBtnBarButtonText dialogBtnBarButtonEnabled"/>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp
------------------------------------------------------------------------------
    svn:keywords = "Date Rev Author URL Id"

Propchange: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/DialogContainerFragment.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ExceptionDialogFragment.jsp
URL: http://svn.apache.org/viewvc/ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ExceptionDialogFragment.jsp?rev=825391&view=auto
==============================================================================
--- ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ExceptionDialogFragment.jsp (added)
+++ ofbiz/branches/addBirt/framework/webtools/webapp/birt/webcontent/birt/pages/dialog/ExceptionDialogFragment.jsp Thu Oct 15 04:48:28 2009
@@ -0,0 +1,82 @@
+<%-----------------------------------------------------------------------------
+ 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.
+-----------------------------------------------------------------------------%>
+<%@ page contentType="text/html; charset=utf-8" %>
+<%@ page session="false" buffer="none" %>
+<%@ page import="org.eclipse.birt.report.presentation.aggregation.IFragment,
+ org.eclipse.birt.report.resource.ResourceConstants,
+ org.eclipse.birt.report.resource.BirtResources"  %>
+
+<%-----------------------------------------------------------------------------
+ Expected java beans
+-----------------------------------------------------------------------------%>
+<jsp:useBean id="fragment" type="org.eclipse.birt.report.presentation.aggregation.IFragment" scope="request" />
+
+<%-----------------------------------------------------------------------------
+ Exception dialog fragment
+-----------------------------------------------------------------------------%>
+<TABLE CELLSPACING="2" CELLPADDING="2" CLASS="birtviewer_dialog_body">
+ <TR>
+ <TD CLASS="birtviewer_exception_dialog">
+ <TABLE CELLSPACING="2" CELLPADDING="2">
+ <TR>
+ <TD VALIGN="top"><IMG SRC="birt/images/Error.gif" /></TD>
+
+ <TD>
+
+ <TABLE CELLSPACING="2" CELLPADDING="4" CLASS="birtviewer_exception_dialog_container" >
+ <TR>
+ <TD>
+ <DIV ID="faultStringContainer" CLASS="birtviewer_exception_dialog_message">
+ <B><SPAN ID='faultstring'></SPAN><B>
+ </DIV>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV ID="showTraceLabel" CLASS="birtviewer_exception_dialog_label">
+ <%= BirtResources.getMessage( ResourceConstants.EXCEPTION_DIALOG_SHOW_STACK_TRACE ) %>
+ </DIV>
+ <DIV ID="hideTraceLabel" CLASS="birtviewer_exception_dialog_label" STYLE="display:none">
+ <%= BirtResources.getMessage( ResourceConstants.EXCEPTION_DIALOG_HIDE_STACK_TRACE ) %>
+ </DIV>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV ID="exceptionTraceContainer" STYLE="display:none">
+ <TABLE WIDTH="100%">
+ <TR>
+ <TD>
+ <%=
+ BirtResources.getMessage( ResourceConstants.EXCEPTION_DIALOG_STACK_TRACE )
+ %><BR>
+ </TD>
+ </TR>
+ <TR>
+ <TD>
+ <DIV CLASS="birtviewer_exception_dialog_detail">
+ <SPAN ID='faultdetail'></SPAN>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+
+ </TD>
+
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+</TABLE>
\ No newline at end of file