2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "MPL"); you may not use this file
4
* except in compliance with the MPL. You may obtain a copy of
5
* the MPL at http://www.mozilla.org/MPL/
7
* Software distributed under the MPL is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the MPL for the specific language governing
10
* rights and limitations under the MPL.
12
* The Original Code is XMLterm.
14
* The Initial Developer of the Original Code is Ramalingam Saravanan.
15
* Portions created by Ramalingam Saravanan <svn@xmlterm.org> are
16
* Copyright (C) 1999 Ramalingam Saravanan. All Rights Reserved.
21
/* mozIXMLTermStream: interface to display HTML/XML streams as documents (unscriptable)
24
#include "nsIInputStream.idl"
26
interface nsIDOMWindowInternal;
29
#define MOZXMLTERMSTREAM_CLASSNAME "XMLTermStream Component"
30
#define MOZXMLTERMSTREAM_CONTRACTID "@mozilla.org/xmlterm/xmlterm-stream;1"
32
#define MOZXMLTERMSTREAM_CID \
33
{ /* 0eb82b41-43a2-11d3-8e76-006008948af5 */ \
34
0x0eb82b41, 0x43a2, 0x11d3, \
35
{0x8e, 0x76, 0x00, 0x60, 0x08, 0x94, 0x8a, 0xf5} }
39
[uuid(0eb82b40-43a2-11d3-8e76-006008948af5)]
41
interface mozIXMLTermStream : nsIInputStream
43
/** Open stream in specified frame, or in current frame if frameName is null
44
* @param aDOMWindow parent window
45
* @param frameName name of child frame in which to display stream, or null
46
* to display in parent window
47
* @param contentURL URL of stream content
48
* @param contentType MIME type of stream content
49
* @param maxResizeHeight maximum resize height (0=> do not resize)
51
void open(in nsIDOMWindowInternal aDOMWindow,
54
in string contentType,
55
in long maxResizeHeight);
57
/** Write Unicode string to stream (blocks until write is completed)
58
* @param buf string to write
60
void write(in wstring buf);