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
// 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
32
#include "nsIGenericFactory.h"
35
#include "mozIXMLTerminal.h"
36
#include "mozIXMLTermShell.h"
39
class mozXMLTermShell : public mozIXMLTermShell
44
virtual ~mozXMLTermShell();
47
NS_DECL_MOZIXMLTERMSHELL
49
// Define a Create method to be used with a factory:
51
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
54
RegisterProc(nsIComponentManager *aCompMgr,
56
const char *registryLocation,
57
const char *componentType,
58
const nsModuleComponentInfo *info);
61
UnregisterProc(nsIComponentManager *aCompMgr,
63
const char *registryLocation,
64
const nsModuleComponentInfo *info);
66
NS_IMETHOD Finalize(void);
70
/** object initialization flag */
73
/** non-owning reference to content window for XMLterm */
74
nsIDOMWindowInternal* mContentWindow;
76
/** non-owning reference (??) to doc shell for content window */
77
nsIDocShell* mContentAreaDocShell;
79
/** owning reference to XMLTerminal object created by us */
80
nsCOMPtr<mozIXMLTerminal> mXMLTerminal;
82
static PRBool mLoggingInitialized;