152 Commits

Author SHA1 Message Date
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
sfraser%netscape.com
45984f5dcb Support for UI state maintenance, for styles, and the document dirty flag.
git-svn-id: svn://10.0.0.236/trunk@41406 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 02:54:35 +00:00
cmanske%netscape.com
19ab0e4029 Initial table editing stuff. Removed table editing transactions (use basic node txns). Fixed TrimString JS methods. Fixed setting border in insert table.
git-svn-id: svn://10.0.0.236/trunk@41372 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 23:59:22 +00:00
danm%netscape.com
72f4193b08 hooking up window OS border control from JS/C++
git-svn-id: svn://10.0.0.236/trunk@41255 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 06:34:24 +00:00
cmanske%netscape.com
8e08f9008a Fixed bugs relating to insert element
git-svn-id: svn://10.0.0.236/trunk@40761 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 00:52:17 +00:00
akkana%netscape.com
3f8e57acfe Add GetEmbeddedObjects API to editor shell
git-svn-id: svn://10.0.0.236/trunk@40174 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 22:36:12 +00:00
warren%netscape.com
84a03567fa Big changes for Necko load groups. Things are much happier now. Now images work (on pages, but not in chrome).
git-svn-id: svn://10.0.0.236/trunk@39678 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 11:14:36 +00:00
cmanske%netscape.com
48cf0087a1 Finished Personal Dictionary dialog. Added 4th button to generic message dialog. Cleaned up syntax errors for in params for spell checking methods
git-svn-id: svn://10.0.0.236/trunk@39531 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 14:43:48 +00:00
sfraser%netscape.com
4a3b349390 Tidy up the ctor, add a method for getting the document dirty state, and handle multiple loadURLs in the editor content window.
git-svn-id: svn://10.0.0.236/trunk@39420 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 22:30:39 +00:00
akkana%netscape.com
a878369d02 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.


git-svn-id: svn://10.0.0.236/trunk@39332 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:54:29 +00:00
cmanske%netscape.com
79fd9050ea Generic message dialog, fix insert element-related bugs, initial personal dictionary dialog, other editor bugs
git-svn-id: svn://10.0.0.236/trunk@39268 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 15:24:33 +00:00
kin%netscape.com
0d49f312e2 Added ApplyStyleSheet() method to the various editor interfaces.
git-svn-id: svn://10.0.0.236/trunk@37845 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 19:32:35 +00:00
akkana%netscape.com
49826cb224 Oops, making wrapcolumn unsigned was a mistake. (Thanks to slamm's
warnings page for showing me that!)  Change it back to signed.


git-svn-id: svn://10.0.0.236/trunk@37746 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 19:01:04 +00:00
akkana%netscape.com
2fb45d996c - 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.


git-svn-id: svn://10.0.0.236/trunk@37529 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-30 19:26:08 +00:00
sfraser%netscape.com
20ffc454a0 Call the Output routines with a new param for selection only.
git-svn-id: svn://10.0.0.236/trunk@37426 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-29 20:14:58 +00:00
valeski%netscape.com
8e418e46c4 NECKO build. pushed the appropriate NECKO apis down into the editor shell from nsIDocumentLoaderObserver.
git-svn-id: svn://10.0.0.236/trunk@37175 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 13:01:55 +00:00
warren%netscape.com
2fd605cc6f Last of the necko ifdefs. Now we link with necko.
git-svn-id: svn://10.0.0.236/trunk@37169 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 10:35:57 +00:00
danm%netscape.com
fe81f5f1a1 teach RunModalDialog to use extant windows; use one in NetSupportDialog (fixes bug 7858). remove AppShellService interface references
git-svn-id: svn://10.0.0.236/trunk@36668 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 03:29:22 +00:00
warren%netscape.com
06d707be48 Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too.
git-svn-id: svn://10.0.0.236/trunk@36440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 03:29:44 +00:00
sfraser%netscape.com
537559b590 Clean up the editorShell, fixing some leaks, and removing old appCore-related cruft.
git-svn-id: svn://10.0.0.236/trunk@35933 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-19 22:13:46 +00:00
sfraser%netscape.com
b798ce46a3 Fix for 6345 - opening local files in editor. r kin, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35729 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:05:08 +00:00
radha%netscape.com
61370baba7 New arguments for OnEndDocumentLoad()
git-svn-id: svn://10.0.0.236/trunk@35221 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:13:00 +00:00
kin%netscape.com
38bb3e3ed2 * 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.


git-svn-id: svn://10.0.0.236/trunk@35149 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:02:46 +00:00
cmanske%netscape.com
11dac7bbef Horizontal Line dialog and setting/getting hline settings from prefs implemented. Masked effect of bug 8058 by removing popupanchor attribute.
git-svn-id: svn://10.0.0.236/trunk@35035 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:22:12 +00:00
bruce%cybersight.com
02e0f80d71 This file depends directly upon nsFileSpec .. with an upcoming checkin, that include may not be happening in one of the files currently included here, so we best include it here directly.
git-svn-id: svn://10.0.0.236/trunk@35027 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 20:40:29 +00:00
sfraser%netscape.com
29857082ee Rename nsISpellCheck to nsIEditorSpellCheck
git-svn-id: svn://10.0.0.236/trunk@34887 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:43:19 +00:00
sfraser%netscape.com
89d8dfb35e Remove obsolete includes
git-svn-id: svn://10.0.0.236/trunk@34835 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:49:05 +00:00