Hi,
Andreas Schlüns wrote:
Andrzej Wytyczak-Partyka wrote:
Why ? For me activation and deactivation of tab's works.
Can you please update the code you provided online, so I can try to
debug it ?
Don't know. I didn't really change anything in the C code.
Just added two lines to the basic :
REM ***** BASIC *****
Sub Main
taskcreator = createUnoService("foo.AWindow")
msgbox taskcreator.dbg_supportedInterfaces
frame = taskcreator.createInstance()
msgbox frame.dbg_supportedInterfaces
frame.getContainerWindow().setVisible(TRUE)
frame1 = taskcreator.createInstance()
frame.loadComponentFromURL("private:factory/scalc", "", 0,
DimArray())
frame1.loadComponentFromURL("private:factory/scalc", "", 0,
DimArray())
End Sub
OK - I see.
I'm right ... you test cour component using basic ?
You shouldnt do that .-) You should install your component
using the PackageManager and(!) replace the configuration entry, which
defines the default TaskCreator service used by the office.
Then your service will be used for every new created frames inside OOo
... and you will have open documents automaticly inside your tabs.
How can you install your component inside OOo ?
a) Pack the following files into one ZIP file.
window.uno.dll // your component
window.uno.rdb // needed for using foo.XAWindow
TabBrowse.xcu // set your TaskCreator service as default
That is the old pkgchk mechanism. I would suggest that you create a
correct new style UNO package bundle.
1. Create a zip file with the extension *.uno.pkg
2. put your dll in the platform specific directory "Windows/window.uno.dll"
3. create a package descriptor file
META-INF/manifest.xml in your package with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest
1.0//EN" "Manifest.dtd">
<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
<manifest:file-entry <manifest:file-entry
manifest:media-type="application/vnd.sun.star.configuration-data"
manifest:full-path="TabBrowse.xcu"/>
manifest:media-type="application/vnd.sun.star.uno-typelibrary;type=RDB"
manifest:full-path="window.uno.rdb"/>
<manifest:file-entry
manifest:media-type="application/vnd.sun.star.uno-component;type=native;platform=Windows"
manifest:full-path="Windows/window.uno.dll"/>
</manifest:manifest>
Final structure of your package (for example TabBrowse.uno.pkg) should
look like:
Windows\window.uno.dll
META-INF\manifest.xml
TabBrowse.xcu
window.uno.rdb
And one further suggestion, i would rename the library and the type
library to maybe tabwindowsupport.uno.dll and tabwindowsupport.rdb
Juergen
b) Start OOo and go to "Tools->Package Manager"
Use the "Add" Button to select your ZIP file and install it.
Restart the office and ... your TaskCreator service
should by used. All documents you open now will be opened inside your tabs.
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]