~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/classes/fckcontextmenuseparator.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
Import upstream version 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 Frederico Caldeira Knabben
 
4
 * 
 
5
 * Licensed under the terms of the GNU Lesser General Public License:
 
6
 *              http://www.opensource.org/licenses/lgpl-license.php
 
7
 * 
 
8
 * For further information visit:
 
9
 *              http://www.fckeditor.net/
 
10
 * 
 
11
 * "Support Open Source software. What about a donation today?"
 
12
 * 
 
13
 * File Name: fckcontextmenuseparator.js
 
14
 *      FCKContextMenuSeparator Class: represents a separator in the toolbar.
 
15
 * 
 
16
 * File Authors:
 
17
 *              Frederico Caldeira Knabben (fredck@fckeditor.net)
 
18
 */
 
19
 
 
20
var FCKContextMenuSeparator = function()
 
21
{
 
22
}
 
23
 
 
24
FCKContextMenuSeparator.prototype.CreateTableRow = function( targetTable )
 
25
{
 
26
        // Creates the <TR> element.
 
27
        this._Row = targetTable.insertRow(-1) ;
 
28
        this._Row.className = 'CM_Separator' ;
 
29
        
 
30
        var oCell = this._Row.insertCell(-1) ;
 
31
        oCell.className = 'CM_Icon' ;
 
32
        
 
33
        var oDoc = targetTable.ownerDocument || targetTable.document ;
 
34
        
 
35
        oCell = this._Row.insertCell(-1) ;
 
36
        oCell.className = 'CM_Label' ;
 
37
        oCell.appendChild( oDoc.createElement( 'DIV' ) ).className = 'CM_Separator_Line' ;
 
38
}
 
39
 
 
40
FCKContextMenuSeparator.prototype.SetVisible = function( isVisible )
 
41
{
 
42
        this._Row.style.display = isVisible ? '' : 'none' ;
 
43
}
 
44
 
 
45
FCKContextMenuSeparator.prototype.RefreshState = function()
 
46
{
 
47
        // Do nothing... its state doesn't change.
 
48
 
49
 
 
50
/*
 
51
Sample output.
 
52
-----------------------------------------
 
53
<tr class="CM_Separator">
 
54
        <td class="CM_Icon"></td>
 
55
        <td class="CM_Label"><div></div></td>
 
56
</tr>
 
57
*/
 
 
b'\\ No newline at end of file'