1191 Commits

Author SHA1 Message Date
scc%mozilla.org
9e28a8b643 fixing code that relied on implicit string construction; note that |NS_LITERAL_STRING| does not produce an |nsString|, it produces something that is a |nsAReadableString|. Many functions still take |nsString&| arguments, and so |NS_LITERAL_STRING| is not appropriate in calling them, yet.
git-svn-id: svn://10.0.0.236/trunk@76734 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 00:34:08 +00:00
jfrancis%netscape.com
60b93bc382 fixing 49392: editor spazzing uneeded br tags in tables; r=fm
git-svn-id: svn://10.0.0.236/trunk@76687 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-19 05:58:11 +00:00
rcassin%supernova.org
a1433e6d19 Fix for 45645 (Can paste into ReadOnly textfield) r=akkana
git-svn-id: svn://10.0.0.236/trunk@76605 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 01:34:22 +00:00
jfrancis%netscape.com
6376ebe2b4 gave a pref a better name and a more traditional set of values.
git-svn-id: svn://10.0.0.236/trunk@76554 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 09:51:27 +00:00
jfrancis%netscape.com
879fac6cf9 adding a hidden pref for the editor:
editor.liReturnBehavior "no" will disable the default behavior of popping you out of lists if you hit return in an empty list item.


git-svn-id: svn://10.0.0.236/trunk@76539 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 05:26:32 +00:00
jfrancis%netscape.com
693d1707a2 fix for 48132: editor observer list maintainance was even less safe than i would have guessed...
git-svn-id: svn://10.0.0.236/trunk@76537 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 04:50:04 +00:00
jfrancis%netscape.com
3a6540f7dd 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@76535 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 03:59:50 +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
jfrancis%netscape.com
0b49f3bca3 fix for 48297: ome edit operations not scroling selection into view; r=fm
git-svn-id: svn://10.0.0.236/trunk@76262 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 02:39:37 +00:00
jfrancis%netscape.com
70ab4acbc7 fixing bustage. bizarre merge error?
git-svn-id: svn://10.0.0.236/trunk@76257 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 00:53:41 +00:00
jfrancis%netscape.com
765bda40d2 fix for 45281, cannot insert a table caption. r=fm
git-svn-id: svn://10.0.0.236/trunk@76254 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-13 23:53:34 +00:00
sfraser%netscape.com
b2984ba0ab Part of fix for 47855 -- don't show title prompt when saving from mail or plaintext. r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@76175 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 00:16:10 +00:00
cmanske%netscape.com
aa6f5ab8c7 Restrict nsEditorShellMouseListener to HTML editor; fix to optimize GetSelectedNode for named anchors, b=47687, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@76092 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 04:59:37 +00:00
cmanske%netscape.com
f3cfdd30aa Big UI fix checkin continued - same bugs as last checkin. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@75959 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 03:43:09 +00:00
anthonyd%netscape.com
902ff13a56 bug fix for 47399
dropping a drag session onto the originating selection
should do nothing.
r: mjudge, jfrancis


git-svn-id: svn://10.0.0.236/trunk@75936 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:01:18 +00:00
sfraser%netscape.com
d2a1daeb55 Fix for 25161 -- allow editor to handle pages with form elements. Avoid infinite loop in editor, and add some CSS for form elements in editor. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@75829 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 23:37:51 +00:00
ducarroz%netscape.com
3e01b25fda Part of fix for bug 36480. I check in this fix for jfrancis. The function EndOfDocument which wasn't used yet was setting the selection on the wrong node. R=ducarroz
git-svn-id: svn://10.0.0.236/trunk@75759 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 04:05:26 +00:00
anthonyd%netscape.com
81c7739c51 checkins for Hurricane
translation of all C++ functions to JS which included SaveDocument
which eventually will allow for the completeion of autosave
r: brade, anthonyd
a: waterson, cmanske


git-svn-id: svn://10.0.0.236/trunk@75726 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 21:12:18 +00:00
bratell%lysator.liu.se
0f61387703 Fix for bug 46306, html-to-plaintext replies have > on blank lines. The fix was to strip ending new lines in the citer. r=akkana, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@75700 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-07 06:05:27 +00:00
shanjian%netscape.com
309c493895 #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


git-svn-id: svn://10.0.0.236/trunk@75606 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:43:29 +00:00
brade%netscape.com
6ab4e4c364 fix src/dest d&d (do move if in same doc unless modifier key is pressed); bug #45607; r=kin
git-svn-id: svn://10.0.0.236/trunk@75600 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 20:51:33 +00:00
anthonyd%netscape.com
1355a05c4e bug fixes:
39529 - caret width not correct for single/muti line textfields, which relied on:
46445 -  nsLookAndFeel needs to be a service.
r: mjudge@netscape.com, kin@netscape.com
a:beppe


git-svn-id: svn://10.0.0.236/trunk@75084 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 22:12:45 +00:00
brade%netscape.com
bf018ca524 add missing move/selection command (cmd_selectBottom); bug #22529
git-svn-id: svn://10.0.0.236/trunk@75060 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 10:53:27 +00:00
brade%netscape.com
979b376d05 remove save and saveas commands (now in JS); submitted by rcassin@supernova.org (bug #16359)
git-svn-id: svn://10.0.0.236/trunk@75051 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 10:15:28 +00:00
brade%netscape.com
b1e26e8f35 remove registration of save and saveas commands (now handled in JS); submitted by rcassin@supernova.org (bug #16360)
git-svn-id: svn://10.0.0.236/trunk@75050 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 10:14:22 +00:00
brade%netscape.com
49613c436b add static to remove warning
git-svn-id: svn://10.0.0.236/trunk@74948 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 21:49:46 +00:00
brade%netscape.com
870b8893ac remove unused function
git-svn-id: svn://10.0.0.236/trunk@74946 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 21:48:06 +00:00
brade%netscape.com
59b71a64c5 add static to two methods to remove warnings
git-svn-id: svn://10.0.0.236/trunk@74945 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 21:46:26 +00:00
brade%netscape.com
b6b0a40813 clean up the code; remove unnecessary code/functions; don't handle delete/fwd delete keypresses if there is a modifier key pressed; bug #41078; r=kin
git-svn-id: svn://10.0.0.236/trunk@74941 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 21:39:48 +00:00
jfrancis%netscape.com
868ae3f8f1 take 2: fix for 22227 and partial fix for 46209; r=mjudge; a=beppe
git-svn-id: svn://10.0.0.236/trunk@74873 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 01:03:16 +00:00
kin%netscape.com
4554a01d45 Backout previous checkin/fix for 46209 & 22227 since in some instances
the frame data it relies on does not contain valid info. This causes
data loss in some cases like when making text bold.
a=granrose


git-svn-id: svn://10.0.0.236/trunk@74816 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 18:52:59 +00:00
jfrancis%netscape.com
ab22fc3f24 fix for 46209 & 22227; list items and table cells with a single space gave you unclickable content in the editor. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@74811 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 13:07:54 +00:00
jfrancis%netscape.com
e424cc7f28 fix for 33213; r=sfraser
git-svn-id: svn://10.0.0.236/trunk@74603 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 22:06:48 +00:00
kin%netscape.com
ed8c32d80b Fix for bug #42263: Unable to invoke IME in the receipient and subject field on plain text mail composer
Replaced GetDeepestWidget() with new function GetEditorContentWindow().
Modified ForceCompositionEnd() to call GetEditorContentWindow().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74395 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:11:31 +00:00
jfrancis%netscape.com
b583093ee1 adding in support for nsIEditorObserver. this is for bug 42329: autocompletion firing in the middle of uncommitted ime entry. r=fm
git-svn-id: svn://10.0.0.236/trunk@74299 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 06:36:27 +00:00
kin%netscape.com
19eb078c58 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


git-svn-id: svn://10.0.0.236/trunk@74257 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 20:26:09 +00:00
anthonyd%netscape.com
57bfacee97 fix for regression, bug#45477
cant insert hrules, images, etc...
r=brade, a=granrose


git-svn-id: svn://10.0.0.236/trunk@74254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:38:24 +00:00
mjudge%netscape.com
1f23cf0495 anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
git-svn-id: svn://10.0.0.236/trunk@74199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:41 +00:00
akkana%netscape.com
b1d2c282a3 Take my name out of a debug printf -- tired of seeing all that output
git-svn-id: svn://10.0.0.236/trunk@74190 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:50:39 +00:00
jfrancis%netscape.com
fb9119fcee fix for 36570; mail signature shows up in middle of quoted text
git-svn-id: svn://10.0.0.236/trunk@74128 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:44:56 +00:00
jfrancis%netscape.com
57a7c5fa33 fix for 43903; making a list after inline contnet doesnt work
git-svn-id: svn://10.0.0.236/trunk@74125 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:21:49 +00:00
mcafee%netscape.com
b3d537adfc Backing out last change to fix linux bustage. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@74070 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:47:00 +00:00
cmanske%netscape.com
c7e1286f2d Fixed warnings revealed by Linux build in table editing code
git-svn-id: svn://10.0.0.236/trunk@74066 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:15:17 +00:00
cmanske%netscape.com
e22e9309a7 Tweaked previous fix -- sfraser suggested a more efficient fix
git-svn-id: svn://10.0.0.236/trunk@74065 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:05:35 +00:00
cmanske%netscape.com
4a40e3830c Fixed build bustage for linux (why can't Linus do NS_LITERAL_STRING correctly!)
git-svn-id: svn://10.0.0.236/trunk@74064 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:00:58 +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
jfrancis%netscape.com
6ca6c35a74 fix for 43366; r=kin
git-svn-id: svn://10.0.0.236/trunk@74016 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:51:36 +00:00
ftang%netscape.com
b852b1dc76 fix 40739 (dup as 45048. the fix is in 45048)
Change do_QueryInterface to do_QueryReference for mContenWindow for SetDocumentCharacterSet
method.


git-svn-id: svn://10.0.0.236/trunk@74001 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:50:00 +00:00
jfrancis%netscape.com
930530f695 fixing increase/decrease font bustage in editor
git-svn-id: svn://10.0.0.236/trunk@73854 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:17:37 +00:00
cmanske%netscape.com
d916040dae Table editing work. b=20973, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@73607 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:37:12 +00:00