[api-dev] Question on XServiceInfo indirect service names...

2005-12-14 Thread Rony G. Flatscher
Hi there, if using com.sun.star.lang.XServiceInfo.getSupportedServiceNames(), the array will return all services implemented in the object: Provides the supported service names of the implementation, including also indirect service names. Are indirect service names the

Re: [api-dev] Question on XServiceInfo indirect service names...

2005-12-14 Thread Stephan Bergmann
Rony G. Flatscher wrote: Hi there, if using com.sun.star.lang.XServiceInfo.getSupportedServiceNames(), the array will return all services implemented in the object: Provides the supported service names of the implementation, including also indirect service names. Are indirect service names

[api-dev] LETTER FORM question

2005-12-14 Thread sos
Everyone should know that the Mail Merge Wizard is usseless for complex task and page layouts. Happly we have still the famous Letter Form question on printing from File print. Problems is when the user had said that he not wonts to see this option again than he is forever in problems to uses

[api-dev] Integer Division?

2005-12-14 Thread Felix E. Klee
How do I perform an integer division (e.g. 11 / 3 = 4) in OpenOffice Basic? -- Dipl.-Phys. Felix E. Klee Email: [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (home) Tel: +49 721 8307937, Fax: +49 721 8307936 Linuxburg, Goethestr. 15A, 76135 Karlsruhe, Germany

Re: [api-dev] Integer Division?

2005-12-14 Thread Felix E. Klee
Am Mittwoch, 14. Dezember 2005 11:39 schrieb Eric MOREL: http://www.richhillsoftware.com/blog/archives/2005/06/xnumbers_011_no.html Do I really need an extra package just to do integer division? This operation is built into almost every programming language! -- Dipl.-Phys. Felix E. Klee

Re: [api-dev] Integer Division?

2005-12-14 Thread Eric MOREL
No I don't think so but perhaps you can see the macro code behind Xdivint(). Eric Felix E. Klee a crit: Am Mittwoch, 14. Dezember 2005 11:39 schrieb Eric MOREL: http://www.richhillsoftware.com/blog/archives/2005/06/xnumbers_011_no.html Do I really need an extra

[api-dev] How to launch and manipulate a document from an signed applet

2005-12-14 Thread Eric MOREL
Hi, I would like to do the FirstLoadComponent sample (from firststep) but in an signed applet. I have an exception "com.sun.star.comp.helper.BootstrapException: no office executable found! ". The code start with this line : XComponentContext xRemoteContext =

Re: [api-dev] Integer Division?

2005-12-14 Thread Laurent Godard
Hi Felix, How do I perform an integer division (e.g. 11 / 3 = 4) in OpenOffice Basic? try this 11 \ 3 = 3 or fix(11/3) the rounding depends of what you need for me 11/3 is rounded to 3 Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com

Re: [api-dev] Integer Division?

2005-12-14 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Felix, http://www.richhillsoftware.com/blog/archives/2005/06/xnumbers_011_no.html Do I really need an extra package just to do integer division? This operation is built into almost every programming language! does print cint(11/3) do what you want ? Regards Stephan --

Re: [api-dev] Integer Division?

2005-12-14 Thread Joerg Barfurth
Hi, How do I perform an integer division (e.g. 11 / 3 = 4) in OpenOffice Basic? Huh? IME the integer division operator (in languages where it exists) would produce 11 div 3 = 3, to match the modulus produced by the 'mod' operator (which does exist in StarBasic). That said, you can get

Re: [api-dev] Integer Division?

2005-12-14 Thread Felix E. Klee
Am Mittwoch, 14. Dezember 2005 12:11 schrieb Laurent Godard: 11 \ 3 = 3 I couldn't find documentation for this operator in the online help (1.1.3). How come? or fix(11/3) Well this probably uses a floating point number as an intermediary, which could introduce numerical errors. This is

Re: [api-dev] Integer Division?

2005-12-14 Thread Dieter Krogh - Sun Germany
Hi Felix, does Dim iResult as integer iResult = 11 \ 3 fit your needs? The \ operator would do the division with a whole number result. BTW, 11 / 3 would never result as 4. ;-) Best wishes Dieter Felix E. Klee wrote On 12/14/05 11:26,: How do I perform an integer division (e.g. 11 /

Re: [api-dev] Macro: revert changes.

2005-12-14 Thread Fabricio Lemos
All I need to do is, given a document file to the user, know how long it kept the document open before he returned it to the server. To prenvent the user from dealing all the time with 2 files, I was storing this information on a user-field in the document file. But before closing the document I

[api-dev] Deprecated reflectable ? (Re: [api-dev] Question on XServiceInfo indirect service names...

2005-12-14 Thread Rony G. Flatscher
Hi Stephan, I guess that is what was meant with "indirect service names." However, I also assume that many objects that support XServiceInfo do not implement it that way, but only return their "top" services. Thank you for your clarification and warning! An example seems to be the service

Re: [api-dev] Macro: revert changes.

2005-12-14 Thread Mathias Bauer
Fabricio Lemos wrote: All I need to do is, given a document file to the user, know how long it kept the document open before he returned it to the server. To prenvent the user from dealing all the time with 2 files, I was storing this information on a user-field in the document file. But

Re: [api-dev] Question on XServiceInfo indirect service names...

2005-12-14 Thread Mathias Bauer
Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi there, if using com.sun.star.lang.XServiceInfo.getSupportedServiceNames(), the array will return all services implemented in the object: Provides the supported service names of the implementation, including also indirect service names.

Re: [api-dev] Macro: revert changes.

2005-12-14 Thread Fabricio Lemos
Why don't you update the editing time when the document is stored by the user instead of waiting until he closes the document? In this case the correct time gets stored along with all the changes the user wants. Of course you will not keep track of the time that the user works on the document

Re: [api-dev] Macro: revert changes.

2005-12-14 Thread Mathias Bauer
Fabricio Lemos wrote: Why don't you update the editing time when the document is stored by the user instead of waiting until he closes the document? In this case the correct time gets stored along with all the changes the user wants. Of course you will not keep track of the time that the user

Re: [api-dev] Integer Division?

2005-12-14 Thread Andrew Douglas Pitonyak
Felix E. Klee wrote: Am Mittwoch, 14. Dezember 2005 12:11 schrieb Laurent Godard: 11 \ 3 = 3 I couldn't find documentation for this operator in the online help (1.1.3). How come? or fix(11/3) Well this probably uses a floating point number as an intermediary, which

Re: [api-dev] Macro: revert changes.

2005-12-14 Thread Fabricio Lemos
I see. The best idea I have is to keep a local copy of the file each time the document is sent to the server and when the document is closed load the copy of the document (in hidden mode), change the time and sent *this* document to the server. Unhappyly, the user should be able to travel