Villeroy wrote:It is possible to load office dialogs built in the graphical dialog designer of the Basic IDE. IMHO you should do your entire GUI with whatever Java toolset you prefer. Stay away from all that com.sun.star.awt. It's not worthy if you have better toolsets at hand.
This is a user forum. Hardly anybody does any Java coding.
I am not able to understand what you mean by "It is possible to load office dialogs built in the graphical dialog designer of the Basic IDE.". To make it clear, I want to ask you, are you talking about Basic IDE in Open Office, and creating dialogs in it using GUI buttons in it.
The toolset that I am using is of Swings in Java. But what could be the possible options, in which a spreadsheet showing some frame, in which spreadsheet specific controls are selected, and in similar way, we open different spreadsheet simultaneously, and corresponding to that particular spreadsheet, we have the frame, having the buttons selected corresponding to 2nd selected spreadsheet.
Also there is functionality of, when frame is opened, we cant click on any button on that spreadsheet, and neither can't edit the spreadsheet.
The possible solution I thought of was putting frame into dialog.
Another solution was using XActionLockable and com.sun.star.sheet.XViewFreezable, that is freezing or locking the spreadsheet. but I am not able to achieve it either.
Code: Select all
XActionLockable xActionInterface = null;
xActionInterface = (XActionLockable) UnoRuntime.queryInterface(
XActionLockable.class, xSpreadsheet);
// lock all actions
xActionInterface.addActionLock();
com.sun.star.sheet.XViewFreezable xFreeze = UnoRuntime.queryInterface(com.sun.star.sheet.XViewFreezable.class, xSpreadsheetController);
xFreeze.freezeAtPosition(1, 2);
Last solution was if possible, using MediaDescriptor and to somehow make it read only the document, it didn't seemed to work either.