xref: /aoo4110/main/odk/examples/OLE/activex/README.txt (revision b1cdbd2c)
1*b1cdbd2cSJim Jagielski						Compile.
2*b1cdbd2cSJim JagielskiWarning: Before the control can be built user has to add path to MS ATL headers
3*b1cdbd2cSJim Jagielski into Makefile.
4*b1cdbd2cSJim Jagielski
5*b1cdbd2cSJim JagielskiIf you use the build environment of the SDK you have to check which MS compiler
6*b1cdbd2cSJim Jagielskido you use. It you use the MS Visual Studio .NET compiler everything should work
7*b1cdbd2cSJim Jagielskifine with the SDK. If you use an older MS compiler please edit the Makefile and
8*b1cdbd2cSJim Jagielskiuncomment or remove the line 'CL_NEW_LIB=atls.lib'.
9*b1cdbd2cSJim Jagielski
10*b1cdbd2cSJim Jagielski						Description.
11*b1cdbd2cSJim Jagielski
12*b1cdbd2cSJim JagielskiThe StarOffice ActiveX control shows an example of access to UNO through COM technology.
13*b1cdbd2cSJim JagielskiIt requires a properly installed StarOffice version 6.0/6.1 or OpenOffice 1.0.
14*b1cdbd2cSJim JagielskiThis is a Lite ActiveX control so it can be used only in containers that
15*b1cdbd2cSJim Jagielskiallows to use such controls. It can be activated with an <OBJECT> tag from
16*b1cdbd2cSJim Jagielskia html-page to embed a document. Without any parameters a new writer document will be
17*b1cdbd2cSJim Jagielskiopened for editing. Possible parameters are
18*b1cdbd2cSJim Jagielski    src      - full URL to the file that should be edited/viewed;
19*b1cdbd2cSJim Jagielski               it can contain "private:factory/..." URLs to open new documents
20*b1cdbd2cSJim Jagielski			   for edit, for example "private:factory/swriter"
21*b1cdbd2cSJim Jagielski    readonly - if it is set to "true" the document will be opened readonly,
22*b1cdbd2cSJim Jagielski	           otherwise the document will be opened for editing.
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim JagielskiThe control can be extended easily, for example it can be changed
25*b1cdbd2cSJim Jagielskito allow scripting to load different documents.
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim JagielskiAs any ActiveX control this one should be registered.
28*b1cdbd2cSJim JagielskiTo let MSIE register it itself the "CODEBASE" parameter
29*b1cdbd2cSJim Jagielskifor the "OBJECT" tag should be specified
30*b1cdbd2cSJim Jagielskiwith an URL to the library "so_activex.dll".
31*b1cdbd2cSJim Jagielski
32*b1cdbd2cSJim JagielskiAlso it can be done using regsvr32 application.
33*b1cdbd2cSJim JagielskiTo do it please write
34*b1cdbd2cSJim Jagielski<Path to Windows installation>\System32\regsvr32 so_activex.dll
35*b1cdbd2cSJim Jagielski
36*b1cdbd2cSJim JagielskiTo unregister the control please use /u option:
37*b1cdbd2cSJim Jagielski<Path to Windows installation>\system32\regsvr32 so_activex.dll /u
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski
40