зеркало из https://github.com/mozilla/gecko-dev.git
140 строки
5.4 KiB
C++
Executable File
140 строки
5.4 KiB
C++
Executable File
/* -*- 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.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
|
|
|
#ifndef nsIDOMEditorAppCore_h__
|
|
#define nsIDOMEditorAppCore_h__
|
|
|
|
#include "nsISupports.h"
|
|
#include "nsString.h"
|
|
#include "nsIScriptContext.h"
|
|
#include "nsIDOMBaseAppCore.h"
|
|
|
|
class nsIDOMWindow;
|
|
|
|
#define NS_IDOMEDITORAPPCORE_IID \
|
|
{ 0x9afff72b, 0xca9a, 0x11d2, \
|
|
{0x96, 0xc9, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56}}
|
|
|
|
class nsIDOMEditorAppCore : public nsIDOMBaseAppCore {
|
|
public:
|
|
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEDITORAPPCORE_IID; return iid; }
|
|
|
|
NS_IMETHOD GetContentsAsText(nsString& aContentsAsText)=0;
|
|
|
|
NS_IMETHOD GetContentsAsHTML(nsString& aContentsAsHTML)=0;
|
|
|
|
NS_IMETHOD SetEditorType(const nsString& aEditorType)=0;
|
|
|
|
NS_IMETHOD SetTextProperty(const nsString& aAttr)=0;
|
|
|
|
NS_IMETHOD RemoveTextProperty(const nsString& aAttr)=0;
|
|
|
|
NS_IMETHOD GetTextProperty(const nsString& aAttr, PRBool* aFirstHas, PRBool* aAnyHas, PRBool* aAllHas)=0;
|
|
|
|
NS_IMETHOD Undo()=0;
|
|
|
|
NS_IMETHOD Redo()=0;
|
|
|
|
NS_IMETHOD Cut()=0;
|
|
|
|
NS_IMETHOD Copy()=0;
|
|
|
|
NS_IMETHOD Paste()=0;
|
|
|
|
NS_IMETHOD SelectAll()=0;
|
|
|
|
NS_IMETHOD BeginBatchChanges()=0;
|
|
|
|
NS_IMETHOD EndBatchChanges()=0;
|
|
|
|
NS_IMETHOD ShowClipboard()=0;
|
|
|
|
NS_IMETHOD InsertText(const nsString& aTextToInsert)=0;
|
|
|
|
NS_IMETHOD InsertLink()=0;
|
|
|
|
NS_IMETHOD InsertImage()=0;
|
|
|
|
NS_IMETHOD Exit()=0;
|
|
|
|
NS_IMETHOD SetToolbarWindow(nsIDOMWindow* aWin)=0;
|
|
|
|
NS_IMETHOD SetContentWindow(nsIDOMWindow* aWin)=0;
|
|
|
|
NS_IMETHOD SetWebShellWindow(nsIDOMWindow* aWin)=0;
|
|
};
|
|
|
|
|
|
#define NS_DECL_IDOMEDITORAPPCORE \
|
|
NS_IMETHOD GetContentsAsText(nsString& aContentsAsText); \
|
|
NS_IMETHOD GetContentsAsHTML(nsString& aContentsAsHTML); \
|
|
NS_IMETHOD SetEditorType(const nsString& aEditorType); \
|
|
NS_IMETHOD SetTextProperty(const nsString& aAttr); \
|
|
NS_IMETHOD RemoveTextProperty(const nsString& aAttr); \
|
|
NS_IMETHOD GetTextProperty(const nsString& aAttr, PRBool* aFirstHas, PRBool* aAnyHas, PRBool* aAllHas); \
|
|
NS_IMETHOD Undo(); \
|
|
NS_IMETHOD Redo(); \
|
|
NS_IMETHOD Cut(); \
|
|
NS_IMETHOD Copy(); \
|
|
NS_IMETHOD Paste(); \
|
|
NS_IMETHOD SelectAll(); \
|
|
NS_IMETHOD BeginBatchChanges(); \
|
|
NS_IMETHOD EndBatchChanges(); \
|
|
NS_IMETHOD ShowClipboard(); \
|
|
NS_IMETHOD InsertText(const nsString& aTextToInsert); \
|
|
NS_IMETHOD InsertLink(); \
|
|
NS_IMETHOD InsertImage(); \
|
|
NS_IMETHOD Exit(); \
|
|
NS_IMETHOD SetToolbarWindow(nsIDOMWindow* aWin); \
|
|
NS_IMETHOD SetContentWindow(nsIDOMWindow* aWin); \
|
|
NS_IMETHOD SetWebShellWindow(nsIDOMWindow* aWin); \
|
|
|
|
|
|
|
|
#define NS_FORWARD_IDOMEDITORAPPCORE(_to) \
|
|
NS_IMETHOD GetContentsAsText(nsString& aContentsAsText) { return _to##GetContentsAsText(aContentsAsText); } \
|
|
NS_IMETHOD GetContentsAsHTML(nsString& aContentsAsHTML) { return _to##GetContentsAsHTML(aContentsAsHTML); } \
|
|
NS_IMETHOD SetEditorType(const nsString& aEditorType) { return _to##SetEditorType(aEditorType); } \
|
|
NS_IMETHOD SetTextProperty(const nsString& aAttr) { return _to##SetTextProperty(aAttr); } \
|
|
NS_IMETHOD RemoveTextProperty(const nsString& aAttr) { return _to##RemoveTextProperty(aAttr); } \
|
|
NS_IMETHOD GetTextProperty(const nsString& aAttr, PRBool* aFirstHas, PRBool* aAnyHas, PRBool* aAllHas) { return _to##GetTextProperty(aAttr, aFirstHas, aAnyHas, aAllHas); } \
|
|
NS_IMETHOD Undo() { return _to##Undo(); } \
|
|
NS_IMETHOD Redo() { return _to##Redo(); } \
|
|
NS_IMETHOD Cut() { return _to##Cut(); } \
|
|
NS_IMETHOD Copy() { return _to##Copy(); } \
|
|
NS_IMETHOD Paste() { return _to##Paste(); } \
|
|
NS_IMETHOD SelectAll() { return _to##SelectAll(); } \
|
|
NS_IMETHOD BeginBatchChanges() { return _to##BeginBatchChanges(); } \
|
|
NS_IMETHOD EndBatchChanges() { return _to##EndBatchChanges(); } \
|
|
NS_IMETHOD ShowClipboard() { return _to##ShowClipboard(); } \
|
|
NS_IMETHOD InsertText(const nsString& aTextToInsert) { return _to##InsertText(aTextToInsert); } \
|
|
NS_IMETHOD InsertLink() { return _to##InsertLink(); } \
|
|
NS_IMETHOD InsertImage() { return _to##InsertImage(); } \
|
|
NS_IMETHOD Exit() { return _to##Exit(); } \
|
|
NS_IMETHOD SetToolbarWindow(nsIDOMWindow* aWin) { return _to##SetToolbarWindow(aWin); } \
|
|
NS_IMETHOD SetContentWindow(nsIDOMWindow* aWin) { return _to##SetContentWindow(aWin); } \
|
|
NS_IMETHOD SetWebShellWindow(nsIDOMWindow* aWin) { return _to##SetWebShellWindow(aWin); } \
|
|
|
|
|
|
extern "C" NS_DOM nsresult NS_InitEditorAppCoreClass(nsIScriptContext *aContext, void **aPrototype);
|
|
|
|
extern "C" NS_DOM nsresult NS_NewScriptEditorAppCore(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
|
|
|
#endif // nsIDOMEditorAppCore_h__
|