Removing unused files (Bug 242404)

r=neil, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@156532 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Stefan.Borggraefe%gmx.de
2004-05-18 14:01:10 +00:00
parent e58eb3c944
commit cd5dd12aff
4 changed files with 0 additions and 347 deletions

View File

@@ -1,175 +0,0 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla 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/MPL/
*
* 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.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1999
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
var importService = 0;
var fieldMap = null;
function OnLoadFieldMapExport()
{
top.importService = Components.classes["@mozilla.org/import/import-service;1"].getService();
top.importService = top.importService.QueryInterface(Components.interfaces.nsIImportService);
// We need a field map object...
// assume we have one passed in? or just make one?
if (window.arguments && window.arguments[0])
top.fieldMap = window.arguments[0].fieldMap;
if (!top.fieldMap) {
top.fieldMap = top.importService.CreateNewFieldMap();
top.fieldMap.DefaultFieldMap( top.fieldMap.numMozFields);
}
doSetOKCancel( FieldExportOKButton, 0);
ListFields();
}
function SetDivText(id, text)
{
var div = document.getElementById(id);
if ( div )
{
if ( div.childNodes.length == 0 )
{
var textNode = document.createTextNode(text);
div.appendChild(textNode);
}
else if ( div.childNodes.length == 1 )
div.childNodes[0].nodeValue = text;
}
}
function FieldExportOKButton()
{
// hmmm... can we re-build the map from the tree values?
return true;
}
function FieldSelectionChanged()
{
var tree = document.getElementById('fieldList');
if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) )
{
}
}
function ExportSelectionChanged()
{
var tree = document.getElementById('exportList');
if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) )
{
}
}
function ListFields() {
if (top.fieldMap == null)
return;
// we should fill in the field list with the data from the field map?
var body = document.getElementById("fieldBody");
var count = top.fieldMap.numMozFields;
for (i = 0; i < count; i++) {
AddFieldToList( body, top.fieldMap.GetFieldDescription( i), i);
}
body = document.getElementById("exportBody");
count = top.fieldMap.mapSize;
var index;
for (i = 0; i < count; i++) {
index = top.fieldMap.GetFieldMap( i);
AddFieldToList( body, top.fieldMap.GetFieldDescription( index), index);
}
}
function AddFieldToList(body, name, index)
{
var item = document.createElement('treeitem');
var row = document.createElement('treerow');
var cell = document.createElement('treecell');
cell.setAttribute('label', name);
item.setAttribute('field-index', index);
row.appendChild(cell);
item.appendChild(row);
body.appendChild(item);
}
function DeleteExportItems()
{
var tree = document.getElementById('exportList');
if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) {
var body = document.getElementById("exportBody");
if (body) {
while (tree.selectedItems.length) {
body.removeChild( tree.selectedItems[0]);
}
}
}
}
function OnAddExport()
{
var tree = document.getElementById('fieldList');
if ( tree && tree.selectedItems && (tree.selectedItems.length > 0) ) {
var body = document.getElementById("exportBody");
if (body) {
var name;
var fIndex;
for (var index = 0; index < tree.selectedItems.length; index++) {
name = tree.selectedItems[index].firstChild.firstChild.getAttribute( 'label');
fIndex = tree.selectedItems[index].getAttribute( 'field-index');
AddFieldToList( body, name, fIndex);
}
}
}
}
function OnAddAllExport()
{
var body = document.getElementById("exportBody");
var count = top.fieldMap.numMozFields;
for (var i = 0; i < count; i++) {
AddFieldToList( body, top.fieldMap.GetFieldDescription( i), i);
}
}

View File

@@ -1,128 +0,0 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla 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/MPL/
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 the Initial Developer are Copyright (C) 1998-1999
the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://messenger/skin/dialogs.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://messenger/locale/fieldMapExport.dtd">
<window xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="&fieldMapExport.title;"
class="dialog"
style="padding:0px"
onload="OnLoadFieldMapExport()"
orient="vertical">
<html:script src="chrome://messenger/content/fieldMapExport.js"/>
<!--html:script type="application/x-javascript" src="resource:/res/samples/DumpDOM.js"/-->
<keyset id="dialogKeys"/>
<hbox>
<spacer style="width:3em"/>
<!-- field list -->
<vbox>
<spacer style="height:1em"/>
<html:div id="fieldLabel">Ye old fields</html:div>
<spacer style="height:.5em"/>
<vbox style="border: 1px inset white">
<html:div style="width:10em; height:200px" flex="1">
<tree id="fieldList" style="width:100%; height:100%" onselect="FieldSelectionChanged()">
<treecolgroup>
<treecol flex="1"/>
</treecolgroup>
<treechildren id="fieldBody" flex="1"/>
</tree>
</html:div>
</vbox>
<spacer style="height:1.5em"/>
</vbox>
<spacer style="width: 1em"/>
<vbox style="height:270px">
<spacer flex="50%"/>
<button class="dialog push" onclick="OnAddExport()" label="&fieldMapExport.add;"/>
<button class="dialog push" onclick="OnAddAllExport()" label="&fieldMapExport.addAll;"/>
<spacer flex="50%"/>
</vbox>
<spacer style="width:1em"/>
<!-- export list -->
<vbox>
<spacer style="height:1em"/>
<html:div id="exportLabel">Export fields</html:div>
<spacer style="height:.5em"/>
<vbox style="border: 1px inset white">
<html:div style="width:10em; height:200px" flex="1">
<tree id="exportList" style="width:100%; height:100%"
onselect="ExportSelectionChanged()"
onkeyup="if (event.keyCode == 8) return(DeleteExportItems());"
ondragover="DragOverTree(event);"
ondraggesture="BeginDrag(event, true);"
ondragdrop="DropOnTree(event);">
<treecol style="width:100%"/>
<treechildren id="exportBody"/>
</tree>
</html:div>
</vbox>
<spacer style="height:1.5em"/>
</vbox>
<spacer style="width:3em"/>
</hbox>
<!-- OK & Cancel buttons -->
<hbox id="okCancelButtons"/>
</window>

View File

@@ -1,41 +0,0 @@
<!-- ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla 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/MPL/
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 the Initial Developer are Copyright (C) 1998-1999
the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<!ENTITY fieldMapExport.title "Export Address Book">
<!ENTITY fieldMapExport.add "Add Field ->">
<!ENTITY fieldMapExport.addAll "Add All ->">
<!ENTITY fieldList.label "Address Fields">

View File

@@ -174,8 +174,6 @@ messenger.jar:
content/messenger/importDialog.xul (import/resources/content/importDialog.xul)
content/messenger/importProgress.xul (import/resources/content/importProgress.xul)
content/messenger/importProgress.js (import/resources/content/importProgress.js)
content/messenger/fieldMapExport.xul (import/resources/content/fieldMapExport.xul)
content/messenger/fieldMapExport.js (import/resources/content/fieldMapExport.js)
content/messenger/fieldMapImport.xul (import/resources/content/fieldMapImport.xul)
content/messenger/fieldMapImport.js (import/resources/content/fieldMapImport.js)
content/messenger/attach.js (mime/emitters/resources/content/attach.js)
@@ -244,7 +242,6 @@ en-US.jar:
locale/en-US/messenger/oeImportMsgs.properties (import/oexpress/resources/locale/en-us/oeImportMsgs.properties)
locale/en-US/messenger/outlookImportMsgs.properties (import/outlook/resources/locale/en-us/outlookImportMsgs.properties)
locale/en-US/messenger/importMsgs.properties (import/resources/locale/en-us/importMsgs.properties)
locale/en-US/messenger/fieldMapExport.dtd (import/resources/locale/en-us/fieldMapExport.dtd)
locale/en-US/messenger/fieldMapImport.dtd (import/resources/locale/en-us/fieldMapImport.dtd)
locale/en-US/messenger/importDialog.dtd (import/resources/locale/en-us/importDialog.dtd)
locale/en-US/messenger/textImportMsgs.properties (import/text/resources/locale/en-US/textImportMsgs.properties)