# -*- Mode: HTML; indent-tabs-mode: nil; -*- # 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.org code. # # The Initial Developer of the Original Code is Netscape # Communications Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): # Ben Goodger (Original Author) # Blake Ross # Pierre Chanial %bookmarksDTD; ]> false null null 0) for (var k = 0; k < rangeCount; ++k) { var rangeMin = {}; var rangeMax = {}; this.treeBoxObject.selection.getRangeAt(k, rangeMin, rangeMax); for (var i = rangeMin.value; i <= rangeMax.value; ++i) { var selectedItem = this.getRowResource(i); var selectedParent = this.getParentResource(i); var isExpanded = this.treeBoxObject.view.isContainerOpen(i) selection.item .push(selectedItem); selection.parent.push(selectedParent); selection.isExpanded.push(isExpanded); } } selection.length = selection.item.length; BookmarksUtils.checkSelection(selection); return selection; ]]> [] [] index = this.getIndexOfResourceInContainer(this._itemToBeToggled[i], this._parentToBeToggled[i]); if (index != -1 && !this.treeBoxObject.selection.isSelected(index)) this.treeBoxObject.selection.toggleSelect(index); } ]]> // Adding the transaction listener gBMtxmgr = BookmarksUtils.getTransactionManager(); gBMtxmgr.AddListener(this.bookmarkTreeTransactionListener) gBMtxmgr.RemoveListener(this.bookmarkTreeTransactionListener) 2 gBMtxmgr = BookmarksUtils.getTransactionManager(); 1 gBMtxmgr = BookmarksUtils.getTransactionManager(); 2