Index: branches/RC/admin/editor/cmseditor/editor/_source/classes/fcktoolbar.js =================================================================== diff -u -N --- branches/RC/admin/editor/cmseditor/editor/_source/classes/fcktoolbar.js (revision 8929) +++ branches/RC/admin/editor/cmseditor/editor/_source/classes/fcktoolbar.js (revision 0) @@ -1,84 +0,0 @@ -/* - * FCKeditor - The text editor for internet - * Copyright (C) 2003-2004 Frederico Caldeira Knabben - * - * Licensed under the terms of the GNU Lesser General Public License: - * http://www.opensource.org/licenses/lgpl-license.php - * - * For further information visit: - * http://www.fckeditor.net/ - * - * File Name: fcktoolbar.js - * FCKToolbar Class: represents a toolbar. A toolbar is not the complete - * toolbar set visible, but just a strip on it... a group of items. - * - * Version: 2.0 RC3 - * Modified: 2004-05-31 23:07:47 - * - * File Authors: - * Frederico Caldeira Knabben (fredck@fckeditor.net) - */ - -var FCKToolbar = function(width_) -{ - this.Items = new Array() ; - - this.DOMTable = document.createElement( 'table' ) ; - this.DOMTable.className = 'TB_Toolbar' ; - with ( this.DOMTable ) - { - // Sets the toolbar direction. IE uses "styleFloat" and Gecko uses "cssFloat". - style.styleFloat = style.cssFloat = FCKLang.Dir == 'rtl' ? 'right' : 'left' ; - - cellPadding = 0 ; - cellSpacing = 0 ; - border = 0; - if (width_ && width_ > 0) { - width = width_+'%'; - } - } - - this.DOMRow = this.DOMTable.insertRow(-1) ; - - var oCell = this.DOMRow.insertCell(-1) ; - oCell.className = 'TB_Start' ; - oCell.innerHTML = '' ; - - FCKToolbarSet.DOMElement.appendChild( this.DOMTable ) ; -} - -FCKToolbar.prototype.AddItem = function( toolbarItem ) -{ - this.Items[ this.Items.length ] = toolbarItem ; - toolbarItem.CreateInstance( this ) ; -} - -FCKToolbar.prototype.AddEmpty = function() -{ - var oCell = this.DOMRow.insertCell(-1) ; - oCell.unselectable = 'on' ; - oCell.width='50%'; - oCell.innerHTML = '' ; - -} - -FCKToolbar.prototype.AddSeparator = function() -{ - var oCell = this.DOMRow.insertCell(-1) ; - oCell.unselectable = 'on' ; - oCell.innerHTML = '' ; -} - -FCKToolbar.prototype.AddTerminator = function() -{ - var oCell = this.DOMRow.insertCell(-1) ; - oCell.className = 'TB_End' ; - oCell.innerHTML = '' ; -} - -FCKToolbar.prototype.AddBigSeparator = function() -{ - var oCell = this.DOMRow.insertCell(-1) ; - oCell.className = 'TB_Start' ; - oCell.innerHTML = '' ; -}