1 | Open source project MSHTML Editor OSPv3r00 16-01-2004
|
---|
2 |
|
---|
3 | This editor is build from a DHTML edit OSP from 16-05-1999 found at:
|
---|
4 | delphi-dhtmledit@yahoogroups.com
|
---|
5 | http://groups.yahoo.com/group/delphi-dhtmledit/files/DHTMLEdit/DHTML.zip
|
---|
6 | (look in the file section)
|
---|
7 |
|
---|
8 |
|
---|
9 |
|
---|
10 | How to install the editorcomponent (EmbeddedED) into Delphi:
|
---|
11 | - Just install EmbeddedED.pas into a package of your own choice.
|
---|
12 |
|
---|
13 |
|
---|
14 | About the demo:
|
---|
15 |
|
---|
16 |
|
---|
17 | This update editor is created by Kurt Senfer
|
---|
18 | "Copyright (C) 2002-2004 Kurt Senfer <Support@ks.helpware.net>"
|
---|
19 |
|
---|
20 |
|
---|
21 | I have often, in various mails on the delphi-dhtmledit list, pointed out that
|
---|
22 | The DHTMLEdit component is just a wrapper around the MSHTML engine - the
|
---|
23 | Wrapper contains coding that enables additional features like:
|
---|
24 | Table operations (insert row, insert column, merge cells, and so on).
|
---|
25 | Absolute drop mode.
|
---|
26 | Source code white space and formatting preservation.
|
---|
27 | Custom Editing Glyphs.
|
---|
28 | ........
|
---|
29 |
|
---|
30 |
|
---|
31 | Replacing DHTMLEdit with the MSHTML engine (or as in this case with the
|
---|
32 | EmbeddedED component) means that you need to code a lot of features, like
|
---|
33 | tablehandling and so on, witch is build in fearture in DHTMLEdit, yourself.
|
---|
34 |
|
---|
35 | I chosed to create a VCL wrapper around MSHTML and named it:
|
---|
36 | TEmbeddedED~ Embedded EDitor
|
---|
37 | TEmbeddedED implements most of the code you need to replace the DHTML Component
|
---|
38 | (if you only need a basic editor) and it offers a lot of features never
|
---|
39 | found in DHTML Edit. The main reason for encapsulating all that code in a
|
---|
40 | component is that its easy to update existing editor projects with
|
---|
41 | new features (in new versions of TEmbeddedED).
|
---|
42 |
|
---|
43 |
|
---|
44 | This is a short listing of the main things you have to do in order to skip
|
---|
45 | DHTMLEdit in favour of the HMHTML engine in your own DHTMLEdit project.
|
---|
46 |
|
---|
47 | - Replace TDHTMLEdit with MSHTML
|
---|
48 | - Call the existing DHTMLEditDisplayChanged from a new "OnUpdateUI function"
|
---|
49 | - Implement Custom Editing Glyphs
|
---|
50 | - Implement IHTMLEditDesigner
|
---|
51 | - Implement IHTMLEditHost
|
---|
52 | - Implemet code to handle the table stuff
|
---|
53 | - Implemet code to handle the position stuff
|
---|
54 |
|
---|
55 |
|
---|
56 | I've build the demo with D5 and D6 and belive it should also compile on D7.
|
---|
57 |
|
---|
58 |
|
---|
59 | Kurt Senfer
|
---|
60 |
|
---|
61 |
|
---|
62 |
|
---|
63 |
|
---|