1999-06-11 03:50:26 +04:00
|
|
|
/* -*- 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.
|
|
|
|
*/
|
|
|
|
#ifndef nsEditorAppCore_h___
|
|
|
|
#define nsEditorAppCore_h___
|
|
|
|
|
|
|
|
//#include "nsAppCores.h"
|
|
|
|
|
|
|
|
#include "nscore.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
#include "nsIEditorShell.h"
|
|
|
|
#include "nsIDocumentLoaderObserver.h"
|
1999-07-15 02:30:39 +04:00
|
|
|
#include "nsIDOMSelectionListener.h"
|
1999-06-28 14:35:57 +04:00
|
|
|
#ifdef NECKO
|
1999-07-01 23:30:20 +04:00
|
|
|
#include "nsIPrompt.h"
|
1999-06-28 14:35:57 +04:00
|
|
|
#else
|
1999-06-11 03:50:26 +04:00
|
|
|
#include "nsINetSupport.h"
|
1999-06-28 14:35:57 +04:00
|
|
|
#endif
|
1999-06-11 03:50:26 +04:00
|
|
|
#include "nsIStreamObserver.h"
|
|
|
|
#include "nsIDOMDocument.h"
|
|
|
|
#include "nsVoidArray.h"
|
|
|
|
#include "nsTextServicesCID.h"
|
1999-06-12 02:43:19 +04:00
|
|
|
#include "nsIEditorSpellCheck.h"
|
1999-06-11 03:50:26 +04:00
|
|
|
#include "nsISpellChecker.h"
|
1999-07-28 06:54:35 +04:00
|
|
|
#include "nsInterfaceState.h"
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
class nsIBrowserWindow;
|
|
|
|
class nsIWebShell;
|
|
|
|
class nsIScriptContext;
|
|
|
|
class nsIDOMWindow;
|
|
|
|
class nsIDOMElement;
|
|
|
|
class nsIDOMNode;
|
1999-06-23 07:29:44 +04:00
|
|
|
class nsIURI;
|
1999-06-11 03:50:26 +04:00
|
|
|
class nsIWebShellWindow;
|
|
|
|
class nsIPresShell;
|
|
|
|
class nsIHTMLEditor;
|
|
|
|
class nsITextEditor;
|
|
|
|
class nsIOutputStream;
|
1999-07-20 02:36:12 +04:00
|
|
|
class nsISupportsArray;
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
|
|
|
|
#define NS_EDITORAPPCORE_CID \
|
|
|
|
{ /* {} */ \
|
|
|
|
0x9afff72b, 0xca9a, 0x11d2, \
|
|
|
|
{ 0x96, 0xc9, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56 } \
|
|
|
|
}
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// nsEditorShell:
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
class nsEditorShell : public nsIEditorShell,
|
1999-06-12 02:43:19 +04:00
|
|
|
public nsIEditorSpellCheck,
|
1999-06-11 03:50:26 +04:00
|
|
|
public nsIDocumentLoaderObserver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
nsEditorShell();
|
|
|
|
virtual ~nsEditorShell();
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
// NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
|
|
|
|
NS_IMETHOD Init();
|
|
|
|
// NS_IMETHOD GetId(nsString& aId); // { return nsBaseAppCore::GetId(aId); }
|
|
|
|
// NS_IMETHOD SetDocumentCharset(const nsString& aCharset); // { return nsBaseAppCore::SetDocumentCharset(aCharset); }
|
|
|
|
|
|
|
|
|
|
|
|
/* nsIEditorShell interface */
|
|
|
|
|
|
|
|
NS_IMETHOD GetEditorDocument(nsIDOMDocument * *aEditorDocument);
|
|
|
|
NS_IMETHOD GetEditorSelection(nsIDOMSelection * *aEditorSelection);
|
|
|
|
|
1999-07-28 06:54:35 +04:00
|
|
|
NS_IMETHOD GetDocumentModified(PRBool *aDocumentModified);
|
1999-07-15 02:30:39 +04:00
|
|
|
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD GetWrapColumn(PRInt32 *aWrapColumn);
|
|
|
|
NS_IMETHOD SetWrapColumn(PRInt32 aWrapColumn);
|
|
|
|
|
|
|
|
NS_IMETHOD SetEditorType(const PRUnichar *editorType);
|
|
|
|
|
|
|
|
NS_IMETHOD SetToolbarWindow(nsIDOMWindow *win);
|
|
|
|
NS_IMETHOD SetContentWindow(nsIDOMWindow *win);
|
|
|
|
NS_IMETHOD SetWebShellWindow(nsIDOMWindow *win);
|
|
|
|
NS_IMETHOD LoadUrl(const PRUnichar *url);
|
1999-08-03 04:57:57 +04:00
|
|
|
NS_IMETHOD RegisterDocumentStateListener(nsIDocumentStateListener *docListener);
|
|
|
|
NS_IMETHOD UnregisterDocumentStateListener(nsIDocumentStateListener *docListener);
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
/* void NewWindow (); */
|
|
|
|
NS_IMETHOD NewWindow();
|
|
|
|
NS_IMETHOD Open();
|
|
|
|
NS_IMETHOD Save();
|
|
|
|
NS_IMETHOD SaveAs();
|
|
|
|
NS_IMETHOD CloseWindow();
|
|
|
|
NS_IMETHOD Print();
|
|
|
|
NS_IMETHOD Exit();
|
|
|
|
|
|
|
|
NS_IMETHOD Undo();
|
|
|
|
NS_IMETHOD Redo();
|
|
|
|
NS_IMETHOD Cut();
|
|
|
|
NS_IMETHOD Copy();
|
|
|
|
NS_IMETHOD Paste();
|
|
|
|
|
|
|
|
NS_IMETHOD PasteAsQuotation();
|
|
|
|
NS_IMETHOD PasteAsCitedQuotation(const PRUnichar *cite);
|
|
|
|
NS_IMETHOD InsertAsQuotation(const PRUnichar *quotedText);
|
|
|
|
NS_IMETHOD InsertAsCitedQuotation(const PRUnichar *quotedText, const PRUnichar *cite);
|
|
|
|
|
|
|
|
NS_IMETHOD SelectAll();
|
1999-06-15 00:02:46 +04:00
|
|
|
NS_IMETHOD DeleteSelection(PRInt32 direction);
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
/* void Find (); */
|
|
|
|
NS_IMETHOD Find();
|
|
|
|
NS_IMETHOD FindNext();
|
|
|
|
|
|
|
|
/* void InsertText (in wstring textToInsert); */
|
|
|
|
NS_IMETHOD InsertText(const PRUnichar *textToInsert);
|
1999-06-30 23:26:08 +04:00
|
|
|
NS_IMETHOD InsertSource(const PRUnichar *sourceToInsert);
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD InsertBreak();
|
|
|
|
NS_IMETHOD InsertList(const PRUnichar *listType);
|
|
|
|
|
|
|
|
/* void Indent (in string indent); */
|
|
|
|
NS_IMETHOD Indent(const PRUnichar *indent);
|
|
|
|
NS_IMETHOD Align(const PRUnichar *align);
|
|
|
|
|
|
|
|
/* nsIDOMElement GetSelectedElement (in wstring tagName); */
|
|
|
|
NS_IMETHOD GetSelectedElement(const PRUnichar *tagName, nsIDOMElement **_retval);
|
1999-07-28 03:59:22 +04:00
|
|
|
NS_IMETHOD GetElementOrParentByTagName(const PRUnichar *tagName, nsIDOMNode *aNode, nsIDOMElement **_retval);
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD CreateElementWithDefaults(const PRUnichar *tagName, nsIDOMElement **_retval);
|
1999-06-11 22:57:33 +04:00
|
|
|
NS_IMETHOD InsertElement(nsIDOMElement *element, PRBool deleteSelection);
|
1999-06-13 01:22:12 +04:00
|
|
|
NS_IMETHOD SaveHLineSettings(nsIDOMElement* aElement);
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD InsertLinkAroundSelection(nsIDOMElement *anchorElement);
|
|
|
|
NS_IMETHOD SelectElement(nsIDOMElement *element);
|
|
|
|
NS_IMETHOD SetSelectionAfterElement(nsIDOMElement *element);
|
|
|
|
|
1999-08-04 06:06:03 +04:00
|
|
|
/* Table insert and delete methods. Done relative to selected cell or
|
|
|
|
cell containing the selection anchor */
|
|
|
|
NS_IMETHOD InsertTableCell(PRInt32 aNumber, PRBool bAfter);
|
|
|
|
NS_IMETHOD InsertTableRow(PRInt32 aNumber, PRBool bAfter);
|
|
|
|
NS_IMETHOD InsertTableColumn(PRInt32 aNumber, PRBool bAfter);
|
|
|
|
NS_IMETHOD DeleteTable();
|
|
|
|
NS_IMETHOD DeleteTableCell(PRInt32 aNumber);
|
|
|
|
NS_IMETHOD DeleteTableRow(PRInt32 aNumber);
|
|
|
|
NS_IMETHOD DeleteTableColumn(PRInt32 aNumber);
|
|
|
|
NS_IMETHOD JoinTableCells();
|
|
|
|
/** Make table "rectangular" -- fill in all missing cellmap locations
|
|
|
|
* If aTable is null, it uses table enclosing the selection anchor
|
|
|
|
*/
|
|
|
|
NS_IMETHOD NormalizeTable(nsIDOMElement *aTable);
|
|
|
|
|
1999-08-02 02:37:58 +04:00
|
|
|
/* Get the row and col indexes in layout's cellmap */
|
|
|
|
NS_IMETHOD GetRowIndex(nsIDOMElement *aCell, PRInt32 *_retval);
|
|
|
|
NS_IMETHOD GetColumnIndex(nsIDOMElement *aCell, PRInt32 *_retval);
|
|
|
|
/** Get the number of rows in a table from the layout's cellmap */
|
|
|
|
NS_IMETHOD GetTableRowCount(nsIDOMElement *aTable, PRInt32 *_retval);
|
|
|
|
/** Get the number of columns in a table from the layout's cellmap */
|
|
|
|
NS_IMETHOD GetTableColumnCount(nsIDOMElement *aTable, PRInt32 *_retval);
|
|
|
|
|
|
|
|
/* Get a cell and associated data from the layout frame based on cell map coordinates (0 index) */
|
1999-07-28 03:59:22 +04:00
|
|
|
NS_IMETHOD GetCellAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex, nsIDOMElement **_retval);
|
1999-08-02 02:37:58 +04:00
|
|
|
/* Note that the return param in the IDL must be the LAST out param here (_retval) */
|
|
|
|
NS_IMETHOD GetCellDataAt(nsIDOMElement* aTable, PRInt32 aRowIndex, PRInt32 aColIndex,
|
|
|
|
PRInt32 *aStartRowIndex, PRInt32 *aStartColIndex,
|
|
|
|
PRInt32 *aRowSpan, PRInt32 *aColSpan, PRBool *aIsSelected, nsIDOMElement **_retval);
|
1999-07-28 03:59:22 +04:00
|
|
|
|
1999-07-20 02:36:12 +04:00
|
|
|
/* Get list of embedded objects, e.g. for mail compose */
|
|
|
|
NS_IMETHOD GetEmbeddedObjects(nsISupportsArray **aObjectArray);
|
|
|
|
|
|
|
|
/* void SetParagraphFormat (in string value); */
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD SetParagraphFormat(PRUnichar *value);
|
|
|
|
NS_IMETHOD GetParagraphFormat(PRUnichar * *aParagraphFormat);
|
|
|
|
|
|
|
|
/* void SetTextProperty (in string prop, in string attr, in string value); */
|
|
|
|
NS_IMETHOD SetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value);
|
1999-08-02 02:37:58 +04:00
|
|
|
NS_IMETHOD GetTextProperty(const PRUnichar *prop, const PRUnichar *attr, const PRUnichar *value, PRBool *firstHas, PRBool *anyHas, PRBool *allHas);
|
|
|
|
NS_IMETHOD RemoveTextProperty(const PRUnichar *prop, const PRUnichar *attr);
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
/* void SetBodyAttribute (in string attr, in string value); */
|
|
|
|
NS_IMETHOD SetBodyAttribute(const PRUnichar *attr, const PRUnichar *value);
|
|
|
|
NS_IMETHOD SetBackgroundColor(const PRUnichar *color);
|
|
|
|
|
1999-07-01 23:32:35 +04:00
|
|
|
NS_IMETHOD ApplyStyleSheet(const PRUnichar *url);
|
|
|
|
|
1999-07-14 22:54:29 +04:00
|
|
|
/* Get the contents, for output or other uses */
|
|
|
|
NS_IMETHOD GetContentsAs(const PRUnichar *format, PRUint32 flags, PRUnichar **contentsAs);
|
|
|
|
|
|
|
|
/* Debugging: dump content tree to stdout */
|
|
|
|
NS_IMETHOD DumpContentTree();
|
|
|
|
|
1999-06-11 03:50:26 +04:00
|
|
|
/* string GetLocalFileURL (in nsIDOMWindow parent, in string filterType); */
|
|
|
|
NS_IMETHOD GetLocalFileURL(nsIDOMWindow *parent, const PRUnichar *filterType, PRUnichar **_retval);
|
|
|
|
|
|
|
|
/* void BeginBatchChanges (); */
|
|
|
|
NS_IMETHOD BeginBatchChanges();
|
|
|
|
NS_IMETHOD EndBatchChanges();
|
|
|
|
|
|
|
|
/* void RunUnitTests (); */
|
|
|
|
NS_IMETHOD RunUnitTests();
|
|
|
|
|
1999-06-15 00:02:46 +04:00
|
|
|
/* void BeginLogging (); */
|
|
|
|
NS_IMETHOD StartLogging(nsIFileSpec *logFile);
|
|
|
|
NS_IMETHOD StopLogging();
|
|
|
|
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
/* Spell check interface */
|
1999-07-15 18:43:48 +04:00
|
|
|
NS_IMETHOD StartSpellChecking(PRUnichar **_retval);
|
|
|
|
NS_IMETHOD GetNextMisspelledWord(PRUnichar **_retval);
|
|
|
|
NS_IMETHOD GetSuggestedWord(PRUnichar **_retval);
|
|
|
|
NS_IMETHOD CheckCurrentWord(const PRUnichar *suggestedWord, PRBool *_retval);
|
|
|
|
NS_IMETHOD ReplaceWord(const PRUnichar *misspelledWord, const PRUnichar *replaceWord, PRBool allOccurrences);
|
|
|
|
NS_IMETHOD IgnoreWordAllOccurrences(const PRUnichar *word);
|
|
|
|
NS_IMETHOD GetPersonalDictionary();
|
|
|
|
NS_IMETHOD GetPersonalDictionaryWord(PRUnichar **_retval);
|
|
|
|
NS_IMETHOD AddWordToDictionary(const PRUnichar *word);
|
|
|
|
NS_IMETHOD RemoveWordFromDictionary(const PRUnichar *word);
|
|
|
|
NS_IMETHOD CloseSpellChecking();
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
|
|
|
|
// nsIDocumentLoaderObserver
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnStartDocumentLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aCommand);
|
1999-06-28 17:01:55 +04:00
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIURI *aUrl, PRInt32 aStatus,
|
1999-06-15 02:13:00 +04:00
|
|
|
nsIDocumentLoaderObserver * aObserver);
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
1999-08-05 05:28:30 +04:00
|
|
|
NS_IMETHOD OnEndDocumentLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsresult aStatus,
|
1999-06-28 17:01:55 +04:00
|
|
|
nsIDocumentLoaderObserver * aObserver);
|
|
|
|
#endif // NECKO
|
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, const char* aContentType,
|
1999-06-11 03:50:26 +04:00
|
|
|
nsIContentViewer* aViewer);
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
1999-07-16 15:14:36 +04:00
|
|
|
NS_IMETHOD OnStartURLLoad(nsIDocumentLoader* loader, nsIChannel* channel,
|
1999-06-28 17:01:55 +04:00
|
|
|
nsIContentViewer* aViewer);
|
|
|
|
#endif // NECKO
|
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRUint32 aProgress,
|
1999-06-11 03:50:26 +04:00
|
|
|
PRUint32 aProgressMax);
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
|
|
|
NS_IMETHOD OnProgressURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, PRUint32 aProgress,
|
|
|
|
PRUint32 aProgressMax);
|
|
|
|
#endif // NECKO
|
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, nsString& aMsg);
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
|
|
|
NS_IMETHOD OnStatusURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsString& aMsg);
|
|
|
|
#endif // NECKO
|
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-23 07:29:44 +04:00
|
|
|
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIURI* aURL, PRInt32 aStatus);
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
1999-08-05 05:28:30 +04:00
|
|
|
NS_IMETHOD OnEndURLLoad(nsIDocumentLoader* loader, nsIChannel* channel, nsresult aStatus);
|
1999-06-28 17:01:55 +04:00
|
|
|
#endif // NECKO
|
|
|
|
|
|
|
|
#ifndef NECKO
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
|
1999-06-23 07:29:44 +04:00
|
|
|
nsIURI *aURL,
|
1999-06-11 03:50:26 +04:00
|
|
|
const char *aContentType,
|
|
|
|
const char *aCommand );
|
1999-06-28 17:01:55 +04:00
|
|
|
#else
|
|
|
|
NS_IMETHOD HandleUnknownContentType(nsIDocumentLoader* loader,
|
|
|
|
nsIChannel* channel,
|
|
|
|
const char *aContentType,
|
|
|
|
const char *aCommand );
|
|
|
|
#endif // NECKO
|
|
|
|
|
1999-06-11 03:50:26 +04:00
|
|
|
protected:
|
1999-07-20 02:36:12 +04:00
|
|
|
nsIDOMWindow *mToolbarWindow; // weak reference
|
|
|
|
nsIDOMWindow *mContentWindow; // weak reference
|
|
|
|
|
|
|
|
nsIWebShellWindow *mWebShellWin; // weak reference
|
|
|
|
nsIWebShell *mWebShell; // weak reference
|
|
|
|
nsIWebShell *mContentAreaWebShell; // weak reference
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
typedef enum {
|
1999-07-15 02:30:39 +04:00
|
|
|
eUninitializedEditorType = 0,
|
1999-06-11 03:50:26 +04:00
|
|
|
ePlainTextEditorType = 1,
|
|
|
|
eHTMLTextEditorType = 2
|
|
|
|
} EEditorType;
|
|
|
|
|
|
|
|
nsIPresShell* GetPresShellFor(nsIWebShell* aWebShell);
|
|
|
|
NS_IMETHOD DoEditorMode(nsIWebShell *aWebShell);
|
|
|
|
NS_IMETHOD ExecuteScript(nsIScriptContext * aContext, const nsString& aScript);
|
|
|
|
NS_IMETHOD InstantiateEditor(nsIDOMDocument *aDoc, nsIPresShell *aPresShell);
|
1999-08-03 04:57:57 +04:00
|
|
|
NS_IMETHOD TransferDocumentStateListeners();
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD RemoveOneProperty(const nsString& aProp, const nsString& aAttr);
|
|
|
|
void SetButtonImage(nsIDOMNode * aParentNode, PRInt32 aBtnNum, const nsString &aResName);
|
|
|
|
NS_IMETHOD CreateWindowWithURL(const char* urlStr);
|
1999-08-03 04:57:57 +04:00
|
|
|
NS_IMETHOD PrepareDocumentForEditing(nsIURI *aUrl);
|
1999-06-11 03:50:26 +04:00
|
|
|
NS_IMETHOD DoFind(PRBool aFindNext);
|
|
|
|
|
1999-06-20 02:13:46 +04:00
|
|
|
// this returns an AddReffed nsIScriptContext. You must relase it.
|
|
|
|
nsIScriptContext* GetScriptContext(nsIDOMWindow * aWin);
|
1999-06-11 03:50:26 +04:00
|
|
|
|
|
|
|
nsString mEnableScript;
|
|
|
|
nsString mDisableScript;
|
|
|
|
|
|
|
|
EEditorType mEditorType;
|
|
|
|
nsString mEditorTypeString; // string which describes which editor type will be instantiated (lowercased)
|
|
|
|
nsCOMPtr<nsISupports> mEditor; // this can be either an HTML or plain text (or other?) editor
|
|
|
|
|
|
|
|
nsCOMPtr<nsISupports> mSearchContext; // context used for search and replace. Owned by the appshell.
|
1999-07-15 02:30:39 +04:00
|
|
|
|
1999-07-28 06:54:35 +04:00
|
|
|
nsInterfaceState* mStateMaintainer; // we hold the owning ref to this.
|
1999-07-14 22:54:29 +04:00
|
|
|
|
|
|
|
PRInt32 mWrapColumn; // can't actually set this 'til the editor is created, so we may have to hold on to it for a while
|
1999-07-20 02:36:12 +04:00
|
|
|
|
|
|
|
nsCOMPtr<nsISpellChecker> mSpellChecker;
|
|
|
|
nsStringArray mSuggestedWordList;
|
|
|
|
PRInt32 mSuggestedWordIndex;
|
|
|
|
NS_IMETHOD DeleteSuggestedWordList();
|
|
|
|
nsStringArray mDictionaryList;
|
|
|
|
PRInt32 mDictionaryIndex;
|
1999-08-03 04:57:57 +04:00
|
|
|
|
|
|
|
// this is a holding pen for doc state listeners. They will be registered with
|
|
|
|
// the editor when that gets created.
|
|
|
|
nsCOMPtr<nsISupportsArray> mDocStateListeners; // contents are nsISupports
|
1999-06-11 03:50:26 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsEditorAppCore_h___
|