File:  [mozdev] / abimoz / plugin / nsWPPluginFactory.h
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Fri Oct 25 14:42:28 2002 UTC (15 years, 1 month ago) by mikep
Branches: MAIN
CVS tags: HEAD
Upgraded to Mozilla 1.2b and abiword 1.0.3.

/*
This file is part of AbiMoz.

nsWPPluginControl.idl - Declares the WP plugin factory class.
Copyright (C) 2001 OEone Corporation

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

The author of this program can be contacted in writing at
OEone Corporation, 290 St-Joseph Blvd., Hull, QC J8Y 3Y3, CANADA.
*/


/*
 *  */

#ifndef __NS_WP_PLUGIN_FACTORY_H__
#define __NS_WP_PLUGIN_FACTORY_H__

class nsWPPluginFactoryImpl : public nsIPlugin
{
public:
    nsWPPluginFactoryImpl(const nsCID &aClass, const char* className,
                            const char* contractID);

    // nsISupports methods
    NS_DECL_ISUPPORTS ;

    // nsIFactory methods
    NS_IMETHOD CreateInstance(nsISupports *aOuter,
                              const nsIID &aIID,
                              void **aResult);

    NS_IMETHOD LockFactory(PRBool aLock);
    NS_IMETHOD Initialize(void);
    NS_IMETHOD Shutdown(void);
    NS_IMETHOD GetMIMEDescription(const char* *result);
    NS_IMETHOD GetValue(nsPluginVariable variable, void *value);
    NS_IMETHOD CreatePluginInstance(nsISupports *aOuter, REFNSIID aIID, 
                                    const char* aPluginMIMEType,
                                    void **aResult);

protected:
    virtual ~nsWPPluginFactoryImpl();

  nsCID       mClassID;
  const char* mClassName;
  const char* mContractID;

};

#endif // __NS_WP_PLUGIN_FACTORY_H__






FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>