78 Commits

Author SHA1 Message Date
cmanske%netscape.com
cabfc8b277 Fixed bugs 17098, 17808, and a lot of UI cleanup. Rewrote Image Properties dialog so More/Fewer works and layout is better. Moved image URLs from DTD to CSS files. r=brade
git-svn-id: svn://10.0.0.236/trunk@52631 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 00:48:26 +00:00
cls%seawood.org
3e1a9ca95a Removed unused NECKO ifdefs.
a=leaf


git-svn-id: svn://10.0.0.236/trunk@52607 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 23:34:03 +00:00
brendan%mozilla.org
f980be0221 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.


git-svn-id: svn://10.0.0.236/trunk@52347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:43:30 +00:00
cmanske%netscape.com
1095535469 Fixed Composer UI to adjust to latest global CSS changes. Mostly needed to add appropriate class to titled buttons. Change editorshell to stop throbber animation even if editor fails to initialize. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52279 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:33:34 +00:00
cmanske%netscape.com
aa538bb21b Added 'Throbber' to Composer - more UI adjustments for new skin. Tweaked new toolbar images. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52173 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:33:51 +00:00
law%netscape.com
41c8a495f1 Bug #14999, removing last vestiges of app core usage; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52030 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:39:33 +00:00
cmanske%netscape.com
3054ed7de9 Fixed bugs 6278, 9758, 17014, 17071, 17160. r=sfraser,mjudge
git-svn-id: svn://10.0.0.236/trunk@51910 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:13:00 +00:00
cmanske%netscape.com
5e0a77611f Fixed bugs 12515, 16493,16494,16495,16692,16794,most of 9758. Replaced old 'target' icon with interim 'anchor' icon. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@51255 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:15:25 +00:00
law%netscape.com
25e63cd81a Bug #14999; stop using toolkit app core; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51029 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:39:18 +00:00
cmanske%netscape.com
d3b17dbcb9 Fixed bugs 16316, 16494, 16495, all relating to editor file open, saving, and window title issues. r=law
git-svn-id: svn://10.0.0.236/trunk@50876 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:06:41 +00:00
cmanske%netscape.com
1347e8f244 Fixed bugs 16204, 16118, 15831,15448,14342(partial) r=mjudge
git-svn-id: svn://10.0.0.236/trunk@50627 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:13:27 +00:00
buster%netscape.com
273f420e23 fixed my part of bug 15814 (Cleanup build warnings)
so trivial, no reviewer needed
fixed my part of bug  5403 (Services improperly released: Use NS_WITH_SERVICE)
a handful of subtle error handling bugs were fixed as a side effect
r=Akkana


git-svn-id: svn://10.0.0.236/trunk@50222 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:39:20 +00:00
buster%netscape.com
1e0b48570c fixed some space leaks reported by kipp. no bug #, r=tague
added some assertions and error checking to nsEditor::Do, no bug #, r=kin
fixed bug 14898 (implemented type-in state for any context), r=jfrancis


git-svn-id: svn://10.0.0.236/trunk@50004 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:27:41 +00:00
jfrancis%netscape.com
0209785bbb 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
git-svn-id: svn://10.0.0.236/trunk@49999 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:34:09 +00:00
cmanske%netscape.com
96b943c0a4 Added do_QueryInterface to fix build bustage for Linux
git-svn-id: svn://10.0.0.236/trunk@49369 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 23:33:45 +00:00
cmanske%netscape.com
c586988364 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
git-svn-id: svn://10.0.0.236/trunk@49362 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:45:50 +00:00
sfraser%netscape.com
b1c66fccb7 Fix for bug 14640 -- unregister the selection listener when we get more than one reload in the editor. coded buster, r sfraser, a leaf.
git-svn-id: svn://10.0.0.236/trunk@48941 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:46:23 +00:00
cmanske%netscape.com
d733c2160f More list property dialog work. Remaned GetParagraphStyle to more readable GetParagraphTags. Added GetListTags needed for list manipulation. Enhanced GetElementOrParentByTagName to handle lists
git-svn-id: svn://10.0.0.236/trunk@48795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:52:44 +00:00
sfraser%netscape.com
b3a10c7af2 Implement UpdateInterfaceState
git-svn-id: svn://10.0.0.236/trunk@48711 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:20:24 +00:00
tao%netscape.com
7e46395ba6 Move editor.properties from content/ to locale/,
git-svn-id: svn://10.0.0.236/trunk@48526 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:03 +00:00
cmanske%netscape.com
03e7911d12 Editor bug fixes. List Properties dialog work. Fixed menu access keys in DTD file. Fixed using selection->Clear() cases
git-svn-id: svn://10.0.0.236/trunk@48474 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:36:30 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
davidm%netscape.com
d5ff5ffdec Change the call to shutdown to a call to quit.
git-svn-id: svn://10.0.0.236/trunk@48118 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:29:01 +00:00
sfraser%netscape.com
3798e253d3 Fix the double reload problem in the editor, which fixes bug 14045 and maybe others.
git-svn-id: svn://10.0.0.236/trunk@47872 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:54:08 +00:00
cmanske%netscape.com
6023c37ee6 Put loading of EditorContent.css within an if DEBUG_cmanske 'cause it prevents initial reflow and others will complain!
git-svn-id: svn://10.0.0.236/trunk@47492 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 01:12:58 +00:00
cmanske%netscape.com
258c56a586 Fixed bug 8806 - printing from editor
git-svn-id: svn://10.0.0.236/trunk@47491 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 01:10:10 +00:00
sfraser%netscape.com
59455396ec Use nsAutoStrings where appropriate
git-svn-id: svn://10.0.0.236/trunk@47453 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 23:40:16 +00:00
sfraser%netscape.com
8a797c14a4 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).
git-svn-id: svn://10.0.0.236/trunk@46444 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 23:32:04 +00:00
jfrancis%netscape.com
b77bd7e19a oops, missed a case....
git-svn-id: svn://10.0.0.236/trunk@46372 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 19:10:13 +00:00
jfrancis%netscape.com
96bf193e44 fixing case sensitivity problem
git-svn-id: svn://10.0.0.236/trunk@46360 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 18:49:01 +00:00
jfrancis%netscape.com
8771ef0e8a making special mail-compose editing rules accessible to mail
git-svn-id: svn://10.0.0.236/trunk@46318 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 06:26:53 +00:00
cmanske%netscape.com
0522028cc7 Fixed bug 13164 preventing Open from working in editor
git-svn-id: svn://10.0.0.236/trunk@46195 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 19:08:24 +00:00
jfrancis%netscape.com
a5341f92a7 implementing RemoveList() - ie, list button now works as a toggle
git-svn-id: svn://10.0.0.236/trunk@46125 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 19:47:25 +00:00
bruce%cybersight.com
bf0dde26b0 Use nsCRT::free() instead of delete[] for char* data.
git-svn-id: svn://10.0.0.236/trunk@46092 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-06 06:22:51 +00:00
cls%seawood.org
784ae9f568 Fix for the AIX build which claims 'Operand of "&" operator must be an lvalue.'
git-svn-id: svn://10.0.0.236/trunk@45866 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 09:04:31 +00:00
cmanske%netscape.com
d34dcd1353 Added 'Cancel' to editor save file Confirm dialog and changed to accomodate common dialog interface changes
git-svn-id: svn://10.0.0.236/trunk@45802 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 01:23:19 +00:00
cmanske%netscape.com
340b31c86b Added CloneAttributes to IDL and nsIHTMLEditor. Reworked property dialogs to accomodate AdvancedEdit dialog. Preliminary version of AdvancedEdit dialog done
git-svn-id: svn://10.0.0.236/trunk@45620 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 01:47:18 +00:00
cmanske%netscape.com
4192db5431 Changed IsNodeBlock to NodeIsBlock for JS. Fixed all compiler warnings. Added Advanced property Edit files
git-svn-id: svn://10.0.0.236/trunk@45482 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 19:58:25 +00:00
cmanske%netscape.com
03f3145567 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.
git-svn-id: svn://10.0.0.236/trunk@45410 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:22:37 +00:00
cmanske%netscape.com
f9cc1c05e3 Added checking if we need to save file before allowing close window or exit (bug 7615). Added support for Confirm and Alert message dialogs
git-svn-id: svn://10.0.0.236/trunk@45247 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 00:51:23 +00:00
cmanske%netscape.com
117195748b 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.
git-svn-id: svn://10.0.0.236/trunk@44967 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-28 02:40:18 +00:00
cmanske%netscape.com
38146f9df0 Fixed bug 12126. Removed pref code from nsHTMLEditor - do HLine pref stuff in JS instead.
git-svn-id: svn://10.0.0.236/trunk@44747 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 04:12:47 +00:00
tague%netscape.com
1bdbfaf844 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.
git-svn-id: svn://10.0.0.236/trunk@43310 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-13 22:26:50 +00:00
sfraser%netscape.com
4dd92661ce Landing editor API changes. Removed nsITextEditor and nsTextEditor, split interfaces into more, non-overlapping interfaces, and other general cleanup.
git-svn-id: svn://10.0.0.236/trunk@42725 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 01:37:50 +00:00
valeski%netscape.com
be8bf3fd76 api change to nsIWebShell and nsIDocumentLoaderObserver. I've replaced all the old method delarations with the new versions. We now pass 'nsresult' types into the On*() methods instead of PRInt32. The PRInt32 arg type was causing data loss.
I also checked in a fix for bug 10848 (which prompted the api change), and 10549 (these changes were in nsWebShell.cpp).


git-svn-id: svn://10.0.0.236/trunk@42245 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 01:28:30 +00:00
cmanske%netscape.com
59766ea19c Table editing implementation
git-svn-id: svn://10.0.0.236/trunk@42082 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-04 02:06:03 +00:00
sfraser%netscape.com
ad6fe30c67 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.
git-svn-id: svn://10.0.0.236/trunk@41954 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 06:53:45 +00:00
sfraser%netscape.com
8befbe5e05 Support for pre-registering nsIDocumentStateListeners before the editor is created.
git-svn-id: svn://10.0.0.236/trunk@41913 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 00:57:57 +00:00
cmanske%netscape.com
e77114a04c 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.
git-svn-id: svn://10.0.0.236/trunk@41775 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-01 22:37:58 +00:00
akkana%netscape.com
4d428f903e Fix compile warning
git-svn-id: svn://10.0.0.236/trunk@41612 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-30 23:37:57 +00:00