~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/xmlterm/base/mozIXMLTermStream.idl

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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/
 
6
 * 
 
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.
 
11
 * 
 
12
 * The Original Code is XMLterm.
 
13
 * 
 
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.
 
17
 * 
 
18
 * Contributor(s):
 
19
 */
 
20
 
 
21
/* mozIXMLTermStream: interface to display HTML/XML streams as documents (unscriptable)
 
22
 */
 
23
 
 
24
#include "nsIInputStream.idl"
 
25
 
 
26
interface nsIDOMWindowInternal;
 
27
 
 
28
%{C++
 
29
#define MOZXMLTERMSTREAM_CLASSNAME  "XMLTermStream Component"
 
30
#define MOZXMLTERMSTREAM_CONTRACTID "@mozilla.org/xmlterm/xmlterm-stream;1"
 
31
 
 
32
#define MOZXMLTERMSTREAM_CID                 \
 
33
{ /* 0eb82b41-43a2-11d3-8e76-006008948af5 */ \
 
34
   0x0eb82b41, 0x43a2, 0x11d3,               \
 
35
{0x8e, 0x76, 0x00, 0x60, 0x08, 0x94, 0x8a, 0xf5} }
 
36
%}
 
37
 
 
38
/* NOT SCRIPTABLE */
 
39
[uuid(0eb82b40-43a2-11d3-8e76-006008948af5)]
 
40
 
 
41
interface mozIXMLTermStream : nsIInputStream
 
42
{
 
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)
 
50
   */
 
51
  void open(in nsIDOMWindowInternal aDOMWindow,
 
52
            in string frameName,
 
53
            in string contentURL,
 
54
            in string contentType,
 
55
            in long maxResizeHeight);
 
56
 
 
57
  /** Write Unicode string to stream (blocks until write is completed)
 
58
   * @param buf string to write
 
59
   */
 
60
  void write(in wstring buf);
 
61
};