Closed Bug 116328 Opened 23 years ago Closed 23 years ago

implement collation-based sorting in nsXULOutlinerBuilder

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.9

People

(Reporter: waterson, Assigned: waterson)

Details

Attachments

(1 file, 1 obsolete file)

The outliner builder doesn't do collation-based sorting. It should.
Blocks: 115071
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
I think the collation interface is used for the outliner builder.
http://lxr.mozilla.org/seamonkey/source/content/xul/templates/src/nsXULOutlinerBuilder.cpp#272
But the key is treated as PRUnichar*,
http://lxr.mozilla.org/seamonkey/source/content/xul/templates/src/nsXULOutlinerBuilder.cpp#1842
The key is a binary instead of a null terminated unicode string. Should the
change involve the clients side change (e.g. mail folder sort) or can the
outliner builder change to support binary key first then the clients can migrate.
Keywords: nsbeta1
Let's get the rdfliner to work, then we can convert clients over. (That way
nothing breaks in the interim.)
This patch makes nsXULOutlinerBuilder grok nsIRDFBlob, and fixes
nsIRDFBlob::GetValue to return a |_const_ PRUint8 **|.
Keywords: review
With the patch, what changes do the clients need (e.g. message folder sort)?
Would that be just create a node as nsIRDFBlob?

yes, we will have to createNodes as nsIRDFBlob, plus there will be 
some changes to treat key as PRUint8* instead of PRUnichar* in nsMsgFolder.cpp
For some reason, I think my version of nsIRDFService.idl was picking up
|octet_ptr| from somewhere else. This patch creates a new type,
|const_octet_ptr|, and uses it.
Attachment #66013 - Attachment is obsolete: true
Just when I recompiled my tree :(
First patch compiled fine though.
Comment on attachment 66018 [details] [diff] [review]
patch that compiles!

compiles fine, works fine, looks good.
r=varga
Attachment #66018 - Flags: review+
Comment on attachment 66018 [details] [diff] [review]
patch that compiles!

sr=hyatt
Attachment #66018 - Flags: superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
waterson, we need to do similar thing for XULSortService or is that
going to be taken care of another bug ?
tingley has that covered in bug 116329.
No longer blocks: 115071
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: