зеркало из https://github.com/mozilla/gecko-dev.git
moving editor prefs to editor directory
see bug# 36911 r: ben
This commit is contained in:
Родитель
f7a6b498a9
Коммит
60a3b42d16
|
@ -46,6 +46,11 @@ sb-file-contextMenu.js
|
|||
sb-file-panel.js
|
||||
sb-file-panel.xul
|
||||
sb-FileWidgetFileHandler.js
|
||||
pref-composer.js
|
||||
pref-composer.xul
|
||||
pref-publish.xul
|
||||
pref-editing.xul
|
||||
editorPrefsOverlay.xul
|
||||
images:tag-anchor.gif
|
||||
images:tag-abr.gif
|
||||
images:tag-acr.gif
|
||||
|
|
|
@ -57,6 +57,11 @@ CHROME_CONTENT = \
|
|||
sb-FileWidgetFileHandler.js \
|
||||
editorOverlay.xul \
|
||||
editorOverlay.js \
|
||||
pref-composer.xul \
|
||||
pref-composer.js \
|
||||
pref-editing.xul \
|
||||
pref-publish.xul \
|
||||
editorPrefsOverlay.xul \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!DOCTYPE window [
|
||||
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
||||
%brandDTD;
|
||||
<!ENTITY % editorPrefsOverlayDTD SYSTEM "chrome://editor/locale/editorPrefsOverlay.dtd" >
|
||||
%editorPrefsOverlayDTD;
|
||||
]>
|
||||
|
||||
<overlay id="editorPrefsOverlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script language="JavaScript">
|
||||
<![CDATA[
|
||||
var panel;
|
||||
if (panel != undefined) {
|
||||
switch(panel)
|
||||
{
|
||||
case "chrome://communicator/content/pref/pref-appearance.xul":
|
||||
_elementIDs.push("generalStartupEditor");
|
||||
break;
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<!-- editor startup toggle -->
|
||||
<titledbox id="generalStartupPreferences">
|
||||
<checkbox id="generalStartupEditor" wsm_persist="true" position="3"
|
||||
value="&editorCheck.label;" accesskey="&editorCheck.accesskey;"
|
||||
pref="true" preftype="bool" prefstring="general.startup.editor"
|
||||
prefattribute="checked"/>
|
||||
</titledbox>
|
||||
|
||||
<!-- category tree entries for editor -->
|
||||
<treechildren id="panelChildren">
|
||||
<treeitem container="true" open="true" id="editor" position="4">
|
||||
<treerow>
|
||||
<treecell class="treecell-indent" url="chrome://editor/content/pref-composer.xul" value="&compose.label;" />
|
||||
</treerow>
|
||||
<treechildren>
|
||||
<treeitem>
|
||||
<treerow>
|
||||
<treecell class="treecell-indent" url="chrome://editor/content/pref-editing.xul" value="&editing.label;"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
<!--
|
||||
<treeitem>
|
||||
<treerow>
|
||||
<treecell class="treecell-indent" url="chrome://editor/content/pref-publish.xul" value="&publish.label;"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
-->
|
||||
</treechildren>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
|
||||
</overlay>
|
|
@ -50,6 +50,11 @@ CHROME_CONTENT = \
|
|||
.\sb-FileWidgetFileHandler.js \
|
||||
.\editorOverlay.xul \
|
||||
.\editorOverlay.js \
|
||||
.\pref-editing.xul \
|
||||
.\pref-publish.xul \
|
||||
.\pref-composer.js \
|
||||
.\pref-composer.xul \
|
||||
.\editorPrefsOverlay.xul \
|
||||
$(NULL)
|
||||
|
||||
CHROME_MISC = \
|
||||
|
|
|
@ -0,0 +1,112 @@
|
|||
function setColorWell(menu,otherId,setbackground)
|
||||
{
|
||||
// Find the colorWell and colorPicker in the hierarchy.
|
||||
var colorWell = menu.firstChild;
|
||||
var colorPicker = menu.firstChild.nextSibling.nextSibling.firstChild;
|
||||
var colorRef = menu.nextSibling; // colour value is held here
|
||||
|
||||
// Extract color from colorPicker and assign to colorWell.
|
||||
var color = colorPicker.getAttribute('color');
|
||||
// set colour values in the display
|
||||
setColorFromPicker(colorWell,color,otherId,setbackground);
|
||||
// set the colour value internally for use in prefwindow
|
||||
colorRef.setAttribute( "value", color );
|
||||
}
|
||||
|
||||
function getColorFromWellAndSetValue(menuid,otherId,setbackground)
|
||||
{
|
||||
var menu = document.getElementById( menuid ); // picker container
|
||||
var colorWell = menu.firstChild; // display for picker colour
|
||||
var colorRef = menu.nextSibling; // prefs JS sets this.
|
||||
colorWell.style.backgroundColor = colorRef.getAttribute("value"); // set the well from prefs.
|
||||
var color = colorWell.style.backgroundColor;
|
||||
setColorFromPicker(null,color,otherId,setbackground);
|
||||
}
|
||||
|
||||
function setColorFromPicker(colorWell,color,otherId,setbackground)
|
||||
{
|
||||
if (colorWell)
|
||||
colorWell.style.backgroundColor = color;
|
||||
if (otherId)
|
||||
{
|
||||
otherElement = document.getElementById( otherId );
|
||||
if (setbackground)
|
||||
{
|
||||
var basestyle = otherElement.getAttribute('basestyle');
|
||||
otherElement.setAttribute("style", basestyle + "background-color: " + color + ";");
|
||||
}
|
||||
else
|
||||
otherElement.setAttribute("style", "color: " + color + ";" );
|
||||
}
|
||||
}
|
||||
|
||||
function Startup()
|
||||
{
|
||||
getColorFromWellAndSetValue("textMenu", "normaltext", false);
|
||||
getColorFromWellAndSetValue("linkMenu", "linktext", false);
|
||||
getColorFromWellAndSetValue("aLinkMenu", "activelinktext", false);
|
||||
getColorFromWellAndSetValue("fLinkMenu", "followedlinktext", false);
|
||||
getColorFromWellAndSetValue("backgroundMenu", "backgroundcolor", true);
|
||||
if( document.getElementById( "useCustomColors" ).data == 0 )
|
||||
useNavigatorColors();
|
||||
return true;
|
||||
}
|
||||
|
||||
function useNavigatorColors()
|
||||
{
|
||||
// use colors from navigator
|
||||
var prefstrings = ["browser.display.foreground_color", "browser.anchor_color", "browser.visited_color", "browser.display.background_color"];
|
||||
var dataEls = ["text", "link", "fLink", "background"];
|
||||
for( var i = 0; i < dataEls.length; i++ )
|
||||
{
|
||||
var element = document.getElementById( ( dataEls[i] + "Data" ) );
|
||||
var navigatorValue = parent.hPrefWindow.getPref( "color", prefstrings[i] );
|
||||
element.setAttribute( "value", navigatorValue );
|
||||
element = document.getElementById( ( dataEls[i] + "Label" ) );
|
||||
element.setAttribute( "disabled", "true" );
|
||||
element = document.getElementById( ( dataEls[i] + "Menu" ) );
|
||||
element.setAttribute( "disabled", "true" );
|
||||
}
|
||||
document.getElementById( "aLinkLabel" ).setAttribute( "disabled", "true" );
|
||||
document.getElementById( "aLinkMenu" ).setAttribute( "disabled", "true" );
|
||||
document.getElementById( "useDefaults" ).setAttribute( "disabled", "true" );
|
||||
getColorFromWellAndSetValue("textMenu", "normaltext", false);
|
||||
getColorFromWellAndSetValue("linkMenu", "linktext", false);
|
||||
getColorFromWellAndSetValue("aLinkMenu", "activelinktext", false);
|
||||
getColorFromWellAndSetValue("fLinkMenu", "followedlinktext", false);
|
||||
getColorFromWellAndSetValue("backgroundMenu", "backgroundcolor", true);
|
||||
}
|
||||
|
||||
function useCustomColors()
|
||||
{
|
||||
var dataEls = ["text", "link", "fLink", "background"];
|
||||
for( var i = 0; i < dataEls.length; i++ )
|
||||
{
|
||||
var element = document.getElementById( ( dataEls[i] + "Data" ) );
|
||||
element = document.getElementById( ( dataEls[i] + "Label" ) );
|
||||
element.removeAttribute( "disabled" );
|
||||
element = document.getElementById( ( dataEls[i] + "Menu" ) );
|
||||
element.removeAttribute( "disabled" );
|
||||
}
|
||||
document.getElementById( "aLinkLabel" ).removeAttribute( "disabled" );
|
||||
document.getElementById( "aLinkMenu" ).removeAttribute( "disabled" );
|
||||
document.getElementById( "useDefaults" ).removeAttribute( "disabled" );
|
||||
}
|
||||
|
||||
function useDefaultColors()
|
||||
{
|
||||
// use default colors from editor.js
|
||||
var elIds = ["textData", "linkData", "aLinkData", "fLinkData", "backgroundData"];
|
||||
for( var i = 0; i < elIds.length; i++ )
|
||||
{
|
||||
var element = document.getElementById( elIds[i] );
|
||||
var defPref = parent.hPrefWindow.getPref( element.getAttribute( "preftype" ), element.getAttribute( "prefstring" ), true );
|
||||
element.setAttribute( "value", defPref );
|
||||
}
|
||||
Startup();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,198 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
The contents of this file are subject to the Netscape Public
|
||||
License Version 1.1 (the "License"); you may not use this file
|
||||
except in compliance with the License. You may obtain a copy of
|
||||
the License at http://www.mozilla.org/NPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS
|
||||
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
|
||||
The Original Code is Mozilla Communicator client code, released
|
||||
March 31, 1998.
|
||||
|
||||
The Initial Developer of the Original Code is Netscape
|
||||
Communications Corporation. Portions created by Netscape are
|
||||
Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
||||
Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Ryan Cassin (rcassin@supernova.org)
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-composer.dtd" >
|
||||
|
||||
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
class="color-dialog"
|
||||
orient="vertical"
|
||||
onload="parent.initPanel('chrome://communicator/content/pref/pref-composer.xul');">
|
||||
|
||||
<!-- We need these for separator "thin" class -->
|
||||
<script language="javascript" src="chrome://global/content/strres.js"></script>
|
||||
<script language="JavaScript" src="chrome://communicator/content/pref/prefutilities.js"></script>
|
||||
|
||||
<script language="JavaScript">
|
||||
<![CDATA[
|
||||
_elementIDs = ["maintainTableStructure", "tableDeleteKey", "preserveFormatting", "recentFiles", "shouldAutoSave", "autoSaveAmount"];
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<popupset id="aTooltipSet" />
|
||||
|
||||
<box class="box-smallheader" title="&lHeader;"/>
|
||||
|
||||
<titledbox orient="vertical" autostretch="never">
|
||||
<title><text value="&tableEditing.label;"/></title>
|
||||
|
||||
<checkbox
|
||||
value = "&maintainTableStructure.label;"
|
||||
id = "maintainTableStructure"
|
||||
accesskey = "&maintainStructure.accesskey;"
|
||||
tooltip = "aTooltip" tooltiptext="&maintainTableStructure.tooltip;"
|
||||
pref = "true"
|
||||
preftype = "bool"
|
||||
prefstring= "editor.table.maintain_structure"
|
||||
prefattribute="checked"
|
||||
/>
|
||||
|
||||
<separator class = "thin"/>
|
||||
|
||||
<box autostretch="never" valign="top">
|
||||
<text class="label"
|
||||
value="&pressingTheDeleteKey.label;"
|
||||
tooltip = "aTooltip" tooltiptext="&pressingTheDeleteKey.tooltip;"
|
||||
for="tableDeleteKey"
|
||||
/>
|
||||
<radiogroup orient="vertical" autostretch="never"
|
||||
id = "tableDeleteKey"
|
||||
pref = "true"
|
||||
preftype = "int"
|
||||
prefstring="editor.table.delete_key"
|
||||
prefattribute="data">
|
||||
<radio group="tableDeleteKey" data="0" value="&deleteCell.label;" accesskey="&deleteCell.accesskey;"/>
|
||||
<radio group="tableDeleteKey" data="1" value="&deleteContent.label;" accesskey="&deleteContent.accesskey;" />
|
||||
</radiogroup>
|
||||
</box>
|
||||
</titledbox>
|
||||
|
||||
<!-- Recent files menu -->
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&recentFiles.title;"/></title>
|
||||
<box align="horizontal" valign="middle">
|
||||
<text value="&documentsInMenu;"/>
|
||||
<textfield
|
||||
id="recentFiles"
|
||||
name="recent string"
|
||||
type="text"
|
||||
size="3"
|
||||
value="10"
|
||||
pref="true"
|
||||
preftype="int"
|
||||
prefstring="editor.history.url_maximum"
|
||||
prefattribute="value"
|
||||
/>
|
||||
</box>
|
||||
</titledbox>
|
||||
|
||||
<!-- Take out Auto-Save; not supported at this time
|
||||
-->
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&saving;"/></title>
|
||||
<box align="horizontal" valign="middle">
|
||||
<checkbox
|
||||
value = "&AutoSaveCheck;"
|
||||
id = "shouldAutoSave"
|
||||
pref = "true"
|
||||
preftype = "bool"
|
||||
prefstring = "editor.auto_save"
|
||||
name = "autosave"
|
||||
prefattribute="checked"
|
||||
/>
|
||||
<textfield
|
||||
id="autoSaveAmount"
|
||||
name="time"
|
||||
type="text"
|
||||
size="3"
|
||||
value="5"
|
||||
pref="true"
|
||||
preftype="int"
|
||||
prefstring="editor.auto_save_delay"
|
||||
prefattribute="value"
|
||||
/>
|
||||
<text value="&minText;" />
|
||||
</box>
|
||||
</titledbox>
|
||||
|
||||
<!-- HTML formatting on output -->
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&savingFiles.title;"/></title>
|
||||
<box align="horizontal" valign="middle">
|
||||
<checkbox
|
||||
value = "&preserveExistingFormatting;"
|
||||
id = "preserveFormatting"
|
||||
tooltip = "aTooltip" tooltiptext="&preserveExistingFormatting.tooltip;"
|
||||
pref = "true"
|
||||
preftype = "bool"
|
||||
prefstring = "editor.prettyprint"
|
||||
prefattribute="checked"
|
||||
/>
|
||||
</box>
|
||||
</titledbox>
|
||||
|
||||
<!-- External Editors are not supported at this time
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&exterLegend.label;"/></title>
|
||||
<box>
|
||||
<checkbox
|
||||
name = "htmlSourceEditorCheckbox"
|
||||
value = "&htmlSource;"
|
||||
pref = "true"
|
||||
preftype = "int"
|
||||
prefindex = "0"
|
||||
prefstring = "editor.use_html_editor"
|
||||
/>
|
||||
<textfield
|
||||
name = "&chooseButton.label;"
|
||||
pref = "true"
|
||||
preftype = "string"
|
||||
prefstring = "editor.html_editor"
|
||||
/>
|
||||
<button
|
||||
class = "dialog"
|
||||
name = ""
|
||||
value = "&chooseButton.label;"
|
||||
/>
|
||||
</box>
|
||||
|
||||
<box>
|
||||
<checkbox
|
||||
name = "htmlImageEditorCheckbox"
|
||||
value = "&imageeditor;"
|
||||
pref = "true"
|
||||
preftype = "int"
|
||||
prefindex = "0"
|
||||
prefstring ="editor.use_image_editor"
|
||||
/>
|
||||
|
||||
<textfield
|
||||
name="chooseButton.label"
|
||||
pref = "true"
|
||||
preftype = "string"
|
||||
prefstring = "editor.image_editor"
|
||||
/>
|
||||
<button class="dialog" value="&chooseButton.label;" />
|
||||
</box>
|
||||
|
||||
</titledbox>
|
||||
-->
|
||||
|
||||
|
||||
</window>
|
||||
|
|
@ -0,0 +1,169 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
The contents of this file are subject to the Netscape Public
|
||||
License Version 1.1 (the "License"); you may not use this file
|
||||
except in compliance with the License. You may obtain a copy of
|
||||
the License at http://www.mozilla.org/NPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS
|
||||
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
|
||||
The Original Code is Mozilla Communicator client code, released
|
||||
March 31, 1998.
|
||||
|
||||
The Initial Developer of the Original Code is Netscape
|
||||
Communications Corporation. Portions created by Netscape are
|
||||
Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
||||
Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-editing.dtd">
|
||||
|
||||
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
class="color-dialog"
|
||||
orient="vertical"
|
||||
onload="parent.initPanel('chrome://communicator/content/pref/pref-editing.xul');">
|
||||
|
||||
<script lanugage="JavaScript">
|
||||
<![CDATA[
|
||||
_elementIDs = ["editorAuthor", "textData", "linkData", "aLinkData", "fLinkData", "backgroundData", "useCustomColors", "backroundImageField"];
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<script language="JavaScript" src="chrome://communicator/content/pref/pref-composer.js"></script>
|
||||
<script language="JavaScript" src="chrome://global/content/strres.js"></script>
|
||||
<script language="JavaScript" src="chrome://communicator/content/pref/prefutilities.js"></script>
|
||||
|
||||
<box class="box-smallheader" title="&lHeader;"/>
|
||||
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&authorName.label;"/></title>
|
||||
<textfield id="editorAuthor" flex="1"
|
||||
pref="true" preftype="string" prefstring="editor.author"
|
||||
prefattribute="value"/>
|
||||
</titledbox>
|
||||
|
||||
<titledbox orient="vertical">
|
||||
<title><text value="&pageColorHeader;"/></title>
|
||||
|
||||
<box>
|
||||
<box orient="vertical">
|
||||
<radiogroup id="useCustomColors" orient="vertical" autostretch="never"
|
||||
pref="true" preftype="int" prefstring="editor.use_custom_default_colors"
|
||||
prefattribute="data">
|
||||
<radio group="useCustomColors" data="0" value="&useNavigator.label;" accesskey="&useNavigator.accesskey;" oncommand="useNavigatorColors();"/>
|
||||
<radio group="useCustomColors" data="1" value="&useCustomColors.label;" accesskey="&useCustomColors.accesskey;" oncommand="useCustomColors()"/>
|
||||
</radiogroup>
|
||||
<grid class="indent">
|
||||
<columns>
|
||||
<column flex="1"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<text class="label" id="textLabel" value="&NormalText.label;&colon.char;" accesskey="&NormalText.accesskey;" for="textMenu"/>
|
||||
<menu id="textMenu" allowevents="true" class="colorpicker">
|
||||
<html:div id="textDiv" style="width:30px; background-color:white"/>
|
||||
<titledbutton class="popup" align="right"/>
|
||||
<menupopup id="textPopup">
|
||||
<colorpicker allowevents="true" id="textPicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'normaltext', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="textData" pref="true" preftype="color" prefstring="editor.text_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<text class="label" id="linkLabel" value="&LinkText.label;&colon.char;" accesskey="&LinkText.accesskey;" for="linkMenu"/>
|
||||
<menu id="linkMenu" allowevents="true" class="colorpicker">
|
||||
<html:div id="linkDiv" style="width:30px; background-color:white"/>
|
||||
<titledbutton class="popup" align="right"/>
|
||||
<menupopup id="linkPopup">
|
||||
<colorpicker allowevents="true" id="linkPicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'linktext', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="linkData" pref="true" preftype="color" prefstring="editor.link_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<text class="label" id="aLinkLabel" value="&ActiveLinkText.label;&colon.char;" accesskey="&ActiveLinkText.accesskey;" for="aLinkMenu"/>
|
||||
<menu id="aLinkMenu" allowevents="true" class="colorpicker">
|
||||
<html:div id="aLinkDiv" style="width:30px; background-color:white"/>
|
||||
<titledbutton class="popup" align="right"/>
|
||||
<menupopup id="aLinkPopup">
|
||||
<colorpicker allowevents="true" id="aLinkPicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'activelinktext', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="aLinkData" pref="true" preftype="color" prefstring="editor.active_link_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</row>
|
||||
<row>
|
||||
<text class="label" id="fLinkLabel" value="&FollowedLinkText.label;&colon.char;" accesskey="&FollowedLinkText.accesskey;" for="fLinkMenu"/>
|
||||
<menu id="fLinkMenu" allowevents="true" class="colorpicker">
|
||||
<html:div id="fLinkDiv" style="width:30px; background-color:white"/>
|
||||
<titledbutton class="popup" align="right"/>
|
||||
<menupopup id="fLinkPopup">
|
||||
<colorpicker allowevents="true" id="fLinkPicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'followedlinktext', false);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="fLinkData" pref="true" preftype="color" prefstring="editor.followed_link_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</row>
|
||||
<row>
|
||||
<text class="label" id="backgroundLabel" value="&BackgroundColor.label;&colon.char;" accesskey="&BackgroundColor.accesskey;" for="backgroundMenu"/>
|
||||
<menu id="backgroundMenu" allowevents="true" class="colorpicker">
|
||||
<html:div id="backgroundDiv" style="width:30px; background-color:white"/>
|
||||
<titledbutton class="popup" align="right"/>
|
||||
<menupopup id="backgroundPopup">
|
||||
<colorpicker allowevents="true" id="backgroundPicker" palettename="standard" onclick="setColorWell(this.parentNode.parentNode, 'backgroundcolor', true);"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
<data id="backgroundData" pref="true" preftype="color" prefstring="editor.background_color" prefattribute="value" wsm_attributes="value"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</box>
|
||||
|
||||
<separator orient="vertical"/>
|
||||
|
||||
<box orient="vertical" flex="1">
|
||||
<box />
|
||||
<separator orient="vertical"/>
|
||||
|
||||
<box class="inset" id="backgroundcolor" orient="vertical" flex="1">
|
||||
<separator/>
|
||||
<text class="label" id="normaltext" value="&NormalText.label;"/>
|
||||
<separator class="thin"/>
|
||||
<text class="label" id="linktext" value="&LinkText.label;"/>
|
||||
<separator class="thin"/>
|
||||
<text class="label" id="activelinktext" value="&ActiveLinkText.label;"/>
|
||||
<separator class="thin"/>
|
||||
<text class="label" id="followedlinktext" value="&FollowedLinkText.label;"/>
|
||||
<separator/>
|
||||
</box>
|
||||
</box>
|
||||
|
||||
</box>
|
||||
|
||||
<separator class="thin"/>
|
||||
|
||||
<!-- a good idea here might be to load this image into the bg of the preview
|
||||
area if it is available (locally, or network connection is open) -->
|
||||
<text class="label" value="&defaultBackgroundImage.label;" accesskey="&defaultBackgroundImage.accesskey;"/>
|
||||
<box autostretch="never">
|
||||
<textfield id="backroundImageField" flex="1"
|
||||
pref="true" preftype="string"
|
||||
prefstring="editor.default_background_image"
|
||||
prefattribute="value"/>
|
||||
<button class="dialog" value="&chooseFile.label;" accesskey="&chooseFile.accesskey;" oncommand="prefNavSelectFile('backroundImageField','choosefile',true);"/>
|
||||
</box>
|
||||
|
||||
</titledbox>
|
||||
|
||||
</window>
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
The contents of this file are subject to the Netscape Public
|
||||
License Version 1.1 (the "License"); you may not use this file
|
||||
except in compliance with the License. You may obtain a copy of
|
||||
the License at http://www.mozilla.org/NPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS
|
||||
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
implied. See the License for the specific language governing
|
||||
rights and limitations under the License.
|
||||
|
||||
The Original Code is Mozilla Communicator client code, released
|
||||
March 31, 1998.
|
||||
|
||||
The Initial Developer of the Original Code is Netscape
|
||||
Communications Corporation. Portions created by Netscape are
|
||||
Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
-->
|
||||
|
||||
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-publish.dtd" >
|
||||
<window xmlns:html="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&window.title;"
|
||||
onload="if( parent.handle ) parent.handle.onpageload( 'pref-publish' ); else parent.queuedTag = 'pref-publish';">
|
||||
|
||||
<html:div flex="100%">
|
||||
<html:div id="top">
|
||||
<html:span id="lefttext">&composerHeader.label;</html:span>
|
||||
</html:div>
|
||||
|
||||
|
||||
<html:table>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:input name="author" type="checkbox" id="editorPublishKeepImages"
|
||||
pref="true" preftype="bool" prefstring="editor.publish_keep_images" />
|
||||
<html:label for="editorPublishKeepImages">&maintainCheckbox.label;</html:label>
|
||||
<html:br />&adjustDesc.label;
|
||||
</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:input name="autosave" type="checkbox" id="editorPublishKeepLinks"
|
||||
pref="true" preftype="bool" prefstring="editor.publish_keep_links"/>
|
||||
<html:label for="editorPublishKeepLinks">&keepCheck.label;</html:label>
|
||||
<html:br />&saveDesc.label;
|
||||
</html:td>
|
||||
</html:tr>
|
||||
&tip.label;
|
||||
</html:table>
|
||||
&defaultHeader.label;
|
||||
<html:table>
|
||||
<html:tr>
|
||||
<html:td>&publishFtp.label;</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:input name="autosave" type="text" id="composerPublish"
|
||||
pref="true" preftype="string" prefstring="composer.publish" size="30"/>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>&publishhtp.label;</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td>
|
||||
<html:input name="autosave" type="text" id="composerBrowse"
|
||||
pref="true" preftype="string" prefstring="composer.browse" size="30"/>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</html:div>
|
||||
</window>
|
|
@ -28,3 +28,7 @@ sidebar-editor.dtd
|
|||
viewSource.dtd
|
||||
editorOverlay.dtd
|
||||
editor.properties
|
||||
pref-composer.dtd
|
||||
pref-editing.dtd
|
||||
pref-publish.dtd
|
||||
editorPrefsOverlay.dtd
|
||||
|
|
|
@ -37,6 +37,10 @@ CHROME_L10N = \
|
|||
viewSource.dtd \
|
||||
editorOverlay.dtd \
|
||||
editor.properties \
|
||||
pref-composer.dtd \
|
||||
pref-publish.dtd \
|
||||
pref-editing.dtd \
|
||||
editorPrefsOverlay.dtd \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
<!--LOCALIZATION NOTE (editorCheck.label): DONT_TRANSLATE -->
|
||||
<!ENTITY editorCheck.label "Composer">
|
||||
<!ENTITY editorCheck.accesskey "c">
|
||||
|
||||
<!ENTITY compose.label "Composer">
|
||||
<!ENTITY editing.label "New Page Settings">
|
||||
<!ENTITY publish.label "Publishing">
|
|
@ -31,6 +31,10 @@ CHROME_L10N = \
|
|||
.\viewSource.dtd \
|
||||
.\editorOverlay.dtd \
|
||||
.\editor.properties \
|
||||
.\pref-editing.dtd \
|
||||
.\pref-composer.dtd \
|
||||
.\pref-publish.dtd \
|
||||
.\editorPrefsOverlay.dtd \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
<!-- extracted from content/pref-composer.xul -->
|
||||
|
||||
<!--LOCALIZATION NOTE : FILE 'Composer' prefs dialog. Similar to Communcator 4.x Document Properties/Colors and Background -->
|
||||
|
||||
<!--LOCALIZATION NOTE (title.label): DONT_TRANSLATE -->
|
||||
<!ENTITY title.label "Composer">
|
||||
<!ENTITY lHeader "Composer">
|
||||
<!ENTITY rHeader "Settings for authoring of new Web pages">
|
||||
|
||||
<!ENTITY tableEditing.label "Table Editing">
|
||||
|
||||
<!ENTITY maintainTableStructure.label "Always maintain table layout">
|
||||
<!ENTITY maintainTableStructure.tooltip "Prevents cell borders from collapsing when you delete one or more cells">
|
||||
<!ENTITY maintainStructure.accesskey "m">
|
||||
<!-- LOCALIZATION NOTE (pressingTheDeleteKey.label): Don't translate "Delete" -->
|
||||
<!ENTITY pressingTheDeleteKey.label "Delete key:">
|
||||
<!ENTITY pressingTheDeleteKey.tooltip "Assign an action to the Delete key for table editing purposes">
|
||||
<!ENTITY deleteCell.label "Erases the cell's content and border">
|
||||
<!ENTITY deleteCell.accesskey "s">
|
||||
<!ENTITY deleteContent.label "Erases the cell's content only">
|
||||
<!ENTITY deleteContent.accesskey "c">
|
||||
|
||||
<!ENTITY savingFiles.title "When Saving Files">
|
||||
<!ENTITY preserveExistingFormatting "Retain HTML framework">
|
||||
<!ENTITY preserveExistingFormatting.tooltip "Preserves line breaks and document's original structure ">
|
||||
|
||||
<!ENTITY saving "Saving">
|
||||
<!ENTITY AutoSaveCheck "Automatically save every">
|
||||
<!ENTITY minText "minutes">
|
||||
|
||||
<!ENTITY exterLegend.label "External Editors">
|
||||
<!ENTITY htmlSource "HTML Source:">
|
||||
<!ENTITY imageeditor "Images:">
|
||||
<!ENTITY chooseButton.label "Choose">
|
||||
|
||||
<!ENTITY recentFiles.title "Recent Pages Menu">
|
||||
<!ENTITY documentsInMenu "Max number of documents listed:">
|
|
@ -0,0 +1,28 @@
|
|||
<!ENTITY lHeader "New Page Settings">
|
||||
<!ENTITY rHeader "Defaults for new pages">
|
||||
|
||||
<!ENTITY authorName.label "Author">
|
||||
<!ENTITY authorName.accesskey "a">
|
||||
<!ENTITY pageColorHeader "Default Page Colors">
|
||||
|
||||
<!ENTITY NormalText.label "Normal text">
|
||||
<!ENTITY NormalText.accesskey "n">
|
||||
<!ENTITY LinkText.label "Link text">
|
||||
<!ENTITY LinkText.accesskey "l">
|
||||
<!ENTITY ActiveLinkText.label "Active link text">
|
||||
<!ENTITY ActiveLinkText.accesskey "c">
|
||||
<!ENTITY FollowedLinkText.label "Followed link text">
|
||||
<!ENTITY FollowedLinkText.accesskey "f">
|
||||
<!ENTITY BackgroundColor.label "Background color">
|
||||
<!ENTITY BackgroundColor.accesskey "b">
|
||||
<!ENTITY colon.char ":">
|
||||
|
||||
<!ENTITY useNavigator.label "Use browser colors (don't specify)">
|
||||
<!ENTITY useNavigator.accesskey "w">
|
||||
<!ENTITY useCustomColors.label "Use custom colors:">
|
||||
<!ENTITY useCustomColors.accesskey "u">
|
||||
|
||||
<!ENTITY defaultBackgroundImage.label "Default background image:">
|
||||
<!ENTITY defaultBackgroundImage.accesskey "g">
|
||||
<!ENTITY chooseFile.label "Choose File...">
|
||||
<!ENTITY chooseFile.accesskey "o">
|
|
@ -0,0 +1,21 @@
|
|||
<!-- extracted from content/pref-publish.xul -->
|
||||
|
||||
<!--LOCALIZATION NOTE : FILE The Publish preferences screen -->
|
||||
<!ENTITY window.title "Publish">
|
||||
<!ENTITY composerHeader.label "Publish">
|
||||
<!ENTITY maintainCheckbox.label "Maintain links">
|
||||
<!ENTITY keepCheck.label "Keep images with page">
|
||||
|
||||
<!--LOCALIZATION NOTE (adjustDesc.label): Attempt to maintain approximate line length, linefeeds and white space -->
|
||||
<!ENTITY adjustDesc.label "Adjust links to work from the page's location. (Links to local pages will work when
|
||||
local versions exist.) ">
|
||||
<!--LOCALIZATION NOTE (saveDesc.label): Attempt to maintain approximate line length, linefeeds and white space -->
|
||||
<!ENTITY saveDesc.label "Save copies of images to the page's location. Images will always
|
||||
appear in local versions of the page and when the page is published.">
|
||||
<!ENTITY tip.label "Tip: Check both options if you will be using remote publishing.">
|
||||
<!ENTITY defaultHeader.label "Default publishing location">
|
||||
<!--LOCALIZATION NOTE (publishFtp.label): Edit box appears beside this label -->
|
||||
<!ENTITY publishFtp.label "If publishing to a FTP site, enter the HTTP address to browse to:">
|
||||
<!--LOCALIZATION NOTE (publishhtp.label): Edit box appears beside this label -->
|
||||
<!ENTITY publishhtp.label "If publishing to a FTP site, enter the HTTP address to browse to:">
|
||||
|
Загрузка…
Ссылка в новой задаче