I remembered something about Oracle Connector for Alfresco CMS that creates own dockingwindow through UI element mechanism.
I made an example extension for example. If you want to know more, please read factory.py file stored in the extension package. And please refer related documents:
-
http://svn.apache.org/viewvc/openoffice ... iew=markup
-
http://www.openoffice.org/api/docs/comm ... ctory.html
And also please check configuration files (having .xcu file extension) stored in the package.
Any other way or types are general ways to use of the API of the office or general ways to make extensions.
How to try the attached extension:
- Download the package and remove .zip file extension.
- Install the package through the extension manager.
- Restart your office.
- Create new Writer document.
- Execute the following Basic macro to show the dockingwindow provided by the extension.
- You can make it docked in the container window of the document frame. And you can undock/dock by double clicking on the docking window with Ctrl button pushed.
- The docking window contains one text field and one button. When you push the button on the window, the message box shows the text from the textfield.
Code: Select all
const RESOURCE_URL = "private:resource/dockingwindow/9809"
Sub SwitchDockingWindow
layoutmgr = ThisComponent.getCurrentController().getFrame().LayoutManager
if layoutmgr.isElementVisible(RESOURCE_URL) then
layoutmgr.hideElement(RESOURCE_URL)
else
layoutmgr.requestElement(RESOURCE_URL)
end if
End Sub
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04