Граф коммитов

222 Коммитов

Автор SHA1 Сообщение Дата
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
sfraser%netscape.com 9ece629f1f Remove nsIContextLoader 1999-07-28 02:45:05 +00:00
sfraser%netscape.com e7260799e9 Remove nsIContextLoader, which is obsolete 1999-07-28 02:44:22 +00:00
cmanske%netscape.com d54ddc3632 Initial table editing stuff. Removed table editing transactions (use basic node txns). Fixed TrimString JS methods. Fixed setting border in insert table. 1999-07-27 23:59:22 +00:00
buster%netscape.com cc49e3182a Clean-up
1) fixed unit tests
2) fixed a bunch of leaks having to do with using enumerators.  Thanks for noticing these, Simon.
3) fixed a tiny problem in nsTextEditRules::WillDoAction().
This method was overly aggressive in checking input args, sel can be null for some operations.
1999-07-25 18:14:44 +00:00
akkana%netscape.com 1f9dc3d358 Add GetEmbeddedObjects API to editor shell 1999-07-19 22:36:12 +00:00
akkana%netscape.com 6d4424c765 Add GetEmbeddedObjects API for mail/news 1999-07-19 19:06:39 +00:00
waterson%netscape.com 9479c899ab Use enum trick to get around VC++ braindead-ness wrt. 'const PRUin32'. 1999-07-14 19:42:55 +00:00
akkana%netscape.com a3fb11b98f Restructure the editor output routines to allow passing in
a mime type and a flag argument.  Also fix the following bugs:
9746: get rid of bogus empty <style> in head.
8143: save wrap column in editor shell in case it's set before the
      editor is created.
9470, 9488: allow explicit specification of formatted output.
1999-07-14 18:54:29 +00:00
cmanske%netscape.com f85acd993e Generic message dialog, fix insert element-related bugs, initial personal dictionary dialog, other editor bugs 1999-07-14 15:24:33 +00:00
sfraser%netscape.com fecb23a8fd Added transactions for applying and removing style sheets 1999-07-02 03:57:50 +00:00
kin%netscape.com 3b5b4d3b48 Added ApplyStyleSheet() method to the various editor interfaces. 1999-07-01 19:32:35 +00:00
akkana%netscape.com 66024861e2 - New dialog and editor shell API for Insert HTML Source
- Add wrapcolumn setting to document encoders, and use it in the editor
- Fix numbered lists in the html to text sink stream.
1999-06-30 19:26:08 +00:00
tague%netscape.com 353d857fed Added clause and selection support for Input Methods. Fixes bug #8639, #8459, #6989, #7824 1999-06-29 20:31:22 +00:00
sfraser%netscape.com c50cff4c35 Add new aSelectionOnly param to Output routines 1999-06-29 20:14:24 +00:00
buster%netscape.com 52fea2d39d Moved GetTextSelectionOffsets and GetDocumentLength from nsTextEditRules to
nsTextEditor.  Added GetDocumentLength to nsITextEditor public interface.
1999-06-28 13:36:38 +00:00
kin%netscape.com e3bf912523 * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.
1999-06-14 20:02:46 +00:00
cmanske%netscape.com 0e98fa1f0d Horizontal Line dialog and setting/getting hline settings from prefs implemented. Masked effect of bug 8058 by removing popupanchor attribute. 1999-06-12 21:22:12 +00:00
buster%netscape.com f9ffc2238d changed the way nsEditProperty is used. Right now, it's our placeholder
for HTML and CSS atoms, since we can't get these from layout yet.  The old
use assumed one editor, but as we know many editors can exist simultaneously.
Now, the editors share a singleton which is fetched from a factory method,
saving memory and allocation overhead.
1999-06-12 21:15:14 +00:00
sfraser%netscape.com 4adc73a847 GetLocalFileURL has moved to the editorShell 1999-06-11 19:03:05 +00:00
akkana%netscape.com 87633c23c7 Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.
1999-06-10 21:31:42 +00:00
buster%netscape.com 6a3429ddc2 * Added nsAutoSelectionReset, a tiny class that resets the selection to what it was before a block transformation.
* Added some code to restore selection after RemoveTextProperty.
* Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can
turn undo on and off effectively
* Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what
other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B".  The DOM
method nsIDOMElement::GetTagName forced the returned tag name to upper case.  I don't know how long that has
been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method
never would have worked.  I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase
* Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always
intialized, and all rules with Will... are matched with a Did... call.  Added Will/DidSetTextProperty() and
Will/DidRemoveTextProperty().  This helps enable plain text mode.  Added a skeleton for max length support in text editor.
* fixed some warnings.
1999-06-08 06:04:51 +00:00