editor/idl/nsIURIRefObject.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsISupports.idl"
michael@0 7 #include "domstubs.idl"
michael@0 8
michael@0 9 interface nsIDOMNode;
michael@0 10
michael@0 11 /** A class which can represent any node which points to an
michael@0 12 * external URI, e.g. <a>, <img>, <script> etc,
michael@0 13 * and has the capability to rewrite URLs to be
michael@0 14 * relative or absolute.
michael@0 15 * Used by the editor but not dependant on it.
michael@0 16 */
michael@0 17
michael@0 18 [scriptable, uuid(2226927e-1dd2-11b2-b57f-faab47288563)]
michael@0 19
michael@0 20 interface nsIURIRefObject : nsISupports
michael@0 21 {
michael@0 22 attribute nsIDOMNode node;
michael@0 23
michael@0 24 /**
michael@0 25 * Go back to the beginning of the attribute list.
michael@0 26 */
michael@0 27 void Reset();
michael@0 28
michael@0 29 /**
michael@0 30 * Return the next rewritable URI.
michael@0 31 */
michael@0 32 DOMString GetNextURI();
michael@0 33
michael@0 34 /**
michael@0 35 * Go back to the beginning of the attribute list
michael@0 36 *
michael@0 37 * @param aOldPat Old pattern to be replaced, e.g. file:///a/b/
michael@0 38 * @param aNewPat New pattern to be replaced, e.g. http://mypage.aol.com/
michael@0 39 * @param aMakeRel Rewrite links as relative vs. absolute
michael@0 40 */
michael@0 41 void RewriteAllURIs(in DOMString aOldPat, in DOMString aNewPat,
michael@0 42 in boolean aMakeRel);
michael@0 43 };

mercurial