Re: [api-dev] Code snippet
Hi Tom, you have send an email to a mailing list that needs subscription. You can easy subscribe under http://api.openoffice.org/servlets/ProjectMailingListList If you are not subscribed you won't get any replies directly and further emails from you probably won't reach the list at all. Juergen On 6/29/10 3:27 AM, Tom Bell wrote: I can run the attached file in a konsole, python eng.py However, I need to put it into an add-on form. Can you tell me where I can get information that will me to incorporate this into Calc so I and others can use Engineering Notation. All powers divided by three is what is needed and this code snippet does that. I tried decimal and to_eng_string that is located in decimal according to the Python coding page, but it doesn't seem to work. Engineers and engineering students do need Engineering Notation and right now, only Excel allows it, Calc does not. One way or another I intend to get this done for all the engineers and students who need it. Thank you! Tom -- PC, Where would you like to go today? ... Mac, Where would you like to be tomorrow? ... Linux, Are you guys coming, or not? - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Code snippet
Hi Tom! Tom Bell wrote: I can run the attached file in a konsole, python eng.py However, I need to put it into an add-on form. Can you tell me where I can get information that will me to incorporate this into Calc so I and others can use Engineering Notation. All powers divided by three is what is needed and this code snippet does that. I tried decimal and to_eng_string that is located in decimal according to the Python coding page, but it doesn't seem to work. Engineers and engineering students do need Engineering Notation and right now, only Excel allows it, Calc does not. *huh* look at Format - Cells - Numbers - Scientific it´s all already there! No need to write an addin for that! One way or another I intend to get this done for all the engineers and students who need it. Thank you! Tom Kind regards, Bernd Eilers - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Code snippet
Hi Bernd, Bernd Eilers schrieb: Hi Tom! Tom Bell wrote: I can run the attached file in a konsole, python eng.py However, I need to put it into an add-on form. Can you tell me where I can get information that will me to incorporate this into Calc so I and others can use Engineering Notation. All powers divided by three is what is needed and this code snippet does that. I tried decimal and to_eng_string that is located in decimal according to the Python coding page, but it doesn't seem to work. Engineers and engineering students do need Engineering Notation and right now, only Excel allows it, Calc does not. *huh* look at Format - Cells - Numbers - Scientific it´s all already there! No need to write an addin for that! No, in engineering notation the exponent is a multiple of 3. It corresponds to the prefixes m, µ, n, ... The feature request for it is tracked in issue 5930; 133 votes but still P4. Kind regard Regina - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Code Snippet Base broken
Thanks for reporting. Fixed them all and others. Tom Stefan Weigel schrieb: Hi, something seems to be wrong with the snippet base. Several examples have lost their code: http://codesnippets.services.openoffice.org/Calc/Calc.CellAccess.snip http://codesnippets.services.openoffice.org/Calc/Calc.HeaderFooter.snip http://codesnippets.services.openoffice.org/Calc/Calc.UsingBuiltinFunctions.snip http://codesnippets.services.openoffice.org/Calc/Calc.Erase_create_range_name.snip http://codesnippets.services.openoffice.org/Calc/Calc.ImproveSortingCapabilities.snip http://codesnippets.services.openoffice.org/Writer/Writer.SettingUserTextField.snip ... and maybe more. Stefan - 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]
Re: [api-dev] [code snippet] PrivateProfileString
Paolo Mantovani wrote: Hi Cor, Alle 21:26, sabato 23 giugno 2007, Cor Nouws ha scritto: Hi Paolo, Thanks for your pointers, Paolo Mantovani wrote: I this post : http://scripting.openoffice.org/servlets/ReadMsg?listName=devmsgNo=48 you can find a similar replacement but based on the So your only four years ahead ;-) :-) In general, storing/retrieving persistent information is a very old problem. I think that many ooo extensions or macros have their own approach for this task. why not specifying an own simple configuration schema (xcs) and using the config API? Juergen If I read it correct, its especially for the OO registry, not for (txt)ini-files like: Correct. Anyway, I've made two functions myself, which could be placed in the codesnippets. Is someone skilled in doing that swiftly? Have you tried with the SnippetCreator wizard? It should be very helpful in order to write codesnippets with a minimal effort I have noticed, but not yet tried. I happened to read a comment lately on this(?) list, from two people having some trouble running it, Thank you for the info! For some reason I missed that post. sorry I'll try to fix the problem very soon ciao Paolo M - 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]
Re: [api-dev] [code snippet] PrivateProfileString
Hi Cor, Alle 21:26, sabato 23 giugno 2007, Cor Nouws ha scritto: Hi Paolo, Thanks for your pointers, Paolo Mantovani wrote: I this post : http://scripting.openoffice.org/servlets/ReadMsg?listName=devmsgNo=48 you can find a similar replacement but based on the So your only four years ahead ;-) :-) In general, storing/retrieving persistent information is a very old problem. I think that many ooo extensions or macros have their own approach for this task. If I read it correct, its especially for the OO registry, not for (txt)ini-files like: Correct. Anyway, I've made two functions myself, which could be placed in the codesnippets. Is someone skilled in doing that swiftly? Have you tried with the SnippetCreator wizard? It should be very helpful in order to write codesnippets with a minimal effort I have noticed, but not yet tried. I happened to read a comment lately on this(?) list, from two people having some trouble running it, Thank you for the info! For some reason I missed that post. sorry I'll try to fix the problem very soon ciao Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] PrivateProfileString
Hi Paolo, Thanks for your pointers, Paolo Mantovani wrote: I this post : http://scripting.openoffice.org/servlets/ReadMsg?listName=devmsgNo=48 you can find a similar replacement but based on the So your only four years ahead ;-) If I read it correct, its especially for the OO registry, not for (txt)ini-files like: =.=.=.=.=.= ' comments [section1] [key1]=value [key2]=value [section2] [key1]=value [key2]=value =.=.=.=.=.= Anyway, I've made two functions myself, which could be placed in the codesnippets. Is someone skilled in doing that swiftly? Have you tried with the SnippetCreator wizard? It should be very helpful in order to write codesnippets with a minimal effort I have noticed, but not yet tried. I happened to read a comment lately on this(?) list, from two people having some trouble running it, and since I've little time left for extra experiments, I just posted the code 8-) Later I'll probably have to try, but that's not for now. Regards, -- Cor Nouws Arnhem - Netherlands nl.OpenOffice.org - marketing contact - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Alle 22:28, giovedì 8 febbraio 2007, Stefan Weigel ha scritto: Hi Paolo, Paolo Mantovani schrieb: There are some reasons fon not using the method XSheetCellCursor::collapseToCurrentRegion() instead? or perhaps am I missing something ? Oh yes, there is a reason: I am an absolute beginner with programming in OpenOffice.org and simply did not know about this method. Ok, I was not sure to have understood correctly your code because of the german comments. ciao Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi stefan For me translating in english makes sens, at least, as proposed, the comment lines. I did that now, hopefully in understandable english, and sent an updated snip-File to the list. Thansk a lot !!! Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi stefan Coming from Microsoft´s VBA I am completely spoiled by the Visual Basic IDE, that automatically shows up all possible methods, properties and subobjects while typing. I have not managed yet to develop my strategy in order to easily find these things in OpenOffice.org Basic. you may have a loook at X-Ray from Bernard Marcelly http://wiki.services.openoffice.org/wiki/Extensions_development_basic#X-Ray_tool Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Stefan, Alle 22:28, giovedì 8 febbraio 2007, Stefan Weigel ha scritto: Hi Paolo, Paolo Mantovani schrieb: There are some reasons fon not using the method XSheetCellCursor::collapseToCurrentRegion() instead? or perhaps am I missing something ? Oh yes, there is a reason: I am an absolute beginner with programming in OpenOffice.org and simply did not know about this method. Thank you for the hint. The following sub should have the same effect of your original SelectCurrentRange In effect you don't need to select the current region to use it in your following code, unless you do it in order to give some feedback to the user sub SelectCurrentRegion Dim oDoc, oSheet, oSelection, oCursor oDoc = ThisComponent oSheet = oDoc.CurrentController.ActiveSheet oSelection = oDoc.CurrentSelection oCursor = oSheet.createCursorByRange(oSelection) oCursor.collapseToCurrentRegion() oDoc.CurrentController.select(oCursor) End Sub Coming from Microsoft´s VBA I am completely spoiled by the Visual Basic IDE, that automatically shows up all possible methods, properties and subobjects while typing. I have not managed yet to develop my strategy in order to easily find these things in OpenOffice.org Basic. I use Xray from Bernard Marcelly. Used in conjunction with the SDK it is an exceptional tool to investigate ooo API objects. ciao Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Alle 14:55, venerdì 9 febbraio 2007, Stefan Weigel ha scritto: Thank you. It is not exactly the same effect, because the current region should only be selected if the current selection contains one single cell. Otherwise, if the current selection contains a range of more than one cell, the selection must not be changed. of course you're right [...] So there needs to be added some if-clause regarding the number of rows or columns in the current selection. That´s easy for me, I think. Don't forget the cases of multiple range and shapes selection ;-) ciao Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hello, Laurent Godard schrieb: http://codesnippets.services.openoffice.org/Calc/Calc.ImproveSortingCapabilities.snip btw, would it be possible to request english variable names and comments to help newcommer readers of the snippet ? any volunteer for translating ? (unfortunatelly, my german is far too old) When I wrote this code for my personal needs, it was not in my mind that this could be published to an international audience. Some community members however urged me to contribute this little macro to the snippet base. So I willingly did so. Does it make sense to invest any effort on this macro for translating or improving or whatever? As soon as the issues #7277 and #20491 will be fixed, my macro will be superfluous. Our efforts should aim to encourage the developers that they fix these very old issues! Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Stefan first, thanks again for sharing your snippet Does it make sense to invest any effort on this macro for translating or improving or whatever? As soon as the issues #7277 and #20491 will be fixed, my macro will be superfluous. Our efforts should aim to encourage the developers that they fix these very old issues! The main interrest in snippets is to illustrate the use of some API Sure, the snippet is usefull and may be advertized and yes, we should help the developeprs solving issues For me translating in english makes sens, at least, as proposed, the comment lines. Then if someone volunteers to translate to an other language, it can do it (an for example put it in the extension xiki ?) Anyway, thanks again for your snippet Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi, If translated the snippet can someone check if this is enough and check whether I have broken anything, then I'll commit it? Tom Laurent Godard schrieb: Hi Stefan first, thanks again for sharing your snippet Does it make sense to invest any effort on this macro for translating or improving or whatever? As soon as the issues #7277 and #20491 will be fixed, my macro will be superfluous. Our efforts should aim to encourage the developers that they fix these very old issues! The main interrest in snippets is to illustrate the use of some API Sure, the snippet is usefull and may be advertized and yes, we should help the developeprs solving issues For me translating in english makes sens, at least, as proposed, the comment lines. Then if someone volunteers to translate to an other language, it can do it (an for example put it in the extension xiki ?) Anyway, thanks again for your snippet Laurent signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Laurent, Tom, *, For me translating in english makes sens, at least, as proposed, the comment lines. I did that now, hopefully in understandable english, and sent an updated snip-File to the list. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Stefan, Thank you for the nice code-snippet. (and useful of course :-) Just a small question: I see a sub SelectCurrentRange where you used the dispatchHelper to select the current region: There are some reasons fon not using the method XSheetCellCursor::collapseToCurrentRegion() instead? or perhaps am I missing something ? thanks Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Paolo, Paolo Mantovani schrieb: There are some reasons fon not using the method XSheetCellCursor::collapseToCurrentRegion() instead? or perhaps am I missing something ? Oh yes, there is a reason: I am an absolute beginner with programming in OpenOffice.org and simply did not know about this method. Thank you for the hint. Coming from Microsoft´s VBA I am completely spoiled by the Visual Basic IDE, that automatically shows up all possible methods, properties and subobjects while typing. I have not managed yet to develop my strategy in order to easily find these things in OpenOffice.org Basic. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi Thanks the snippet is update and can be access at http://codesnippets.services.openoffice.org/Calc/Calc.ImproveSortingCapabilities.snip thanks a lot, sounds interresting btw, would it be possible to request english variable names and comments to help newcommer readers of the snippet ? any volunteer for translating ? (unfortunatelly, my german is far too old) Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Improve sorting capabilities
Hi, Thanks. The Snippet is integrated and can be found at http://codesnippets.services.openoffice.org/Calc/Calc.ImproveSortingCapabilities.snip Tom signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table
Hi, I've integrated them into our collection but not commit in cvs because I thought maybe you could elaborate a little bit what the purpose of the snippets is. http://codesnippets.services.openoffice.org/Office/Office.HowToCallJavaProgramUsingScriptingFramework.snip http://codesnippets.services.openoffice.org/Writer/Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWithinATable.snip Tom Kent Gibson wrote: I hope this is useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: PGP signature signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table
alrighty, I suppose you mean submit them again and add more details. sorry if I neglected to do that. will do. --- Tom Schindl [EMAIL PROTECTED] wrote: Hi, I've integrated them into our collection but not commit in cvs because I thought maybe you could elaborate a little bit what the purpose of the snippets is. http://codesnippets.services.openoffice.org/Office/Office.HowToCallJavaProgramUsingScriptingFramework.snip http://codesnippets.services.openoffice.org/Writer/Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWithinATable.snip Tom Kent Gibson wrote: I hope this is useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table
Well you could also post the relevant parts and I'll copy them into the snippet ;-). Tom Kent Gibson wrote: alrighty, I suppose you mean submit them again and add more details. sorry if I neglected to do that. will do. --- Tom Schindl [EMAIL PROTECTED] wrote: Hi, I've integrated them into our collection but not commit in cvs because I thought maybe you could elaborate a little bit what the purpose of the snippets is. http://codesnippets.services.openoffice.org/Office/Office.HowToCallJavaProgramUsingScriptingFramework.snip http://codesnippets.services.openoffice.org/Writer/Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWithinATable.snip Tom Kent Gibson wrote: I hope this is useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] How to create a frame at an arbitrary location and ZOrder within a table
That would be grand if you could. Sorry I didn't release what the question answer section was for, that was silly of me. regards kent How to create a frame at an arbitrary location and ZOrder within a table Querstion: How do I place a frame within a table at an arbitrary location so that the content of the frame influences the size of the table? For example if the textual content of the frame grows the table grows. It would also be nice to be able to set its Zorder. Answer: This should do the trick. You will need to create a document and a connection yourself. How to call java program using scripting framework. Question: How do I execute the HelloWorld java program that comes with the standard OpenOffice Installation? Answer: This should do the trick. You will need to create a document and a connection yourself. --- Tom Schindl [EMAIL PROTECTED] wrote: Well you could also post the relevant parts and I'll copy them into the snippet ;-). Tom Kent Gibson wrote: alrighty, I suppose you mean submit them again and add more details. sorry if I neglected to do that. will do. --- Tom Schindl [EMAIL PROTECTED] wrote: Hi, I've integrated them into our collection but not commit in cvs because I thought maybe you could elaborate a little bit what the purpose of the snippets is. http://codesnippets.services.openoffice.org/Office/Office.HowToCallJavaProgramUsingScriptingFramework.snip http://codesnippets.services.openoffice.org/Writer/Writer.HowToCreateAFrameAtAnArbitraryLocationAndZOrderWithinATable.snip Tom Kent Gibson wrote: I hope this is useful. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code Snippet Base out
Hi, It's online again sorry for the downtime it seems I've forgot to start the apache-server. Tom Didier Dorange-Pattoret wrote: Hi everibody, This url is'nt avalaible : http://codesnippets.services.openoffice.org/ What's the problem ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code-snippet] Print on different Trays
Hi Tom, Great work. Internal Linking at its best ;-) ... learned it from you ;-) But: 8--- versions version number=2.0.x status=tested/ version number=2.0.x status=can not work/ /versions 8--- Looks strange should this mean 1.1.x = can not work? Ah. In this dialog I can also select the operating systems. First line is on Windows, Solaris and MacOS. It works. Second line is Linux. In the linux implementation of printing is a bug, so it can not work. Thanks for integration. Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Managing keyboard shortcuts
Thanks you can find it here: http://codesnippets.services.openoffice.org/Office/Office.ManagingKeyboardShortcuts.snip Tom signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] Managing keyboard shortcuts
We need that to ensure that all templates are valid XML you want see them anymore when the snippet is online. I'll integrate all snippet this weekend into our collection sorry for the delay. Tom Bart Aimar wrote: Paolo Mantovani ha scritto: I've retrieved a routine that I used in my package Vocabulary in order to set a keyboard-shortcut, so I've thought to share it as a code-snippet. Good idea! And thank's for the share... (Also the code posted is filled with apos and quot... ) ciao Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] Bootstrap OpenOffice
Hi Jürgen, you should describe that cliet application should jar the bootstrap glue code class files from the SDK to their own class files to get rid of the classpath. The way you have described works fine but you still need the office jars in your classpath. Using the whole simply bootstrap feature you have to jar this glue code class and have to provide a special manifest file entry. jar content: com/sun/star/lib/loader/Loader$CustomURLClassLoader.class com/sun/star/lib/loader/Loader.class com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class com/sun/star/lib/loader/InstallationFinder.class com/sun/star/lib/loader/WinRegKey.class com/sun/star/lib/loader/WinRegKeyException.class win/unowinreg.dll MyApplication.class Manifest.mf: Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: MyApplication Your application get started with a special class loader containing the office jar files. The default office is used and started and the communication is made over a named pipe connection. this sounds very good and I tried it, but this is what happens for my application: -%- [1] [EMAIL PROTECTED] /usr/lib/sun-j2se5.0-jdk/bin/java -classpath /home/tobias/oocom_print_test.jar:/usr/lib/openoffice/program/classes/ridl.jar:/usr/lib/openoffice/program/classes/juh.jar:/usr/lib/openoffice/program/classes/jurt.jar:/usr/lib/openoffice/program/classes/officebean.jar:/usr/lib/openoffice/program/classes/sandbox.jar:/usr/lib/openoffice/program/classes/unoil.jar de.twc.oocom.OOCom 9000 /home/tobias/test.odt Unable to start OpenOffice. Starter says: no office executable found! Exception in thread main java.lang.NullPointerException at de.twc.oocom.OOComNG.bootstrapOpenOffice(OOComNG.java:114) at de.twc.oocom.OOCom.main(OOCom.java:45) -%- Here the contents of my .jar file: -%- META-INF/MANIFEST.MF de/twc/oocom/OOComNG$1.class de/twc/oocom/OOComNG.class de/twc/oocom/UIManipulator.class de/twc/oocom/OOCom.class de/twc/oocom/beta/MyXPrintJobListener.class de/twc/oocom/beta/PrintServer.class de/twc/oocom/beta/UIManipulatorUnused.class win/unowinreg.dll com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class com/sun/star/lib/loader/InstallationFinder.class com/sun/star/lib/loader/Loader$CustomURLClassLoader.class com/sun/star/lib/loader/Loader.class com/sun/star/lib/loader/WinRegKey.class com/sun/star/lib/loader/WinRegKeyException.class -%- And this is how my manifest file looks like: -%- Manifest-Version: 1.0 Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom -%- What is missing? I am using Debian Sid (OO 2.0.2). Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Bootstrap OpenOffice
Hi Jürgen, i forgot to mention that it probably works only with an official build of OO (and a default installation). Debian use as far as i know an own start up script which probably causes the problem. You will need the soffice binary or at least a symbolic link to the soffice binary in your path. Can you please verify this. I tried but without success. Still the same errors although I have a link from /usr/bin/soffice to the soffice executeable. you should describe that cliet application should jar the bootstrap glue code class files from the SDK to their own class files to get rid of the classpath. The way you have described works fine but you still need the office jars in your classpath. Using the whole simply bootstrap feature you have to jar this glue code class and have to provide a special manifest file entry. Should I still add this Information, although I can't verify it? Greeting, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Bootstrap OpenOffice
Hi Tobias, i forgot to mention that it probably works only with an official build of OO (and a default installation). Debian use as far as i know an own start up script which probably causes the problem. You will need the soffice binary or at least a symbolic link to the soffice binary in your path. Can you please verify this. Juergen Tobias Krais wrote: Hi Jürgen, you should describe that cliet application should jar the bootstrap glue code class files from the SDK to their own class files to get rid of the classpath. The way you have described works fine but you still need the office jars in your classpath. Using the whole simply bootstrap feature you have to jar this glue code class and have to provide a special manifest file entry. jar content: com/sun/star/lib/loader/Loader$CustomURLClassLoader.class com/sun/star/lib/loader/Loader.class com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class com/sun/star/lib/loader/InstallationFinder.class com/sun/star/lib/loader/WinRegKey.class com/sun/star/lib/loader/WinRegKeyException.class win/unowinreg.dll MyApplication.class Manifest.mf: Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: MyApplication Your application get started with a special class loader containing the office jar files. The default office is used and started and the communication is made over a named pipe connection. this sounds very good and I tried it, but this is what happens for my application: -%- [1] [EMAIL PROTECTED] /usr/lib/sun-j2se5.0-jdk/bin/java -classpath /home/tobias/oocom_print_test.jar:/usr/lib/openoffice/program/classes/ridl.jar:/usr/lib/openoffice/program/classes/juh.jar:/usr/lib/openoffice/program/classes/jurt.jar:/usr/lib/openoffice/program/classes/officebean.jar:/usr/lib/openoffice/program/classes/sandbox.jar:/usr/lib/openoffice/program/classes/unoil.jar de.twc.oocom.OOCom 9000 /home/tobias/test.odt Unable to start OpenOffice. Starter says: no office executable found! Exception in thread main java.lang.NullPointerException at de.twc.oocom.OOComNG.bootstrapOpenOffice(OOComNG.java:114) at de.twc.oocom.OOCom.main(OOCom.java:45) -%- Here the contents of my .jar file: -%- META-INF/MANIFEST.MF de/twc/oocom/OOComNG$1.class de/twc/oocom/OOComNG.class de/twc/oocom/UIManipulator.class de/twc/oocom/OOCom.class de/twc/oocom/beta/MyXPrintJobListener.class de/twc/oocom/beta/PrintServer.class de/twc/oocom/beta/UIManipulatorUnused.class win/unowinreg.dll com/sun/star/lib/loader/InstallationFinder$StreamGobbler.class com/sun/star/lib/loader/InstallationFinder.class com/sun/star/lib/loader/Loader$CustomURLClassLoader.class com/sun/star/lib/loader/Loader.class com/sun/star/lib/loader/WinRegKey.class com/sun/star/lib/loader/WinRegKeyException.class -%- And this is how my manifest file looks like: -%- Manifest-Version: 1.0 Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom -%- What is missing? I am using Debian Sid (OO 2.0.2). Greetings, Tobias - 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]
Re: [api-dev] [code snippet] Bootstrap OpenOffice
Hi Tobias, Tobias Krais wrote: Hi Jürgen, i forgot to mention that it probably works only with an official build of OO (and a default installation). Debian use as far as i know an own start up script which probably causes the problem. You will need the soffice binary or at least a symbolic link to the soffice binary in your path. Can you please verify this. I tried but without success. Still the same errors although I have a link from /usr/bin/soffice to the soffice executeable. i have tested it under Linux and it works for me with a symbolic link /usr/bin/soffice to my office installation. I will be on vacation for 4 days and if you haven't figured out your problem until next week you should come back to the mailing list. you should describe that cliet application should jar the bootstrap glue code class files from the SDK to their own class files to get rid of the classpath. The way you have described works fine but you still need the office jars in your classpath. Using the whole simply bootstrap feature you have to jar this glue code class and have to provide a special manifest file entry. Should I still add this Information, although I can't verify it? I would say yes because it should work in general. But you can mention that it would work without the glue code when you set the appropriate classpath. Juergen Greeting, Tobias - 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]
Re: [api-dev] Code Snippet page
Hi, for those interested and have a mozilla-browser (it's not working on Opera nor on IE for now) at hand can take a preview look at the new snippet page design which covers the following things I already announced: - Multiple Langs in one Page - Folding (mark parts of your snippet folded = better overview) - Internal Linking As already said in my idea we need to rethink our snippet. At the moment our concept is language-oriented (reflected even in our snipped-DTD) but it should be as we now it should problem-oriented (How to solve this special API-Task in any language). http://codesnippets.services.openoffice.org/preview.html We will also retain the old language based structure but maybe we should also create Problem-Categories where snippets are part of as n:m-relationsship between snippet and category. Tom Tom Schindl wrote: Hi, I already had a coffee with Rony some weeks ago when he made a trip to Innsbruck where we came to the conclusion that he's proposing the language addition here and I'll offer the new language on the snippet page. I'm preparing everything for a new language and maybe tonight I give the new page design (multiple languages in one snippet approach) a boost. Tom Jürgen Schmidt wrote: Rony G. Flatscher wrote: i noticed that we have made good progress with our Code Snippets in the past two weeks, thanks to all contributors. At this point i'd like to say thank you again to Tom and Paolo who are responsible for the infrastructure and tooling. Tom provides and has implemented the infrastructure and Paolo has implemented the Code Snippet Wizard which makes it really easy to contribute well formatted snippets. Thank you! Hear, hear! I haven't reached my personal goal to contribute one snippet per week :-( shame on me - i won't promising anything but i will try to increase my contributions. But one further thing i would like to see (and where i think it would be easy for newbies to contribute to OpenOffice) is that existing snippets get translated to the other languages. And if people find bugs or know a better solution don't hesitate to improve existing snippets. Well, if there was a way/category to contribute snippets in ooRexx (http://www.ooRexx.org), then I would try to get people to do exactly that; additionally there are already a few snippets written in ooRexx which might be helpful for others (using other languages) as well. The present state is beta (project name BSF4Rexx) and will go GA mostlikely at this year's International Rexx symposium in Austin, Texas (cf. http://www.rexx.org), which takes place in a few weeks. Once the support is officially released the Rexx (exists more than 25 yrs) and ooRexx (originally developed by IBM per request of its largest customers, now in opensource) community will be curious to see how one would drive/remote-control OpenOffice, I am sure. Having ooRexx nutshell examples available right in the Code Snippets area would doubtlessly help them get more interested and productive with OpenOffice. So again, I would like to request a means to add snippets in the ooRexx language as well. Regards, ---rony rony, it is probably easy possible to extend the snippet page for ooRexx. Bring up your suggestions and i am sure that Tom will integrate it in the infrastructure. In a second step Paolo can maybe extend the wizard as well. Juergen P.S.: Due to the fact that the scripting framework in OOo 2.0 is written in Java, additional languages could become available for OOo if using BSF (cf. http://jakarta.apache.org/bsf), for which a need for a place in the snippets repository may come up. - 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] signature.asc Description: OpenPGP digital signature
Re: [api-dev] Code Snippet page
crazy, I completely deinstalled openoffice 2.0.2., then reinstalled, then went to package manager and added AddonConfiguration.xcs AddonConfiguration.xcu Addons.xcu they say enabled in the package manager. but when I go to tools-addons-snippetcreator-new or open nothing happens?! --- Paolo Mantovani [EMAIL PROTECTED] wrote: Hi Kent, Alle 14:51, mercoled� 8 marzo 2006, Kent Gibson ha scritto: I really don't want to moan, actually I am trying to contribute some snippets, but I think the snippet generator documentation needs a couple of lines. At least something saying how you get the thing to run. Agree, I hope to have the time to write something in future. Of course, any contribution are really welcome! Anyway the snippet-creator is a normal UNO-package so it should not require special installation instructions. Furthermore, I suppose that some generic instructions for package installation should be already contained in the OOo help (but I've not actually checked) I tried to install it, there where some warnings (regarding the package imported being deprecated) and then I rooted around looking for some new functionality in openoffice ui. I found nothing, ok so it probably didn't install ok, but I am still not sure. Where am I supposed to look for it? If you add some details I can try to help you. Which OOo version are you using? how did you try to install the package? by the command line? or using the package manager (menu Tools-package manager) Can you report the warnings / error messages you've got? thank you Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code Snippet page
dumb me, ok now I see it under tools. hmm doesn't work though. I will try to install it again. --- Kent Gibson [EMAIL PROTECTED] wrote: thanks for the support. The Install file is suggesting to use pkgchk which warns that it is deprecated. It suggested to use another program and never gave any indication of success or failure. I am using 2.0.1. I would suggest that you document the Package Manager under tools menu. The package manager says that AddonConfiguration and Addons are Enabled. However I can still not see how to kickstart your addon. Thanks. --- Paolo Mantovani [EMAIL PROTECTED] wrote: Hi Kent, Alle 14:51, mercoled� 8 marzo 2006, Kent Gibson ha scritto: I really don't want to moan, actually I am trying to contribute some snippets, but I think the snippet generator documentation needs a couple of lines. At least something saying how you get the thing to run. Agree, I hope to have the time to write something in future. Of course, any contribution are really welcome! Anyway the snippet-creator is a normal UNO-package so it should not require special installation instructions. Furthermore, I suppose that some generic instructions for package installation should be already contained in the OOo help (but I've not actually checked) I tried to install it, there where some warnings (regarding the package imported being deprecated) and then I rooted around looking for some new functionality in openoffice ui. I found nothing, ok so it probably didn't install ok, but I am still not sure. Where am I supposed to look for it? If you add some details I can try to help you. Which OOo version are you using? how did you try to install the package? by the command line? or using the package manager (menu Tools-package manager) Can you report the warnings / error messages you've got? thank you Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code Snippet page
Hi Jurgen i join you on the lack of time but also to the emphasis of Tom and Paolo great work !! Even for the last point i think that it could make sense to move into the OO wiki with the snippet collection but i am not sure. What are your opinions? Do you would expect more contributions, improvements when the snippets would be in a wiki system where changes are easier? Hi would say that the reference has to stay stable (non easely editable) as snippets are usually tested and are working But for translation, here is what i plan to do for the extensions projetc - a reference text in english on the OOo site - the translations on the wiki pointed from the site (perharps directly by languages, or with an intermediate page (less work on update when new languages) Then someone contributes in english, and a chapter is opened on the wiki to gather translations that can be an iterative work The next step will be to reverse the process as a complementary approach : create something in a language and progressively translate it in english. Once ok, lets put it as static on the page So for the code snippet, a link pointing on the wiki with the access to its translation - Did Ian achieve its syntax highlighting job ? Let start us an open discussion to find the best solution to spread the API knowledge to make programming with and for OpenOffice easier. The article contest is also a way And the translation of articles may be could help Regarding documentation, is the developpers guide free ? what licence ? Some parts (not all) could be translatable Other ideas are also welcome and this shouldn't be competing to our new extensions project. I would like to address more the technical features and documentation, where the stuff gets hosted later is not important here. But that something (and hopefully more in the future) is available, is easy to find, is well structured ... is important for the success of any programmability story around OpenOffice. I totally agree and hope having time to help through the developpers part of the extension project 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] Code Snippet page
I really don't want to moan, actually I am trying to contribute some snippets, but I think the snippet generator documentation needs a couple of lines. At least something saying how you get the thing to run. I tried to install it, there where some warnings (regarding the package imported being deprecated) and then I rooted around looking for some new functionality in openoffice ui. I found nothing, ok so it probably didn't install ok, but I am still not sure. Where am I supposed to look for it? thanks. --- Laurent Godard [EMAIL PROTECTED] wrote: Hi Jurgen i join you on the lack of time but also to the emphasis of Tom and Paolo great work !! Even for the last point i think that it could make sense to move into the OO wiki with the snippet collection but i am not sure. What are your opinions? Do you would expect more contributions, improvements when the snippets would be in a wiki system where changes are easier? Hi would say that the reference has to stay stable (non easely editable) as snippets are usually tested and are working But for translation, here is what i plan to do for the extensions projetc - a reference text in english on the OOo site - the translations on the wiki pointed from the site (perharps directly by languages, or with an intermediate page (less work on update when new languages) Then someone contributes in english, and a chapter is opened on the wiki to gather translations that can be an iterative work The next step will be to reverse the process as a complementary approach : create something in a language and progressively translate it in english. Once ok, lets put it as static on the page So for the code snippet, a link pointing on the wiki with the access to its translation - Did Ian achieve its syntax highlighting job ? Let start us an open discussion to find the best solution to spread the API knowledge to make programming with and for OpenOffice easier. The article contest is also a way And the translation of articles may be could help Regarding documentation, is the developpers guide free ? what licence ? Some parts (not all) could be translatable Other ideas are also welcome and this shouldn't be competing to our new extensions project. I would like to address more the technical features and documentation, where the stuff gets hosted later is not important here. But that something (and hopefully more in the future) is available, is easy to find, is well structured ... is important for the success of any programmability story around OpenOffice. I totally agree and hope having time to help through the developpers part of the extension project 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code Snippet page
i noticed that we have made good progress with our Code Snippets in the past two weeks, thanks to all contributors. At this point i'd like to say thank you again to Tom and Paolo who are responsible for the infrastructure and tooling. Tom provides and has implemented the infrastructure and Paolo has implemented the Code Snippet Wizard which makes it really easy to contribute well formatted snippets. Thank you! Hear, hear! I haven't reached my personal goal to contribute one snippet per week :-( shame on me - i won't promising anything but i will try to increase my contributions. But one further thing i would like to see (and where i think it would be easy for newbies to contribute to OpenOffice) is that existing snippets get translated to the other languages. And if people find bugs or know a better solution don't hesitate to improve existing snippets. Well, if there was a way/category to contribute snippets in ooRexx (http://www.ooRexx.org), then I would try to get people to do exactly that; additionally there are already a few snippets written in ooRexx which might be helpful for others (using other languages) as well. The present state is beta (project name BSF4Rexx) and will go GA mostlikely at this year's International Rexx symposium in Austin, Texas (cf. http://www.rexx.org), which takes place in a few weeks. Once the support is officially released the Rexx (exists more than 25 yrs) and ooRexx (originally developed by IBM per request of its largest customers, now in opensource) community will be curious to see how one would drive/remote-control OpenOffice, I am sure. Having ooRexx nutshell examples available right in the Code Snippets area would doubtlessly help them get more interested and productive with OpenOffice. So again, I would like to request a means to add snippets in the ooRexx language as well. Regards, ---rony P.S.: Due to the fact that the scripting framework in OOo 2.0 is written in Java, additional languages could become available for OOo if using BSF (cf. http://jakarta.apache.org/bsf), for which a need for a place in the snippets repository may come up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code Snippet page
Rony G. Flatscher wrote: i noticed that we have made good progress with our Code Snippets in the past two weeks, thanks to all contributors. At this point i'd like to say thank you again to Tom and Paolo who are responsible for the infrastructure and tooling. Tom provides and has implemented the infrastructure and Paolo has implemented the Code Snippet Wizard which makes it really easy to contribute well formatted snippets. Thank you! Hear, hear! I haven't reached my personal goal to contribute one snippet per week :-( shame on me - i won't promising anything but i will try to increase my contributions. But one further thing i would like to see (and where i think it would be easy for newbies to contribute to OpenOffice) is that existing snippets get translated to the other languages. And if people find bugs or know a better solution don't hesitate to improve existing snippets. Well, if there was a way/category to contribute snippets in ooRexx (http://www.ooRexx.org), then I would try to get people to do exactly that; additionally there are already a few snippets written in ooRexx which might be helpful for others (using other languages) as well. The present state is beta (project name BSF4Rexx) and will go GA mostlikely at this year's International Rexx symposium in Austin, Texas (cf. http://www.rexx.org), which takes place in a few weeks. Once the support is officially released the Rexx (exists more than 25 yrs) and ooRexx (originally developed by IBM per request of its largest customers, now in opensource) community will be curious to see how one would drive/remote-control OpenOffice, I am sure. Having ooRexx nutshell examples available right in the Code Snippets area would doubtlessly help them get more interested and productive with OpenOffice. So again, I would like to request a means to add snippets in the ooRexx language as well. Regards, ---rony rony, it is probably easy possible to extend the snippet page for ooRexx. Bring up your suggestions and i am sure that Tom will integrate it in the infrastructure. In a second step Paolo can maybe extend the wizard as well. Juergen P.S.: Due to the fact that the scripting framework in OOo 2.0 is written in Java, additional languages could become available for OOo if using BSF (cf. http://jakarta.apache.org/bsf), for which a need for a place in the snippets repository may come up. - 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]
Re: [api-dev] [code snippet] Convert Documents
Hi, thanks for your contribution your snippet has been added to our collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip Maybe you can rethink and brake the snippet into small logical parts and link them together like i described it in my reply to Java Snippet Suggestion: how to convert documents - please review At least extracting the Bootstrap-Process into a seperate snippet would be a great thing because all other snippets depending on an it could link to it. If you don't have time no problem. Tom signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] Convert Documents
Hi Tom, http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip Maybe you can rethink and brake the snippet into small logical parts and link them together like i described it in my reply to Java Snippet Suggestion: how to convert documents - please review At least extracting the Bootstrap-Process into a seperate snippet would be a great thing because all other snippets depending on an it could link to it. If you don't have time no problem. I put it on my todo list. I think it will be end of march if I have time for it. Or May be for my next snippets. Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Adding a Combo-box to a Toolbar
Thanks for your contribution. I rearranged some part of the snippet (moved the xcu things to question although it doesn't fit 100% there but this way we can use XML-Syntax-Highlighting in this section) You can find the snippet using this Link: http://codesnippets.services.openoffice.org/Office/Office.AddingACombo_boxToAToolbar.snip Tom signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] resize an external image
Hi, thanks for the contribution. Your codesnippet has been added to the collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.ResizeExternalImage.snip I've restructured some parts, could please provide me information about the OO-Version you used to create this. Tom signature.asc Description: OpenPGP digital signature
Re: [api-dev] [code snippet] resize an external image
Hi, Tom Schindl a écrit : Hi, thanks for the contribution. Your codesnippet has been added to the collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.ResizeExternalImage.snip I've restructured some parts, could please provide me information about the OO-Version you used to create this. I used OOo2.0.1 french version. -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net S'inscrire à la liste de diffusion de dmaths: [EMAIL PROTECTED] Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english: http://www.dmaths.org/modules.php?name=Contentpa=showpagepid=9 Le livre de référence pour OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212116381/dmaths-21 Programmation OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212117639/dmaths-21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] resize an external image
Hi, I'am the original author of this one : http://codesnippets.services.openoffice.org/Office/Office.WindowsVersion.snip Please, could you write my right name. -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net S'inscrire à la liste de diffusion de dmaths: [EMAIL PROTECTED] Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english: http://www.dmaths.org/modules.php?name=Contentpa=showpagepid=9 Le livre de référence pour OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212116381/dmaths-21 Programmation OpenOffice.org2 : http://www.amazon.fr/exec/obidos/ASIN/2212117639/dmaths-21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [Code Snippet] Split up documents into document fragments
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mathias Bauer wrote: Darragh Sherwin wrote: Hi, I wrote this little python script below to split up a document into fragments to reply to a mail on the UDK list to show how to copy part of a document but I think it would be more useful on the this list (API) It fragments the document into 30 lines pieces, and copies the fragment into a blank document. This will copy almost every thing in the 30 lines including text, tables and graphics. Isn't that something for our code snippets database? Best regards, Mathias Of course here we go: http://codesnippets.services.openoffice.org/Office/Office.ConnectViaPipe.snip http://codesnippets.services.openoffice.org/Office/Office.CreateDocument.snip http://codesnippets.services.openoffice.org/Office/Office.FetchingServicesFromDesktop.snip http://codesnippets.services.openoffice.org/Office/Office.UsingDispatchAPI.snip http://codesnippets.services.openoffice.org/Writer/Writer.CopyComponentsToNewDocument.snip As you can see I have splitted up the whole code into logical parts and linked them using a new feature of the codesnippet page. Maybe someone knowning Python could take a look and correct errors and give some goog keywords to add to snippets. Maybe we should extend our Snippet-XML to link snippets? I thought of something like: - --8-- ... linked-snippets snippet application=Office snippet=Office.CreateDocument.snip / ... /linked-snippets ... - --8-- What do other think about this idea? I think its worth an idea. cu Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFDUQFckVPeOFLgZFIRAhR2AKCrAxrpu8tfWUKGk+EriBpt9qzyTQCfRdeO j0S9TdCDzCmTAoXux6x76p4= =Nc/n -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [Code Snippet] Split up documents into document fragments
Darragh Sherwin wrote: Hi, I wrote this little python script below to split up a document into fragments to reply to a mail on the UDK list to show how to copy part of a document but I think it would be more useful on the this list (API) It fragments the document into 30 lines pieces, and copies the fragment into a blank document. This will copy almost every thing in the 30 lines including text, tables and graphics. Isn't that something for our code snippets database? Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
* Tom Schindl [EMAIL PROTECTED] [040705, 09:43]: Ennio-Sr schrieb: | * Ennio-Sr [EMAIL PROTECTED] [240605, 02:04]: | |[skip] | | The attachment to the above referred post doesn't seem to have got | through to Code-snippets-Calc pages. | Did I do something wrong? | sorry done. now. OK, thank you Tom. Regards, Ennio. -- [Perche' usare Win$ozz (dico io) se ...anche uno sciocco sa farlo. \\?// Fa' qualche cosa di cui non sei capace! (diceva Henry Miller) ](°|°) [Why use Win$ozz (I say) if ... even a fool can do that. )=( Do something you aren't good at! (as Henry Miller used to say) ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ennio-Sr schrieb: | * Ennio-Sr [EMAIL PROTECTED] [240605, 02:04]: | |This is a new version (2.0) of my 'First snippet' as the previous one |didn't always work as it should. I've tested it many times and it seems |to work well in all possible cases I could imagine. I hope it will help |some newbies like myself to better understand how some basic things work |in OOo-Basic. |[skip] | | | The attachment to the above referred post doesn't seem to have got | through to Code-snippets-Calc pages. | Did I do something wrong? | Regards, | Ennio. | | sorry done. now. Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCyOiqkVPeOFLgZFIRAr9bAKCB3VvwYWmwVhohwK01qMwGCYpd9ACfXaON HD9iRpAECtf1Qkeocpd0jYQ= =HA/5 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emanuele schrieb: | Hi Paolo (and all), [...] | | I tried your snippet, but I receive an error every time I start the | macros. :-( | In particular the problem is located in the function RegExpStrReplace | at the line: | | .searchFlag = [EMAIL PROTECTED] com.sun.star.util.SearchFlags:REG}_EXTENDED | [...] This is used to create the internal linking stuff when rendered on the web-page. Paolo it seems that the problem we are linking is a small bug in your snippet creator your regexp adding the @see stuff seems to miss the _. Tom | | Regards, | Emanuele. | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtRdrkVPeOFLgZFIRAjgCAJ4wr68ZJvlxzCt58W+9z6U75cMCVACgpXlR dfJh6ZghUh3ohWxntz1KJuE= =5AAw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the line: .searchFlag = [EMAIL PROTECTED] com.sun.star.util.SearchFlags:REG}_EXTENDED OOo underline the first parenthesis, with a generic syntax error message. Hi Emanuele, Erase _all_ the [EMAIL PROTECTED] and *}* and it goes on smoothly :-) Not a good advice, because the XML code erroneously used from Emanuele contains also a lot of other offending code like escaped chars (apos, quot, # etc. etc.) XML code-snippets are not conceived for being used directly in the StarBasic IDE. Please, go to the code-snippet web page to know the rest of the story ciao Paolo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
* Paolo Mantovani [EMAIL PROTECTED] [190605, 16:41]: Alle 22:10, venerd 17 giugno 2005, Ennio-Sr ha scritto: * Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), [...] In particular the problem is located in the function RegExpStrReplace ^^^ .searchFlag = [EMAIL PROTECTED] com.sun.star.util.SearchFlags:REG}_EXTENDED ^ ^ [...] Hi Emanuele, Erase _all_ the [EMAIL PROTECTED] and *}* and it goes on smoothly :-) Not a good advice, Maybe the advice was not complete, yet good it was as it helped solve the OP's problem ;) because the XML code erroneously used from Emanuele contains also a lot of other offending code like escaped chars (apos, quot, # etc. etc.) The OP was only quoting the [EMAIL PROTECTED], as reported above. XML code-snippets are not conceived for being used directly in the StarBasic IDE. Unless you are using them _before_ the code appears on the relative web page ... Please, go to the code-snippet web page to know the rest of the story A few minutes ago the four 'offending' lines still appear as underlined. ciao Paolo. Regards, Ennio. -- [Perche' usare Win$ozz (dico io) se ...anche uno sciocco sa farlo. \\?// Fa' qualche cosa di cui non sei capace! (diceva Henry Miller) ](|) [Why use Win$ozz (I say) if ... even a fool can do that. )=( Do something you aren't good at! (as Henry Miller used to say) ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
Not a good advice, because the XML code erroneously used from Emanuele contains also a lot of other offending code like escaped chars (apos, quot, # etc. etc.) In truth all the other things were ok, so I didn't realize immediately my error, excuse me! XML code-snippets are not conceived for being used directly in the StarBasic IDE. Please, go to the code-snippet web page to know the rest of the story Checked, please excuse me again. Ciao! Emanuele. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
Hi Kohei, Alle 14:55, gioved 16 giugno 2005, Kohei Yoshida ha scritto: [...] Hi Paolo, You, or perhaps someone else, may be interested in this hack of mine: http://kohei.us/ooo/nsort/ which introduces a native natural sort algorithm in Calc. Great ! :-) The work was completed (with some minor enhancement still to be done) about a year ago, but it will be still sometime before it gets integrated into the code base, according to the core dev team. The reason being that new bits need to be introduced in the file format as well as the UNO API. I must admit that I'm not able to complie OOo myself, therefore I'll wait ... ciao Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Mantovani schrieb: | Hi all, | | During a recent job I have had to develop some functions for string sorting. | Some of these contains a very simple implementation of the natural sort | algorithm. [...] Integrated into snippet collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.SimpleNaturalSortAlgorithm.snip Once more I have a small problem with the linking stuff but I have no time to look at it at the moment. :-( Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsos5kVPeOFLgZFIRAoXKAKC6spod3Lpkgzi+udOsnEdstYBKmwCgo79H orXRTHkyQJ2OTkzSSHeKBqM= =XImB -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple wrapper for uno-services
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christoph Lutz schrieb: | dev@api.openoffice.org schrieb am 13.06.05 08:21:35: | |integrated into the snippet collection here: |http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperForUno_services.snip |but doesn't it more belong to the office section? | | | you are right! I thought I left the section field empty when creating the snippet within the snippet-creator. Is it possible that the snippet-creator assumes the writer-section per default? | | please feel free to move the snippet into the office-section! | | thanks, | Christoph Lutz | __ | Verschicken Sie romantische, coole und witzige Bilder per SMS! | Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | moved to the office section and can be found now using this link: http://codesnippets.services.openoffice.org/Office/Office.SimpleWrapperForUno_services.snip Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsotykVPeOFLgZFIRAlo1AKCoaSZ5J9P5150ntbUTd+V853JCPACcCBTO naVrItEsPTUFx9jh5hR99Aw= =0gN/ -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
Hi Tom, Alle 10:35, venerd 17 giugno 2005, Tom Schindl ha scritto: [...] Integrated into snippet collection and can be found here: http://codesnippets.services.openoffice.org/Office/Office.SimpleNaturalSort Algorithm.snip Thank you :-) Paolo M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
Hi Paolo (and all), Paolo Mantovani wrote: Finally, I thought to submit the thing as a code-snippet, in the hope it will be useful to someone. I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the line: .searchFlag = [EMAIL PROTECTED] com.sun.star.util.SearchFlags:REG}_EXTENDED OOo underline the first parenthesis, with a generic syntax error message. My experience with OOo basic is limited and I'm not sure of the function of this line of code...so I'm not sure (I have no idea) how I can fix it, if it need to be fixed ;-) Is it my fault? Do you have any suggestions? Thank you very much! Regards, Emanuele. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple natural sort algorithm
* Emanuele [EMAIL PROTECTED] [170605, 18:57]: Hi Paolo (and all), ... I tried your snippet, but I receive an error every time I start the macros. :-( In particular the problem is located in the function RegExpStrReplace at the line: .searchFlag = [EMAIL PROTECTED] com.sun.star.util.SearchFlags:REG}_EXTENDED OOo underline the first parenthesis, with a generic syntax error message. Hi Emanuele, Erase _all_ the [EMAIL PROTECTED] and *}* and it goes on smoothly :-) Regards, Ennio. -- [Perche' usare Win$ozz (dico io) se ...anche uno sciocco sa farlo. \\?// Fa' qualche cosa di cui non sei capace! (diceva Henry Miller) ](|) [Why use Win$ozz (I say) if ... even a fool can do that. )=( Do something you aren't good at! (as Henry Miller used to say) ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple wrapper for uno-services
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, integrated into the snippet collection here: http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperForUno_services.snip but doesn't it more belong to the office section? Tom Christoph Lutz schrieb: | here is a simple wrapper-class for uno-services. please note the | included methods for inspecting uno-services in Java (something similar | to the XRay-tool)... | -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCrSXOkVPeOFLgZFIRAp1nAJ9MqqsZa8hdUm7kPHHGsjGd/XVOygCdHNb3 f+PtCxgkFESfDpKNV25r6FQ= =qDVR -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple wrapper for uno-services
Hi Christoph, Alle 09:28, lunedì 13 giugno 2005, Christoph Lutz ha scritto: dev@api.openoffice.org schrieb am 13.06.05 08:21:35: integrated into the snippet collection here: http://codesnippets.services.openoffice.org/Writer/Writer.SimpleWrapperFo rUno_services.snip but doesn't it more belong to the office section? you are right! I thought I left the section field empty when creating the snippet within the snippet-creator. Is it possible that the snippet-creator assumes the writer-section per default? No, or at least, it shouldn't... :-) I will check it ASAP Thank you Paolo M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Simple wrapper for uno-services
Hi Christoph, this kind of wrapper are maybe useful for a specific language but not in general and they provide only a statical snapshot of an UNO object. You have to adapt your wrapper every time the object will change. But of course this shouldn't happen to often. But the wrapper has always the problem that optional interface and properties are not available and you have to deal with this circumstances otherwise the user will be confused anyway. We've addressed all your described obstacles with the new UNO ease of features and new API'S will benefit from them. We also plan to adapt often used API areas to support the new features as well. And latest with this improvements this kind of wrapper becomes superfluously. Don't misunderstand me, it's fine to make things easier but from my point of view every wrapper is one too much. The API's and the underlying technology have to be clear and usable without the need of any further wrapper layer. I would agree that we can still improve a lot in our API's and we will do that. But the API is huge and we need more and concrete feedback where the API's lacks of usability and/or completeness (including simple documentation problems, e.g. missing docu ...). Juergen Christoph Lutz wrote: here is a simple wrapper-class for uno-services. please note the included methods for inspecting uno-services in Java (something similar to the XRay-tool)... ?xml version=1.0? snippet language=Java application=Writer keywords keywordwrapper/keyword keywordUnoRuntime.queryInterface/keyword keywordqueryInterface/keyword keywordinspect/keyword keywordinspection/keyword keywordmethods/keyword keywordinterfaces/keyword keywordproperty/keyword keywordproperties/keyword keywordservices/keyword keywordobject/keyword keywordconvenience/keyword keywordclass/keyword keywordinformation/keyword /keywords authors author id=CL initial=true email=[EMAIL PROTECTED]Christoph Lutz/author /authors question heading=Simple wrapper for uno-servicesIs there a way to avoid all the UnoRuntime.queryInterface-calls pProgramming in Java is very uncomfortable. The Java-program is nearly unreadable cause of the many temporary variables you need to hold interface-instances. /p p/p palso uno-services are not very transparent. How do I get the names of the provided services, interfaces, properties and methods?/p /question answer puse a wrapperclass to let the wrapper perform the queryInterface-calls. This is my wrapper class - simple but effective. /p p/p pIt also provides method for a runtime-inspection similar to the famous XRay-tool./p listing/* * A simple wrapperclass for uno-services. * Copyright (C) 2005 Christoph Lutz * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ import java.lang.reflect.Method; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.TreeSet; import com.sun.star.beans.Property; import com.sun.star.beans.XPropertySet; import com.sun.star.beans.XPropertySetInfo; import com.sun.star.bridge.XUnoUrlResolver; import com.sun.star.container.XEnumeration; import com.sun.star.container.XEnumerationAccess; import com.sun.star.frame.XComponentLoader; import com.sun.star.frame.XDesktop; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XServiceInfo; import com.sun.star.lang.XTypeProvider; import com.sun.star.text.XText; import com.sun.star.text.XTextDocument; import com.sun.star.text.XTextField; import com.sun.star.text.XTextRange; import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import com.sun.star.util.XCloseable; /** * The class UnoService is a wrapper for UnoService-Objects provided by the * OpenOffice.org API. The main aim of this wrapper is to make java-programs * more readable by avoiding the neccessity of UnoRuntime.queryInterface-calls. * The wrapper performs the queryInterface-calls and holds the corresponding * interface-instances. Temporary variables for singular interface-types are no *
Re: [api-dev] [code snippet] erase-create_range_name
Hi, Alle 01:26, martedì 7 giugno 2005, Tom Schindl ha scritto: Ennio-Sr schrieb: [...] | PS - Just for curiosity: when I first posted the snippet I copied it | from a .Html and got many unwanted chars in the relative SnippetCreator | window (things went much better when a copied from a .txt). How is it | that, copying back the code-snippet from OO-Snippet page to make this | testing (I copied directly into the edit macro window in my test file) | the code shows correctly (i.e. no undesired chars)? Well I suppose the problem is maybe the substitution of characters with entities to get valid XML. We (Paolo's snippet creator does it behind the scene for you) simply need this. I'm not sure but I think the newest version has a load snippet function hasn't it Paolo? of course, in the latest version it's possible to load an existing xml code-snippet. from the office menu bar: Tools-Add-Ons-CodeSnippet Creator-Open... ciao Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ennio-Sr schrieb: | Hi all! | I'm sending again my first snippet as the first one was ill-formatted. | Regards, | Ennio. Sorry Ennio, that I warnocked you in the las days but I've been out-of-office the last days was at the RIP(Rock Im Park)-Festival and recoverying partially from these hard days of rock music. I'm integrating your snippet as soon as possible and keep you informed about the not working valdation function. Tom | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCpJjQkVPeOFLgZFIRAl29AJ4+zsKUab6qzIhlsFUJoug4VnboTgCfRKZI 7e2E90CIXF3eiAJGxRQw2j4= =NFNz -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ennio, I've reformatted your last message in the last 20 minutes could you take a look if its correct now? You can find the macro here: http://codesnippets.services.openoffice.org/Calc/Calc.Erase_create_range_name.snip Is there any difference to the macro you posted (besides some smoothing of the syntax e.g. always use capitalization like Dim, ...) Tom Ennio-Sr schrieb: | Hi! | Sorry for so many ill-posting ... ;( | Hoping this time everything is correct! | In my past message I had inadvertedly copy-pasted from an .Html file. | Regards, | Ennio. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCpKHukVPeOFLgZFIRAv2nAKCDiJ08Wjl/8dG0J7PPvrd4oDU+tgCfVw1C v+S4uELthuWHrelwfdKItws= =NQKY -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
* Tom Schindl [EMAIL PROTECTED] [060605, 20:41]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ennio-Sr schrieb: | Hi all! | I'm sending again my first snippet as the first one was ill-formatted. | Regards, | Ennio. Sorry Ennio, that I warnocked you in the las days but I've been out-of-office the last days was at the RIP(Rock Im Park)-Festival and recoverying partially from these hard days of rock music. I'm integrating your snippet as soon as possible and keep you informed about the not working valdation function. Tom Hi Tom! Thanks for your message: I was just wondering why my snippet was not appearing on the OO-Snippets page ;-) In the meantime I re-edited my code with SnippetCreator and realized there were some unwanted chars (I'd been copy-pasting from an .html file); after copying again my listing (from a .txt file I've tested) things should be all right now. Hoewever, I'll welcome any further suggestions ... Regards, Ennio -- [OT] A bit more salt in your meals for a couple of days will accelerate your RIP-Festival recoverying from ;) -- [Perche' usare Win$ozz (dico io) se ...anche uno sciocco sa farlo. \\?// Fa' qualche cosa di cui non sei capace! (diceva Henry Miller) ](°|°) [Why use Win$ozz (I say) if ... even a fool can do that. )=( Do something you aren't good at! (as Henry Miller used to say) ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] erase-create_range_name
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ennio-Sr schrieb: | * Tom Schindl [EMAIL PROTECTED] [060605, 21:20]: You are welcome ;-) | Thanks for your assistance. | | Regards, | Ennio. | | -- | PS - Just for curiosity: when I first posted the snippet I copied it | from a .Html and got many unwanted chars in the relative SnippetCreator | window (things went much better when a copied from a .txt). How is it | that, copying back the code-snippet from OO-Snippet page to make this | testing (I copied directly into the edit macro window in my test file) | the code shows correctly (i.e. no undesired chars)? | | | Well I suppose the problem is maybe the substitution of characters with entities to get valid XML. We (Paolo's snippet creator does it behind the scene for you) simply need this. I'm not sure but I think the newest version has a load snippet function hasn't it Paolo? Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCpNujkVPeOFLgZFIRAk9jAJ4viJBuvK2T9AGZeror3WaL858/iwCgwBSh xmFMoS3W5h+s2EnvCqqqcD8= =DgYi -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] insert remove annotations
Hi Tom, Alle 10:18, mercoledì 1 giugno 2005, Tom Schindl ha scritto: Hi Paolo, I've got the same problem with the linking stuff. Could someone tell me why you are not using the real package name? Nevertheless I must get rid of those cases I'm working on a regexp to force the package name to be lower case but I'm not done until now. Though I've integrated you snippet. Perhaps there's another problem: in the code shown by the browser I see (line 9) : Dim oDate As New [EMAIL PROTECTED] com.sun.star.util.Date} that is the original output of codesnippet-creator regards Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] insert remove annotations
Oh. I see it I'll take a look at it as soon as I have time. Tom Paolo Mantovani wrote: Hi Tom, Alle 10:18, mercoledì 1 giugno 2005, Tom Schindl ha scritto: Hi Paolo, I've got the same problem with the linking stuff. Could someone tell me why you are not using the real package name? Nevertheless I must get rid of those cases I'm working on a regexp to force the package name to be lower case but I'm not done until now. Though I've integrated you snippet. Perhaps there's another problem: in the code shown by the browser I see (line 9) : Dim oDate As New [EMAIL PROTECTED] com.sun.star.util.Date} that is the original output of codesnippet-creator regards Paolo - 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]
Re: [api-dev] [code snippet] traverse placeholders (unordered)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Christoph, Thanks for the contribution. I'll the snippet has been added to our collection and can be found using this link: http://codesnippets.services.openoffice.org/Writer/Writer.TraversePlaceholders_unordered_.snip I'm not sure with the interal linking stuff. Is the docu to this not online, but the link generated from my XSL to http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextField/JumpEdit.html doesn't exist. Tom Christoph Lutz schrieb: | a small example how to get all the placeholders of a document | | feel free to comment this snippet... | | regards | Christoph | | [...] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCluF0kVPeOFLgZFIRAp3gAJ4qVc2wIMzEfyQhOZwGUjZgo9dTYgCeIhGM m/Hk+lAzJCGPBlu/rbv2lzM= =rqe7 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
On Thu, 17 Mar 2005 09:21:32 -0500, Kohei Yoshida [EMAIL PROTECTED] wrote: ... My desire is to see UNO offer Swing compatible API (especially the layout support among other things), similar to how it offers AWT compatible API *today*, but the actual rendering is still done by VCL for platform dependent LF. Not to mention it should not require a JVM to run it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Hi Kohei, no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on all supported platforms. Easy to create (GUI editor, easy to handle (API), easy to deploy (with UNO packages), language independent, ... are only some of my wishes for the replacement ;-) Speaking of wishes... ;-) It would be cool to have an API compatible to Swing API. That way for Java coders the migration effort is nearly zero, and even for non-Java coders, the migration toward Java Swing after UNO (if they so desire) would be relatively painless. I would like to see Swing itself be integrated. Of course, that only works for Java. This needed two issues fixed: 1st: A portable and official way of adding Swing components to non-Java parent windows. 2nd: Getting the OOo and Swing look and feel the same for the different planforms. Michael -- Michael Hoennig [EMAIL PROTECTED] project lead OpenOffice.org API http://api.openoffice.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Hi, would it be easier to use SWT? Tom Hi Kohei, no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on all supported platforms. Easy to create (GUI editor, easy to handle (API), easy to deploy (with UNO packages), language independent, ... are only some of my wishes for the replacement ;-) Speaking of wishes... ;-) It would be cool to have an API compatible to Swing API. That way for Java coders the migration effort is nearly zero, and even for non-Java coders, the migration toward Java Swing after UNO (if they so desire) would be relatively painless. I would like to see Swing itself be integrated. Of course, that only works for Java. This needed two issues fixed: 1st: A portable and official way of adding Swing components to non-Java parent windows. 2nd: Getting the OOo and Swing look and feel the same for the different planforms. Michael -- Michael Hoennig [EMAIL PROTECTED] project lead OpenOffice.org API http://api.openoffice.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Property Browser Controller
Hi Paolo, That's great Thanks for feeding us with such intrresting things a question about dealing with framles and windows. Do you have an idea how to make a windows dockable as the stylist or the navigator ? Thanks again for the snippet 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] [code snippet] Property Browser Controller
Paolo Mantovani wrote: Hi Tom, Alle 11:09, martedì 15 marzo 2005, Tom Schindl ha scritto: Hi Paolo, Paolo Mantovani wrote: [...] For Tom: I've tried to use the new extensions: {see $IDL_Reference} {link $IDL_Reference} I hope to have done it correctly, but please, have a look before to put the snippet in the repository. the new Linking feature is looks really nice with your snippet. Great job Paolo. http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserCo ntroller.snip Thank you Tom, but perhaps I misunderstood something, because there's a problem with API constants and enums. For example: {see com.sun.star.awt.WindowClass.TOP} is converted as http://api.openoffice.org/docs/common/ref/com/sun/star/awt/WindowClass/TOP.html that results uncorrect. I see two solutions: 1) modify the snippet source - f.e.: {see com.sun.star.awt.WindowClass}.TOP Not good. See below. 2) modify the engine on your side to recognize and cut the UPPER ending part before to build the link Great catch Paolo haven't looked that exactly i must admit and haven't thought about this when creating the linking stuff. To be more reusable for other codesnippet pages (as already said I want to release the snippet-page as a standalone application which can be used by any OS-project around the world). The reference to attributes and methods is now the following: [EMAIL PROTECTED] com.sun.star.awt.WindowAttribute/BORDER} this translates into: a href=https://.../com/sun/star/awt/WindowAttribute.html#BORDER; style=color: inherit target=_newcom.sun.star.awt.WindowAttribute.BORDER/a I wanted to use the # instead of / but that interfered with my syntax-highlighter (in some languages a # has a meaning where as / is used in almost all languages as an operator and thus is not highlighted). Any other suggestions are welcome :-) I have updated your snippet already please take a look at it. http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserController.snip Tom let me know Ciao Paolo M - 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]
Re: [api-dev] [code snippet] Property Browser Controller
Hi Tom, Tom Schindl wrote: Paolo Mantovani wrote: Hi Tom, Alle 11:09, martedì 15 marzo 2005, Tom Schindl ha scritto: Hi Paolo, Paolo Mantovani wrote: [...] For Tom: I've tried to use the new extensions: {see $IDL_Reference} {link $IDL_Reference} I hope to have done it correctly, but please, have a look before to put the snippet in the repository. the new Linking feature is looks really nice with your snippet. Great job Paolo. http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserCo ntroller.snip Thank you Tom, but perhaps I misunderstood something, because there's a problem with API constants and enums. For example: {see com.sun.star.awt.WindowClass.TOP} is converted as http://api.openoffice.org/docs/common/ref/com/sun/star/awt/WindowClass/TOP.html that results uncorrect. I see two solutions: 1) modify the snippet source - f.e.: {see com.sun.star.awt.WindowClass}.TOP Not good. See below. 2) modify the engine on your side to recognize and cut the UPPER ending part before to build the link Great catch Paolo haven't looked that exactly i must admit and haven't thought about this when creating the linking stuff. To be more reusable for other codesnippet pages (as already said I want to release the snippet-page as a standalone application which can be used by any OS-project around the world). The reference to attributes and methods is now the following: [EMAIL PROTECTED] com.sun.star.awt.WindowAttribute/BORDER} this translates into: a href=https://.../com/sun/star/awt/WindowAttribute.html#BORDER; style=color: inherit target=_newcom.sun.star.awt.WindowAttribute.BORDER/a only a minor comment. For me [EMAIL PROTECTED] com.sun.star.awt.windowAttribute:BORDER} would be more natural. I can't say why but i would prefer to use a ':' instead of '/' to identify members of a type (methods, properties, ...). Maybe because we use the same notation in the DevGuide ;-) - Juergen I wanted to use the # instead of / but that interfered with my syntax-highlighter (in some languages a # has a meaning where as / is used in almost all languages as an operator and thus is not highlighted). Any other suggestions are welcome :-) I have updated your snippet already please take a look at it. http://codesnippets.services.openoffice.org/Office/Office.PropertyBrowserController.snip Tom let me know Ciao Paolo M - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Property Browser Controller
Alle 12:25, martedì 15 marzo 2005, Laurent Godard ha scritto: Hi Paolo, That's great Thanks for feeding us with such intrresting things a question about dealing with framles and windows. Do you have an idea how to make a windows dockable as the stylist or the navigator ? I'm trying from years! but with any success ;-( No sorry no idea... some strange things can probably be done with the _beamer : Open the datasource (F4) in the OOBasic IDE add a new dialog and run the following code: - REM * BASIC * Sub Main oFrames = ThisComponent.CurrentController.Frame.getFrames For I = 0 To oFrames.Count - 1 oFrame = oFrames.getByIndex(I) if oFrame.Name = _beamer Then ' Create the Property Browser Controller oPropBrowser = CreateUnoService(com.sun.star.form.PropertyBrowserController) oPropBrowser.attachFrame(oFrame) ' Retrieve an UNO Control Model oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) oCtrlModel = oDlg.getModel 'also Form Controls works well(obvious) ' oCtrlModel = ThisComponent.DrawPage.Forms.Standard.PushButton ' Show Control properties in the browser oPropBrowser.introspectedObject = oCtrlModel End If Next I End Sub - Unfortunately, I've not been able to attach the beamer to the controller of a normal document. This would be very nice but causes ooo to close without any messages. ciao Paolo M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Paolo Mantovani wrote: Hi Christian, Alle 15:40, venerdì 11 marzo 2005, Christian Junker ha scritto: Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this line code oPaintListener = CreateUnoListener(ThisDialog_, com.sun.star.awt.XPaintListener /code There is no closing parenthesis. - http://codesnippets.services.openoffice.org/Office/Office.DrawingOnDialogs. snip Thank you for corrections. ...and shame on me! I've attached an updated version of the snippet in the hope that Tom will upload it ASAP. Done. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Kohei Yoshida wrote: Hi Jürgen, On Fri, 11 Mar 2005 15:56:37 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed the deprecated flag. But you should not expect too much of this API. Now does that imply that the awt API's will not be exteneded in the future, or will it be replaced with a new set of dialog API's at some point? no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on all supported platforms. Easy to create (GUI editor, easy to handle (API), easy to deploy (with UNO packages), language independent, ... are only some of my wishes for the replacement ;-) - Juergen Kohei - 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]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
On Mon, 14 Mar 2005 10:28:26 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Kohei Yoshida wrote: Hi Jürgen, On Fri, 11 Mar 2005 15:56:37 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed the deprecated flag. But you should not expect too much of this API. Now does that imply that the awt API's will not be exteneded in the future, or will it be replaced with a new set of dialog API's at some point? no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on all supported platforms. Easy to create (GUI editor, easy to handle (API), easy to deploy (with UNO packages), language independent, ... are only some of my wishes for the replacement ;-) Speaking of wishes... ;-) It would be cool to have an API compatible to Swing API. That way for Java coders the migration effort is nearly zero, and even for non-Java coders, the migration toward Java Swing after UNO (if they so desire) would be relatively painless. The rest of the UNO API already looks like Java API anyway, so it only makes sense. Just my wishful thinking. ;-) Kohei - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Paolo Mantovani wrote: Hi, I've grepped around in the Dev Guide in order to find some example of the use of com.sun.star.awtXGraphics but with no success. After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet ciao Paolo M. http://codesnippets.services.openoffice.org/Office/Office.DrawingOnDialogs.snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Hi paolo After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet That's great !!! I just tested and it offers nice ideas As i didn't dig in this part of the api, do you think there is a way to modify the shap of the window itself 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] [code snippet] Drawing on Uno Dialogs
Hi Laurent, Alle 12:20, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi paolo After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet That's great !!! I just tested and it offers nice ideas As i didn't dig in this part of the api, do you think there is a way to modify the shap of the window itself I must admit that awt API's are quite obscure to me, and it's difficult to say what can be done and what cannot. Anyway, if I well remember, when I was playing with VB, peoples used some window API's to create shaped buttons or forms. The trick was something like this: - create a non rectangular region on the screen (Hwnd = 0) using intesection or union or elliptic regions - set the region to a form (or control) using the API call setWindowRegion (or something similar) Now, In the OOo API's there should be something similar because you can create and manipulate regions, for example: oRegion = oDlg.Peer.Toolkit.createRegion Dim aRect As New com.sun.star.awt.Rectangle aRect.Width = 100 aRect.Height = 100 oRegion.unionRectangle(aRect) Unfortunately I've no idea if you can create a region from the screen and if you can set a region to a specified window, but maybe it worth some further investigations on this track. ciao Paolo M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Hi paolo, I must admit that awt API's are quite obscure to me, and it's difficult to say what can be done and what cannot. like for me Anyway, if I well remember, when I was playing with VB, peoples used some window API's to create shaped buttons or forms. The trick was something like this: - create a non rectangular region on the screen (Hwnd = 0) using intesection or union or elliptic regions - set the region to a form (or control) using the API call setWindowRegion (or something similar) yesy, i did such games in my earlier years (created a stamp-like window with sinus and cosinus) That's why i asked Now, In the OOo API's there should be something similar because you can create and manipulate regions, for example: Unfortunately I've no idea if you can create a region from the screen and if you can set a region to a specified window, but maybe it worth some further investigations on this track. I'll try to have a look when some time be patient , it may take weeks, months, years ;) Thansk again Paolo for your snippet 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] [code snippet] Drawing on Uno Dialogs
Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed the deprecated flag. But you should not expect too much of this API. - Juergen Paolo Mantovani wrote: Hi Laurent, Alle 12:20, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi paolo After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet That's great !!! I just tested and it offers nice ideas As i didn't dig in this part of the api, do you think there is a way to modify the shap of the window itself I must admit that awt API's are quite obscure to me, and it's difficult to say what can be done and what cannot. Anyway, if I well remember, when I was playing with VB, peoples used some window API's to create shaped buttons or forms. The trick was something like this: - create a non rectangular region on the screen (Hwnd = 0) using intesection or union or elliptic regions - set the region to a form (or control) using the API call setWindowRegion (or something similar) Now, In the OOo API's there should be something similar because you can create and manipulate regions, for example: oRegion = oDlg.Peer.Toolkit.createRegion Dim aRect As New com.sun.star.awt.Rectangle aRect.Width = 100 aRect.Height = 100 oRegion.unionRectangle(aRect) Unfortunately I've no idea if you can create a region from the screen and if you can set a region to a specified window, but maybe it worth some further investigations on this track. ciao Paolo M. - 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]
Re: [api-dev] [code snippet] Drawing on Uno Dialogs
Hi Christian Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this line code oPaintListener = CreateUnoListener(ThisDialog_, com.sun.star.awt.XPaintListener /code There is no closing parenthesis. - http://codesnippets.services.openoffice.org/Office/Office.DrawingOnDialogs.snip That's really strange as i tested using copy/paste of the snippet page and didn't experience any error and it worked i confirm that there is ) missing really, a great magician, this Paolo ;) 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] [code snippet] Drawing on Uno Dialogs
Alle 16:44, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi Christian Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this line code oPaintListener = CreateUnoListener(ThisDialog_, com.sun.star.awt.XPaintListener /code There is no closing parenthesis. - http://codesnippets.services.openoffice.org/Office/Office.DrawingOnDialog s.snip That's really strange as i tested using copy/paste of the snippet page and didn't experience any error and it worked i confirm that there is ) missing really, a great magician, this Paolo ;) Don't blame me, it's the basic interpreter! :-) http://qa.openoffice.org/issues/show_bug.cgi?id=17781 ciao Paolo M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]