2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
|
|
|
#ifndef nsIDocumentTransformer_h__
|
|
|
|
#define nsIDocumentTransformer_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
2014-10-08 12:29:11 +04:00
|
|
|
class nsIDocument;
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
class nsIDOMNode;
|
2005-11-02 10:40:09 +03:00
|
|
|
class nsIURI;
|
2006-07-02 11:23:10 +04:00
|
|
|
class nsString;
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
|
|
|
#define NS_ITRANSFORMOBSERVER_IID \
|
2006-10-03 06:22:22 +04:00
|
|
|
{ 0x04b2d17c, 0xe98d, 0x45f5, \
|
|
|
|
{ 0x9a, 0x67, 0xb7, 0x01, 0x19, 0x59, 0x7d, 0xe7 } }
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
|
|
|
class nsITransformObserver : public nsISupports
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSFORMOBSERVER_IID)
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
2006-10-03 06:22:22 +04:00
|
|
|
NS_IMETHOD OnDocumentCreated(nsIDocument *aResultDocument) = 0;
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
2005-11-02 10:40:09 +03:00
|
|
|
NS_IMETHOD OnTransformDone(nsresult aResult,
|
2006-10-03 06:22:22 +04:00
|
|
|
nsIDocument *aResultDocument) = 0;
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsITransformObserver, NS_ITRANSFORMOBSERVER_IID)
|
|
|
|
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
#define NS_IDOCUMENTTRANSFORMER_IID \
|
2014-10-08 12:29:11 +04:00
|
|
|
{ 0xf45e1ff8, 0x50f3, 0x4496, \
|
|
|
|
{ 0xb3, 0xa2, 0x0e, 0x03, 0xe8, 0x4a, 0x57, 0x11 } }
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
|
|
|
class nsIDocumentTransformer : public nsISupports
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCUMENTTRANSFORMER_IID)
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
|
2005-11-02 10:40:09 +03:00
|
|
|
NS_IMETHOD SetTransformObserver(nsITransformObserver* aObserver) = 0;
|
2014-10-08 12:29:11 +04:00
|
|
|
NS_IMETHOD LoadStyleSheet(nsIURI* aUri, nsIDocument* aLoaderDocument) = 0;
|
2005-11-02 10:40:09 +03:00
|
|
|
NS_IMETHOD SetSourceContentModel(nsIDOMNode* aSource) = 0;
|
|
|
|
NS_IMETHOD CancelLoads() = 0;
|
2006-05-19 14:29:43 +04:00
|
|
|
|
|
|
|
NS_IMETHOD AddXSLTParamNamespace(const nsString& aPrefix,
|
|
|
|
const nsString& aNamespace) = 0;
|
|
|
|
NS_IMETHOD AddXSLTParam(const nsString& aName,
|
|
|
|
const nsString& aNamespace,
|
|
|
|
const nsString& aValue,
|
|
|
|
const nsString& aSelect,
|
|
|
|
nsIDOMNode* aContextNode) = 0;
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
};
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocumentTransformer,
|
|
|
|
NS_IDOCUMENTTRANSFORMER_IID)
|
|
|
|
|
Landing XSLT branch. Tracking bug is 155578, fixes bugs 46633, 54659, 73492, 70369, 85408, 90157, 130161, 109918, 150916 and 170097
* New scriptable interfaces to XSLT
* Make HTML-output create real html
* cleanup the XSLTProcessor class
Patch by sicking, pike and peterv
r=sicking/pike, sr=peterv, a=asa
2005-11-02 10:38:45 +03:00
|
|
|
#endif //nsIDocumentTransformer_h__
|