Add nsIXULSortService
This commit is contained in:
Родитель
9a4fd376f9
Коммит
ab2b716fe6
|
@ -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)
|
||||
|
|
Двоичные данные
rdf/macbuild/RDFIDL.mcp
Двоичные данные
rdf/macbuild/RDFIDL.mcp
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче