Carlos Rocha wrote:
Hi
I'm embedding OO in a program and I'm able to control it thru OLE
automation. For this purpose I created a VB activeX to create listeners,
receive events from OO, and pass them to my app. This is not a perfect
solution but it's working.
The next step is to adapt OO UI to de design of my app, that provides a
tabbed interface for different documents is different contexts (text
documents, calc documents, etc, along some others of my own).
I don't want to limit in any way the normal usage of OO. The user must
be able to use it independently of my program and have access to all his
power.
Now I need to decide how to achieve a few things. For a start :)
1. It's possible to get rid of the desktop close button (the small "X"
in the top-right) when there is only one opened document (when the
document is opened by my app)?
to prevent confusion with the normal office installed on your computer i
would suggest to work with your own local user installation. But that
means that the office that is embedded in your app might have different
user settings than the normal office.
I am not sure if it possible to control the close button, it have to be
checked. Anyway you can always keep a hidden document in the back
ground. That is not nice but should work.
2. I need to "intercept" menu commands in order to desallow the defined
action and generate an event that I can intercept and decide the action.
I need this, for example, to redirect saving orders or to create new
documents in the respective tabbed window.
yes it's possible to intercept commands and do something special. You
even hide the normal menus and toolbars and do everything on your own.
See for example the SDK example
DevGuide/OfficeDev/ContextMenuInterceptor.java. I am sure you can find
more examples online.
I hope that a kind expert in this group can point me in the right
direction.
not sure if it helps
Juergen
TY,
Carlos
---------------------------------------------------------------------
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]