Re: [api-dev] XTextComponent: setSelection
On Fri, Feb 18, 2005 at 12:10:39PM +0100, Achim Derigs wrote: Hi, I am working with the XTextComponent at the moment. The method `setSelection' selects some text, but the not selected text is displayed in white color. I've to change the default background color to see the not selected text: const ReferenceXTextComponent component(control, UNO_QUERY); if (component.is()) { const OUString text(OUString::createFromAscii(Test)); component-setText(text); Selection selection; selection.Min = 0; selection.Max = 2; component-setSelection(selection); } Is this a bug or do I've forgotten something? This happens only if `MultiLine' is set to `true'. With best regards Achim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] small problem with starbasic in OOo 1.1.x
Hi there, I have a small problem with Starbasic in OOo that I wonder if there is any sollution to, or perheps a workaround for, I'm not sure this is a bug at all... anyway, I have a small starbasic script that will save the document locally and after that do some small updates to the document after it has been saved the problem I have is then the following 1: the document is beeing saved by the script, this takes a while for big documents 2: the user tries to close the document whil it is beeing saved (nothing will happen at this stage since the document is under saving) 3: the document has now been saved and the document is beeing closed (since the user pressed the close button) 4: my scripts tries to modify the document but encounters errors since the document is no longer opened. well that is in short what happens Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished /Christian Andersson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi christian, Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished i see 2 ways : - declaring a listener on the document closing event. Don't sure it suites totally your nee - lock OOo until your script has finished ThisComponent.lockControllers - save - modify ThisComponent.unlockController Then the user won't be able to close the document has the GUI is frozen for user interactions HTH laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. Best Regards Christian Junker Laurent Godard wrote: Hi christian, Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished i see 2 ways : - declaring a listener on the document closing event. Don't sure it suites totally your nee - lock OOo until your script has finished ThisComponent.lockControllers - save - modify ThisComponent.unlockController Then the user won't be able to close the document has the GUI is frozen for user interactions HTH laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi Laurent, hi Christian, Laurent Godard schrieb: Hi, I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. for me this does not work like expected. LockControllers only disables writing into document and the toolbar buttons, not the menubar and shortkeys (1.9.74 WinNT). Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]