76 Commits

Author SHA1 Message Date
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
darin%netscape.com
9d03c579d0 Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 06:01:08 +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
disttsc%bart.nl
abd8de21e5 Change implicit conversion from
|NS_ConvertUTF8toUCS2|
|NS_ConvertASCIItoUCS2|
|NS_ConvertUCS2toUTF8|
|ns[C]LiteralString|
|ns[C]PromiseFlatString|

to explicit |get()|.

Add |get()| to |nsString|, remove implicit conversion operators where possible, add NS_WARNING where not (yet!).

Bug=53057, r=alecf, sr=scc


git-svn-id: svn://10.0.0.236/trunk@88947 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-08 08:05:05 +00:00
cmanske%netscape.com
a6c3260a9b Make setting doc title undoable (add SetDocumentTitle transaction) b=60129, add export to text file, b=51798, some interface param changes to table editing methods as part of embedding work (b=66300). r=brade, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@88017 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-26 22:02:58 +00:00
valeski%netscape.com
85c2e0dc3d r=ccarlen, sr=rpotts. 65925. making editor progress listener support weak refs
git-svn-id: svn://10.0.0.236/trunk@85864 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:01:41 +00:00
rpotts%netscape.com
7dc0796628 bug #15345 (r=sfraser, sr=mscott). Removed nsIDocumentLoaderObserver and replaced it with the new nsIWebProgress notifications...
git-svn-id: svn://10.0.0.236/trunk@83911 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 22:09:55 +00:00
sfraser%netscape.com
df76c8f330 Fix for 62039 -- change methods to use const PRUnichar* instead of nsStrings for NS_LITERAL_STRING loving. r=cmanske, akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@83326 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-06 20:48:35 +00:00
sfraser%netscape.com
b30f139d7b Fix bug 52548, sidebar links open in composer window and nuke composer content. sr=mscott, r=vishy.
git-svn-id: svn://10.0.0.236/trunk@81186 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-14 01:44:31 +00:00
sfraser%netscape.com
8379325c00 Fix for 52808 -- standardized nsEditorShell creation and destruction across components, to fix editor observer notification timing. r=kin,ducarroz,jelwell, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@80787 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-10 01:45:46 +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
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
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
fbb8adfdad Finishing table editing+dialog work (b=20973, r=jfrancis), and disabling commands when in HTML Source mode (b=38875, r=sfraser)
git-svn-id: svn://10.0.0.236/trunk@74050 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:41:22 +00:00
cmanske%netscape.com
301d82ee01 Checkin for sfraser: Fix document-load listener to work when loading URL into an existing Composer window. b=41584, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@72885 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:24:42 +00:00
cmanske%netscape.com
4d9e22e63c Fix for 41034 - new list submenu command support for doing DL lists. r=sfraser, a=beppe
git-svn-id: svn://10.0.0.236/trunk@71542 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 20:26:40 +00:00
sfraser%netscape.com
1151deaeba Fix nsbeta2+ bug 28973 -- only allow editing of text/html and text/plain files. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@70969 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:42:25 +00:00
anthonyd%netscape.com
c0177aa6b1 changed nsIDOMWindow* mContentWindow to a
nsWeakPtr mContentWindow to get around complexities with ~nsEditorShell


git-svn-id: svn://10.0.0.236/trunk@69639 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-14 05:27:17 +00:00
cmanske%netscape.com
6eede096f5 Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@68913 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 23:03:41 +00:00
sfraser%netscape.com
3d40a4cc67 Get rid of the redundant command state saving methods, and amalgamate the code that deals with multiple reloads into one method.
git-svn-id: svn://10.0.0.236/trunk@68458 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-05 23:19:08 +00:00
cmanske%netscape.com
5eed0d89a9 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
git-svn-id: svn://10.0.0.236/trunk@67836 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 03:24:11 +00:00
sfraser%netscape.com
e1c3f451ab Fixes for bugs 34503 and 34504 -- split the editor controller into editor and composer controllers, and make commands for lots of editor functions.
git-svn-id: svn://10.0.0.236/trunk@67740 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-01 21:49:52 +00:00
akkana%netscape.com
eb9b9e717d 29794: Disable meta-refresh in editor pages.
API and some implementation for 6276: rewrap.


git-svn-id: svn://10.0.0.236/trunk@66336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:39:10 +00:00
tbogard%aol.net
733b054319 Changed nsEditorShell to hold on to docShells instead of webShells. Changed a number of places to use nsIDocShell instead of nsIWebShell. Removed the hold on a nsIWebShellWindow as no one should ever hold onto that.
git-svn-id: svn://10.0.0.236/trunk@65621 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:48:14 +00:00
sfraser%netscape.com
ce3113a37e Fix for 14599 -- detect attempt to edit frameset. a=akkana
git-svn-id: svn://10.0.0.236/trunk@65109 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 01:06:25 +00:00
cmanske%netscape.com
1d0728c1b0 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
git-svn-id: svn://10.0.0.236/trunk@64695 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 04:18:29 +00:00
sfraser%netscape.com
81c26cdf28 Work in progress for bug 14599 -- handle loading frameset docs. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@64671 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 02:13:00 +00:00
norris%netscape.com
eac4ea696c Fix bug 7264 All JavaScript running with correct principals
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@64317 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-28 03:59:46 +00:00
brade%netscape.com
ca46902629 fix memory leaks in GetString functions; written by sfraser; built by jst and brade
git-svn-id: svn://10.0.0.236/trunk@63460 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-20 15:44:32 +00:00
cmanske%netscape.com
a8fcf6d5b7 Removed tableselection listener -- all selection now done in layout. Also added more table selection support for row, col from menu. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@63202 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-16 23:45:41 +00:00
tbogard%aol.net
b09f250b0f Use the XPIDL generated macro to declare the methods for nsIDocumentLoaderObserver interface.
git-svn-id: svn://10.0.0.236/trunk@62584 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 01:01:39 +00:00
tbogard%aol.net
ae46ea6d3b Removed unused forward declaration of class nsIBrowserWindow.
git-svn-id: svn://10.0.0.236/trunk@60369 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:11:37 +00:00
cmanske%netscape.com
d4e1176a34 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
git-svn-id: svn://10.0.0.236/trunk@57722 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-13 23:33:00 +00:00
rpotts%netscape.com
5870fbf96d Removed obsolete arguments from nsIDocumentLoaderObserver OnEndDocumentLoad and OnStartURLLoad.
git-svn-id: svn://10.0.0.236/trunk@56597 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 07:32:59 +00:00
brade%netscape.com
94635420f7 remove unused functions; r=sfraser
git-svn-id: svn://10.0.0.236/trunk@55195 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 15:18:38 +00:00
brade%netscape.com
44ddc49826 remove some unused functions from editor shell (r=jfrancis)
git-svn-id: svn://10.0.0.236/trunk@54756 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 15:23:46 +00:00
akkana%netscape.com
4059b56e74 18033: Add editor API for delete methods, and hook up an initial
set of emacs key bindings for Unix.  r=jfrancis


git-svn-id: svn://10.0.0.236/trunk@54475 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-25 04:11:51 +00:00
sfraser%netscape.com
cbb5dd663c Fix 16653 and 18496 -- assert on non-local Edit Page, and avoid opening a second composer window for a file that is already open. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@53121 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 00:12:23 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +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
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
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
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
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
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
mccabe%netscape.com
91543218bc First cut at removing manual declaration of interface methods in implementation classes and replacing with xpidl-generated NS_DECL_NSIFOO macro.
Hopefully this'll help turn the copy-n-paste tide towards using this macro.


git-svn-id: svn://10.0.0.236/trunk@43988 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 08:54: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