source: cprs/branches/tmg-cprs/CPRS-Chart/TMG_Extra/HTMLEdit/IeConst.pas@ 1139

Last change on this file since 1139 was 541, checked in by Kevin Toppenberg, 15 years ago

TMG Ver 1.1 Added HTML Support, better demographics editing

File size: 25.3 KB
Line 
1(******************************************************************************
2* IEConst *
3* Constants for IE hosting etc... *
4******************************************************************************)
5unit Ieconst;
6
7interface
8
9uses
10 ActiveX, OleCtrls, Windows, Messages, SysUtils, Classes;
11
12
13const
14 SID_SHTMLEditHost: TGUID = '{3050F6A0-98B5-11CF-BB82-00AA00BDCE0B}';
15 //(D1: $3050F6A0; D2: $98B5; D3: $11CF; D4: ($BB, $82, $00, $AA, $00, $BD, $CE, $0B));
16
17 IID_IDocHostUIHandler: TGUID = '{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}';
18 GUID_TriEditCommandGroup: TGUID = '{2582F1C0-084E-11d1-9A0E-006097C9B344}';
19 CMDSETID_Forms3: TGUID = '{DE4BA900-59CA-11CF-9592-444553540000}';
20 CGID_MSHTML: TGUID = '{DE4BA900-59CA-11CF-9592-444553540000}';
21 CGID_DocHostCommandHandler: TGUID = (D1: $F38BC242; D2: $B950; D3: $11D1; D4: ($89, $18, $00, $C0, $4F, $C2, $C8, $36));
22
23
24
25 CLSID_WebBrowser: TGUID = '{ED016940-BD5B-11cf-BA4E-00C04FD70816}';
26
27 SID_SHTMLEditServices: TGUID = (D1: $3050f7f9; D2: $98b5; D3: $11cf; D4: ($bb, $82, $00, $AA, $00, $bd, $ce, $0b));
28
29 //* Object interface: IBrowserHost, ver. 0.0,
30 // GUID={0x5FD6158A,0x71F6,0x4F20,{0xB8,0xA9,0x6E,0xAF,0x5D,0x03,0x2D,0x15}} */
31
32 MSOCMDF_SUPPORTED = OLECMDF_SUPPORTED;
33 MSOCMDF_ENABLED = OLECMDF_ENABLED;
34
35 MSOCMDEXECOPT_PROMPTUSER = OLECMDEXECOPT_PROMPTUSER;
36 MSOCMDEXECOPT_DONTPROMPTUSER = OLECMDEXECOPT_DONTPROMPTUSER;
37
38
39//thise constants / enums isent contained in IE 5.5 SHDocVw_TLB ???
40type
41 RefreshConstants = TOleEnum;
42const
43 REFRESH_NORMAL = 0;
44 REFRESH_IFEXPIRED = 1;
45 REFRESH_CONTINUE = 2;
46 REFRESH_COMPLETELY = 3;
47
48type
49 BrowserNavConstants = TOleEnum;
50const
51 navOpenInNewWindow = $00000001;
52 navNoHistory = $00000002;
53 navNoReadFromCache = $00000004;
54 navNoWriteToCache = $00000008;
55 navAllowAutosearch = $00000010;
56 navBrowserBar = $00000020;
57//----- END ----------
58
59const
60 CONTEXT_MENU_DEFAULT = 0;
61 CONTEXT_MENU_IMAGE = 1;
62 CONTEXT_MENU_CONTROL = 2;
63 CONTEXT_MENU_TABLE = 3;
64 CONTEXT_MENU_TEXTSELECT = 4;
65 CONTEXT_MENU_ANCHOR = 5;
66 CONTEXT_MENU_UNKNOWN = 6;
67 CONTEXT_MENU_IMGDYNSRC = 7;
68 CONTEXT_MENU_IMGART = 8;
69 CONTEXT_MENU_DEBUG = 9;
70
71
72 DOCHOSTUITYPE_BROWSE= 0;
73 DOCHOSTUITYPE_AUTHOR= 1;
74
75 DOCHOSTUIDBLCLK_DEFAULT= 0;
76 DOCHOSTUIDBLCLK_SHOWPROPERTIES= 1;
77 DOCHOSTUIDBLCLK_SHOWCODE= 2;
78
79 DOCHOSTUIFLAG_DIALOG = 1;
80 DOCHOSTUIFLAG_DISABLE_HELP_MENU = 2;
81 DOCHOSTUIFLAG_NO3DBORDER = 4;
82 DOCHOSTUIFLAG_SCROLL_NO = 8;
83 DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 16;
84 DOCHOSTUIFLAG_OPENNEWWIN = 32;
85 DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 64;
86 DOCHOSTUIFLAG_FLAT_SCROLLBAR = 128;
87 DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 256;
88 DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 512;
89 DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = $00000400;
90 DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = $00000800;
91 DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = $00001000;
92 DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = $00002000;
93 DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = $00004000;
94 DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = $00010000;
95 DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = $00020000;
96 DOCHOSTUIFLAG_THEME = $00040000;
97 DOCHOSTUIFLAG_NOTHEME = $00080000;
98 DOCHOSTUIFLAG_NOPICS = $00100000;
99 DOCHOSTUIFLAG_NO3DOUTERBORDER = $00200000;
100
101 //old style DECM....
102 DECMD_BOLD = $00001388; //5000
103 DECMD_COPY = $0000138A;
104 DECMD_CUT = $0000138B;
105 DECMD_DELETE = $0000138C;
106 DECMD_DELETECELLS = $0000138D;
107 DECMD_DELETECOLS = $0000138E;
108 DECMD_DELETEROWS = $0000138F;
109 DECMD_FINDTEXT = $00001390;
110 DECMD_FONT = $00001391;
111 DECMD_GETBACKCOLOR = $00001392;
112 DECMD_GETBLOCKFMT = $00001393;
113 DECMD_GETBLOCKFMTNAMES = $00001394;
114 DECMD_GETFONTNAME = $00001395;
115 DECMD_GETFONTSIZE = $00001396;
116 DECMD_GETFORECOLOR = $00001397;
117 DECMD_HYPERLINK = $00001398;
118 DECMD_IMAGE = $00001399;
119 DECMD_INDENT = $0000139A;
120 DECMD_INSERTCELL = $0000139B;
121 DECMD_INSERTCOL = $0000139C;
122 DECMD_INSERTROW = $0000139D;
123 DECMD_INSERTTABLE = $0000139E;
124 DECMD_ITALIC = $0000139F;
125 DECMD_JUSTIFYCENTER = $000013A0;
126 DECMD_JUSTIFYLEFT = $000013A1;
127 DECMD_JUSTIFYRIGHT = $000013A2;
128 DECMD_LOCK_ELEMENT = $000013A3;
129 DECMD_MAKE_ABSOLUTE = $000013A4;
130 DECMD_MERGECELLS = $000013A5;
131 DECMD_ORDERLIST = $000013A6;
132 DECMD_OUTDENT = $000013A7;
133 DECMD_PASTE = $000013A8;
134 DECMD_REDO = $000013A9;
135 DECMD_REMOVEFORMAT = $000013AA;
136 DECMD_SELECTALL = $000013AB;
137 DECMD_SEND_BACKWARD = $000013AC;
138 DECMD_BRING_FORWARD = $000013AD;
139 DECMD_SEND_BELOW_TEXT = $000013AE;
140 DECMD_BRING_ABOVE_TEXT = $000013AF;
141 DECMD_SEND_TO_BACK = $000013B0;
142 DECMD_BRING_TO_FRONT = $000013B1;
143 DECMD_SETBACKCOLOR = $000013B2;
144 DECMD_SETBLOCKFMT = $000013B3;
145 DECMD_SETFONTNAME = $000013B4;
146 DECMD_SETFONTSIZE = $000013B5;
147 DECMD_SETFORECOLOR = $000013B6;
148 DECMD_SPLITCELL = $000013B7;
149 DECMD_UNDERLINE = $000013B8;
150 DECMD_UNDO = $000013B9;
151 DECMD_UNLINK = $000013BA;
152 DECMD_UNORDERLIST = $000013BB;
153 DECMD_PROPERTIES = $000013BC; //5052
154 IDM_NUDGE_ELEMENT = $000013BD;
155 IDM_LOCK_ELEMENT = $000013BE;
156 IDM_CONSTRAIN = $000013BF;
157 KS_TEST = $000013C0;
158
159 //end old style DECM....
160
161 IDM_UNKNOWN = 0;
162 IDM_ALIGNBOTTOM = 1;
163 IDM_ALIGNHORIZONTALCENTERS= 2;
164 IDM_ALIGNLEFT = 3;
165 IDM_ALIGNRIGHT = 4;
166 IDM_ALIGNTOGRID = 5;
167 IDM_ALIGNTOP = 6;
168 IDM_ALIGNVERTICALCENTERS = 7;
169 IDM_ARRANGEBOTTOM = 8;
170 IDM_ARRANGERIGHT = 9;
171 IDM_BRINGFORWARD = 10;
172 IDM_BRINGTOFRONT = 11;
173 IDM_CENTERHORIZONTALLY = 12;
174 IDM_CENTERVERTICALLY = 13;
175 IDM_CODE = 14;
176 IDM_DELETE = 17;
177 IDM_FONTNAME = 18;
178 IDM_FONTSIZE = 19;
179 IDM_GROUP = 20;
180 IDM_HORIZSPACECONCATENATE = 21;
181 IDM_HORIZSPACEDECREASE = 22;
182 IDM_HORIZSPACEINCREASE = 23;
183 IDM_HORIZSPACEMAKEEQUAL = 24;
184 IDM_INSERTOBJECT = 25;
185 IDM_MULTILEVELREDO = 30;
186 IDM_SENDBACKWARD = 32;
187 IDM_SENDTOBACK = 33;
188 IDM_SHOWTABLE = 34;
189 IDM_SIZETOCONTROL = 35;
190 IDM_SIZETOCONTROLHEIGHT = 36;
191 IDM_SIZETOCONTROLWIDTH = 37;
192 IDM_SIZETOFIT = 38;
193 IDM_SIZETOGRID = 39;
194 IDM_SNAPTOGRID = 40;
195 IDM_TABORDER = 41;
196 IDM_TOOLBOX = 42;
197 IDM_MULTILEVELUNDO = 44;
198 IDM_UNGROUP = 45;
199 IDM_VERTSPACECONCATENATE = 46;
200 IDM_VERTSPACEDECREASE = 47;
201 IDM_VERTSPACEINCREASE = 48;
202 IDM_VERTSPACEMAKEEQUAL = 49;
203 IDM_JUSTIFYFULL = 50;
204 IDM_BACKCOLOR = 51;
205 IDM_BOLD = 52;
206 IDM_BORDERCOLOR = 53;
207 IDM_FLAT = 54;
208 IDM_FORECOLOR = 55;
209 IDM_ITALIC = 56;
210 IDM_JUSTIFYCENTER = 57;
211 IDM_JUSTIFYGENERAL = 58;
212 IDM_JUSTIFYLEFT = 59;
213 IDM_JUSTIFYRIGHT = 60;
214 IDM_RAISED = 61;
215 IDM_SUNKEN = 62;
216 IDM_UNDERLINE = 63;
217 IDM_CHISELED = 64;
218 IDM_ETCHED = 65;
219 IDM_SHADOWED = 66;
220 IDM_FIND = 67;
221 IDM_SHOWGRID = 69;
222 IDM_OBJECTVERBLIST0 = 72;
223 IDM_OBJECTVERBLIST1 = 73;
224 IDM_OBJECTVERBLIST2 = 74;
225 IDM_OBJECTVERBLIST3 = 75;
226 IDM_OBJECTVERBLIST4 = 76;
227 IDM_OBJECTVERBLIST5 = 77;
228 IDM_OBJECTVERBLIST6 = 78;
229 IDM_OBJECTVERBLIST7 = 79;
230 IDM_OBJECTVERBLIST8 = 80;
231 IDM_OBJECTVERBLIST9 = 81;
232 IDM_OBJECTVERBLISTLAST = IDM_OBJECTVERBLIST9;
233 IDM_CONVERTOBJECT = 82;
234 IDM_CUSTOMCONTROL = 83;
235 IDM_CUSTOMIZEITEM = 84;
236 IDM_RENAME = 85;
237 IDM_IMPORT = 86;
238 IDM_NEWPAGE = 87;
239 IDM_MOVE = 88;
240 IDM_CANCEL = 89;
241 IDM_FONT = 90;
242 IDM_STRIKETHROUGH = 91;
243 IDM_DELETEWORD = 92;
244 IDM_EXECPRINT = 93;
245 IDM_JUSTIFYNONE = 94;
246 IDM_TRISTATEBOLD = 95;
247 IDM_TRISTATEITALIC = 96;
248 IDM_TRISTATEUNDERLINE = 97;
249
250 IDM_FOLLOW_ANCHOR = 2008;
251
252 IDM_INSINPUTIMAGE = 2114;
253 IDM_INSINPUTBUTTON = 2115;
254 IDM_INSINPUTRESET = 2116;
255 IDM_INSINPUTSUBMIT = 2117;
256 IDM_INSINPUTUPLOAD = 2118;
257 IDM_INSFIELDSET = 2119;
258
259 IDM_PASTEINSERT = 2120;
260 IDM_REPLACE = 2121;
261 IDM_EDITSOURCE = 2122;
262 IDM_BOOKMARK = 2123;
263 IDM_HYPERLINK = 2124;
264 IDM_UNLINK = 2125;
265 IDM_BROWSEMODE = 2126;
266 IDM_EDITMODE = 2127;
267 IDM_UNBOOKMARK = 2128;
268
269 IDM_TOOLBARS = 2130;
270 IDM_STATUSBAR = 2131;
271 IDM_FORMATMARK = 2132;
272 IDM_TEXTONLY = 2133;
273 IDM_OPTIONS = 2135;
274 IDM_FOLLOWLINKC = 2136;
275 IDM_FOLLOWLINKN = 2137;
276 IDM_VIEWSOURCE = 2139;
277 IDM_ZOOMPOPUP = 2140;
278
279 // IDM_BASELINEFONT1, IDM_BASELINEFONT2, IDM_BASELINEFONT3, IDM_BASELINEFONT4,
280 // and IDM_BASELINEFONT5 should be consecutive integers;
281 //
282 IDM_BASELINEFONT1 = 2141;
283 IDM_BASELINEFONT2 = 2142;
284 IDM_BASELINEFONT3 = 2143;
285 IDM_BASELINEFONT4 = 2144;
286 IDM_BASELINEFONT5 = 2145;
287
288 IDM_HORIZONTALLINE = 2150;
289 IDM_LINEBREAKNORMAL = 2151;
290 IDM_LINEBREAKLEFT = 2152;
291 IDM_LINEBREAKRIGHT = 2153;
292 IDM_LINEBREAKBOTH = 2154;
293 IDM_NONBREAK = 2155;
294 IDM_SPECIALCHAR = 2156;
295 IDM_HTMLSOURCE = 2157;
296 IDM_IFRAME = 2158;
297 IDM_HTMLCONTAIN = 2159;
298 IDM_TEXTBOX = 2161;
299 IDM_TEXTAREA = 2162;
300 IDM_CHECKBOX = 2163;
301 IDM_RADIOBUTTON = 2164;
302 IDM_DROPDOWNBOX = 2165;
303 IDM_LISTBOX = 2166;
304 IDM_BUTTON = 2167;
305 IDM_IMAGE = 2168;
306 IDM_OBJECT = 2169;
307 IDM_1D = 2170;
308 IDM_IMAGEMAP = 2171;
309 IDM_FILE = 2172;
310 IDM_COMMENT = 2173;
311 IDM_SCRIPT = 2174;
312 IDM_JAVAAPPLET = 2175;
313 IDM_PLUGIN = 2176;
314 IDM_PAGEBREAK = 2177;
315 IDM_HTMLAREA = 2178;
316
317 IDM_PARAGRAPH = 2180;
318 IDM_FORM = 2181;
319 IDM_MARQUEE = 2182;
320 IDM_LIST = 2183;
321 IDM_ORDERLIST = 2184;
322 IDM_UNORDERLIST = 2185;
323 IDM_INDENT = 2186;
324 IDM_OUTDENT = 2187;
325 IDM_PREFORMATTED = 2188;
326 IDM_ADDRESS = 2189;
327 IDM_BLINK = 2190;
328 IDM_DIV = 2191;
329
330 IDM_TABLEINSERT = 2200;
331 IDM_RCINSERT = 2201;
332 IDM_CELLINSERT = 2202;
333 IDM_CAPTIONINSERT = 2203;
334 IDM_CELLMERGE = 2204;
335 IDM_CELLSPLIT = 2205;
336 IDM_CELLSELECT = 2206;
337 IDM_ROWSELECT = 2207;
338 IDM_COLUMNSELECT = 2208;
339 IDM_TABLESELECT = 2209;
340 IDM_TABLEPROPERTIES = 2210;
341 IDM_CELLPROPERTIES = 2211;
342 IDM_ROWINSERT = 2212;
343 IDM_COLUMNINSERT = 2213;
344
345 IDM_HELP_CONTENT = 2220;
346 IDM_HELP_ABOUT = 2221;
347 IDM_HELP_README = 2222;
348
349 IDM_REMOVEFORMAT = 2230;
350 IDM_PAGEINFO = 2231;
351 IDM_TELETYPE = 2232;
352 IDM_GETBLOCKFMTS = 2233;
353 IDM_BLOCKFMT = 2234;
354 IDM_SHOWHIDE_CODE = 2235;
355 IDM_TABLE = 2236;
356
357 IDM_COPYFORMAT = 2237;
358 IDM_PASTEFORMAT = 2238;
359 IDM_GOTO = 2239;
360
361 IDM_CHANGEFONT = 2240;
362 IDM_CHANGEFONTSIZE = 2241;
363 IDM_INCFONTSIZE = 2242;
364 IDM_DECFONTSIZE = 2243;
365 IDM_INCFONTSIZE1PT = 2244;
366 IDM_DECFONTSIZE1PT = 2245;
367 IDM_CHANGECASE = 2246;
368 IDM_SUBSCRIPT = 2247;
369 IDM_SUPERSCRIPT = 2248;
370 IDM_SHOWSPECIALCHAR = 2249;
371
372 IDM_CENTERALIGNPARA = 2250;
373 IDM_LEFTALIGNPARA = 2251;
374 IDM_RIGHTALIGNPARA = 2252;
375 IDM_REMOVEPARAFORMAT = 2253;
376 IDM_APPLYNORMAL = 2254;
377 IDM_APPLYHEADING1 = 2255;
378 IDM_APPLYHEADING2 = 2256;
379 IDM_APPLYHEADING3 = 2257;
380
381 IDM_DOCPROPERTIES = 2260;
382 IDM_ADDFAVORITES = 2261;
383 IDM_COPYSHORTCUT = 2262;
384 IDM_SAVEBACKGROUND = 2263;
385 IDM_SETWALLPAPER = 2264;
386 IDM_COPYBACKGROUND = 2265;
387 IDM_CREATESHORTCUT = 2266;
388 IDM_PAGE = 2267;
389 IDM_SAVETARGET = 2268;
390 IDM_SHOWPICTURE = 2269;
391 IDM_SAVEPICTURE = 2270;
392 IDM_DYNSRCPLAY = 2271;
393 IDM_DYNSRCSTOP = 2272;
394 IDM_PRINTTARGET = 2273;
395 IDM_IMGARTPLAY = 2274;
396 IDM_IMGARTSTOP = 2275;
397 IDM_IMGARTREWIND = 2276;
398 IDM_PRINTQUERYJOBSPENDING = 2277;
399 IDM_SETDESKTOPITEM = 2278;
400
401 IDM_CONTEXTMENU = 2280;
402 IDM_GOBACKWARD = 2282;
403 IDM_GOFORWARD = 2283;
404 IDM_PRESTOP = 2284;
405
406 IDM_CREATELINK = 2290;
407 IDM_COPYCONTENT = 2291;
408
409 IDM_LANGUAGE = 2292;
410
411 IDM_GETPRINTTEMPLATE = 2295;
412 IDM_TEMPLATE_PAGESETUP = 2298;
413
414 IDM_REFRESH = 2300;
415 IDM_STOPDOWNLOAD = 2301;
416
417 IDM_ENABLE_INTERACTION = 2302;
418
419 IDM_LAUNCHDEBUGGER = 2310;
420 IDM_BREAKATNEXT = 2311;
421
422 IDM_INSINPUTHIDDEN = 2312;
423 IDM_INSINPUTPASSWORD = 2313;
424
425 IDM_OVERWRITE = 2314;
426
427 IDM_PARSECOMPLETE = 2315;
428
429 IDM_HTMLEDITMODE = 2316;
430
431 IDM_REGISTRYREFRESH = 2317;
432 IDM_COMPOSESETTINGS = 2318;
433
434 IDM_SHOWALLTAGS = 2320;
435 IDM_SHOWALIGNEDSITETAGS = 2321;
436 IDM_SHOWSCRIPTTAGS = 2322;
437 IDM_SHOWSTYLETAGS = 2323;
438 IDM_SHOWCOMMENTTAGS = 2324;
439 IDM_SHOWAREATAGS = 2325;
440 IDM_SHOWUNKNOWNTAGS = 2326;
441 IDM_SHOWMISCTAGS = 2327;
442 IDM_SHOWZEROBORDERATDESIGNTIME = 2328;
443
444 IDM_AUTODETECT = 2329;
445
446 IDM_SCRIPTDEBUGGER = 2330;
447
448 IDM_GETBYTESDOWNLOADED = 2331;
449
450 IDM_NOACTIVATENORMALOLECONTROLS = 2332;
451 IDM_NOACTIVATEDESIGNTIMECONTROLS = 2333;
452 IDM_NOACTIVATEJAVAAPPLETS = 2334;
453
454 IDM_NOFIXUPURLSONPASTE = 2335;
455 IDM_EMPTYGLYPHTABLE = 2336;
456 IDM_ADDTOGLYPHTABLE = 2337;
457 IDM_REMOVEFROMGLYPHTABLE = 2338;
458 IDM_REPLACEGLYPHCONTENTS = 2339;
459
460 IDM_SHOWWBRTAGS = 2340;
461
462 IDM_PERSISTSTREAMSYNC = 2341;
463 IDM_SETDIRTY = 2342;
464 IDM_RUNURLSCRIPT = 2343;
465
466 IDM_ZOOMRATIO = 2344;
467 IDM_GETZOOMNUMERATOR = 2345;
468 IDM_GETZOOMDENOMINATOR = 2346;
469
470
471 IDM_MIMECSET__FIRST__ = 3609;
472 IDM_MIMECSET__LAST__ = 3640;
473
474 // COMMANDS FOR COMPLEX TEXT
475 IDM_DIRLTR = 2350;
476 IDM_DIRRTL = 2351;
477 IDM_BLOCKDIRLTR = 2352;
478 IDM_BLOCKDIRRTL = 2353;
479 IDM_INLINEDIRLTR = 2354;
480 IDM_INLINEDIRRTL = 2355;
481
482 // SHDOCVW
483 IDM_ISTRUSTEDDLG = 2356;
484
485 // MSHTMLED
486 IDM_INSERTSPAN = 2357;
487 IDM_LOCALIZEEDITOR = 2358;
488
489 // XML MIMEVIEWER
490 IDM_SAVEPRETRANSFORMSOURCE = 2370;
491 IDM_VIEWPRETRANSFORMSOURCE = 2371;
492
493 // Scrollbar context menu
494 IDM_SCROLL_HERE = 2380;
495 IDM_SCROLL_TOP = 2381;
496 IDM_SCROLL_BOTTOM = 2382;
497 IDM_SCROLL_PAGEUP = 2383;
498 IDM_SCROLL_PAGEDOWN = 2384;
499 IDM_SCROLL_UP = 2385;
500 IDM_SCROLL_DOWN = 2386;
501 IDM_SCROLL_LEFTEDGE = 2387;
502 IDM_SCROLL_RIGHTEDGE = 2388;
503 IDM_SCROLL_PAGELEFT = 2389;
504 IDM_SCROLL_PAGERIGHT = 2390;
505 IDM_SCROLL_LEFT = 2391;
506 IDM_SCROLL_RIGHT = 2392;
507
508 // IE 6 Form Editing Commands
509 IDM_MULTIPLESELECTION = 2393;
510 IDM_2D_POSITION = 2394;
511 IDM_2D_ELEMENT = 2395;
512 IDM_1D_ELEMENT = 2396;
513 IDM_ABSOLUTE_POSITION = 2397;
514 IDM_LIVERESIZE = 2398;
515 IDM_ATOMICSELECTION = 2399;
516
517 // Auto URL detection mode
518 IDM_AUTOURLDETECT_MODE = 2400;
519
520 // Legacy IE50 compatible paste
521 IDM_IE50_PASTE = 2401;
522
523 // ie50 paste mode
524 IDM_IE50_PASTE_MODE = 2402;
525
526 // Printing support
527 DM_GETIPRINT = 2403;
528
529 // for disabling selection handles
530 IDM_DISABLE_EDITFOCUS_UI = 2404;
531
532 // for visibility/display in design
533 IDM_RESPECTVISIBILITY_INDESIGN = 2405;
534
535 // set css mode
536 IDM_CSSEDITING_LEVEL = 2406;
537
538 // New outdent
539 IDM_UI_OUTDENT = 2407;
540
541 // Printing Status
542 IDM_UPDATEPAGESTATUS = 2408;
543
544 // IME Reconversion
545 IDM_IME_ENABLE_RECONVERSION = 2409;
546
547 IDM_OVERRIDE_CURSOR = 2420;
548
549 IDM_MENUEXT_FIRST__ = 3700;
550 IDM_MENUEXT_LAST__ = 3732;
551 IDM_MENUEXT_COUNT = 3733;
552
553 ID_EDITMODE = 32801;
554
555 // Commands mapped from the standard set. We should
556 // consider deleting them from public header files.
557
558 IDM_OPEN = 2000;
559 IDM_NEW = 2001;
560 IDM_SAVE = 70;
561 IDM_SAVEAS = 71;
562 IDM_SAVECOPYAS = 2002;
563 IDM_PRINTPREVIEW = 2003;
564 IDM_SHOWPRINT = 2010;
565 IDM_SHOWPAGESETUP = 2011;
566 IDM_PRINT = 27;
567 IDM_PAGESETUP = 2004;
568 IDM_SPELL = 2005;
569 IDM_PASTESPECIAL = 2006;
570 IDM_CLEARSELECTION = 2007;
571 IDM_PROPERTIES = 28;
572 IDM_REDO = 29;
573 IDM_UNDO = 43;
574 IDM_SELECTALL = 31;
575 IDM_ZOOMPERCENT = 50;
576 IDM_GETZOOM = 68;
577 IDM_STOP = 2138;
578 IDM_COPY = 15;
579 IDM_CUT = 16;
580 IDM_PASTE = 26;
581
582
583 // Defines for IDM_ZOOMPERCENT
584 CMD_ZOOM_PAGEWIDTH = -1;
585 CMD_ZOOM_ONEPAGE = -2;
586 CMD_ZOOM_TWOPAGES = -3;
587 CMD_ZOOM_SELECTION = -4;
588 CMD_ZOOM_FIT = -5;
589
590 // IDMs for CGID_EditStateCommands group
591 IDM_CONTEXT = 1;
592 IDM_HWND = 2;
593
594 // Shdocvw Execs on CGID_DocHostCommandHandler
595 IDM_NEW_TOPLEVELWINDOW = 7050;
596
597 //
598 // Commands exposed for VID, had to be moved from privcid.h
599 //
600
601 // Undo hack command for VID to force preservation of the undo stack across
602 // arbitrary operations. Arye.
603 IDM_PRESERVEUNDOALWAYS = 6049;
604 // Another hack for VID to persist default values
605 IDM_PERSISTDEFAULTVALUES = 7100;
606 // And yet another hack for VID to not aggressively overwrite some meta tags.
607 IDM_PROTECTMETATAGS = 7101;
608
609 //--------------------------------
610
611 IDM_TRIED_IS_1D_ELEMENT = 0; //[out,VT_BOOL]
612 IDM_TRIED_IS_2D_ELEMENT = 1; //[out,VT_BOOL]
613 IDM_TRIED_NUDGE_ELEMENT = 2; //[in,VT_BYREF VARIANT.byref=LPPOINT]
614 IDM_TRIED_SET_ALIGNMENT = 3; //[in,VT_BYREF VARIANT.byref=LPPOINT]
615 IDM_TRIED_MAKE_ABSOLUTE = 4;
616 IDM_TRIED_LOCK_ELEMENT = 5;
617 IDM_TRIED_SEND_TO_BACK = 6;
618 IDM_TRIED_SEND_TO_FRONT = 7;
619 IDM_TRIED_SEND_BACKWARD = 8;
620 IDM_TRIED_SEND_FORWARD = 9;
621 IDM_TRIED_SEND_BEHIND_1D = 10;
622 IDM_TRIED_SEND_FRONT_1D = 11;
623 IDM_TRIED_CONSTRAIN = 12; //[in,VT_BOOL]
624 IDM_TRIED_SET_2D_DROP_MODE = 13; //[in,VT_BOOL]
625 IDM_TRIED_INSERTROW = 14;
626 IDM_TRIED_INSERTCOL = 15;
627 IDM_TRIED_DELETEROWS = 16;
628 IDM_TRIED_DELETECOLS = 17;
629 IDM_TRIED_MERGECELLS = 18;
630 IDM_TRIED_SPLITCELL = 19;
631 IDM_TRIED_INSERTCELL = 20;
632 IDM_TRIED_DELETECELLS = 21;
633 IDM_TRIED_INSERTTABLE = 22; //[in, VT_ARRAY]
634 IDM_TRIED_ACTIVATEACTIVEXCONTROLS = 23;
635 IDM_TRIED_ACTIVATEAPPLETS = 24;
636 IDM_TRIED_ACTIVATEDTCS = 25;
637 IDM_TRIED_BACKCOLOR = 26;
638 IDM_TRIED_BLOCKFMT = 27;
639 IDM_TRIED_BOLD = 28;
640 IDM_TRIED_BROWSEMODE = 29;
641 IDM_TRIED_COPY = 30;
642 IDM_TRIED_CUT = 31;
643 IDM_TRIED_DELETE = 32;
644 IDM_TRIED_EDITMODE = 33;
645 IDM_TRIED_FIND = 34;
646 IDM_TRIED_FONT = 35;
647 IDM_TRIED_FONTNAME = 36;
648 IDM_TRIED_FONTSIZE = 37;
649 IDM_TRIED_FORECOLOR = 38;
650 IDM_TRIED_GETBLOCKFMTS = 39;
651 IDM_TRIED_HYPERLINK = 40;
652 IDM_TRIED_IMAGE = 41;
653 IDM_TRIED_INDENT = 42;
654 IDM_TRIED_ITALIC = 43;
655 IDM_TRIED_JUSTIFYCENTER = 44;
656 IDM_TRIED_JUSTIFYLEFT = 45;
657 IDM_TRIED_JUSTIFYRIGHT = 46;
658 IDM_TRIED_ORDERLIST = 47;
659 IDM_TRIED_OUTDENT = 48;
660 IDM_TRIED_PASTE = 50;
661 IDM_TRIED_PRINT = 51;
662 IDM_TRIED_REDO = 52;
663 IDM_TRIED_REMOVEFORMAT = 53;
664 IDM_TRIED_SELECTALL = 54;
665 IDM_TRIED_SHOWBORDERS = 55;
666 IDM_TRIED_SHOWDETAILS = 56;
667 IDM_TRIED_UNDERLINE = 57;
668 IDM_TRIED_UNDO = 58;
669 IDM_TRIED_UNLINK = 59;
670 IDM_TRIED_UNORDERLIST = 60;
671 IDM_TRIED_DOVERB = 61;
672
673//WARNING WARNING WARNING!!! Don't forget to modify IDM_TRIED_LAST_CID
674//when you add new Command IDs
675
676 IDM_TRIED_LAST_CID = IDM_TRIED_DOVERB;
677
678
679type
680 PDOCHOSTUIINFO = ^TDOCHOSTUIINFO;
681 TDOCHOSTUIINFO = record
682 cbSize: ULONG;
683 dwFlags: Cardinal;
684 dwDoubleClick: Cardinal;
685 end;
686type
687 IDocHostUIHandler = interface(IUnknown)
688 ['{bd3f23c0-d43e-11cf-893b-00aa00bdce1a}']
689 function ShowContextMenu( const dwID: Cardinal; const ppt: PPOINT;
690 const pcmdtReserved: IUnknown; const pdispReserved: IDispatch ): HRESULT; stdcall;
691 function GetHostInfo( var pInfo: TDOCHOSTUIINFO ): HRESULT; stdcall;
692 function ShowUI( const dwID: Cardinal; const pActiveObject: IOleInPlaceActiveObject;
693 const pCommandTarget: IOleCommandTarget; const pFrame: IOleInPlaceFrame;
694 const pDoc: IOleInPlaceUIWindow ): HRESULT; stdcall;
695 function HideUI: HRESULT; stdcall;
696 function UpdateUI: HRESULT; stdcall;
697 function EnableModeless( const fEnable: BOOL ): HRESULT; stdcall;
698 function OnDocWindowActivate( const fActivate: BOOL ): HRESULT; stdcall;
699 function OnFrameWindowActivate( const fActivate: BOOL ): HRESULT; stdcall;
700 function ResizeBorder( const prcBorder: PRECT;
701 const pUIWindow: IOleInPlaceUIWindow;
702 const fRameWindow: BOOL ): HRESULT; stdcall;
703 function TranslateAccelerator( const lpMsg: PMSG; const pguidCmdGroup: PGUID;
704 const nCmdID: Cardinal): HRESULT; stdcall;
705 function GetOptionKeyPath( var pchKey: POLESTR; const dw: Cardinal ): HRESULT; stdcall;
706 function GetDropTarget( const pDropTarget: IDropTarget;
707 out ppDropTarget: IDropTarget ): HRESULT; stdcall;
708 function GetExternal( out ppDispatch: IDispatch ): HRESULT; stdcall;
709 function TranslateUrl( const dwTranslate: Cardinal; const pchURLIn: POLESTR;
710 var ppchURLOut: POLESTR ): HRESULT; stdcall;
711 function FilterDataObject( const pDO: IDataObject;
712 out ppDORet: IDataObject ): HRESULT; stdcall;
713 end; // IDocHostUIHandler
714
715 ICustomDoc = interface(IUnknown)
716 ['{3050f3f0-98b5-11cf-bb82-00aa00bdce0b}']
717
718 function SetUIHandler (const pUIHandler : IDocHostUIHandler) : HRESULT; stdcall;
719
720 end; // ICustomDoc
721
722 IDocHostShowUI = interface(IUnknown)
723 ['{c4d244b0-d43e-11cf-893b-00aa00bdce1a}']
724
725 function ShowMessage(hwnd : THandle;
726 lpstrText : POLESTR;
727 lpstrCaption : POLESTR;
728 dwType : longint;
729 lpstrHelpFile : POLESTR;
730 dwHelpContext : longint;
731 var plResult : LRESULT) : HRESULT; stdcall;
732
733 function ShowHelp(hwnd : THandle;
734 pszHelpFile : POLESTR;
735 uCommand : integer;
736 dwData : longint;
737 ptMouse : TPoint;
738 var pDispachObjectHit : IDispatch) : HRESULT; stdcall;
739
740 end; // IDocHostShowUI
741
742
743implementation
744
745end.
Note: See TracBrowser for help on using the repository browser.