Add nsIXULSortService
git-svn-id: svn://10.0.0.236/trunk@44774 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -215,6 +215,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsISortService
|
||||
NS_IMETHOD Sort(nsIDOMNode* node, const char *sortResource, const char *sortDirection);
|
||||
NS_IMETHOD DoSort(nsIDOMNode* node, const nsString& sortResource, const nsString& sortDirection);
|
||||
NS_IMETHOD OpenContainer(nsIRDFCompositeDataSource *db, nsIContent *container, nsIRDFResource **flatArray,
|
||||
PRInt32 numElements, PRInt32 elementSize);
|
||||
@@ -1469,6 +1470,20 @@ XULSortServiceImpl::InsertContainerNode(nsIContent *container, nsIContent *node,
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULSortServiceImpl::Sort(nsIDOMNode* node, const char *sortResource, const char *sortDirection)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("\n XULSortServiceImpl::Sort \n\n");
|
||||
#endif
|
||||
|
||||
nsAutoString sortRes(sortResource), sortDir(sortDirection);
|
||||
nsresult rv = DoSort(node, sortResource, sortDirection);
|
||||
return(rv);
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
|
||||
const nsString& sortDirection)
|
||||
|
||||
@@ -11,4 +11,5 @@ nsIRDFResource.idl
|
||||
nsIRDFService.idl
|
||||
nsIRDFXMLSink.idl
|
||||
nsIRDFXMLSource.idl
|
||||
nsIXULSortService.idl
|
||||
xulstubs.idl
|
||||
|
||||
@@ -40,6 +40,7 @@ XPIDLSRCS = \
|
||||
nsIController.idl \
|
||||
nsIGenericCommandSet.idl \
|
||||
xulstubs.idl \
|
||||
nsIXULSortService.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -34,6 +34,7 @@ XPIDLSRCS= .\nsIRDFNode.idl \
|
||||
.\nsIController.idl \
|
||||
.\nsIGenericCommandSet.idl \
|
||||
.\xulstubs.idl \
|
||||
.\nsIXULSortService.idl \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
@@ -215,6 +215,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsISortService
|
||||
NS_IMETHOD Sort(nsIDOMNode* node, const char *sortResource, const char *sortDirection);
|
||||
NS_IMETHOD DoSort(nsIDOMNode* node, const nsString& sortResource, const nsString& sortDirection);
|
||||
NS_IMETHOD OpenContainer(nsIRDFCompositeDataSource *db, nsIContent *container, nsIRDFResource **flatArray,
|
||||
PRInt32 numElements, PRInt32 elementSize);
|
||||
@@ -1469,6 +1470,20 @@ XULSortServiceImpl::InsertContainerNode(nsIContent *container, nsIContent *node,
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULSortServiceImpl::Sort(nsIDOMNode* node, const char *sortResource, const char *sortDirection)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("\n XULSortServiceImpl::Sort \n\n");
|
||||
#endif
|
||||
|
||||
nsAutoString sortRes(sortResource), sortDir(sortDirection);
|
||||
nsresult rv = DoSort(node, sortResource, sortDirection);
|
||||
return(rv);
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULSortServiceImpl::DoSort(nsIDOMNode* node, const nsString& sortResource,
|
||||
const nsString& sortDirection)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user