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

« back to all changes in this revision

Viewing changes to mozilla/extensions/xmlterm/base/mozXMLTermShell.h

  • 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
// mozXMLTermShell.h: declaration of mozXMLTermShell
 
22
// which implements mozIXMLTermShell, providing an XPCONNECT wrapper
 
23
// to the XMLTerminal interface, thus allowing easy (and controlled)
 
24
// access from scripts
 
25
 
 
26
#include <stdio.h>
 
27
 
 
28
#include "nscore.h"
 
29
#include "nspr.h"
 
30
#include "nsCOMPtr.h"
 
31
#include "nsString.h"
 
32
#include "nsIGenericFactory.h"
 
33
 
 
34
#include "mozXMLT.h"
 
35
#include "mozIXMLTerminal.h"
 
36
#include "mozIXMLTermShell.h"
 
37
 
 
38
 
 
39
class mozXMLTermShell : public mozIXMLTermShell
 
40
{
 
41
 public: 
 
42
 
 
43
  mozXMLTermShell();
 
44
  virtual ~mozXMLTermShell();
 
45
 
 
46
  NS_DECL_ISUPPORTS
 
47
  NS_DECL_MOZIXMLTERMSHELL
 
48
 
 
49
  // Define a Create method to be used with a factory:
 
50
  static NS_METHOD
 
51
    Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
 
52
 
 
53
  static NS_METHOD
 
54
    RegisterProc(nsIComponentManager *aCompMgr,
 
55
                 nsIFile *aPath,
 
56
                 const char *registryLocation,
 
57
                 const char *componentType,
 
58
                 const nsModuleComponentInfo *info);
 
59
 
 
60
  static NS_METHOD
 
61
    UnregisterProc(nsIComponentManager *aCompMgr,
 
62
                   nsIFile *aPath,
 
63
                   const char *registryLocation,
 
64
                   const nsModuleComponentInfo *info);
 
65
 
 
66
  NS_IMETHOD Finalize(void);
 
67
 
 
68
protected:
 
69
 
 
70
  /** object initialization flag */
 
71
  PRBool mInitialized;
 
72
 
 
73
  /** non-owning reference to content window for XMLterm */             
 
74
  nsIDOMWindowInternal* mContentWindow;
 
75
 
 
76
  /** non-owning reference (??) to doc shell for content window */
 
77
  nsIDocShell* mContentAreaDocShell;
 
78
 
 
79
  /** owning reference to XMLTerminal object created by us */
 
80
  nsCOMPtr<mozIXMLTerminal> mXMLTerminal;
 
81
 
 
82
  static PRBool mLoggingInitialized;
 
83
};