Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1921
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
2
<!--
2
<!--
3
 * FCKeditor - The text editor for internet
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
5
 * 
5
 *
6
 * Licensed under the terms of the GNU Lesser General Public License:
6
 * == BEGIN LICENSE ==
7
 * 		http://www.opensource.org/licenses/lgpl-license.php
-
 
8
 * 
7
 *
9
 * For further information visit:
8
 * Licensed under the terms of any of the following licenses at your
10
 * 		http://www.fckeditor.net/
9
 * choice:
11
 * 
10
 *
12
 * "Support Open Source software. What about a donation today?"
11
 *  - GNU General Public License Version 2 or later (the "GPL")
-
 
12
 *    http://www.gnu.org/licenses/gpl.html
13
 * 
13
 *
-
 
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
 * File Name: fck_listprop.html
15
 *    http://www.gnu.org/licenses/lgpl.html
-
 
16
 *
-
 
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
15
 * 	Bulleted List dialog window.
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
-
 
19
 *
-
 
20
 * == END LICENSE ==
16
 * 
21
 *
17
 * File Authors:
-
 
18
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-
 
19
 * 		Marcel J Bennett (start attribute)
22
 * Bulleted List dialog window.
20
-->
23
-->
21
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
22
<head>
25
<head>
23
	<title></title>
26
	<title></title>
24
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
27
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25
	<meta content="noindex, nofollow" name="robots" />
28
	<meta content="noindex, nofollow" name="robots" />
26
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
29
	<script src="common/fck_dialog_common.js" type="text/javascript"></script>
27
	<script type="text/javascript">
30
	<script type="text/javascript">
-
 
31
 
28
 
32
var dialog	= window.parent ;
29
var oEditor = window.parent.InnerDialogLoaded() ;
33
var oEditor = dialog.InnerDialogLoaded() ;
30
 
34
 
31
// Gets the document DOM
35
// Gets the document DOM
32
var oDOM = oEditor.FCK.EditorDocument ;
36
var oDOM = oEditor.FCK.EditorDocument ;
-
 
37
var sListType = ( location.search == '?OL' ? 'OL' : 'UL' ) ;
33
 
38
 
34
var oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'UL' ) ;
39
var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( sListType ) ;
35
var oActiveSel ;
40
var oActiveSel ;
36
 
41
 
37
window.onload = function()
42
window.onload = function()
38
{
43
{
39
	// First of all, translate the dialog box texts
44
	// First of all, translate the dialog box texts
40
	oEditor.FCKLanguageManager.TranslatePage(document) ;
45
	oEditor.FCKLanguageManager.TranslatePage(document) ;
41
 
46
 
42
	if ( oActiveEl )
47
	if ( sListType == 'UL' )
43
		oActiveSel = GetE('selBulleted') ;
48
		oActiveSel = GetE('selBulleted') ;
44
	else
49
	else
45
	{
50
	{
46
		oActiveEl = oEditor.FCKSelection.MoveToAncestorNode( 'OL' ) ;
-
 
47
		if ( oActiveEl )
51
		if ( oActiveEl )
48
		{
52
		{
49
			oActiveSel = GetE('selNumbered') ;
53
			oActiveSel = GetE('selNumbered') ;
50
			GetE('eStart').style.display = '' ;
54
			GetE('eStart').style.display = '' ;
51
			GetE('txtStartPosition').value	= GetAttribute( oActiveEl, 'start' ) ;
55
			GetE('txtStartPosition').value	= GetAttribute( oActiveEl, 'start' ) ;
52
		}
56
		}
53
	}
57
	}
54
 
58
 
55
	oActiveSel.style.display = '' ;
59
	oActiveSel.style.display = '' ;
56
 
60
 
57
	if ( oActiveEl )
61
	if ( oActiveEl )
58
	{
62
	{
59
		if ( oActiveEl.getAttribute('type') )
63
		if ( oActiveEl.getAttribute('type') )
60
			oActiveSel.value = oActiveEl.getAttribute('type').toLowerCase() ;
64
			oActiveSel.value = oActiveEl.getAttribute('type') ;
61
	}
65
	}
62
 
66
 
-
 
67
	dialog.SetOkButton( true ) ;
-
 
68
	dialog.SetAutoSize( true ) ;
-
 
69
 
63
	window.parent.SetOkButton( true ) ;
70
	SelectField( sListType == 'OL' ? 'txtStartPosition' : 'selBulleted' ) ;
64
}
71
}
65
 
72
 
66
function Ok()
73
function Ok()
67
{
74
{
68
	if ( oActiveEl ){
75
	if ( oActiveEl ){
69
		SetAttribute( oActiveEl, 'type'	, oActiveSel.value ) ;
76
		SetAttribute( oActiveEl, 'type'	, oActiveSel.value ) ;
70
		if(oActiveEl.tagName == 'OL')
77
		if(oActiveEl.tagName == 'OL')
71
			SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;
78
			SetAttribute( oActiveEl, 'start', GetE('txtStartPosition').value ) ;
72
	}
79
	}
73
 
80
 
74
	return true ;
81
	return true ;
75
}
82
}
76
 
83
 
77
	</script>
84
	</script>
78
</head>
85
</head>
79
<body style="overflow: hidden">
86
<body style="overflow: hidden">
80
	<table width="100%" style="height: 100%">
87
	<table width="100%" style="height: 100%">
81
		<tr>
88
		<tr>
82
			<td style="text-align:center">
89
			<td style="text-align:center">
83
				<table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
90
				<table cellspacing="0" cellpadding="0" border="0" style="margin-left: auto; margin-right: auto;">
84
					<tr>
91
					<tr>
85
						<td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">
92
						<td id="eStart" style="display: none; padding-right: 5px; padding-left: 5px">
86
							<span fcklang="DlgLstStart">Start</span><br />
93
							<span fcklang="DlgLstStart">Start</span><br />
87
							<input type="text" id="txtStartPosition" size="5" />
94
							<input type="text" id="txtStartPosition" size="5" />
88
						</td>
95
						</td>
89
						<td style="padding-right: 5px; padding-left: 5px">
96
						<td style="padding-right: 5px; padding-left: 5px">
90
							<span fcklang="DlgLstType">List Type</span><br />
97
							<span fcklang="DlgLstType">List Type</span><br />
91
							<select id="selBulleted" style="display: none">
98
							<select id="selBulleted" style="display: none">
92
								<option value="" selected="selected"></option>
99
								<option value="" selected="selected"></option>
93
								<option value="circle" fcklang="DlgLstTypeCircle">Circle</option>
100
								<option value="circle" fcklang="DlgLstTypeCircle">Circle</option>
94
								<option value="disc" fcklang="DlgLstTypeDisc">Disc</option>
101
								<option value="disc" fcklang="DlgLstTypeDisc">Disc</option>
95
								<option value="square" fcklang="DlgLstTypeSquare">Square</option>
102
								<option value="square" fcklang="DlgLstTypeSquare">Square</option>
96
							</select>
103
							</select>
97
							<select id="selNumbered" style="display: none">
104
							<select id="selNumbered" style="display: none">
98
								<option value="" selected="selected"></option>
105
								<option value="" selected="selected"></option>
99
								<option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>
106
								<option value="1" fcklang="DlgLstTypeNumbers">Numbers (1, 2, 3)</option>
100
								<option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>
107
								<option value="a" fcklang="DlgLstTypeLCase">Lowercase Letters (a, b, c)</option>
101
								<option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>
108
								<option value="A" fcklang="DlgLstTypeUCase">Uppercase Letters (A, B, C)</option>
102
								<option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>
109
								<option value="i" fcklang="DlgLstTypeSRoman">Small Roman Numerals (i, ii, iii)</option>
103
								<option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>
110
								<option value="I" fcklang="DlgLstTypeLRoman">Large Roman Numerals (I, II, III)</option>
104
							</select>
111
							</select>
105
							&nbsp;
112
							&nbsp;
106
						</td>
113
						</td>
107
					</tr>
114
					</tr>
108
				</table>
115
				</table>
109
			</td>
116
			</td>
110
		</tr>
117
		</tr>
111
	</table>
118
	</table>
112
</body>
119
</body>
113
</html>
120
</html>