rjesup%wgate.com
3d0a34aaca
Bug 92575: voidarray->autovoidarray changes in content/*, minus mChildren
...
changes in nsXULContentSink.cpp and nsGenericElement.cpp as per jst.
r=hyatt r=pierre sr=jst
git-svn-id: svn://10.0.0.236/trunk@102430 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:16:03 +00:00
cls%seawood.org
3b8b92a2e8
Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
...
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@101008 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 07:59:59 +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
jfrancis%netscape.com
144d6ed231
fix for 74991: nsDocumentEncoder::SerializeRangeToString() reverses order of ancestors. r=anthonyd; sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@91880 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 12:37:23 +00:00
scc%mozilla.org
7b06841b03
landing string branch; see bug #73786
...
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
nhotta%netscape.com
e9242d467c
Changed to output '?' for unmapped characters if text/plain, bug 72155, r=ftang, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@90285 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-23 23:39:04 +00:00
timeless%mac.com
534247895d
fix Bug 70989 Clean up lots of "shadows" and other common warnings
...
r=peterv, jst, ducarroz, edburns. sr=jst, shaver
git-svn-id: svn://10.0.0.236/trunk@89986 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-21 05:32:22 +00:00
jfrancis%netscape.com
bfac90c93f
bug 57863: pasting multiple table cells outside of table doens't work. r=cmanske;sr=kin
...
git-svn-id: svn://10.0.0.236/trunk@89039 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-09 01:36:38 +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
disttsc%bart.nl
d30c2be76b
Preparation of removing nsCString::GetBuffer. Landing everything but the actual commenting out of nsCString::GetBuffer. bug=64016, r=timeless, sr=scc
...
git-svn-id: svn://10.0.0.236/trunk@88396 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-02 09:26:57 +00:00
jfrancis%netscape.com
c905838848
bug 50497: plaintext copy loses newlines on paste
...
bug 57292: copy of table cell contents shouldn't copy cell
bug 57170: some inline style not preserved across copy paste
for all above: r=akkana; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@87098 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-15 13:22:26 +00:00
nhotta%netscape.com
2dd996accf
Changed to control entity (CER) generation by a document charset, bug 65324, r=jst, sr=vidur.
...
git-svn-id: svn://10.0.0.236/trunk@86864 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-13 01:00:14 +00:00
disttsc%bart.nl
e675e7d933
Fix hotaix bustage, also see bug 67961.
...
git-svn-id: svn://10.0.0.236/trunk@86542 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 13:02:11 +00:00
jfrancis%netscape.com
f0c5617179
fix for text widget copy -> html composer paste giving you a seperate pre block for each paste. (bugzilla refuses to cough up the bug number right now).
...
git-svn-id: svn://10.0.0.236/trunk@86536 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 10:34:17 +00:00
brade%netscape.com
cb21c78be0
always absolutize urls in html copy encoder (doing the right thing is covered in bug #32768 )
...
git-svn-id: svn://10.0.0.236/trunk@85429 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-24 14:59:57 +00:00
dbaron%fas.harvard.edu
fc1d2a9cd5
Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@83446 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 04:46:08 +00:00
locka%iol.ie
d1bbed58a9
New encoder fixup helper interface. b=57996, r=jst
...
git-svn-id: svn://10.0.0.236/trunk@83101 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 01:08:22 +00:00
jst%netscape.com
9870b6af65
Fixing rtm++ bug 56212. The new serializers were a bit too eager about what characters to encode as entities, this caused bad things when sending email that contained double quotes and also when writing a message containing quotes in AIM. sr=vidur, r=nisheeth.
...
git-svn-id: svn://10.0.0.236/trunk@81129 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 11:06:05 +00:00
jst%netscape.com
d547615f19
Rolling in the last of the NOXIF changes from the Netscape 6 branch, code mostly written by jfrancis. Fixes bugs 50742, 55806, 56000 and 55669. sr=kin, scc. r=kandrot, jst.
...
git-svn-id: svn://10.0.0.236/trunk@80959 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:50:14 +00:00
jst%netscape.com
17e33bbc26
Checking in for bug 50742, this change removes the use of XIF in mozilla and replaces the XIF converter with a HTML (and XML) serializer.
...
Contextual information added to HTML copy and intelligence added to HTML paste in the editor (fixes bugs 47014, 50568 and 46554, and partly (at least) fixes bug 53188).
Code written by vidur, jfrancis, jst, akkana. Tested by jfrancis, akkana, vidur, jst, kin. Reviwed (and super reviewed) by waterson, vidur, kin, jfrancis, jst
git-svn-id: svn://10.0.0.236/trunk@80681 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 10:57:30 +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
jst%netscape.com
7e0575bfee
DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
...
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
scc%netscape.com
e16ab47ebe
making string conversions explicit
...
git-svn-id: svn://10.0.0.236/trunk@65029 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 11:20:35 +00:00
scc%netscape.com
d88198c611
small changes to clients of string converting APIs
...
git-svn-id: svn://10.0.0.236/trunk@64167 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 10:06:21 +00:00
pp%ludusdesign.com
a2927ce43e
Converting ::GetIID() into NS_GET_IID(). Bug #20232 . r=scc, r=mozbot
...
git-svn-id: svn://10.0.0.236/trunk@59537 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 22:24:56 +00:00
pinkerton%netscape.com
28c3b87687
fixing bug 21414 the right way, reverting api's to their previous ways.
...
git-svn-id: svn://10.0.0.236/trunk@57303 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-10 23:04:24 +00:00
pinkerton%netscape.com
f4e554070e
Added a new param to the HTML->Text sink stream to take the charset so that we can convert to plain text with the correct charset for the platform. Enhanced the XIFFormatConverter to take advantage of this, fixing bug 21414. r=akkana, nhotta.
...
git-svn-id: svn://10.0.0.236/trunk@57149 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-08 01:48:39 +00:00
rickg%netscape.com
bcf8227c2a
force rebuild of this file
...
git-svn-id: svn://10.0.0.236/trunk@53458 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 08:41:36 +00:00
dmose%mozilla.org
92d791b7b0
updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@52908 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:40:37 +00:00
akkana%netscape.com
b05d4de40d
15777: Don't declare the same function-static symbol twice in the same file, because some versions of gcc can't deal with it. r=mcafee
...
git-svn-id: svn://10.0.0.236/trunk@51280 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:20:38 +00:00
waterson%netscape.com
30e53d03e9
Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
...
git-svn-id: svn://10.0.0.236/trunk@50416 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 03:05:10 +00:00
kipp%netscape.com
e18af2d0ee
Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
...
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
akkana%netscape.com
8fc8b5c72c
Set default wrap column to 72 instead of 0
...
git-svn-id: svn://10.0.0.236/trunk@47396 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 21:32:06 +00:00
akkana%netscape.com
d9a941b563
Fix UMRs
...
git-svn-id: svn://10.0.0.236/trunk@46829 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 19:12:46 +00:00
akkana%netscape.com
65eef8b0cd
Remove some redundant logic
...
git-svn-id: svn://10.0.0.236/trunk@46199 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 19:13:04 +00:00
sfraser%netscape.com
98ceab82e9
No longer need a pres shell for the document encoder; remove it.
...
git-svn-id: svn://10.0.0.236/trunk@44529 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-25 21:42:20 +00:00
akkana%netscape.com
131d318ad4
Revise the doc encoder and content sink APIs yet again to make it easier
...
to add new flags (pass a flag in the constructor, rather than specific
booleans. This in order to fix:
11249: Add flag to write only the body in html output.
git-svn-id: svn://10.0.0.236/trunk@44308 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:30:19 +00:00
jband%netscape.com
adfa9e8794
was neglecting to initialize a member
...
git-svn-id: svn://10.0.0.236/trunk@42690 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-08 02:06:31 +00:00
akkana%netscape.com
cf7c8e5dac
Add a working implementation for nsDOMSelection::ContainsNode, and use it in nsDocument::IsInSelection for XIF conversion
...
git-svn-id: svn://10.0.0.236/trunk@40518 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 21:29:29 +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
akkana%netscape.com
b704d40ce3
Fix formatted plaintext output -- it wasn't following prettyprint or wrap length
...
git-svn-id: svn://10.0.0.236/trunk@38461 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-06 23:13:15 +00:00
akkana%netscape.com
e5b828c0ce
Fix DoPrettyPrint -- turning off prettyprinting was broken
...
git-svn-id: svn://10.0.0.236/trunk@38124 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-02 19:41:40 +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
akkana%netscape.com
2300ca567a
- Add a prettyprint flag to the html-to-text sink (false by default).
...
When prettyprinting is on, we will attempt to make the plaintext
mimic the look of the html; when off (as for copy/paste), we just
dump the text with no formatting information.
git-svn-id: svn://10.0.0.236/trunk@36966 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-26 00:01:11 +00:00
akkana%netscape.com
2787dec93c
5924: Fix XIF handling of HTML comments, and also pass through the document's original formatting whitespace
...
git-svn-id: svn://10.0.0.236/trunk@36697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-24 20:15:52 +00:00
sfraser%netscape.com
ecfb2ed35b
Don't release the selection that you didn't addref, mister document encoder.
...
git-svn-id: svn://10.0.0.236/trunk@35553 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:58:41 +00:00
kostello%netscape.com
e3bdb359ea
Fix build bustage: changed include to be the right case
...
git-svn-id: svn://10.0.0.236/trunk@34525 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:06:35 +00:00
kostello%netscape.com
e69948ccbb
Akkana set up a service for encoding a document.
...
This checkin adds the implementations for encoding
HTML and plain text:
nsTextEncoder::EncodeToString(..)
nsHTMLEncoder::EncodeToStream(..)
Hooked these services into the nsHTMLEditor implemenation
We probably want to update the clipboard code to
use the same pattern as in nsHTMLEditor.cpp
git-svn-id: svn://10.0.0.236/trunk@34518 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:35:02 +00:00
akkana%netscape.com
ee09a04094
Add Init method to pass in the document and mime type
...
git-svn-id: svn://10.0.0.236/trunk@34129 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:01:55 +00:00