45723. idl'ized some ifaces and removed some cruft

This commit is contained in:
valeski%netscape.com 2000-07-18 23:21:25 +00:00
Родитель 97e5a448bb
Коммит bb7748fcb4
7 изменённых файлов: 0 добавлений и 439 удалений

Просмотреть файл

@ -1,83 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsIClipboardCommands_h___
#define nsIClipboardCommands_h___
#include "nsISupports.h"
#include "prtypes.h"
/* {b8100c90-73be-11d2-92a5-00105a1b0d64} */
#define NS_ICLIPBOARDCOMMANDS_IID \
{ 0xb8100c90, 0x73be, 0x11d2, \
{0x92, 0xa5, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} }
/**
*/
class nsIClipboardCommands : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICLIPBOARDCOMMANDS_IID)
/**
* Returns whether there is a selection and it is not read-only.
*/
NS_IMETHOD CanCutSelection(PRBool* aResult) = 0;
/**
* Returns whether there is a selection and it is copyable.
*/
NS_IMETHOD CanCopySelection(PRBool* aResult) = 0;
/**
* Returns whether the current contents of the clipboard can be
* pasted and if the current selection is not read-only.
*/
NS_IMETHOD CanPasteSelection(PRBool* aResult) = 0;
/**
* Cut the current selection onto the clipboard.
*/
NS_IMETHOD CutSelection(void) = 0;
/**
* Copy the current selection onto the clipboard.
*/
NS_IMETHOD CopySelection(void) = 0;
/**
* Paste the contents of the clipboard into the current selection.
*/
NS_IMETHOD PasteSelection(void) = 0;
/**
* Select the entire contents.
*/
NS_IMETHOD SelectAll(void) = 0;
/**
* Clear the current selection (if any).
*/
NS_IMETHOD SelectNone(void) = 0;
};
#endif /* nsIClipboardCommands_h___ */

Просмотреть файл

@ -1,51 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsIContentViewerContainer_h___
#define nsIContentViewerContainer_h___
#include "nsweb.h"
#include "prtypes.h"
#include "nsISupports.h"
class nsIContentViewer;
class nsIURI;
class nsIDocumentLoader;
class nsIChannel;
#define NS_ICONTENT_VIEWER_CONTAINER_IID \
{ 0xa6cf9055, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
/*
* The primary container interface for objects that can contain
* implementations of nsIContentViewer.
*/
class nsIContentViewerContainer : public nsISupports
{
public:
static const nsIID& GetIID() { static nsIID iid = NS_ICONTENT_VIEWER_CONTAINER_IID; return iid; }
NS_IMETHOD Embed(nsIContentViewer* aDocViewer,
const char* aCommand,
nsISupports* aExtraInfo) = 0;
};
#endif /* nsIContentViewerContainer_h___ */

Просмотреть файл

@ -1,81 +0,0 @@
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM nsIContentViewerEdit.idl
*/
#ifndef __gen_nsIContentViewerEdit_h__
#define __gen_nsIContentViewerEdit_h__
#include "nsISupports.h"
#include "nsrootidl.h"
/* starting interface: nsIContentViewerEdit */
#define NS_ICONTENTVIEWEREDIT_IID_STR "42d5215c-9bc7-11d3-bccc-0060b0fc76bd"
#define NS_ICONTENTVIEWEREDIT_IID \
{0x42d5215c, 0x9bc7, 0x11d3, \
{ 0xbc, 0xcc, 0x00, 0x60, 0xb0, 0xfc, 0x76, 0xbd }}
class nsIContentViewerEdit : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWEREDIT_IID)
/* void Search (); */
NS_IMETHOD Search(void) = 0;
/* readonly attribute boolean searchable; */
NS_IMETHOD GetSearchable(PRBool *aSearchable) = 0;
/* void ClearSelection (); */
NS_IMETHOD ClearSelection(void) = 0;
/* void SelectAll (); */
NS_IMETHOD SelectAll(void) = 0;
/* void CopySelection (); */
NS_IMETHOD CopySelection(void) = 0;
/* readonly attribute boolean copyable; */
NS_IMETHOD GetCopyable(PRBool *aCopyable) = 0;
/* void CutSelection (); */
NS_IMETHOD CutSelection(void) = 0;
/* readonly attribute boolean cutable; */
NS_IMETHOD GetCutable(PRBool *aCutable) = 0;
/* void Paste (); */
NS_IMETHOD Paste(void) = 0;
/* readonly attribute boolean pasteable; */
NS_IMETHOD GetPasteable(PRBool *aPasteable) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTVIEWEREDIT \
NS_IMETHOD Search(void); \
NS_IMETHOD GetSearchable(PRBool *aSearchable); \
NS_IMETHOD ClearSelection(void); \
NS_IMETHOD SelectAll(void); \
NS_IMETHOD CopySelection(void); \
NS_IMETHOD GetCopyable(PRBool *aCopyable); \
NS_IMETHOD CutSelection(void); \
NS_IMETHOD GetCutable(PRBool *aCutable); \
NS_IMETHOD Paste(void); \
NS_IMETHOD GetPasteable(PRBool *aPasteable);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTVIEWEREDIT(_to) \
NS_IMETHOD Search(void) { return _to ## Search(); } \
NS_IMETHOD GetSearchable(PRBool *aSearchable) { return _to ## GetSearchable(aSearchable); } \
NS_IMETHOD ClearSelection(void) { return _to ## ClearSelection(); } \
NS_IMETHOD SelectAll(void) { return _to ## SelectAll(); } \
NS_IMETHOD CopySelection(void) { return _to ## CopySelection(); } \
NS_IMETHOD GetCopyable(PRBool *aCopyable) { return _to ## GetCopyable(aCopyable); } \
NS_IMETHOD CutSelection(void) { return _to ## CutSelection(); } \
NS_IMETHOD GetCutable(PRBool *aCutable) { return _to ## GetCutable(aCutable); } \
NS_IMETHOD Paste(void) { return _to ## Paste(); } \
NS_IMETHOD GetPasteable(PRBool *aPasteable) { return _to ## GetPasteable(aPasteable); }
#endif /* __gen_nsIContentViewerEdit_h__ */

Просмотреть файл

@ -1,83 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsIDocumentLoader_h___
#define nsIDocumentLoader_h___
#include "nsweb.h"
#include "prtypes.h"
#include "nsISupports.h"
#include "nsIChannel.h"
/* Forward declarations... */
class nsString;
class nsIURI;
class nsIFactory;
class nsIPostData;
class nsIContentViewer;
class nsIContentViewerContainer;
class nsIStreamListener;
class nsIStreamObserver;
class nsIDocument;
class nsIChannel;
class nsILoadGroup;
/* f43ba260-0737-11d2-beb9-00805f8a66dc */
#define NS_IDOCUMENTLOADERFACTORY_IID \
{ 0xf43ba260, 0x0737, 0x11d2,{0xbe, 0xb9, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0xdc}}
// Registered components that can instantiate a
// nsIDocumentLoaderFactory for a given mimetype must be prefixed with
// this prefix to be found. The format is <prefix>/%s/%s where the
// first %s is replaced with the command and the second %s is replaced
// with the mimetype. For example, to view a image/gif file you would
// create this progid:
//
// "component://netscape/content-viewer-factory/view/image/gif"
//
#define NS_DOCUMENT_LOADER_FACTORY_PROGID_PREFIX \
"component://netscape/content-viewer-factory/"
/*
* The factory API for creating a content viewer for a given
* content-type and command.
*/
class nsIDocumentLoaderFactory : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENTLOADERFACTORY_IID)
NS_IMETHOD CreateInstance(const char *aCommand,
nsIChannel* aChannel,
nsILoadGroup* aLoadGroup,
const char* aContentType,
nsISupports* aContainer,
nsISupports* aExtraInfo,
nsIStreamListener** aDocListenerResult,
nsIContentViewer** aDocViewerResult) = 0;
NS_IMETHOD CreateInstanceForDocument(nsISupports* aContainer,
nsIDocument* aDocument,
const char *aCommand,
nsIContentViewer** aDocViewerResult) = 0;
};
#endif /* nsIDocumentLoader_h___ */

Просмотреть файл

@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsIRefreshUri_h___
#define nsIRefreshUri_h___
#include "nscore.h"
#include "nsISupports.h"
#include "nsIURI.h"
#include "nspr.h"
/* 69EFC430-2EFE-11d2-9E5D-006008BF092E */
#define NS_IREFRESHURI_IID \
{ 0x69efc430, 0x2efe, 0x11d2, \
{ 0x9e, 0x5d, 0x0, 0x60, 0x8, 0xbf, 0x9, 0x2e } }
struct nsIRefreshURI : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IREFRESHURI_IID)
/**
* Reloads a uri after waiting millis milliseconds.
*
* @param uri The uri to refresh.
* @param millis The number of milliseconds to wait.
* @param repeat Do you want the uri to be repeatedly refreshed every millis milliseconds.
*/
NS_IMETHOD RefreshURI(nsIURI *aURI, PRInt32 aMillis, PRBool aRepeat) = 0;
/**
* Cancels all timer loads.
*/
NS_IMETHOD CancelRefreshURITimers(void) = 0;
};
#endif /* nsIRefreshUri_h___ */

Просмотреть файл

@ -1,51 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsIUrlDispatcher_h___
#define nsIUrlDispatcher_h___
#include "nsISupports.h"
#include "nsString.h"
class nsIPostData;
// Interface ID for nsILinkHandler
#define NS_IURLDISPATCHER_IID \
{0x4023b581, 0x309c, 0x11d3, {0xbd, 0xc3, 0x0, 0x50, 0x4, 0xa, 0x9b,0x44}}
/**
* Interface used for dispatching URL to the proper handler
*/
class nsIUrlDispatcher : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IURLDISPATCHER_IID)
NS_IMETHOD HandleUrl(const PRUnichar * aCommand, const PRUnichar * aURLSpec,
nsIInputStream * aPostDataStream) = 0;
};
#define NS_DECL_IURLDISPATCHER \
NS_IMETHOD HandleUrl(const PRUnichar *, const PRUnichar *, nsIInputStream *); \
#endif /* nsIUrlDispatcher_h___ */

Просмотреть файл

@ -1,33 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsweb_h___
#define nsweb_h___
#include "nscore.h"
#ifdef _IMPL_NS_WEB
#define NS_WEB NS_EXPORT
#else
#define NS_WEB NS_IMPORT
#endif
#endif /* nsweb_h___ */