places.xhtml (15620B)
1 <?xml version="1.0"?> 2 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 <?csp default-src chrome:; img-src chrome: moz-icon: data:; style-src chrome: 'unsafe-inline'; ?> 8 9 <!DOCTYPE window> 10 11 <window id="places" 12 data-l10n-id="places-library3" 13 windowtype="Places:Organizer" 14 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 15 xmlns:html="http://www.w3.org/1999/xhtml" 16 width="800" height="500" 17 screenX="10" screenY="10" 18 #ifdef XP_MACOSX 19 hidetitlebarseparator="true" 20 #endif 21 toggletoolbar="true" 22 persist="width height screenX screenY sizemode"> 23 24 <linkset> 25 <html:link 26 rel="stylesheet" 27 href="chrome://browser/content/places/places.css" 28 /> 29 <html:link 30 rel="stylesheet" 31 href="chrome://browser/content/usercontext/usercontext.css" 32 /> 33 34 <html:link rel="stylesheet" href="chrome://global/skin/global.css" /> 35 <html:link 36 rel="stylesheet" 37 href="chrome://browser/skin/places/tree-icons.css" 38 /> 39 <html:link 40 rel="stylesheet" 41 href="chrome://browser/skin/places/editBookmark.css" 42 /> 43 <html:link 44 rel="stylesheet" 45 href="chrome://browser/skin/places/organizer-shared.css" 46 /> 47 <html:link 48 rel="stylesheet" 49 href="chrome://browser/skin/places/organizer.css" 50 /> 51 52 <html:link 53 rel="stylesheet" 54 href="chrome://browser/content/downloads/downloads.css" 55 /> 56 <html:link 57 rel="stylesheet" 58 href="chrome://browser/skin/downloads/allDownloadsView.css" 59 /> 60 61 <html:link rel="localization" href="toolkit/global/textActions.ftl"/> 62 <html:link rel="localization" href="browser/browserSets.ftl"/> 63 <html:link rel="localization" href="browser/places.ftl"/> 64 <html:link rel="localization" href="browser/downloads.ftl"/> 65 <html:link rel="localization" href="browser/editBookmarkOverlay.ftl"/> 66 <html:link rel="localization" href="toolkit/global/tor-browser.ftl"/> 67 </linkset> 68 69 <script src="chrome://browser/content/places/places.js"/> 70 <script src="chrome://global/content/editMenuOverlay.js"/> 71 #ifndef XP_MACOSX 72 <!-- On Mac, this is included via macWindow.inc.xhtml -> global-scripts.js -> browser.js -> defineLazyScriptGetter --> 73 <script src="chrome://browser/content/places/editBookmark.js"/> 74 <!-- On Mac, thes are included via macWindow.inc.xhtml -> global-scripts.js --> 75 <script src="chrome://global/content/globalOverlay.js"/> 76 <script src="chrome://browser/content/utilityOverlay.js"/> 77 #endif 78 79 #ifdef XP_MACOSX 80 #include ../../../base/content/macWindow.inc.xhtml 81 #else 82 #include placesCommands.inc.xhtml 83 #endif 84 85 <!-- This must be included after macWindow.inc.xhtml to override DownloadsView --> 86 <script src="chrome://browser/content/downloads/allDownloadsView.js"/> 87 <script src="chrome://global/content/contentAreaUtils.js"/> 88 <script src="chrome://browser/content/places/places-tree.js"/> 89 90 <commandset id="organizerCommandSet"> 91 <command id="OrganizerCommand_find:all"/> 92 <command id="OrganizerCommand_export"/> 93 <command id="OrganizerCommand_import"/> 94 <command id="OrganizerCommand_browserImport"/> 95 <command id="OrganizerCommand_backup"/> 96 <command id="OrganizerCommand_restoreFromFile"/> 97 <command id="OrganizerCommand_search:save"/> 98 <command id="OrganizerCommand_search:moreCriteria"/> 99 <command id="OrganizerCommand:Back"/> 100 <command id="OrganizerCommand:Forward"/> 101 <command id="OrganizerCommand:CloseWindow"/> 102 </commandset> 103 #include ../../downloads/content/downloadsCommands.inc.xhtml 104 105 <keyset id="placesOrganizerKeyset"> 106 <!-- Instantiation Keys --> 107 <key id="placesKey_close" 108 command="OrganizerCommand:CloseWindow" 109 data-l10n-id="places-cmd-close" 110 modifiers="accel"/> 111 112 <!-- Command Keys --> 113 <key id="placesKey_find:all" 114 command="OrganizerCommand_find:all" 115 data-l10n-id="places-cmd-find-key" 116 modifiers="accel"/> 117 118 <!-- Back/Forward Keys Support --> 119 #ifndef XP_MACOSX 120 <key id="placesKey_goBackKb" 121 keycode="VK_LEFT" 122 command="OrganizerCommand:Back" 123 modifiers="alt"/> 124 <key id="placesKey_goForwardKb" 125 keycode="VK_RIGHT" 126 command="OrganizerCommand:Forward" 127 modifiers="alt"/> 128 #else 129 <key id="placesKey_goBackKb" 130 keycode="VK_LEFT" 131 command="OrganizerCommand:Back" 132 modifiers="accel"/> 133 <key id="placesKey_goForwardKb" 134 keycode="VK_RIGHT" 135 command="OrganizerCommand:Forward" 136 modifiers="accel"/> 137 #endif 138 #ifdef XP_UNIX 139 <key id="placesKey_goBackKb2" 140 data-l10n-id="nav-back-shortcut-alt" 141 command="OrganizerCommand:Back" 142 modifiers="accel"/> 143 <key id="placesKey_goForwardKb2" 144 data-l10n-id="nav-fwd-shortcut-alt" 145 command="OrganizerCommand:Forward" 146 modifiers="accel"/> 147 #endif 148 </keyset> 149 150 #include ../../../../toolkit/content/editMenuKeys.inc.xhtml 151 #ifdef XP_MACOSX 152 <keyset id="editMenuKeysExtra"> 153 <key id="key_delete2" keycode="VK_BACK" command="cmd_delete"/> 154 </keyset> 155 #endif 156 157 <popupset id="placesPopupset"> 158 #include placesContextMenu.inc.xhtml 159 <menupopup id="placesColumnsContext"/> 160 #include ../../downloads/content/downloadsContextMenu.inc.xhtml 161 </popupset> 162 163 <toolbox id="placesToolbox"> 164 <toolbar class="chromeclass-toolbar" id="placesToolbar" align="center"> 165 <toolbarbutton id="back-button" 166 command="OrganizerCommand:Back" 167 data-l10n-id="places-back-button" 168 disabled="true"/> 169 170 <toolbarbutton id="forward-button" 171 command="OrganizerCommand:Forward" 172 data-l10n-id="places-forward-button" 173 disabled="true"/> 174 175 <menubar id="placesMenu" nonnative="true"> 176 <menu class="menu-iconic" data-l10n-id="places-organize-button" 177 id="organizeButton"> 178 <menupopup id="organizeButtonPopup"> 179 <menuitem id="newbookmark" 180 command="placesCmd_new:bookmark" 181 data-l10n-id="places-add-bookmark"/> 182 <menuitem id="newfolder" 183 command="placesCmd_new:folder" 184 data-l10n-id="places-add-folder"/> 185 <menuitem id="newseparator" 186 command="placesCmd_new:separator" 187 data-l10n-id="places-add-separator"/> 188 189 #ifdef XP_MACOSX 190 <menuseparator id="orgDeleteSeparator"/> 191 192 <menuitem id="orgDelete" 193 command="cmd_delete" 194 data-l10n-id="text-action-delete" 195 key="key_delete"/> 196 #else 197 <menuseparator id="orgUndoSeparator"/> 198 199 <menuitem id="orgUndo" 200 command="cmd_undo" 201 data-l10n-id="text-action-undo" 202 key="key_undo"/> 203 <menuitem id="orgRedo" 204 command="cmd_redo" 205 data-l10n-id="text-action-redo" 206 key="key_redo"/> 207 208 <menuseparator id="orgCutSeparator"/> 209 210 <menuitem id="orgCut" 211 command="cmd_cut" 212 data-l10n-id="text-action-cut" 213 key="key_cut" 214 selection="separator|link|folder|mixed"/> 215 <menuitem id="orgCopy" 216 command="cmd_copy" 217 data-l10n-id="text-action-copy" 218 key="key_copy" 219 selection="separator|link|folder|mixed"/> 220 <menuitem id="orgPaste" 221 command="cmd_paste" 222 data-l10n-id="text-action-paste" 223 key="key_paste" 224 selection="mutable"/> 225 <menuitem id="orgDelete" 226 command="cmd_delete" 227 data-l10n-id="text-action-delete" 228 key="key_delete"/> 229 230 <menuseparator id="selectAllSeparator"/> 231 232 <menuitem id="orgSelectAll" 233 command="cmd_selectAll" 234 data-l10n-id="text-action-select-all" 235 key="key_selectAll"/> 236 237 <menuseparator id="orgCloseSeparator"/> 238 239 <menuitem id="orgClose" 240 command="OrganizerCommand:CloseWindow" 241 key="placesKey_close" 242 data-l10n-id="places-file-close"/> 243 #endif 244 </menupopup> 245 </menu> 246 <menu class="menu-iconic" data-l10n-id="places-view-button" 247 id="viewMenu"> 248 <menupopup id="viewMenuPopup"> 249 250 <menu id="viewColumns" 251 data-l10n-id="places-view-menu-columns"> 252 <menupopup/> 253 </menu> 254 255 <menu id="viewSort" data-l10n-id="places-view-menu-sort"> 256 <menupopup> 257 <menuitem id="viewUnsorted" type="radio" name="columns" 258 data-l10n-id="places-view-sort-unsorted"/> 259 <menuseparator id="directionSeparator"/> 260 <menuitem id="viewSortAscending" type="radio" name="direction" 261 data-l10n-id="places-view-sort-ascending"/> 262 <menuitem id="viewSortDescending" type="radio" name="direction" 263 data-l10n-id="places-view-sort-descending"/> 264 </menupopup> 265 </menu> 266 </menupopup> 267 </menu> 268 <menu class="menu-iconic" data-l10n-id="places-maintenance-button" 269 id="maintenanceButton"> 270 <menupopup id="maintenanceButtonPopup"> 271 <menuitem id="backupBookmarks" 272 command="OrganizerCommand_backup" 273 data-l10n-id="places-cmd-backup"/> 274 <menu id="fileRestoreMenu" data-l10n-id="places-cmd-restore"> 275 <menupopup id="fileRestorePopup"> 276 <menuitem id="restoreFromFile" 277 command="OrganizerCommand_restoreFromFile" 278 data-l10n-id="places-cmd-restore-from-file"/> 279 </menupopup> 280 </menu> 281 <menuseparator/> 282 <menuitem id="fileImport" 283 command="OrganizerCommand_import" 284 data-l10n-id="places-import-bookmarks-from-html"/> 285 <menuitem id="fileExport" 286 command="OrganizerCommand_export" 287 data-l10n-id="places-export-bookmarks-to-html"/> 288 <menuseparator/> 289 <menuitem id="browserImport" 290 command="OrganizerCommand_browserImport" 291 data-l10n-id="places-import-other-browser"/> 292 </menupopup> 293 </menu> 294 </menubar> 295 <toolbarbutton id="clearDownloadsButton" 296 data-l10n-id="downloads-clear-downloads-button" 297 class="tabbable" 298 command="downloadsCmd_clearDownloads"/> 299 300 <spacer id="libraryToolbarSpacer" flex="1"/> 301 302 <html:moz-input-search id="searchFilter" 303 aria-controls="placeContent" 304 data-l10n-attrs="placeholder" 305 collection="bookmarks"/> 306 </toolbar> 307 </toolbox> 308 309 <hbox flex="1" id="placesView"> 310 <tree id="placesList" 311 class="placesTree" 312 is="places-tree" 313 hidecolumnpicker="true" context="placesContext" 314 seltype="single" 315 persist="style"> 316 <treecols> 317 <treecol anonid="title" flex="1" primary="true" hideheader="true"/> 318 </treecols> 319 <treechildren flex="1"/> 320 </tree> 321 <splitter collapse="none" persist="state"></splitter> 322 <vbox id="contentView"> 323 <html:moz-message-bar id="placesDownloadsTorWarning"> 324 </html:moz-message-bar> 325 <vbox id="placesViewsBox" flex="1"> 326 <tree id="placeContent" 327 class="placesTree" 328 context="placesContext" 329 hidecolumnpicker="true" 330 flex="1" 331 is="places-tree" 332 flatList="true" 333 selectfirstnode="true" 334 enableColumnDrag="true"> 335 <treecols id="placeContentColumns" context="placesColumnsContext"> 336 <!-- 337 The below code may suggest that 'ordinal' is still a supported XUL 338 attribute. It is not. This is a crutch so that we can continue 339 persisting the CSS order attribute, which is the appropriate 340 replacement for the ordinal attribute but cannot yet 341 be easily persisted. The code that synchronizes the attribute with 342 the CSS lives in toolkit/content/widget/tree.js and is specific to 343 tree elements. 344 --> 345 <treecol data-l10n-id="places-view-sort-col-name" id="placesContentTitle" anonid="title" style="flex: 5 5 auto" primary="true" ordinal="1" 346 persist="width hidden ordinal sortActive sortDirection"/> 347 <splitter class="tree-splitter"/> 348 <treecol data-l10n-id="places-view-sort-col-tags" id="placesContentTags" anonid="tags" style="flex: 2 2 auto" 349 persist="width hidden ordinal sortActive sortDirection"/> 350 <splitter class="tree-splitter"/> 351 <treecol data-l10n-id="places-view-sort-col-url" id="placesContentUrl" anonid="url" style="flex: 5 5 auto" 352 persist="width hidden ordinal sortActive sortDirection"/> 353 <splitter class="tree-splitter"/> 354 <treecol data-l10n-id="places-view-sort-col-most-recent-visit" id="placesContentDate" anonid="date" style="flex: 1 auto" hidden="true" 355 persist="width hidden ordinal sortActive sortDirection"/> 356 <splitter class="tree-splitter"/> 357 <treecol data-l10n-id="places-view-sort-col-visit-count" id="placesContentVisitCount" anonid="visitCount" style="flex: 1 auto" hidden="true" 358 persist="width hidden ordinal sortActive sortDirection"/> 359 <splitter class="tree-splitter"/> 360 <treecol data-l10n-id="places-view-sort-col-date-added" id="placesContentDateAdded" anonid="dateAdded" style="flex: 1 auto" hidden="true" 361 persist="width hidden ordinal sortActive sortDirection"/> 362 <splitter class="tree-splitter"/> 363 <treecol data-l10n-id="places-view-sort-col-last-modified" id="placesContentLastModified" anonid="lastModified" style="flex: 1 auto" hidden="true" 364 persist="width hidden ordinal sortActive sortDirection"/> 365 </treecols> 366 <treechildren flex="1"/> 367 </tree> 368 <richlistbox flex="1" 369 hidden="true" 370 seltype="multiple" 371 id="downloadsListBox" 372 class="allDownloadsListBox" 373 context="downloadsContextMenu"/> 374 </vbox> 375 <vbox id="detailsPane"> 376 <vbox id="itemsCountBox" align="center" flex="1" hidden="true"> 377 <spacer style="flex: 3 3"/> 378 <label id="itemsCountText"/> 379 <spacer flex="1"/> 380 <description id="selectItemDescription" data-l10n-id="places-details-pane-select-an-item-description"> 381 </description> 382 <spacer style="flex: 3 3"/> 383 </vbox> 384 <vbox id="infoBox"> 385 #include editBookmarkPanel.inc.xhtml 386 </vbox> 387 </vbox> 388 </vbox> 389 </hbox> 390 </window>