00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00032 #include "nsISupports.idl"
00033
00034 interface nsIArray;
00035 interface nsIRDFDataSource;
00036 interface nsIRDFResource;
00037 interface nsIDOMXULElement;
00038 interface nsIDOMNode;
00039 interface nsIDOMWindow;
00040 interface nsISimpleEnumerator;
00041 interface nsIDragSession;
00042 interface nsITransferable;
00043 interface nsIStringBundle;
00044
00049 [scriptable, uuid(d730af19-1b0b-4679-9f22-b41caa4ec59a)]
00050 interface sbIServicePaneNode : nsISupports
00051 {
00052
00053 readonly attribute nsIRDFResource resource;
00054
00055
00056 readonly attribute AString id;
00057
00058
00059 readonly attribute boolean isContainer;
00060
00061
00062 attribute AString url;
00063
00064 attribute AString image;
00065
00066 attribute AString name;
00067
00068 attribute AString tooltip;
00069
00070 attribute boolean hidden;
00071
00072 attribute boolean editable;
00073
00074 attribute boolean isOpen;
00075
00076 attribute AString contractid;
00077
00078
00079
00080 attribute AString dndDragTypes;
00081
00082 attribute AString dndAcceptNear;
00083
00084 attribute AString dndAcceptIn;
00085
00086
00087 attribute AString stringbundle;
00088
00089
00090 attribute AString properties;
00091
00092
00093
00094
00095 AString getAttributeNS(in AString aNamespace,
00096 in AString aName);
00097 AString setAttributeNS(in AString aNamespace,
00098 in AString aName,
00099 in AString aValue);
00100 boolean hasAttributeNS(in aString aNamespace,
00101 in AString aName);
00102
00103 readonly attribute nsISimpleEnumerator childNodes;
00104 readonly attribute sbIServicePaneNode firstChild;
00105 readonly attribute sbIServicePaneNode lastChild;
00106 readonly attribute sbIServicePaneNode nextSibling;
00107 readonly attribute sbIServicePaneNode parentNode;
00108 readonly attribute sbIServicePaneNode previousSibling;
00109
00110 sbIServicePaneNode appendChild (in sbIServicePaneNode aChild);
00111 sbIServicePaneNode insertBefore (in sbIServicePaneNode aNewNode,
00112 in sbIServicePaneNode aAdjacentNode);
00113 void removeChild (in sbIServicePaneNode aChild);
00114 void replaceChild (in sbIServicePaneNode aNewNode,
00115 in sbIServicePaneNode aOldNode);
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 };
00128
00133 [scriptable, uuid(9bbc6245-475e-464b-834c-9a45d7642f2b)]
00134 interface sbIServicePaneNodeInternal : sbIServicePaneNode {
00140 void unlinkChild (in sbIServicePaneNode aChild);
00141
00145 void unlinkNode ();
00146
00152 void clearNode ();
00153 };
00154
00159 [scriptable, uuid(0c86331b-6767-4595-95e7-80f775ab1770)]
00160 interface sbIServicePaneListener : nsISupports {
00166 void nodePropertyChanged(in string aNodeId, in string aAttributeName);
00167 };
00168
00169
00170
00180 [scriptable, uuid(01935bf0-70a4-4334-b166-0349ced535bf)]
00181 interface sbIServicePaneService : nsISupports
00182 {
00186 readonly attribute nsIRDFDataSource dataSource;
00187
00191 readonly attribute sbIServicePaneNode root;
00192
00196 void init();
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207 sbIServicePaneNode addNode(in AString aId,
00208 in sbIServicePaneNode aParent,
00209 in boolean aContainer);
00210
00211
00212
00213
00214
00215
00216 void removeNode(in sbIServicePaneNode aNode);
00217
00218
00219
00220
00221
00222 sbIServicePaneNode getNode(in AString aId);
00223
00224
00225
00226
00227
00228 sbIServicePaneNode getNodeForURL(in AString aURL);
00229
00230
00231
00232
00233
00234
00235
00236 nsIArray getNodesByAttributeNS(in AString aNamespace,
00237 in AString aName,
00238 in AString aValue);
00239
00240
00241
00242
00243 void sortNode(in sbIServicePaneNode aNode);
00244
00245
00246
00247
00248 void save();
00249
00250
00251
00252
00253
00254
00255 void fillContextMenu(in AString aId,
00256 in nsIDOMXULElement aContextMenu,
00257 in nsIDOMWindow aParentWindow);
00258
00259
00260
00261
00262
00263
00264 void fillNewItemMenu(in AString aId,
00265 in nsIDOMXULElement aContextMenu,
00266 in nsIDOMWindow aParentWindow);
00267
00268
00269
00270
00271
00272
00273 void onSelectionChanged(in AString aId,
00274 in nsIDOMNode aContainer,
00275 in nsIDOMWindow aParentWindow);
00276
00277
00278
00279
00280
00281
00282
00283
00284 PRBool canDrop(in AString aID,
00285 in nsIDragSession aDragSession,
00286 in PRInt32 aOrientation,
00287 in nsIDOMWindow aWindow);
00288
00289 void onDrop(in AString aID,
00290 in nsIDragSession aDragSession,
00291 in PRInt32 aOrientation,
00292 in nsIDOMWindow aWindow);
00293
00294 PRBool onDragGesture(in AString aID,
00295 out nsITransferable aTransferable);
00296
00297
00298
00299
00300
00301
00302
00303 void onRename(in AString aID,
00304 in AString aNewName);
00305
00306
00307
00308
00309 void addListener(in sbIServicePaneListener aListener);
00310
00311
00312
00313
00314 void removeListener(in sbIServicePaneListener aListener);
00315 };
00316
00317
00322 [scriptable, uuid(db05f541-6e70-4fad-98fc-e50820d36648)]
00323 interface sbIServicePaneModule : nsISupports
00324 {
00325
00326
00327
00328
00329
00330 void servicePaneInit(in sbIServicePaneService aServicePaneService);
00331
00332
00333
00334
00335
00336
00337 void fillContextMenu(in sbIServicePaneNode aNode,
00338 in nsIDOMXULElement aContextMenu,
00339 in nsIDOMWindow aParentWindow);
00340
00341 void fillNewItemMenu(in sbIServicePaneNode aNode,
00342 in nsIDOMXULElement aContextMenu,
00343 in nsIDOMWindow aParentWindow);
00344
00345
00346
00347
00348
00349 void onSelectionChanged(in sbIServicePaneNode aNode,
00350 in nsIDOMNode aContainer,
00351 in nsIDOMWindow aParentWindow);
00352
00353 PRBool canDrop(in sbIServicePaneNode aNode,
00354 in nsIDragSession aDragSession,
00355 in PRInt32 aOrientation,
00356 in nsIDOMWindow aWindow);
00357 void onDrop(in sbIServicePaneNode aNode,
00358 in nsIDragSession aDragSession,
00359 in PRInt32 aOrientation,
00360 in nsIDOMWindow aWindow);
00361 PRBool onDragGesture(in sbIServicePaneNode aNode,
00362 in nsITransferable aTransferable);
00363
00364
00365
00366
00367
00368
00369
00370 void onRename(in sbIServicePaneNode aNode,
00371 in AString aNewName);
00372
00373
00374
00375 readonly attribute AString stringbundle;
00376
00377
00378
00379 void shutdown();
00380 };
00381
00382