dom/xslt/nsIDocumentTransformer.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #ifndef nsIDocumentTransformer_h__
michael@0 6 #define nsIDocumentTransformer_h__
michael@0 7
michael@0 8 #include "nsISupports.h"
michael@0 9
michael@0 10 class nsIDOMNode;
michael@0 11 class nsILoadGroup;
michael@0 12 class nsIURI;
michael@0 13 class nsIPrincipal;
michael@0 14 class nsString;
michael@0 15
michael@0 16 #define NS_ITRANSFORMOBSERVER_IID \
michael@0 17 { 0x04b2d17c, 0xe98d, 0x45f5, \
michael@0 18 { 0x9a, 0x67, 0xb7, 0x01, 0x19, 0x59, 0x7d, 0xe7 } }
michael@0 19
michael@0 20 class nsITransformObserver : public nsISupports
michael@0 21 {
michael@0 22 public:
michael@0 23
michael@0 24 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSFORMOBSERVER_IID)
michael@0 25
michael@0 26 NS_IMETHOD OnDocumentCreated(nsIDocument *aResultDocument) = 0;
michael@0 27
michael@0 28 NS_IMETHOD OnTransformDone(nsresult aResult,
michael@0 29 nsIDocument *aResultDocument) = 0;
michael@0 30
michael@0 31 };
michael@0 32
michael@0 33 NS_DEFINE_STATIC_IID_ACCESSOR(nsITransformObserver, NS_ITRANSFORMOBSERVER_IID)
michael@0 34
michael@0 35 #define NS_IDOCUMENTTRANSFORMER_IID \
michael@0 36 {0x17c83d91, 0xac2f, 0x4658, \
michael@0 37 { 0x91, 0x6c, 0xcb, 0xc4, 0xd2, 0xb5, 0x2c, 0xe }}
michael@0 38
michael@0 39 class nsIDocumentTransformer : public nsISupports
michael@0 40 {
michael@0 41 public:
michael@0 42
michael@0 43 NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCUMENTTRANSFORMER_IID)
michael@0 44
michael@0 45 NS_IMETHOD Init(nsIPrincipal* aPrincipal) = 0;
michael@0 46 NS_IMETHOD SetTransformObserver(nsITransformObserver* aObserver) = 0;
michael@0 47 NS_IMETHOD LoadStyleSheet(nsIURI* aUri, nsILoadGroup* aLoadGroup) = 0;
michael@0 48 NS_IMETHOD SetSourceContentModel(nsIDOMNode* aSource) = 0;
michael@0 49 NS_IMETHOD CancelLoads() = 0;
michael@0 50
michael@0 51 NS_IMETHOD AddXSLTParamNamespace(const nsString& aPrefix,
michael@0 52 const nsString& aNamespace) = 0;
michael@0 53 NS_IMETHOD AddXSLTParam(const nsString& aName,
michael@0 54 const nsString& aNamespace,
michael@0 55 const nsString& aValue,
michael@0 56 const nsString& aSelect,
michael@0 57 nsIDOMNode* aContextNode) = 0;
michael@0 58 };
michael@0 59
michael@0 60 NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocumentTransformer,
michael@0 61 NS_IDOCUMENTTRANSFORMER_IID)
michael@0 62
michael@0 63 #endif //nsIDocumentTransformer_h__

mercurial