61 Commits

Author SHA1 Message Date
akkana%netscape.com
4ef2b83a8e 173953: Fix plaintext quoting. r=ducarroz sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@132112 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 00:07:28 +00:00
akkana%netscape.com
acb01b3bbf More 161143: fix an uninitialized variable warning noticed by aleksey@nogin.org
git-svn-id: svn://10.0.0.236/trunk@131528 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 01:33:31 +00:00
darin%netscape.com
616941008e revising my bustage fix
git-svn-id: svn://10.0.0.236/trunk@131462 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 21:18:41 +00:00
darin%netscape.com
c2b5539c07 fixes win32 bustage from akk's last checkin
git-svn-id: svn://10.0.0.236/trunk@131460 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 21:11:59 +00:00
akkana%netscape.com
1cd9257122 161143: Add new method InsertTextWithQuotes, and call it from Rewrap. r=brade,jfrancis sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@131455 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 20:24:23 +00:00
cmanske%netscape.com
b5d60d857b Implemented command and Composer UI for 'Paste Without Formatting' command. b=64647, r=mjudge, sr=darin
git-svn-id: svn://10.0.0.236/trunk@131252 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-06 01:23:18 +00:00
cmanske%netscape.com
764dbe4dbf Part of fix for table editor interface changes. (fixed build bustage!) b=166922, r=akkana, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@129501 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 05:24:26 +00:00
dougt%netscape.com
1ebc6538fb Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426
git-svn-id: svn://10.0.0.236/trunk@128770 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-03 23:36:13 +00:00
alecf%netscape.com
e3b2da9c83 bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128163 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 21:20:34 +00:00
alecf%netscape.com
573e11653f bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@126389 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-06 00:53:19 +00:00
kin%netscape.com
fa152a3def Partial fix for bug 141900 (Text entry fields in forms excruciatingly slow.)
mozilla/content/base/public/nsISelectionController.idl
  mozilla/content/base/src/nsSelection.cpp
  mozilla/editor/composer/src/nsEditorShell.cpp
  mozilla/editor/idl/nsIPlaintextEditor.idl
  mozilla/editor/libeditor/base/nsEditor.cpp
  mozilla/editor/libeditor/base/nsEditor.h
  mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditor.cpp
  mozilla/editor/libeditor/text/nsEditorEventListeners.cpp
  mozilla/editor/libeditor/text/nsPlaintextDataTransfer.cpp
  mozilla/editor/libeditor/text/nsPlaintextEditor.cpp
  mozilla/editor/txtsvc/src/nsTextServicesDocument.cpp
  mozilla/editor/ui/dialogs/content/EdTableProps.js
  mozilla/embedding/components/find/src/nsWebBrowserFind.cpp
  mozilla/extensions/xmlterm/base/mozXMLTermSession.cpp
  mozilla/layout/base/public/nsIFrameSelection.h
  mozilla/layout/html/base/src/nsPresShell.cpp
  mozilla/layout/html/forms/src/nsGfxTextControlFrame2.cpp
  mozilla/mailnews/compose/src/nsMsgCompose.cpp
  mozilla/xpfe/browser/resources/content/viewPartialSource.js

    - Added aIsSynchronous arg to the ScrollSelectionIntoView()
      method of nsISelectionController and nsIFrameSelection.
      Updated all callers to pass new arg.

    - Modified selection to post a plevent to call which does the
      call to ScrollIntoView() in the async ScrollIntoView() case.

    - Edits in text widgets now use asynchronous reflow, paint,
      and scroll processing full time.

    - Removed redundant ScrollSelectionIntoView() calls in the
      editor event listeners.

    - Editor IME code now forced to flush reflows and paints before
      getting caret coordinates.

r=jfrancis@netscape.com  sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@123236 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-13 20:35:12 +00:00
jfrancis%netscape.com
64b7f510fc fix for 112167: pasting list items cal leave selection between items. Also allows you to type after pasted link without being in link. sr=kin r=fm
git-svn-id: svn://10.0.0.236/trunk@121418 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-14 00:05:37 +00:00
pinkerton%netscape.com
cdb4fe925b don't register image/jpeg, it only gets in the way of other things we do
support. r=brade/sr=alecf. bug# 69566


git-svn-id: svn://10.0.0.236/trunk@120462 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-01 22:02:54 +00:00
alecf%netscape.com
61312b4eeb fix bug 139633 - as a part of freezing nsAString, move Left/Right/Mid back into nsString, and fix consumers to start using Substring()
r=jag, sr=darin


git-svn-id: svn://10.0.0.236/trunk@120220 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-29 20:29:54 +00:00
akkana%netscape.com
a8c06c892e 134439: Make plaintext compose wrap to window width instead of output
width, and don't wrap quotes in <pre> or <span>, to work around various
editor bugs.  Detect quoted blocks at output time, and continue our
existing behavior of not wrapping quoted text. r=jfrancis,bratell, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@119175 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-16 23:11:33 +00:00
dbaron%fas.harvard.edu
359ad57ca1 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117343 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 22:08:20 +00:00
dbaron%fas.harvard.edu
a397ea7022 Remove unused (or used only if one of the magic enviroment variables ENABLE_STRICT or MOZ_VALIDATE_HTML was set) parser-related code, mostly associated with the strict DTD. b=130439 r=harishd sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@116720 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 15:34:43 +00:00
akkana%netscape.com
1f0b47ba2b 128903: Clean up the editor IDL, and anyone who uses them. r=brade,cmanske,ducarroz (for mail); sr=sfraser; a=dbaron
git-svn-id: svn://10.0.0.236/trunk@116581 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 22:11:14 +00:00
jfrancis%netscape.com
b521bfd66f one word fix for smoketest blocker 130103
git-svn-id: svn://10.0.0.236/trunk@116367 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 04:05:46 +00:00
jfrancis%netscape.com
26e0990680 fixes bugs 127869, 127939, and 128793: various bug with list pasting; sr=kin; r=glazman; a=asa [trunk]
git-svn-id: svn://10.0.0.236/trunk@116321 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-11 09:30:51 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
jfrancis%netscape.com
31165ba709 fixes:
117418: warnings in nsWSRunObject.cpp
98286: splitting paragraphs broken
101041: block transformations could grab too much beyon selection
82813: whitespace handling code needs to do right thing with preformatted text
99545 &
103677: new blocks not always pre-populated with br
41336: better handling of mailcites when splitting or deleting them or portions of them

partial fix for:
46474: creating new blocks kills style settings

r=fm, sr=kin


git-svn-id: svn://10.0.0.236/trunk@114924 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 11:52:50 +00:00
brade%netscape.com
e74961dbe2 remove 8 static CID/IID since they are unused (bug 117927; r=glazou, rs=shaver)
git-svn-id: svn://10.0.0.236/trunk@111306 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 15:50:21 +00:00
brade%netscape.com
70c49b1272 more NS_LITERAL_STRING cleanup (bug 26384; r=cmanske, sr=alecf)
git-svn-id: svn://10.0.0.236/trunk@110631 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-17 15:23:51 +00:00
jfrancis%netscape.com
7943166470 fix for Bug 92331: at long last moving over to using spans instead of pre's for plaintext mailcites. Due to limited testing the pref for this is left *OFF*. we'll flip it on if everything goes well later.
also fixes for:
101342 : Extraneous <br> when <td> content is <textarea>
104499 : when using the decrease indent, caret hops to the end of the previous line
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@110371 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-12 06:02:15 +00:00
brade%netscape.com
4d6d20f598 NS_LITERAL_STRING cleanup (bug 26384; r=akk, sr=kin)
git-svn-id: svn://10.0.0.236/trunk@110009 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 15:28:47 +00:00
jst%netscape.com
877bbb966f Fixing bug 110798. Freezing the interfaces nsIDOMEvent, nsIDOMEventListener, nsIDOMEventTarget and nsIDOMDocumentEvent. r=harishd@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109821 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 06:57:03 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
kin%netscape.com
d7e3258a81 Fix for bug 106383: regression: new composer doc behaves as if empty
mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.h
  mozilla/editor/libeditor/html/nsHTMLEditor.h
  mozilla/editor/libeditor/text/nsTextEditRules.h

    - Added nsHTMLEditRules::WillLoadHTML() which removes any mBogusNode.
    - Modified nsHTMLEditor::LoadHTML() to call Will/DidDoAction().
    - Changed all references of kOpHTMLLoad to kOpLoadHTML to match
      function name, and added kLoadHTML.

r=jfrancis.netscape.com  sr=sfraser.netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107735 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 15:16:03 +00:00
dbaron%fas.harvard.edu
13b5500ba3 Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052
git-svn-id: svn://10.0.0.236/trunk@107583 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:24:10 +00:00
sspitzer%netscape.com
e651048da1 fix for #106269. reply wasn't quoting the message body.
r/sr=kin


git-svn-id: svn://10.0.0.236/trunk@106402 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 21:21:04 +00:00
timeless%mac.com
f65d10305d Bugzilla Bug 106839 amTargettedCorrectly should be isTargetedCorrectly
r=bbaetz,glazou sr=brendan


git-svn-id: svn://10.0.0.236/trunk@106350 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-26 10:54:15 +00:00
jfrancis%netscape.com
c64143d012 fixes following bugs:
77902: toggling from normal to source view and back in composer can leave source in normal view.
101645: big/small tags get seperately wrapped around br nodes
81315: drag and drop doesn't behave same as copy paste
90759: ascii spaces don't behave in IME mode
96328: cant outdent certain indented text
58629: some mail messages cannot be accurately quoted on reply
93088/93477: forward deletion broken
46290: relative font size controls dont play nice with absolute font size
r=various; sr=kin


git-svn-id: svn://10.0.0.236/trunk@105922 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-22 06:22:52 +00:00
bernd.mielke%snafu.de
67e3a6751d bug 103443 - remove the return rv?rv: NS_ERROR_FAILURE pattern from the editor files.
the editor/base remain untouched r=cmanske sr=kin


git-svn-id: svn://10.0.0.236/trunk@105623 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-17 14:33:50 +00:00
gerv%gerv.net
3821428085 License changes, take 2. Bug 98089. mozilla/editor/.
git-svn-id: svn://10.0.0.236/trunk@103757 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 22:53:13 +00:00
gerv%gerv.net
ae1d5501a1 Oops.
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
52c8d09e03 bug #98089: ripped new license
git-svn-id: svn://10.0.0.236/trunk@103219 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 20:09:47 +00:00
rjesup%wgate.com
b88ac2aaa0 Bug 98711: Fix misuses of string.Right(). r=jfrancis, sr=jst
git-svn-id: svn://10.0.0.236/trunk@102854 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 00:09:49 +00:00
bryner%netscape.com
f5ed2a3be4 Bug 47551 -- removing obsolete nsIFileSpecWithUI and nsIFileWidget. r=pavlov, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@102213 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 22:56:38 +00:00
jfrancis%netscape.com
dc74067145 fixes:
bug 83918 - Not able to start a list (number or bullets) when using Bold style
bug 62347 - Selecting "Body Text" doesn't change style if in <pre> text that has <br>
bug 86476 - ubercaret appears on multi-line text block
bug 87882 - pasting text from one bullet to another yields extra bullet
---------------
r=sfraser; sr=kin


git-svn-id: svn://10.0.0.236/trunk@101631 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:32:44 +00:00
jaggernaut%netscape.com
2b3b3b2586 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa
git-svn-id: svn://10.0.0.236/trunk@99906 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-25 07:54:28 +00:00
akkana%netscape.com
1180a4f37f Remove some more no-op debug code. sr=kin
git-svn-id: svn://10.0.0.236/trunk@99843 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 23:45:32 +00:00
akkana%netscape.com
de383daf7b Remove debug code which should not have been there and were causing asserts. sr=kin
git-svn-id: svn://10.0.0.236/trunk@99839 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 23:39:17 +00:00
akkana%netscape.com
1672a1df8a 69638: Use <span> instead of <blockquote> for plaintext quotes, to fix caret motion problems. r=mcafee, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@99198 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 18:45:53 +00:00
kin%netscape.com
4e48be6712 Fixes from kin@netscape.com and brade@netscape.com
for bug #86450: pasting plaintext into text area loses significant whitespace

    content/base/src/nsDocumentEncoder.cpp
        - Look for -moz-pre-wrap in the correct attribute ("style").

    editor/base/nsHTMLDataTransfer.cpp
    editor/base/nsPlaintextDataTransfer.cpp
        - Set the correct mime-type on the encoder and transfer data.
        - Pass correct init flags to encoder.

    layout/base/src/nsCopySupport.cpp
    layout/base/src/nsCopySupport.h:
        - Added IsPlainTextContext() method.
        - Modified HTMLCopy() to pass correct init flags and
          mime-type to the encoder during plaintext copy.

r=kin@netscape.com,brade@netscape.com sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@99185 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-13 13:38:10 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
dougt%netscape.com
5c5c39e4be Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com.
This fixes many crashes caused by illegal uses of the nsStdURL.
This also allows a plugable protocol to provide their own url parser.


git-svn-id: svn://10.0.0.236/trunk@97696 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 22:02:47 +00:00
jfrancis%netscape.com
1c6a1bb7cf fixes:
69320: making new block must put selection in block
74722: pasting into a pre block should not nest pre's
82421: ubercaret after ending list
67847: deletion can put caret incorrectly at start of doc


git-svn-id: svn://10.0.0.236/trunk@97532 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-20 02:05:37 +00:00
brade%netscape.com
af48215dd3 partial fix for 85963 (add alt tag for images inserted via d&d from OS)
git-svn-id: svn://10.0.0.236/trunk@97492 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-19 23:56:22 +00:00
jfrancis%netscape.com
08caa9059f fix for:
57477: merge pastes list into target list
57989: Pasting list items into list can orphan last list item
66579: copy/paste of list item into another list items causes caret 

mostly a refactoring and improvement of nsHTMLEditor::InsertHTMLWithCharsetAndContext()


git-svn-id: svn://10.0.0.236/trunk@97252 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-15 22:29:07 +00:00