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

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]

Reply via email to