From deee6090e77287b6dcea0e2515a0c59bf28f44ca Mon Sep 17 00:00:00 2001 From: "rjc%netscape.com" Date: Fri, 27 Aug 1999 06:54:08 +0000 Subject: [PATCH] Add nsIXULSortService git-svn-id: svn://10.0.0.236/trunk@44774 18797224-902f-48f8-a5cc-f745e15eee43 --- .../xul/templates/src/nsXULSortService.cpp | 15 +++++++++++++++ mozilla/rdf/base/idl/MANIFEST | 1 + mozilla/rdf/base/idl/Makefile.in | 1 + mozilla/rdf/base/idl/makefile.win | 1 + mozilla/rdf/content/src/nsXULSortService.cpp | 15 +++++++++++++++ mozilla/rdf/macbuild/RDFIDL.mcp | Bin 67130 -> 67130 bytes 6 files changed, 33 insertions(+) diff --git a/mozilla/content/xul/templates/src/nsXULSortService.cpp b/mozilla/content/xul/templates/src/nsXULSortService.cpp index f96fddd2275..0b54e12f73b 100644 --- a/mozilla/content/xul/templates/src/nsXULSortService.cpp +++ b/mozilla/content/xul/templates/src/nsXULSortService.cpp @@ -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) diff --git a/mozilla/rdf/base/idl/MANIFEST b/mozilla/rdf/base/idl/MANIFEST index 27580e91c51..5f71423daef 100644 --- a/mozilla/rdf/base/idl/MANIFEST +++ b/mozilla/rdf/base/idl/MANIFEST @@ -11,4 +11,5 @@ nsIRDFResource.idl nsIRDFService.idl nsIRDFXMLSink.idl nsIRDFXMLSource.idl +nsIXULSortService.idl xulstubs.idl diff --git a/mozilla/rdf/base/idl/Makefile.in b/mozilla/rdf/base/idl/Makefile.in index 6b4e8ebeb1c..28806e0f3f7 100644 --- a/mozilla/rdf/base/idl/Makefile.in +++ b/mozilla/rdf/base/idl/Makefile.in @@ -40,6 +40,7 @@ XPIDLSRCS = \ nsIController.idl \ nsIGenericCommandSet.idl \ xulstubs.idl \ + nsIXULSortService.idl \ $(NULL) include $(topsrcdir)/config/rules.mk diff --git a/mozilla/rdf/base/idl/makefile.win b/mozilla/rdf/base/idl/makefile.win index d09e238d025..fbf58a4c055 100644 --- a/mozilla/rdf/base/idl/makefile.win +++ b/mozilla/rdf/base/idl/makefile.win @@ -34,6 +34,7 @@ XPIDLSRCS= .\nsIRDFNode.idl \ .\nsIController.idl \ .\nsIGenericCommandSet.idl \ .\xulstubs.idl \ + .\nsIXULSortService.idl \ $(NULL) include <$(DEPTH)\config\rules.mak> diff --git a/mozilla/rdf/content/src/nsXULSortService.cpp b/mozilla/rdf/content/src/nsXULSortService.cpp index f96fddd2275..0b54e12f73b 100644 --- a/mozilla/rdf/content/src/nsXULSortService.cpp +++ b/mozilla/rdf/content/src/nsXULSortService.cpp @@ -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) diff --git a/mozilla/rdf/macbuild/RDFIDL.mcp b/mozilla/rdf/macbuild/RDFIDL.mcp index 8a90f554e4d7be09f7c9beedd9978fd2b03d8c18..11c900ed2a48bbb7dd576f5e34987ac70aa24d07 100644 GIT binary patch delta 394 zcmdnh!?LS~Wy5J+Mytsuc;jUS85kH87=Z*3%K#}bp9#nSVwuezd_63JdBvU)p+3R+ zMJ2(hMP-@Esgn)U6eb3^sagY-IWRCVFJfR|0Wujtd;uU%U|@Kn0o2b0#N3k$gu599 zCOSHAwinsV%*NaUQaI7kakHhw2WAeat=5w_N-AtFs7zp*Y$+i!`KX*KBj@DTa>m@I zAa?L2GJawUpIR)Fo?8n7B|&mVq}@@WImO{&C|yfq;{gC z@MIlVoyl?*0w7n|OwP7&U;(-dC=ou{+DUA)f~6!o`|AYx|Nl1%ZceQH%?J{O2>fLN z3S42@tm8Uw3kOIK&@z}yqnIZ9{Q1i0GTG^`7LzIS=Dfd?nMHka6AN;HijaW0{&X=$ ZMt8>d)8iN!^;z?QQZCykF*2@T0RTJ6U26aU delta 324 zcmdnh!?LS~Wy5LS$>(`vCI+y`3NSD*C@=yEAeIJFU_KL&0mRaqJ@|T9CYz;6PYj4r zwE_w{FfcIpFfgzHnG9A8PNf+sMGOo@ex<3!DL^`^G;MN$aQ8$Pm(BJfo0%uNyKlCX z_`tlmz^Q|2vZaK`L2vZw^mC}tq$g3=tDr*2JVV6f-k zEN!aA#K=6^&3x)aN9oB1<}8y9Ts0=Y78aQ3VmmqC!eOFg{A6n