Commit Graph

243 Commits

Author SHA1 Message Date
shanjian%netscape.com
de23b7e7a9 #14022 IME98 Reconversion does not work in HTML Editor
r = jfrancis
a = ftang
fix proposed by m_kato@ga2.so-net.ne.jp

New events are added to support reconversion. As a result, many files
are affected. They are:
editor:
  nsEditor.h nsEditor.cpp nsEditorEventListeners.cpp nsEditorEventListeners.h
  nsHTMLEditor.h nsHTMLEditor.cpp nsIEditorIMESupport.h
dom and layout:
  nsIPrivateCompositionEvent.h nsDOMEvent.h nsDOMEvnet.cpp nsEventListenerManager.cpp
  nsIDOMCompositionListener.h
widget:
  nsGUIEvent.h nsWindow.h nsWindow.cpp
2000-08-04 21:43:29 +00:00
jfrancis%netscape.com
0d2860e7c8 exporting nsIEditorObserver.h 2000-07-16 07:13:03 +00:00
jfrancis%netscape.com
b043301d96 adding in support for nsIEditorObserver. this is for bug 42329: autocompletion firing in the middle of uncommitted ime entry. r=fm 2000-07-16 06:36:27 +00:00
jfrancis%netscape.com
4048c54611 adding nsIEditorObserver 2000-07-14 22:42:52 +00:00
jfrancis%netscape.com
8a14820064 first checked in 2000-07-14 22:42:23 +00:00
kin%netscape.com
baa1e3d567 Fix for bug #45002: Password displayed in clear text.
layout/html/forms/src/nsGfxTextControlFrame2.cpp
      - Modified CreateAnonymousContent() to disable forced
        refreshes and reflows in the editor, and call
        SetTextControlFrameState() to set the intial value
        of the text widget.
      - Fixed leak in SetTextControlFrameState().

    editor/public/nsIHTMLEditor.h
      - Added DisableForcedUpdates and DisableForcedRefreshes flags.

    editor/base/nsEditor.cpp
      - Modified EndUpdateViewBatch() so that it uses the new
        DisableForcedUpdates and DisableForcedRefreshes flags.
      - We now also close the reflow batch before we close the
        update batch.

r=brade@netscape.com
2000-07-14 20:26:09 +00:00
cmanske%netscape.com
e50d57138a Table editing work. b=20973, r=jfrancis 2000-07-01 00:37:12 +00:00
cmanske%netscape.com
7519eedb3d Part of table dialog work: new method needed to convert to TH from TD and vice versa. b=20973. r=jfrancis 2000-06-14 04:59:50 +00:00
brade%netscape.com
fa8e2b58fc drag within editor implemented; r=kin; a=beppe; bug#6255 2000-06-08 14:47:29 +00:00
jfrancis%netscape.com
e93fa5fecf backend work for 41034: getting format feedback and list feedback untangled from each other. 2000-06-02 07:47:53 +00:00
jfrancis%netscape.com
f8789832b8 fixes: 14753, 29843, 39864, 40141, 40139, 36679, 39542, 34729, 34855, 37216, 39292, 26447 r=sfraser,cmanske,fm; a=beppe 2000-05-24 23:00:24 +00:00
cmanske%netscape.com
bf15afa2b3 Table editing: Join and Split cells (part of bug 20973) 2000-05-15 03:06:29 +00:00
cmanske%netscape.com
0aa739ecd5 Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser 2000-05-09 23:03:41 +00:00
cmanske%netscape.com
78ef893e72 Removed duplicate declarations 2000-05-04 23:01:05 +00:00
cmanske%netscape.com
7237e38781 Added 'Split Cell' and fixed initialization of 'Join Cells' in table menu. Added stubs for 'Split Cell' 2000-05-04 22:32:24 +00:00
cmanske%netscape.com
3403bfda38 HTML Soure editor is working. Tweaked some dialog xul. Removed some unused stuff from EditorCommands.js 2000-05-04 14:02:03 +00:00
mjudge%netscape.com
ebafd36182 massive change to prepare for ender-lite. should be a no-op for current implementation 2000-05-04 08:33:48 +00:00
jfrancis%netscape.com
f6251ee4f7 implementing list behavior spec, plus a few bug fixes 2000-05-03 00:14:28 +00:00
cmanske%netscape.com
003a94051d Set focus when page is done loading. Fixed labels for menus and toolbars. Replaced 'vertical-align' with 'valign' for box alignment. Changed strings for Edit Modes. Unload style sheets when loading a url into existing window 2000-05-02 03:24:11 +00:00
sfraser%netscape.com
035965297d Fixes for bugs 34503 and 34504 -- split the editor controller into editor and composer controllers, and make commands for lots of editor functions. 2000-05-01 21:49:52 +00:00
mjudge%netscape.com
67a72ebc1e massive change to stop the editor fromknowing about nsIPresShell or nsIDocument 2000-04-28 06:20:36 +00:00
cmanske%netscape.com
e78e6fbae6 Fixed Composer bugs 287475, 36937, 36981, 36996. More massive XUL skin conversion. 2000-04-28 05:59:16 +00:00
mjudge%netscape.com
2c0953e1be ender lite checkin. 2000-04-27 07:37:12 +00:00
akkana%netscape.com
5709d8739f Change Save File APIs in layout and editor to eliminate the specific
references to text and html and make them more general (take a mime type).
In the editor, prettyprint all output if editor.prettyprint_html is set.
2000-04-26 01:00:50 +00:00
brade%netscape.com
51bf56abee add method for InsertFromDrop; r=akkana 2000-04-25 14:14:42 +00:00
akkana%netscape.com
c2c750f37e 6276: Add wrapping support for mail. 2000-04-20 22:45:54 +00:00
akkana%netscape.com
b16cf77faa 29794: Disable meta-refresh in editor pages.
API and some implementation for 6276: rewrap.
2000-04-18 22:39:10 +00:00
akkana%netscape.com
b92f151eba 35814: add clipboard type to editor paste methods, and call the right type 2000-04-14 23:38:21 +00:00
cmanske%netscape.com
55e2ac48d1 Lots and lots of bug fixes and XUL widget conversions. Work in progress, but must checkin to allow XPFE to fix bugs 2000-04-14 03:19:31 +00:00
jfrancis%netscape.com
5c5e885156 added RemoveAllInlineProperties() 2000-04-13 22:27:41 +00:00
cmanske%netscape.com
9a9c1a24e8 Show/hide paragraph marks (b=22181) and cleaned up style sheet code. 3-D shading fixed for HLine props (b=26841). Toolbar button spaces (b=12514). New color picker button and other conversions to new XUL widgets in dialogs. Optimizations in table editing. r=sfraser 2000-03-31 04:18:29 +00:00
jfrancis%netscape.com
af4644e7c8 making editor hip to inline style changes on collapsed selections. plus lots of removal of unused code. 2000-03-29 12:53:23 +00:00
jfrancis%netscape.com
a43e1b1c64 improved paste performance in editor (WIP) (bug 28783) set/remove inline stlye rewrite (lots of bug #s) 2000-03-24 00:13:30 +00:00
cmanske%netscape.com
901944bd23 Finished implementation of menu-driven table selection. Implemented detection of row or column selection. r=mjudge 2000-03-21 06:05:24 +00:00
akkana%netscape.com
4038b1da98 30311: add a plain-vs-html flag to InsertAsCitedQuotation. r=rhp 2000-03-20 23:13:25 +00:00
cmanske%netscape.com
235ce19d67 Removed tableselection listener -- all selection now done in layout. Also added more table selection support for row, col from menu. r=mjudge 2000-03-16 23:45:41 +00:00
sspitzer%netscape.com
b50f24a71b move the nsICmdLineHandler responsibilties from nsHTMLEditorLog to nsEditorService. r=sfraser 2000-02-16 03:14:20 +00:00
sfraser%netscape.com
57de6e6cd7 Give the controller an Init method, and implement a bunch of commands the New Way. for bug 18395. r=pinkerton 2000-02-16 01:37:12 +00:00
sfraser%netscape.com
096edb7034 Expose the transaction manager to outside, for bug 18395. r=akkana 2000-02-16 01:36:30 +00:00
cmanske%netscape.com
afecaab477 Table editing work (bug 20973). Fixed background colorpicker (bug 21410), disable unimplemented menu items (25137), make property bundle strings more localizable (26050). r=mjudge 2000-02-10 05:14:52 +00:00
cmanske%netscape.com
894a83b297 More table editing work (bug 20973) and Page Properies dialog work (bug 14344). Added missing 'tbody' to nsIAtoms list. r=mjudge 2000-02-03 02:06:10 +00:00
jfrancis%netscape.com
395f325b0c more inline style feedback fixes (24574). r=sfraser 2000-02-02 22:47:43 +00:00
cmanske%netscape.com
1a85d5b775 Table editing (bug 20973): added support for rowspan/colspan=0, Rewrote Spelling Dictionary dialog (bug 24264), removed beep from forceInteger filter, r=akkana 2000-01-26 14:57:43 +00:00
sfraser%netscape.com
a37b31dc09 WIP for 18395, various editor command handling and updating changes. r=akkana 2000-01-18 21:50:15 +00:00
scc%netscape.com
da2c4e9fd1 Fix build bustage; r=sfraser. My theory for what the current build bustage is: `tainted' |nsCOMPtr<nsIDOMElement>| definition. The full definition of |nsIDOMElement| must be in scope first. 2000-01-14 04:14:09 +00:00
cmanske%netscape.com
e70eaf046f Table editing work and fixed bug 21389, r=buster. Added detecting table, row, or cell for setting background color, bug 7992, r=kin. Renamed overloaded GetDocumentTitle to GetDocumentTitleString and set new URL of saved page in webshell, bug 23726, r=mjudge 2000-01-13 23:33:00 +00:00
akkana%netscape.com
0b23aa43ac 22655: add API to allow specifying charset when inserting/quoting html. r=rhp
16015: Add API and implementation for delete-to-beginning (^U). r=slamm,rhp
490: Insert formatting newlines when inserting new nodes. r=rhp
2000-01-04 20:38:12 +00:00
jfrancis%netscape.com
d6e95890c8 Fix for bug 21346. This is actually a major reworking of how the low level editor txns perturb selection. There is a mode now for telling the txns not to disturb the selection. There is also a fix for unlisting lists (sometimes list items got merged unintentionally when unlisting). 2000-01-04 03:09:41 +00:00
waterson%netscape.com
02a83c388c Fix whitespace snafu that was tripping up my gmake. 1999-12-15 07:18:41 +00:00
mjudge%netscape.com
c8e34eada6 adding in nsEditorController to makesystem. adding in registration to allow someone to get an editorcontroller from the outside. also change editor shell to register a controller to handle keyboard navigation. 1999-12-15 03:46:27 +00:00
mjudge%netscape.com
08b6eba39b adding in nsIEdkitorController.h 1999-12-15 03:36:12 +00:00
mjudge%netscape.com
2bb3f51b95 adding in header files for massive checkins. reviewed akkana, mcc 1999-12-15 03:35:44 +00:00
ftang%netscape.com
c5a3d00653 fix bug 12090 19358. Implement ForceCompositionEnd and add it in the beginning of AddInlineProperty/RemoveInlineProperty/InsertElement/InsertHTML 1999-12-08 03:39:36 +00:00
jfrancis%netscape.com
167f9c0b74 fix for 20457: deletion in editor pretty darn screwy. Lots of changes to improve this. Document modifying entry points in editor now go thru a standard sandwich, which allows tracking of what changed in the doc, which allows proper post-processing of what changed. Also, all deletions now go thru the rules code, if applicable. Also some bugs in tracking the changed document portion have been fixed. Finally selection setting after a delete is improved. 1999-12-07 08:30:19 +00:00
ftang%netscape.com
5d9824b4bd add query composition event which get current curosor position. add timer base IME x y location query for gtk. r=erik. fix bug 17916 20550 1999-12-07 01:29:00 +00:00
akkana%netscape.com
757b1fce03 18033: Add editor API for delete methods, and hook up an initial
set of emacs key bindings for Unix.  r=jfrancis
1999-11-25 04:11:51 +00:00
jfrancis%netscape.com
73aafabe8e implemented a system to track what portion of a document is affect by an editor action. Used that system to help solve extensive whitespace handling problems, ans also problems with caret placement in response to returns (this lattter fix for html editors only - plaintext coming later). Fixed numerous list bugs involving outdenting, unlisting, and splitting lists. Checkin addressees these bugzilla bugs: 2073 & 12337 - whitespace trouble when typing (you can end up with all nbsp's instead of spaces) 16715 - caret gone or wrong after hitting return 16988 - aim foiled by our mozDIVs 17908 - enter at end of document does nothing 16085 - 4.x mail replied foiled by mozDIVs 19368 - inline style lost after typing return 17059 - "normal" made a paragraph, but typing made a div. Now they both just use direct text in the body (or wherever) 18717 - exiting list gives UBER caret (note: this will only be fixed most of the time, not all) 17778 - cant type beside an image (it ends up above or below it) - this was a rather strange ramification of the old mozDIV rules which are now gone. 1999-11-25 00:16:56 +00:00
akkana%netscape.com
e8544d1c6c 19610: Change InsertAsQuotation API to return inserted node r=rhp 1999-11-24 20:48:59 +00:00
cmanske%netscape.com
cade4ed318 Partial fix for 14344(Page Properties) and 18774(Increase/Decrease Font Size). Fixed 18234 (move Advanced Edit button), 18485 (don't prompt for title with Save As), 16714 (undefined value for para. property combobox) and 18494 (add filename to window caption). Improved Image Properties dialog and CSS style for toolbars. Added new Composer icons. r=sfraser 1999-11-13 16:37:58 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
joki%netscape.com
1675be15e0 Changes to DOM events to accomodate the new breakdown of events into mouse and key events. This fixes a couple of bug, though the main one is 13406. Involves changes to multiple DOM generated file as well as fixing up usage of DOM event api usage in editor, rdf, and xul. r:vidur 1999-11-03 07:11:45 +00:00
cmanske%netscape.com
618ed72e8d Fixed bugs 6278, 9758, 17014, 17071, 17160. r=sfraser,mjudge 1999-10-26 23:13:00 +00:00
cmanske%netscape.com
711c0f72c9 Fixed bugs 16204, 16118, 15831,15448,14342(partial) r=mjudge 1999-10-14 00:13:27 +00:00
jfrancis%netscape.com
c412022f4a revised rules system api to include "handled" parameter and ceased to overload the meaning of the "cancel" parameter; added TypedText() method to editor, editorshell, and logging, so that logging will work properly with typing; coallesce deletions for undo purposes r=buster@netscape.com 1999-10-06 19:34:09 +00:00
cmanske%netscape.com
d20641b38c Carpool checkin, r=brade. Lots of editor UI work, including new Advanced Edit dialog by Ben Goodger. Fixed style sheet loading leaks and implemented override style sheets for editor behavior, which be unloaded for edit mode vs. browser preview mode 1999-09-29 21:45:50 +00:00
jfrancis%netscape.com
9a79219861 revised UNDO; introduced first cut at the "mozdiv" typing rules 1999-09-29 20:08:15 +00:00
cmanske%netscape.com
20f2a8bffa More list property dialog work. Remaned GetParagraphStyle to more readable GetParagraphTags. Added GetListTags needed for list manipulation. Enhanced GetElementOrParentByTagName to handle lists 1999-09-22 05:52:44 +00:00
sfraser%netscape.com
628b73338b Expose the type-in state through nsIHTMLEditor 1999-09-22 01:21:56 +00:00
jfrancis%netscape.com
49d7f73dbc implementing EditorKeyPress and handling tabs in tables and shift-return meaning <br> 1999-09-13 09:37:51 +00:00
akkana%netscape.com
332f71e329 490: infrastructure for inserting formatting whitespace. Not turned on yet except for DEBUG_akkana 1999-09-10 18:54:13 +00:00
briano%netscape.com
d5abd4e0c7 General cleanup. 1999-09-09 03:34:19 +00:00
sfraser%netscape.com
58b73017cb Add DocumentIsEmpty to EditorShell.idl and nsIEditor, and modify length and content getters to do the right thing with an empty document (which contains the bogus text node). 1999-09-08 23:32:04 +00:00
sfraser%netscape.com
1ea026f91b File Removed. 1999-09-08 20:07:57 +00:00
sfraser%netscape.com
2f83ab2210 Remove commented out nsIEditRules 1999-09-08 20:06:01 +00:00
jfrancis%netscape.com
03c6026eb0 implementing RemoveList() - ie, list button now works as a toggle 1999-09-06 19:47:25 +00:00
cmanske%netscape.com
662edc2554 Added CloneAttributes to IDL and nsIHTMLEditor. Reworked property dialogs to accomodate AdvancedEdit dialog. Preliminary version of AdvancedEdit dialog done 1999-09-02 01:47:18 +00:00
cmanske%netscape.com
ba11acdca2 Changed IsNodeBlock to NodeIsBlock for JS. Fixed all compiler warnings. Added Advanced property Edit files 1999-09-01 19:58:25 +00:00
cmanske%netscape.com
dff2ba2d8d Exposed IsNodeBlock for JavaScript. Added comments for editor methods. Temporary fix for insert image bug (12917). Fixed bug 11857. Preliminary support for setting title and adding Cancel button in message dialogs. 1999-09-01 01:22:37 +00:00
cyeh%netscape.com
9577b5cefa Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
tague%netscape.com
97b0bd802c Added support for a reply from the StartComposition message. Necessary for XIM support on UNIX. 1999-08-31 01:20:32 +00:00
cmanske%netscape.com
9c2fab8c18 Removed string bundle code from nsEditor into EditorShell and added access for JavaScript. Moved most of Save document code into EditorShell and added filetype filters to save dialog. Placed Advanced Edit functionality in an overly file. Removed redundant entity strings, that are now in overlays, from DTD files. 1999-08-28 02:40:18 +00:00
cmanske%netscape.com
ce2856a9e0 Fixed bug 12126. Removed pref code from nsHTMLEditor - do HLine pref stuff in JS instead. 1999-08-27 04:12:47 +00:00
akkana%netscape.com
ff7a19a5bd Revise the doc encoder and content sink APIs yet again to make it easier
to add new flags (pass a flag in the constructor, rather than specific
booleans.  This in order to fix:
11249: Add flag to write only the body in html output.
1999-08-24 18:30:19 +00:00
buster%netscape.com
c7320f220f fixed some documentation 1999-08-19 13:33:49 +00:00
tague%netscape.com
11dad9b8c4 Fix bug #11687 - [Dogfood] Enable ender to save documents in encodings other than ISO-8859-1. Approved by chofmann@netscape.com, reviewed by buster@netscape.com. 1999-08-13 22:26:50 +00:00
slamm%netscape.com
0375e0b94d Add a newline to the end of the file. 1999-08-10 23:17:10 +00:00
mcafee%netscape.com
194686b481 newline at end of file 1999-08-10 21:29:49 +00:00
sfraser%netscape.com
d73dfd8ddb Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup. 1999-08-09 01:37:50 +00:00
sfraser%netscape.com
6f28b668c9 First Checked In. 1999-08-09 01:34:04 +00:00
tague%netscape.com
58316bd322 Added support for replies from private DOM text events. See bug #4826 1999-08-06 02:32:13 +00:00
cmanske%netscape.com
33420b646e Further table editing work 1999-08-05 20:04:58 +00:00
cmanske%netscape.com
14bb564bf2 Table editing implementation 1999-08-04 02:06:03 +00:00
sfraser%netscape.com
bbeffd28f0 Fix the document state listener mechanism so that you can install listeners after the editor has been created, and still get their 'document creation' notification called. 1999-08-03 06:53:45 +00:00
sfraser%netscape.com
a030b17c79 nsIDocumentStateListener.h is now IDL-generated 1999-08-03 00:47:17 +00:00
sfraser%netscape.com
fa835547c3 File Removed. 1999-08-03 00:46:44 +00:00
cmanske%netscape.com
0fef13e963 Fixed lots of XUL (adjust for new titledbutton changes and XPMenus). Added initial table properties support and unit test for nsITableLayout methods. Removed unused InsertLink and InsertImage methods. Added lots of comments for interface methods. 1999-08-01 22:37:58 +00:00
sfraser%netscape.com
23c447b114 Added support for nsIDocumentStateListeners. 1999-07-28 02:56:33 +00:00
sfraser%netscape.com
351c71d179 First Checked In. 1999-07-28 02:49:12 +00:00
sfraser%netscape.com
f9601e5c7c Add nsIDocumentStateListener.h 1999-07-28 02:48:18 +00:00
sfraser%netscape.com
0904ad463d File Removed. 1999-07-28 02:47:47 +00:00