[api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2005-05-08 Thread Michael Hoennig
Dear OpenOffice.org community, This is the 2-weekly announcement of current issues regarding the OOo API project which I want to hightlight to the community. *** = *** Todays Issue: Contributing to the OOo API Project ***

Re: [api-dev] Macro to load kbd-config file containing assigned macros

2005-05-09 Thread Mathias Bauer
Ennio-Sr wrote: [problems loading configurations from documents] My testing in Beta was with 1.9.78; I'll test with 1.9.82 downloaded a few weeks ago. I'm not sure about the version where the bug was fixed finally. If you have broadband downloading a newer build might be a good idea. Best

Re: [api-dev] System colors in OpenOffice.org

2005-05-09 Thread sos
At 19:04 5/05/05, you wrote: Hi all, I need to retrieve the RGB code for the Selected text background color in awt controls, like TextEdit or ListBoxes. Paolo , look at this code i tryed foor making and coloring a text input field in a dialog maybe its similar for your awt controls)

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-05-10 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

Re: [api-dev] IDL for the TextDocument service

2005-05-11 Thread Andreas Schlüns
Christian Junker wrote: A text document does support the XMultiServiceFactory indirectly. Directly the XMultiServiceFactory interface is supported by the DrawingDocumentFactory which is a service that every document - that contains a drawing page - has. This includes the text document. About the

Re: [api-dev] IDL for the TextDocument service

2005-05-11 Thread Christian Junker
I noticed the method getScriptProvider() yesterday which is probably the door to the XScriptProviderSupplier, however neither of those are listed in the IDL reference. In other words: This is probably an unofficial interface, thus no guarantees for its usability. 2005/5/11, Andreas Schlüns [EMAIL

Re: [api-dev] IDL for the TextDocument service

2005-05-11 Thread Christian Junker
Okay, I did not read carefully, this is actually about the IDL reference (documentation) not having the XMultiServiceFactory included in its exported interfaces. As Jürgen proposed, I submitted an issue for this: http://www.openoffice.org/issues/show_bug.cgi?id=49101 . If you wanted to Christoph,

[api-dev] Problem with the table when i save a Writer document in Word

2005-05-12 Thread Cristian Fonti
Hi to all, i have this problem: in a Writer document, i create a table, then i rotate the cells of the first row (with the OOo API and Java). If i save the document in Word 97/XP/2000 and i open it, the text in the cells is not rotate... The same problem appear also if i don't use the API

Re: [api-dev] IDL for the TextDocument service

2005-05-12 Thread Mathias Bauer
Department LinuxOffice Migration wrote: 2005/5/12, Mathias Bauer [EMAIL PROTECTED]: Anyway, in all cases (no documentation, derived or versioned services) you need to use queryInterface to get the desired interface and you need to check the return value, Technically yes, but in practice

Re: [api-dev] Lost e-mail

2005-05-12 Thread Mathias Bauer
Department LinuxOffice Migration wrote: Hallo, on 2005-05-03 I posted a message to this mailing list (after subscribing first). The message made it to the archive http://api.openoffice.org/servlets/ReadMsg?list=devmsgNo=12796 but was apparently not distributed to the list. At least I did not

Re: [api-dev] How to browse the shared scripts?

2005-05-12 Thread Department LinuxOffice Migration
2005/5/12, Mathias Bauer [EMAIL PROTECTED]: Here's some C++ code for this (xCtx is the DefaultContext): Thank you. That does what I want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-13 Thread Paolo Mantovani
Hi Malcom, Alle 18:02, venerdì 13 maggio 2005, malcolm cooke ha scritto: Hi, I wonder if anyone can give me pointers how to do this? Background - a document is created programmatically from a template and in the process text added / removed. As a result now end up with empty pages because

[api-dev] Re: Code-snippet contribution (Access Calc's built-in function)

2005-05-13 Thread Kohei Yoshida
It seems that this email of mine has been buried and long forgotten without being noticed. So, I'm replying to this just as a reminder for my original post. Of course, if this contribution is not needed, please ignore this post as well as the original. Kohei On 4/26/05, Kohei Yoshida [EMAIL

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-14 Thread malcolm cooke
Hi Paolo, I would if I could :-) Unfortunately the adding / removing of text to/from the template document (which in itself contains a lot of formatted text) is database driven and dependent upon a whole host of factors based around a particular customers geographic location. Obviously the

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-14 Thread Christian Junker
Hi Malcolm, maybe the macro I just wrote will help you. Please note that it is by no means 'perfect' because I have not tested all possible situations. The problem is that there is no such API function as to recognize whether a page is empty, so you have to check it on your own. Because there are

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-14 Thread Christian Junker
U, this works better I guess: REM * BASIC * Private chars as Integer 'specifies the number of characters checked at the beginning of every page Function Delete_empty_pages Dim i as Integer chars = 50 odoc = thisComponent 'if you have problems with thisComponent for the new OOo 2.0

[api-dev] Accessing metadata.

2005-05-14 Thread Brian Raymond
I have a need to strip all metadata on a document programmatically that's not required for operation. I currently use the DocumentInfo interface and can access the properties and set everything that isn't required to anemptty sring however I have a couple of small problems. I check to see if

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-15 Thread Christian Junker
Alright, after some replies with code that was just out of the box, meaning it wasn't well thought about, I decided to spend some more time on this coming up with a hopefully complete-working macro. The result can be seen on: http://www.oooforum.org/forum/viewtopic.phtml?t=20153 As a remark: It

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-15 Thread malcolm cooke
Christian, Many thanks for this code I will try it out first thing tomorrow and let you know my findings. Malcolm At 15:54 15/05/2005, you wrote: Alright, after some replies with code that was just out of the box, meaning it wasn't well thought about, I decided to spend some more time on this

Re: [api-dev] How to identify and remove empty pages in writer document.

2005-05-16 Thread malcolm cooke
Hi Christian, I've modified one method to recognise the presence of a text table and it now appears to do what I want in my particular instance. ie inserted the following inside the Do While loop: if Not isEmpty(cur.TextTable) Then bEmptyPage = False Exit Do End If Here is the code

[api-dev] Macro to load kbd-config file containing assigned macros

2005-05-16 Thread Ennio-Sr
Date: Mon, 09 May 2005 09:53:19 +0200 From: Mathias Bauer [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 Subject: [api-dev] Macro to load kbd-config file containing assigned macros Ennio-Sr wrote: [problems loading configurations from documents] My testing in Beta was with

[api-dev] PayPal eCare department. Unusual activity in your account!

2005-05-16 Thread [EMAIL PROTECTED]
PayPal, an eBay company Encrypted Key: wm-101g/mgxa4fhv54nmzl Dear PayPal, Inc. member, PayPal, is committed to maintaining a safe environment for our customers. To protect the security of your account, PayPal, employs some of the most advanced security systems in the

Re: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Kohei Yoshida
Hi Paolo, On 5/14/05, Paolo Mantovani [EMAIL PROTECTED] wrote: Hi all, I've finally updated the SnippetCreator utility. (snip) any comments, criticism, suggestions, bug reports are welcome Looks very nice. I'm looking forward to using it for my next contribution. Kohei -- Kohei Yoshida

Re: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Paolo Mantovani
Hi Kohei, Alle 14:42, martedì 17 maggio 2005, Kohei Yoshida ha scritto: [...] Looks very nice. I'm looking forward to using it for my next contribution. thank you! :-) and here there's your snippet edited with the new version of the wizard I added version platform informations and some

Re: [api-dev] unable to invoke a BeanShell Macro from an uno-package

2005-05-17 Thread Thomas Benisch
Hi Christoph, Christoph Lutz wrote: Hi, I have got a question regarding the scripting-framework and uno-packages and I hope this is the correct list since the list [EMAIL PROTECTED] seems to be inactive. If not, please hint me to the correct list. I want to deploy and invoke

Re: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Mantovani schrieb: | Hi Kohei, | | Alle 14:42, martedì 17 maggio 2005, Kohei Yoshida ha scritto: | [...] | |Looks very nice. I'm looking forward to using it for my next contribution. | | | thank you! :-) | | and here there's your snippet edited

[api-dev] [EMAIL PROTECTED] GUIDE: important things to know about this mailing list

2005-05-17 Thread Michael Hoennig
Dear OpenOffice.org community, This is the monthly reminder of important things to know about the dev@api.openoffice.org mailing list. We, the project leads of the OOo API project, would like to give you some general information to help you with your questions. ***

Re: [api-dev] New verson of SnippetCreator

2005-05-18 Thread Jürgen Schmidt
Hi, online again ;-) Thanks Paolo Juergen Paolo Mantovani wrote: Alle 19:54, sabato 14 maggio 2005, Paolo Mantovani ha scritto: Hi all, I've finally updated the SnippetCreator utility. eh. I'm sorry but I've just noticed a small stupid bug ;-( the wizard writes may work / can not work

[api-dev] Re: [dev] 1.9.100 script library duplication

2005-05-18 Thread Eike Rathke
Hi Jahn,, On Tue, May 17, 2005 at 12:59:15 -0400, Jahn, Ray (R.) wrote: possibly related OO issue 48147 If you actually subscribed to the mailing lists you're posting to you would have noticed that your question was already answered 4 days before you reposted it, also on the [EMAIL PROTECTED]

[api-dev] how to hide menubar and toolbars?

2005-05-18 Thread Liao Yu
Hi, all: I've been trying to do some menubar and toolbar hide-and- show work in java, but got stuck somewhere near success. Here's what I've done: 1. get the XDesktop interface; 2. get the current frame by XDesktop.getCurrentFrame(); 3. query the com.sun.star.beans.XPropertySet interface from

Re: [api-dev] how to hide menubar and toolbars?

2005-05-19 Thread Jürgen Schmidt
Hi, it looks fine but your URL is wrong, try for example these URLs: statusbar - private:resource/statusbar/statusbar menubar - private:resource/menubar/menubar toolbar - private:resource/toolbar/standardbar Juergen Liao Yu wrote: Hi, all: I've been trying to do some menubar and toolbar

[api-dev] PayPal Security Alert Case ID Number: PP-040-187-541

2005-05-19 Thread Paypal Account Department
Dear valuedPayPal®member: PayPal® is committed to maintaining a safe environment for its community of buyers and sellers. To protect the security of your account, PayPal employs some of the most advanced security systems in the world and our anti-fraud teams regularly screen the PayPal

Re: [api-dev] how to hide menubar and toolbars?

2005-05-19 Thread Liao Yu
Hi Juergen, Thanks for the URLs. Usually three's toolbar for pattern control just below the standardbar. What is the URL of that one? Thanks! Regards, Yu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [api-dev] how to hide menubar and toolbars?

2005-05-20 Thread Jürgen Schmidt
Hi Yu, here all URL's for the writer of a standard installation: private:resource/menubar/menubar private:resource/statusbar/statusbar private:resource/toolbar/alignmentbar private:resource/toolbar/arrowshapes private:resource/toolbar/basicshapes private:resource/toolbar/bezierobjectbar

[api-dev] Get the index of a named control in a form.

2005-05-25 Thread Curtis Clauson
A FormComponenet service implements both the XIndexContainer and XNameContainer interfaces. Normally a script programmer wants to use the control name to initially find the control, and the control reference from that point on. However, the XEventAttacherManager methods require the index of

[api-dev] How to get a querybox?

2005-05-26 Thread Liao Yu
Hi; My application needs a querybox in Java, on which we can choose from YES or NO. I've searched though com::sun::star::awt but found nothing. Anyone has any suggestion? Thank you in advance. Regards, Yu - To unsubscribe,

Re: [api-dev] How to get a querybox?

2005-05-27 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why you don't use Swing or if you need the platform lf SWT for this. If you are already using Java? Tom Liao Yu schrieb: | Hi; | My application needs a querybox in Java, on which we can | choose from YES or NO. I've searched though |

Re: [api-dev] [code snippet] traverse placeholders (unordered)

2005-05-27 Thread Tom Schindl
-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

Re: [api-dev] How to insert and remove annotation?

2005-05-31 Thread Liao Yu
Hi Paolo, Actually there's a service com.sun.star.text.ViewSettings, with boolean property ShowAnnotations, which controls the visibility of annotations. You can access to ViewSettings with com.sun.star.view.XViewSettingsSupplier.getViewSettings (). You can refer to section 7.5 of

Re: [api-dev] How to insert and remove annotation?

2005-05-31 Thread Andrew Douglas Pitonyak
Liao Yu wrote: Hi, We can hide and show annotations in a text document via OOo API, but how can we insert or remove one with API? Regards, Yu An annotation is just a text field, you can remove it as any other text field. -- Andrew Pitonyak My Macro Document:

Re: [api-dev] How to insert and remove annotation?

2005-06-01 Thread Liao Yu
Thanks, Andrew. There's one thing strange that I couldn't find the package textfield in module com.sun.star.text of unoil.jar. Anyone has any idea? Regards, Yu - Liao Yu wrote: Hi, We can hide and show annotations in a text document via OOo API, but

Re: [api-dev] Set Image resolution

2005-06-01 Thread Cristian Fonti
So, if i want to reduce the dimension (the weight..) of the image in the final document, which properties i must set?? (Setting the height and the width i don't obtain nothing..) sos ha scritto: At 15:52 31/05/05, you wrote: I try to use the example, i must set the pixelwidth and the

Re: [api-dev] How to insert and remove annotation?

2005-06-01 Thread Stephan Bergmann
Liao Yu wrote: Thanks, Stephan. So the package com.sun.star.text.textfield is not available in Java. Then do we have the chance to insert an annotation or other textfield via Java? If we do, how? Thank you in advance. That there is no Java package com.sun.star.text.textfield does not mean

Re: [api-dev] [code snippet] insert remove annotations

2005-06-01 Thread Paolo Mantovani
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

Re: [api-dev] [code snippet] insert remove annotations

2005-06-01 Thread Tom Schindl
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?

Re: [api-dev] Macro to delete a Calc named range

2005-06-01 Thread Ennio-Sr
* Andrew Douglas Pitonyak [EMAIL PROTECTED] [010605, 00:54]: The macro is from a chapter that I am considering placing a new book, but I might just release it as is... Have not decided if I have time to finish another book. Hi Andrew, I would like to thank you again for your assistance: just

Re: [api-dev] Range name deletion within a macro

2005-06-01 Thread Marc Santhoff
Am Mittwoch, den 01.06.2005, 20:06 +0200 schrieb Ennio-Sr: [...] Sub create_delete_range '-- Dim oRange 'The created range Dim oRanges ' All named ranges Dim sName$ ' Name of the named range to create Dim oActiveCell 'The current active cell oActiveCell =

Re: [api-dev] Range name deletion within a macro

2005-06-01 Thread Ennio-Sr
* Marc Santhoff [EMAIL PROTECTED] [010605, 20:31]: Am Mittwoch, den 01.06.2005, 20:06 +0200 schrieb Ennio-Sr: [...] Sub create_delete_range '-- Dim oRange 'The created range Dim oRanges ' All named ranges Dim sName$ ' Name of the named range to create Dim

Re: [api-dev] Range name deletion within a macro

2005-06-01 Thread Marc Santhoff
Am Mittwoch, den 01.06.2005, 21:54 +0200 schrieb Ennio-Sr: [...] BTW, where can I find the IDL-reference for com.sun.star.sheet.XNamedRanges ? If you downloaded the SDK you have a local copy: OpenOffice.org1.1_SDK/docs/common/ref/com/sun/star/sheet/XNamedRanges.html first part is the

Re: [api-dev] Range name deletion within a macro

2005-06-01 Thread Ennio-Sr
* Marc Santhoff [EMAIL PROTECTED] [010605, 22:36]: Am Mittwoch, den 01.06.2005, 21:54 +0200 schrieb Ennio-Sr: [...] BTW, where can I find the IDL-reference for com.sun.star.sheet.XNamedRanges ? If you downloaded the SDK you have a local copy:

Re: [api-dev] How to insert and remove annotation?

2005-06-01 Thread Liao Yu
Here is the code that I wrote to insert an annotation, referring to the example in section 7.3.5 of Developer's Guide: ... try { com.sun.star.text.XTextField aNote= (com.sun.star.text.XTextField)UnoRuntime.queryInterface (XTextField.class, xMSF.createInstance

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-06-01 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

[api-dev] API project lead position

2005-06-03 Thread Michael Hoennig
Dear OOo API users, Many years ago the main developer of a well known software project resigned not only from his position but also from his profession. He wanted to stay away from software engineering for a while and took a job in his former profession, which was not even computer related. At

Re: [api-dev] API project lead position

2005-06-03 Thread Jürgen Schmidt
Hi Michael, i would like to thank you for your work and contributions in the past. Especially for the api project. I hope that you will maybe come back to the community as an active developer some time in the future. You are one of the pioneers of the OO API and the discussions with you were

[api-dev] How to get a copy of the OfficeBean for a specific OOo version

2005-06-03 Thread KINDLER Jurgen
Hi all, I'm afraid, this is a bit off topic, but I do not know where to ask otherwise. I have two questions: 1. How do I get the correct version of the openoffice bean for OOo 1.1.x from the CVS? (My customer currently works with OOo 1.1.0 and I need to apply two changes to the bean

[api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Maxime Thieu
Hello all, I have a little problem: I have a document 'B' which countains a macro I want to open document 'B' form another document with a macro (with the function LoadComponentURL). It works fine (the doc is opened), but the macro in document 'B' is disabled... (and I am not asked for

[api-dev] My first code_snippet

2005-06-03 Thread Ennio-Sr
Hi all! as per the subject. Forgive me in case I made sothing wrong in the sending procedure: I was using Paolo Mantovani's SnippetCreator and got stucked at the window where you're supposed to write the code :-) So, I'm sending it with my preferred console Mail User Agent, Mutt. Hope this will

Re: [api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Mathias Bauer
Maxime Thieu wrote: Hello all, I have a little problem: I have a document 'B' which countains a macro I want to open document 'B' form another document with a macro (with the function LoadComponentURL). It works fine (the doc is opened), but the macro in document 'B' is disabled...

Re: [api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Maxime Thieu
Thanks a lot for this helpfull (and very fast) answer ! Is a there anywhere a documentation of the list of theses arguments which can be used by loadComponentFromURL ? I am searching for something which should fix that the remote document I am opening is NOT read-only. (beacause I have this

Re: [api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Markus Daniel
Hi! Maxime Thieu wrote: Thanks a lot for this helpfull (and very fast) answer ! Is a there anywhere a documentation of the list of theses arguments which can be used by loadComponentFromURL ? Have a look in the API-Doc com.sun.star.frame.XComponent and com.sun.star.document.MediaDescriptor

Re: [api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Maxime Thieu
Markus Daniel a écrit : Have a look in the API-Doc com.sun.star.frame.XComponent and com.sun.star.document.MediaDescriptor thanks for this... in Java: you can give loadComponentFromURL a PropertyValue[] with something like loadProperties[1].Name = ReadOnly; loadProperties[1].Value = new

Re: [api-dev] Macro disabled when document opened with LoadComponentFromURL (bug?)

2005-06-03 Thread Markus Daniel
Hi Maxime, Maxime Thieu wrote: in Basic, (macro ooo), this does not work: Dim loadArgs(2) as New com.sun.star.beans.PropertyValue loadArgs(1).Name = MacroExecutionMode loadArgs(1).Value = 4 loadArgs(2).Name = ReadOnly loadArgs(2).Value = False

Re: [api-dev] How to insert and remove annotation?

2005-06-05 Thread Liao Yu
Hi Juergen, Is there any difference between a global service factory and a text document factory? I opened the text document from that xMSF multiservice factory, so I guess it's a global one. Would you be so kind to tell me how to query a text ducument object for XMultiServiceFactory from a

Re: [api-dev] How to insert and remove annotation?

2005-06-06 Thread Liao Yu
I've just changed the 2 letters into upper case and the annotation came out at last! Thank you, Juergen. REgards, Yu - Hi, it seems to be a documentation problem. In IDL it is com.sun.star.textfield.Annotation but in real life you have to use

[api-dev] Remote document opened read-only... (possible bug?)

2005-06-06 Thread Maxime Thieu
Hi, Markus Daniel a écrit : Hi Maxime, Maxime Thieu wrote: in Basic, (macro ooo), this does not work: Dim loadArgs(2) as New com.sun.star.beans.PropertyValue loadArgs(1).Name = MacroExecutionMode loadArgs(1).Value = 4 loadArgs(2).Name = ReadOnly loadArgs(2).Value = False

[api-dev] VB Office - Searches and absolute position

2005-06-06 Thread Egon
Hi everybody I am a new member of this community, and as the principles... I have some problems with the programming of soffice. I have to create a index of a sxw document, this index consist in a list of 2 styles in 2 levels. Example: Style1 Pag number Style2 Pag number

Re: [api-dev] VB Office - Searches and absolute position

2005-06-06 Thread sos
How can I get the absolute position of a text in a SXW oDoc = ThisComponent ' get the Text service of the document oText = Odoc.text ' create an instance of a graphic object using the document service factory ' get the current cursor position in the

Re: [api-dev] Set Image resolution

2005-06-06 Thread sos
Yes, i tested it also the graphis are exported at ther original size , ther must ne something wrong with the usage of the filterdata Maybe one of the authors of the code snipet: Olivier Samyn Sven Jacobi Michael Hoennig can help us further Fernand At 11:05 1/06/05, you wrote: So, if i want to

Re: [api-dev] [code snippet] erase-create_range_name

2005-06-06 Thread Tom Schindl
-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

[api-dev] [code snippet] erase-create_range_name

2005-06-06 Thread Ennio-Sr
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. ?xml version=1.0? !-- $RCSfile: $ last change: $Revision: $ $Author: $ $Date: $ (c)2003 by the copyright holders listed

Re: [api-dev] [code snippet] erase-create_range_name

2005-06-06 Thread Tom Schindl
-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

Re: [api-dev] [code snippet] erase-create_range_name

2005-06-06 Thread Ennio-Sr
* 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

Re: [api-dev] VB Office - Searches and absolute position

2005-06-06 Thread Marc Santhoff
Am Montag, den 06.06.2005, 14:01 +0200 schrieb Egon: Hi everybody Hello Egon, I am a new member of this community, and as the principles... I have some problems with the programming of soffice. I have to create a index of a sxw document, this index consist in a list of 2 styles in 2

Re: [api-dev] [code snippet] erase-create_range_name

2005-06-06 Thread Tom Schindl
-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

[api-dev] A little problem with annotation insertion

2005-06-06 Thread Liao Yu
Hi, I was trying to insert an annotation at the current cursor place. As XTextViewCursor is also a XTextRange, so I inserted an annotation with the following code: ... XTextViewCursorSupplier xTVCS= (XTextViewCursorSupplier)UnoRuntime.queryInterface

Re: [api-dev] Set Image resolution

2005-06-07 Thread Cristian Fonti
Hello, meanwhile thanks; I use OpenOffice 1.1.4 and Java, and when i put the image into the document, i want to reduce his size, so, i want to apply a FilterData, can you give me an example of it?? The image are all bmp/jpg or eventually gif. Thanks Cristian Sven Jacobi ha scritto: Hello,

Re: [api-dev] Set Image resolution

2005-06-07 Thread sos
Sven, I copied the snippetcode into a draw document (001.1.2) and also (001.9.69) Sub Export( xObject, sFileUrl As String, aFilterData ) xExporter = createUnoService( com.sun.star.drawing.GraphicExportFilter ) xExporter.SetSourceDocument( xObject ) Dim aArgs (2) as new

Re: [api-dev] [code snippet] erase-create_range_name

2005-06-07 Thread Paolo Mantovani
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).

Re: [api-dev] Problem with FirstConnection

2005-06-08 Thread David Dankwerth
Stephan Many thanks for your help, your direction has helped me produce a sample that uses GUI to convert to pdf Office documents using UNO and openoffice. I am attaching the sample and hope it would be useful for other people. All the best David Dankwerth ri3k Stephan Bergmann wrote: David

[api-dev] Step by Step and Run: Different results.

2005-06-08 Thread Egon
Thanks everybody. I have resolved the problem with the absolute position of a text in a SXW ( by the getPosition method of a viewCursor). In this time, I have to write here because I have found a problem with the debugger: I have a Macro OO ( VB Office ) , when I execute it by the step by step

Re: [api-dev] Problem with FirstConnection

2005-06-08 Thread David Dankwerth
Tom Further to my previous email, attached is a snippet created using the Snippet-Creator, it focuses on how to open a connection to openoffice that is disposable (i.e no need to call System.exit(0) ) Thanks David D Tom Schindl wrote: David Dankwerth schrieb: | Stephan | | Many thanks for

Re: [api-dev] Problem with FirstConnection

2005-06-08 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Dankwerth schrieb: | Tom | | Further to my previous email, attached is a snippet created using | the Snippet-Creator, it focuses on | how to open a connection to openoffice that is disposable (i.e no need | to call System.exit(0) ) | | Thanks |

Re: [api-dev] Problem with FirstConnection

2005-06-08 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Dankwerth schrieb: | Tom | | One last thing, the snippet i sent wasnt that great, didnt have the | imports ... | so attached is a few changes on it to | 1. have a better question (how to avoid System.exit()) | 2. Better code , a whole code that

[api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2005-06-08 Thread Michael Hoennig
Dear OpenOffice.org community, This is the 2-weekly announcement of current issues regarding the OOo API project which I want to hightlight to the community. *** = *** Todays Issue: Contributing to the OOo API Project ***

[api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Paolo Mantovani
Hi all, The method XTextSearch.searchForward results an com.sun.star.util.SearchResult structure http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchResult.html As you can see, IDL documentation says that setting the searchAlgorithm to REGEXP I can find multiple sub matches but,

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Ennio-Sr
* Paolo Mantovani [EMAIL PROTECTED] [090605, 18:17]: Hi all, The method XTextSearch.searchForward results an com.sun.star.util.SearchResult structure http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchResult.html As you can see, IDL documentation says that setting the

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Paolo Mantovani
Hi all, me again :-) after a second reading of the IDL documentation, I realized that probably, I've initially misunderstood the real meaning. Anyway the intersting (but problematic) part of the document says: struct SearchResult Alle 18:17, giovedì 9 giugno 2005, Paolo Mantovani ha

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-09 Thread Paolo Mantovani
sorry for the previous post, I accidentally pressed something in my keyboard Hi all, me again :-) after a second reading of the IDL documentation, I realized that probably, I've initially misunderstood the point Anyway the intersting (but problematic) part of the document says:

[api-dev] Copy Textrange in Writer

2005-06-10 Thread Martin Thoma
Hello! I just try to duplicate a section of a text identified by a XTextCursor in Basic. The text may contain different formatting, text-tables, perhaps some graphics and so on. A restriction is that the contents of the clipboard should not been destroyed, so I think I have to do a kind of

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi paolo, interresting game :) At the end of this post there's my testing code am I doing something wrong ? Perhaps I missed some SearchFlags ? please find a working modification of your code at the end in fact you have to loop aver oTextSerach, by starting after the endOfset of your

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Ennio-Sr
* Laurent Godard [EMAIL PROTECTED] [100605, 15:15]: Hi paolo, interresting game :) At the end of this post there's my testing code am I doing something wrong ? Perhaps I missed some SearchFlags ? please find a working modification of your code at the end in fact you have to loop

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi ennio, While Paolo will give the final answer to this respect as he knows exactly what is trying to achieve, I'm curious to know whether the IDL statement that the subRegExpressions value can be greater than 1 is correct at all. It seems to be a boolean value, or am I far behind any

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Laurent Godard
Hi again i will read the IDL as may be totally wrong i am totally wrong sorry subRegExpressions Number of subexpressions, if it is 0, then no match found; this value is 1 for ABSOLUTE and APPROXIMATE match. The start and endOffset are always dependent on the search direction. For example:

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-10 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...] Hi Laurent, no matter what that IDL description

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-06-10 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

[api-dev] Google summer of Code Idea

2005-06-11 Thread Cedric Bosdonnat
Hello everybody, I'm new on this mailing-list, but I'm in the 'fr' project for approximately 6 month. I'm wondering if I couldn't work on a subject which wasn't proposed : developping an eclipse plugin to create UNO components features to be coded: + Syntax highlighting for UNO-IDL files

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-11 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [110605, 00:56]: * Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...]

Re: [api-dev] service com.sun.star.util.TextSearch

2005-06-11 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [110605, 00:56]: * Ennio-Sr [EMAIL PROTECTED] [100605, 19:47]: * Laurent Godard [EMAIL PROTECTED] [100605, 18:21]: Hi again i am totally wrong sorry It's me to be sorry for not being able to figure out what this means ;) subRegExpressions [...]

[api-dev] [code snippet] Simple wrapper for uno-services

2005-06-12 Thread Christoph Lutz
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

Re: [api-dev] Google summer of Code Idea

2005-06-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, there have been request todo so and I'm also interested in such a Eclipse-Plugin but I didn't had anytime to start which such an project. If I can be of any help to you I'd more than happy. Tom Cedric Bosdonnat schrieb: | Hello everybody, | |

<    1   2   3   4   5   6   7   8   9   10   >