141 Commits

Author SHA1 Message Date
cmanske%netscape.com
4c87049c94 Moved mouse listener from EditorShell to HTMLEditor but keep previous context click and doubleclick element selection behavior. b=112181 & 128836, r=akkana, sr=sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@116754 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 20:39:16 +00:00
glazman%netscape.com
b231f8945d It was impossible to set the background color of a table thru TableOrCell Background Color menu item.
b=127723, r=jfrancis, r=cmanske, sr=kin, a=asa


git-svn-id: svn://10.0.0.236/trunk@116645 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 15:33:29 +00:00
akkana%netscape.com
1f0b47ba2b 128903: Clean up the editor IDL, and anyone who uses them. r=brade,cmanske,ducarroz (for mail); sr=sfraser; a=dbaron
git-svn-id: svn://10.0.0.236/trunk@116581 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 22:11:14 +00:00
glazman%netscape.com
f05f35f548 Adding noCSS flag to nsHTMLEditor; b=bugscape11956, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113704 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 15:16:14 +00:00
glazman%netscape.com
d5dadcf26c inline styles were not saved because gElement was outside of document's tree; b=91548, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113041 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 16:00:12 +00:00
glazman%netscape.com
0c8e360445 move CSS in Composer stuff from nsEditorShell to nsHTMLEditor; b=121081, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112853 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:20:11 +00:00
glazman%netscape.com
2a28453859 remove CSSisms from nsEditor; b=121092, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112852 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:16:52 +00:00
brade%netscape.com
17c52c2c78 remove SaveDocument from the API; use nsIWebBrowserPersist instead
git-svn-id: svn://10.0.0.236/trunk@112092 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:33:18 +00:00
glazman%netscape.com
5124d29644 CSS in Composer, step 1 ; b=77705, r=jfrancis, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@111660 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 13:51:37 +00:00
cmanske%netscape.com
bd0c9879f3 Support changing list bullet/number style for selected list items. b=92278 r=jfrancis,brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@110351 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 03:57:32 +00:00
brade%netscape.com
ef3b773299 implement modification count in editor; bug 112008, sr=smfr, r=akk
git-svn-id: svn://10.0.0.236/trunk@110158 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-10 15:23:11 +00:00
cmanske%netscape.com
3bbac1e159 Remove nsIEditorShell::Init(), b=110763, r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109840 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 15:11:50 +00:00
brade%netscape.com
c79bdc933a allow scripting of methods with no parameters (bug #112008, r=akkana, sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@109201 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:05:36 +00:00
brade%netscape.com
443c97021c remove unused methods; r=cmanske; sr=kin (bug #107636)
git-svn-id: svn://10.0.0.236/trunk@108999 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 13:59:57 +00:00
brade%netscape.com
72504499ae add doAfterSave and isSupportedTextType so they can be called from JS (bug #107636 r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108569 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:54:01 +00:00
brade%netscape.com
9b3010eb38 nsIFile->nsIURI in SaveDocument api (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106964 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:34 +00:00
gerv%gerv.net
3821428085 License changes, take 2. Bug 98089. mozilla/editor/.
git-svn-id: svn://10.0.0.236/trunk@103757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:53:13 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
cmanske%netscape.com
c95183a711 Remove dialog utilities from editor c++ and nsIEditorShell interface (use nsIPromptService from JS instead). b=96649, r=brade, r=kin/sfraser, a=asa
git-svn-id: svn://10.0.0.236/trunk@101767 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 19:47:46 +00:00
akkana%netscape.com
58153259b6 54726: Add link to W3C Validator
90550: Need to rewrite URLs for publishing and for save as
91388: Link checker, Work in progress (doesn't work yet)
r=brade, sr=kin


git-svn-id: svn://10.0.0.236/trunk@100531 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 21:39:07 +00:00
akkana%netscape.com
956d2c2579 Adding html URI ref object to the build. r=brade sr=kin. Work in progress.
git-svn-id: svn://10.0.0.236/trunk@100525 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-07 21:12:08 +00:00
kin%netscape.com
77ed534011 Fix for bug #93109: Orphaned #endif's in IDLs crashes xpidl during build
Removed bogus #endif statements in:

    mozilla/editor/idl/nsIEditorIMESupport.idl
    mozilla/editor/idl/nsITableEditor.idl
    mozilla/editor/txmgr/idl/nsITransactionManager.idl

sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@100227 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-02 20:34:54 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
sfraser%netscape.com
a73f7efd19 Fix for bugs 23943, 47640 and 63515. Teach editor to handle plain text, and other text file types (including XUL, XML, JS etc), and, in the process, make the commands be smarter about disabling in text mode, and HTML source mode. r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@95377 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 06:42:37 +00:00
kin%netscape.com
9af54696aa Fix for bug #79177: nsIEditorShell editor property should not be [noscript]
Removed the [noscript] notation on the editor attribute.

    editor/idl/nsIEditorShell.idl

r/sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@94655 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 13:59:45 +00:00
jst%netscape.com
43eee52859 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94242 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:42:36 +00:00
mjudge%netscape.com
e8eca338ca kin=sr r=kin bug 75743 removing some [noscript]s from idl file to expose more idl to js
git-svn-id: svn://10.0.0.236/trunk@92120 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-12 23:37:08 +00:00
cmanske%netscape.com
faba49aa9b Fixed reset selection when inserting under <head>. Also removed compile warning in nsTableEditor.cpp, b=71883, r=jfrancis,kin sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@92060 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-12 03:41:06 +00:00
mjudge%netscape.com
77323a8468 66318 r= kin, sr=kin tested by ducarozz ,phil chofmann approved..changing APIS to be idl so we can use in embedding land... lots of string changes too to nsAStrings
git-svn-id: svn://10.0.0.236/trunk@91610 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 00:45:26 +00:00
pinkerton%netscape.com
1580ab6874 landing manifest changes for mjudge. bug# 66318.
git-svn-id: svn://10.0.0.236/trunk@91606 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-07 00:42:10 +00:00
sfraser%netscape.com
55a3a4f35d Fix for 74143, change nsIController to use DOMStrings. sr=hyatt, r=kin
git-svn-id: svn://10.0.0.236/trunk@91375 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-04 23:48:03 +00:00
mjudge%netscape.com
9026e2a205 part of big editor checkin for 66318. this is NOT part of build yet but patches for this big change are going around to be approved so these files WILL be looked at. have no fear
git-svn-id: svn://10.0.0.236/trunk@90571 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 23:11:08 +00:00
kin%netscape.com
7365b2cbe5 Fixes for bug #66308 ([embed] XPIDL'ize transaction manager)
sr=sfraser@netscape.com,mscott@netscape.com r=jfrancis@netscape.com

* nsITransaction, nsITransactionListenter, nsITransactionManager have
  been XPIDL'ized and moved into mozilla/editor/txmgr/idl. The versions
  of these interfaces in mozilla/editor/txmgr/public are being CVS removed.

* Renamed Do(), Undo(), and Redo() to DoTransaction(), UndoTransaction(),
  and RedoTransaction() to avoid reserved word problems in languages like
  JS. I did a sweep through editor and mailnews to remove these methods.

* PeekUndoStack() and PeekRedoStack() now return an AddRef'd pointer.

* Removed GetUndoString(), GetRedoString() and Write() from the
  nsITransaction interface. Neither editor or mailnews really made
  use of these methods.

* Removed Write() from the nsITransactionManager.cpp interface.

* The Transaction Manager now supports weak references.

* Added support for nsITransactionList to the TransactionManager
  to allow access to all transactions on the Undo and Redo stacks, as
  well as auto-aggregated transactions.

* Removed all references to nsITransactionDescription from txmgr and editor.

* Added nsPIEditorTransaction and made all Editor internal transactions
  inherit from it so we can distinguish between our transactions and
  ones from 3rd parties.

New files checked in:

  editor/txmgr/idl/nsITransaction.idl
  editor/txmgr/idl/nsITransactionList.idl
  editor/txmgr/idl/nsITransactionListener.idl
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/src/nsITransactionList.cpp
  editor/txmgr/src/nsITransactionList.h
  editor/idl/nsPIEditorTransaction.idl

Files that were CVS removed:

  editor/txmgr/public/nsITransaction.h
  editor/txmgr/public/nsITransactionListener.h
  editor/txmgr/public/nsITransactionManager.h
  editor/txmgr/idl/nsITransactionDescription.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h

Files modified:

  editor/Makefile.in
  editor/makefile.win
  editor/base/ChangeAttributeTxn.cpp
  editor/base/ChangeAttributeTxn.h
  editor/base/CreateElementTxn.cpp
  editor/base/CreateElementTxn.h
  editor/base/DeleteElementTxn.cpp
  editor/base/DeleteElementTxn.h
  editor/base/DeleteRangeTxn.cpp
  editor/base/DeleteRangeTxn.h
  editor/base/DeleteTextTxn.cpp
  editor/base/DeleteTextTxn.h
  editor/base/EditAggregateTxn.cpp
  editor/base/EditAggregateTxn.h
  editor/base/EditTxn.cpp
  editor/base/EditTxn.h
  editor/base/IMECommitTxn.cpp
  editor/base/IMECommitTxn.h
  editor/base/IMETextTxn.cpp
  editor/base/IMETextTxn.h
  editor/base/InsertElementTxn.cpp
  editor/base/InsertElementTxn.h
  editor/base/InsertTextTxn.cpp
  editor/base/InsertTextTxn.h
  editor/base/JoinElementTxn.cpp
  editor/base/JoinElementTxn.h
  editor/base/nsEditor.cpp
  editor/base/nsEditorShell.cpp
  editor/base/nsEditorShell.h
  editor/base/nsEditorTxnLog.cpp
  editor/base/nsStyleSheetTxns.cpp
  editor/base/nsStyleSheetTxns.h
  editor/base/PlaceholderTxn.cpp
  editor/base/PlaceholderTxn.h
  editor/base/SetDocTitleTxn.cpp
  editor/base/SetDocTitleTxn.h
  editor/base/SplitElementTxn.cpp
  editor/base/SplitElementTxn.h
  editor/idl/Makefile.in
  editor/idl/makefile.win
  editor/idl/MANIFEST
  editor/idl/nsIEditorShell.idl
  editor/macbuild/editor.mcp
  editor/macbuild/EditorIDL.mcp
  editor/txmgr/idl/Makefile.in
  editor/txmgr/idl/makefile.win
  editor/txmgr/idl/MANIFEST
  editor/txmgr/idl/nsITransactionManager.idl
  editor/txmgr/macbuild/txmgr.mcp
  editor/txmgr/macbuild/txmgrIDL.mcp
  editor/txmgr/public/Makefile.in
  editor/txmgr/public/makefile.win
  editor/txmgr/public/MANIFEST
  editor/txmgr/src/Makefile.in
  editor/txmgr/src/makefile.win
  editor/txmgr/src/nsTransactionItem.cpp
  editor/txmgr/src/nsTransactionItem.h
  editor/txmgr/src/nsTransactionList.cpp
  editor/txmgr/src/nsTransactionList.h
  editor/txmgr/src/nsTransactionManager.cpp
  editor/txmgr/src/nsTransactionManager.h
  editor/txmgr/src/nsTransactionManagerFactory.cpp
  editor/txmgr/src/nsTransactionStack.cpp
  editor/txmgr/src/nsTransactionStack.h
  editor/txmgr/tests/TestTXMgr.cpp
  editor/ui/composer/content/EditorCommandsDebug.js
  editor/ui/composer/content/editorOverlay.xul
  editor/ui/composer/locale/en-US/editorOverlay.dtd
  mailnews/base/src/nsMessenger.cpp
  mailnews/base/util/nsMsgTxn.cpp
  mailnews/base/util/nsMsgTxn.h
  mailnews/imap/src/nsImapMailFolder.cpp
  mailnews/imap/src/nsImapUndoTxn.cpp
  mailnews/imap/src/nsImapUndoTxn.h
  mailnews/local/src/nsLocalMailFolder.cpp
  mailnews/local/src/nsLocalUndoTxn.cpp
  mailnews/local/src/nsLocalUndoTxn.h


git-svn-id: svn://10.0.0.236/trunk@89126 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 14:23:59 +00:00
kin%netscape.com
1e69d25a17 Initial checkin of file. NOT PART OF THE BUILD!
git-svn-id: svn://10.0.0.236/trunk@89123 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 13:58:05 +00:00
cmanske%netscape.com
02f95728bb For recent changes r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@88025 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 23:24:38 +00:00
jfrancis%netscape.com
7cde2dddd5 bug 66290: embedding work: refactor editor to allow smaller plaintext only library. Embedding clients may be interested inthis library if they want to embed a browser but not composer/mail-compose. Reduces library footprint for plaintext-only library by over 50% on all three platforms. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@85666 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-28 20:13:07 +00:00
kin%netscape.com
5b0c6da155 Fix for bug #6254 (Find/Replace needs to be implemented.)
First pass implementation of Find and Replace.
sr=sfraser@netscape.com  r=ducarroz@netscape.com

New Files:

    editor/txtsvc/macbuild/txtsvcIDL.mcp
    editor/txtsvc/public/MANIFEST_IDL
    editor/txtsvc/public/nsIFindAndReplace.idl
    editor/txtsvc/src/nsFindAndReplace.cpp
    editor/txtsvc/src/nsFindAndReplace.h
    xpfe/components/find/resources/replacedialog.js
    xpfe/components/find/resources/replacedialog.xul
    xpfe/components/find/resources/locale/en-US/replacedialog.dtd


Modified Files:

    build/mac/build_scripts/MozillaBuildList.pm
    editor/base/nsEditorShell.cpp
    editor/idl/nsIEditorShell.idl
    editor/txtsvc/macbuild/txtsvc.mcp
    editor/txtsvc/public/Makefile.in
    editor/txtsvc/public/makefile.win
    editor/txtsvc/public/MANIFEST
    editor/txtsvc/src/Makefile.in
    editor/txtsvc/src/makefile.win
    editor/txtsvc/src/nsTextServicesFactory.cpp
    editor/ui/composer/content/ComposerCommands.js
    editor/ui/composer/content/editor.js
    editor/ui/composer/content/editorOverlay.xul
    editor/ui/composer/locale/en-US/editorOverlay.dtd
    mailnews/compose/resources/content/messengercompose.xul
    mailnews/compose/resources/content/MsgComposeCommands.js
    mailnews/compose/resources/locale/en-US/messengercompose.dtd
    xpfe/components/jar.mn
    xpfe/components/find/public/nsIFindComponent.idl
    xpfe/components/find/public/nsISearchContext.idl
    xpfe/components/find/resources/makefile.win
    xpfe/components/find/resources/MANIFEST
    xpfe/components/find/resources/locale/en-US/MANIFEST
    xpfe/components/find/src/nsFindComponent.cpp
    xpfe/components/find/src/nsFindComponent.h


git-svn-id: svn://10.0.0.236/trunk@85386 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 21:55:04 +00:00
sfraser%netscape.com
4e7e05789b Convert nsIDiskDocument to xpidl, and change it from using nsFileSpecs to nsIFiles. Bug 62567, r= buster, ducarroz, adamlock, sr=kin
git-svn-id: svn://10.0.0.236/trunk@84675 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 22:47:02 +00:00
akkana%netscape.com
13ae4ba935 33088: restructure editor output routines. r=kin,buster,adamlock sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@84590 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-08 21:01:29 +00:00
sfraser%netscape.com
5b710bd5de Removal of some crufty old code that used to do UI udpating, and was obsolete by XUL command nodes. r=akkana
git-svn-id: svn://10.0.0.236/trunk@82718 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 01:25:28 +00:00
akkana%netscape.com
0eff955ec3 Split plaintext methods off into nsIPlaintextEditor API. sr=sfraser, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@82714 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 00:25:31 +00:00
akkana%netscape.com
99c2128ff4 Plaintext editor API. sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@82712 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 00:10:37 +00:00
mjudge%netscape.com
2fc6190bef small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
jfrancis%netscape.com
6340d3a57b fixes for 45608, 51398, 51591; r=cmanske
git-svn-id: svn://10.0.0.236/trunk@79084 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 05:59:19 +00:00
vidur%netscape.com
b10d4adc57 Fix for bug 46861. nsIDOMWindow is now split into two interfaces: a public interface (still called nsIDOMWindow) for embedders and an internal interface (nsIDOMWindowInternal) for internal use. The union of the two interfaces is still visible from JavaScript. r=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77828 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:54:35 +00:00
cmanske%netscape.com
54a0de7538 Fixed lots of nsbeta3+ bugs: 45756, 47654, 41810,47503,48990, 48995,40204, 42740, 46953, 47646, 47696, 48693, 45899. r=sfraser,jfrancis
git-svn-id: svn://10.0.0.236/trunk@76920 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 00:29:24 +00:00
jfrancis%netscape.com
691e87aa2b groundwork for 44684: adding a "GetAlignment" call to the editor so that ui can reflect alignment of selection
git-svn-id: svn://10.0.0.236/trunk@76274 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 12:07:10 +00:00
cmanske%netscape.com
f3cfdd30aa Big UI fix checkin continued - same bugs as last checkin. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75959 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:43:09 +00:00
anthonyd%netscape.com
81c7739c51 checkins for Hurricane
translation of all C++ functions to JS which included SaveDocument
which eventually will allow for the completeion of autosave
r: brade, anthonyd
a: waterson, cmanske


git-svn-id: svn://10.0.0.236/trunk@75726 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:12:18 +00:00