[api-dev] Re: MailMerge settings

2011-05-12 Thread Paolo Mantovani
Hi Fernand, Il 11/05/2011 19:52, Fernand Vanrie ha scritto: Paolo , I think you need refresh your textfields, when needed i can send you some code tomorrow Thank you for the suggestion. Actually I forgot to mention that I did already experimented the refresh method (at textfield collection

[api-dev] Re: MailMerge settings

2011-05-12 Thread Paolo Mantovani
Il 12/05/2011 00:32, Ariel Constenla-Haile ha scritto: Hello Paolo, On Wednesday 11 May 2011, 13:33, Paolo Mantovani wrote: Hallo, I need to change (via API) the database bound to a given document. In practice I need to perform via API the same operation that you normally do via the menu

[api-dev] MailMerge settings

2011-05-11 Thread Paolo Mantovani
you Paolo Mantovani -- - To unsubscribe send email to dev-unsubscr...@api.openoffice.org For additional commands send email to sy...@api.openoffice.org with Subject: help

[api-dev] Re: using external libraries with Pyuno components

2011-03-17 Thread Paolo Mantovani
Hi Laurent, Juergen, thanks for prompt reply, Il 17/03/2011 14:39, Laurent Godard ha scritto: Hi paolo long time !!! i put my imported .py file inside the extension in a pythonpath directory the main .py files are at extension root i found this information long time ago and think it is a

[api-dev] using external libraries with Pyuno components

2011-03-16 Thread Paolo Mantovani
Hallo, I'm developing a tool in python that perform some very basic image manipulation. The tool uses the Python Imaging Library (PIL) Now I would like to integrate my tool in OOo as a pyuno component, but PyUno comes without the PIL library Is there any way to deploy such a dependence

Re: [api-dev] use of css.container.EnumerableMap

2011-01-06 Thread Paolo Mantovani
Il 05/01/2011 12:31, Andreas Bregas ha scritto: [] Problem: This is not very convenient, as the CoreReflection service is needed to get XIdlClass. Probably in most cases the macro program- mer knows in advance which types he wants to use. Each type has a unique name, so it also makes sense

Re: [api-dev] use of css.container.EnumerableMap

2010-12-22 Thread Paolo Mantovani
Hi Frank, Il 21/12/2010 10:25, Frank Schönheit ha scritto: Hi Paolo, [...] as I was the one who wrote this service (out of a particular need): Sorry, I wasn't aware that Type is such a ... difficult thing in Basic. I'll keep that in mind for the next API I design :-\ Thank you, this is

Re: [api-dev] use of css.container.EnumerableMap

2010-12-20 Thread Paolo Mantovani
Il 18/12/2010 15:00, Paolo Mantovani ha scritto: [...] unfortunately the implementation is so complicated and counterintuitive that nobody will use it. Of course I'm able to use it even in basic, ehmmm, clearly it was just my optimistic guess... Thanks to Ariel, Bernard and Stephan

[api-dev] use of css.container.EnumerableMap

2010-12-18 Thread Paolo Mantovani
of loosing his/her skills regards Paolo Mantovani - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

Re: [api-dev] Dialog control like JPanel in UNO awt

2010-10-26 Thread Paolo Mantovani
-mantovani.org/downloads/BasicAddonBuilder/ regards Paolo Mantovani --8-- REM * BASIC * Sub Main oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) xray oDlg oLbl1 = oDlg.getControl(Label1) oLbl2 = oDlg.getControl(Label2) 'create a child

[api-dev] ContentIndexMark not linkable

2010-06-12 Thread Paolo Mantovani
sorry for the long post but I was unable to describe the problem in a shorter way. Thanks for any help Paolo Mantovani - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h

Re: AW: [api-dev] Range/Cell Address as Parameter for calc addin

2010-05-18 Thread Paolo Mantovani
Il 18/05/2010 19:00, Daniel Rentz ha scritto: Hello, Martin Dobiasch schrieb: My problem is now to convert the Address Object back to a String public String CSDRangeAddress(XCellRange range) { XCellRangeAddressable xAdd= (XCellRangeAddressable)UnoRuntime.queryInterface(

Re: [api-dev] Paths options page customization

2010-04-01 Thread Paolo Mantovani
that people could extend the path configuration. Please write an request for enhancement for the path dialog. Hopefully I will find a developer who wants to take care of it. http://qa.openoffice.org/issues/show_bug.cgi?id=110541 Thank you very much Paolo Mantovani

Re: [api-dev] Paths options page customization

2010-04-01 Thread Paolo Mantovani
Hi Fernand, Fernand Vanrie ha scritto: Hallo Paolo , I was confronted with the same problem, i never tryed to add new nodes to the regsitery. I supose that the new enteries becomes new properties for the com.sun.star.util.PathSettings service ? correct I think you must have to look at de

[api-dev] Paths options page customization

2010-03-29 Thread Paolo Mantovani
Hi all, I'm trying to add a new named path into the options dialog (Openoffice.org - paths) Of course I'm able to add a new nodes in the org.openoffice.Office.Paths registry component but although the new node is accessible via the com.sun.star.util.PathSettings UNO service, I couldn't find any

Re: [api-dev] deploying images in extensions, to be loaded without extension code

2010-03-18 Thread Paolo Mantovani
Hi Frank, Frank Schoenheit, Sun Microsystems Germany ha scritto: [...] Because the problem I originally raised has nothing to do with dialogs. OK, the problem is binary resources for extensions I recognize that. BUT, some versions ago, when the problem was text resources for extensions the

Re: [api-dev] deploying images in extensions, to be loaded without extension code

2010-03-17 Thread Paolo Mantovani
Hi Frank, Frank Schoenheit, Sun Microsystems Germany ha scritto: Hi, is there a way to deploy images in an extension, which can be loaded without calling code in that extension? That is, ideally I would like the extension to deploy a configuration entry containing a URL, where the OOo can pass

Re: [api-dev] [Fwd: BasicAddOnBuilder question]

2010-01-18 Thread Paolo Mantovani
a license. Can you guess what the problem is? Please also contact Paolo Mantovani p_ma...@libero.it I have replied to Alan privately ciao Paolo M - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional

Re: [api-dev] listbox events

2009-12-15 Thread Paolo Mantovani
Hello Frank, Frank Schoenheit, Sun Microsystems Germany ha scritto: [] Vanilla OOo is correct here. Control listeners are expected to be called only when any user interaction is involved, or programmatic access to the control (e.g. when you call ListBox.selectItem or some such). Changes to

[api-dev] listbox events

2009-11-21 Thread Paolo Mantovani
Hi, I'm having a strange problem that affects only certain versions of ooo 3.1.1 In practice, having a listbox model, if you set the SelectedItems property, on some ooo version the itemStateChanged event of the ListBox is raised. The problem does not affect OOo vanilla version (sun build)

Re: [api-dev] BASIC: Change toolbar button icon ?

2009-10-29 Thread Paolo Mantovani
Hello Carsten, Just for let you know that almost all your posts in d...@api are labeled as important in my local archive :-) Thanks for sharing. Keep it up!! ciao Paolo M Carsten Driesner ha scritto: Jan Holst Jensen wrote: Hi all. I am trying to emulate a togglebutton/checkbox in a custom

[api-dev] OOoDraw question

2009-10-14 Thread Paolo Mantovani
Hi * I need to perform some selection in Draw Inspecting the result of ThisComponent.getCurrentSelection() I saw that getCurrentSelection() method results always a css.drawing.ShapeCollection, regardless you selected one or many shapes Unfortunately this service is not registered at draw

Re: [api-dev] Macro ODB documents

2009-06-04 Thread Paolo Mantovani
Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Paolo, Good to hear. This finally corrects a severe inconsistency affecting former versions. However, if you launch a macro from the IDE, ThisComponent points correctly to the ODB document, but if you launch the same macro from a

Re: [api-dev] Macro ODB documents

2009-06-04 Thread Paolo Mantovani
Hi Frank, Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Paolo, The problem is that forms and report definitions are not documents. I know, actually they are documents, but this should be an implementation detail and I hope that in future they will be replaced from something more

Re: [api-dev] Macro ODB documents

2009-06-04 Thread Paolo Mantovani
Paolo Mantovani ha scritto: [] This makes impossible to use the open() method in order to launch a form from the OnOpen method for example. ^ I meant onDocumentOpen event ciao Paolo - To unsubscribe

[api-dev] Macro ODB documents

2009-06-03 Thread Paolo Mantovani
Hi all, As you know, now macros are contained at ODB document level and no more at subdocument level (forms and reports) Good to hear. This finally corrects a severe inconsistency affecting former versions. However, if you launch a macro from the IDE, ThisComponent points correctly to the ODB

Re: [api-dev] Unfortunate document event name - how to fix it?

2009-05-14 Thread Paolo Mantovani
Hi, Robert Vojta ha scritto: On Wed, May 13, 2009 at 7:14 PM, Mathias Bauer nospamfor...@gmx.de wrote: Hi Mathias, The best documentation is an API that doesn't need one. This deals with the fact that people don't like to read documentation. Having speaking names for events is a good

Re: [api-dev] Replace UNO:Paste

2009-04-30 Thread Paolo Mantovani
Hi Cor, Carsten, Carsten Driesner ha scritto: Cor Nouws wrote: Hi, From some threads in the mail archive, I reed it is possible to replace a uno function by one you define yourself. But the example(s) I find are about a component written in Java. Is it possible to do replace UNO:Paste

[api-dev] Crash problems with Accessibility

2009-04-13 Thread Paolo Mantovani
you're playing with menus. I have been unable to find any reasons for that behaviour, so I'm asking here for your suggestions I'm runnig OOo 3.0.1 (300m15 build:9379), SO:Linux/Ubuntu 8.10 Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Thanks Paolo Mantovani

Re: [api-dev] Re: How to access the Storage of an opened OOo document?

2009-04-06 Thread Paolo Mantovani
Hi, Giuseppe Castagno ha scritto: [...] In this first example, I can access the whole document storage, creating a storage object starting from the document URL. [...] In the second example I'll use the XStorageBaseDocument to retrieve the document storage, here it goes. [...] With the

Re: [api-dev] OO Writer Extension

2009-04-02 Thread Paolo Mantovani
/List_of_Supported_Events HTH Paolo Mantovani - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

Re: [api-dev] HELP by drawing a line in a Dialog ImageControl

2009-03-20 Thread Paolo Mantovani
Fernand Vanrie ha scritto: I need some help to resolve a puzzle for me I trie to draw a line in a Imagecontrol in a Dialog The The line is drawn with the Sub below but only when the sub is called from a mouseclick (event) on a other control in the dialog When calling the sub from a codeline

Re: [api-dev] HELP by drawing a line in a Dialog ImageControl

2009-03-20 Thread Paolo Mantovani
Hi Ariel, Ariel Constenla-Haile ha scritto: Hello Fernand, On Friday 20 March 2009, 11:47, Fernand Vanrie wrote: Paolo , Thanks for tyour quick Replay, but the problem must be elsware: its the codeines before my drawings who are giving trouble oImagcontrol.visible(false) ..some other

Re: [api-dev] Re: Intercepting commands .uno.xxx...

2008-11-05 Thread Paolo Mantovani
for the clear and very useful explanation Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Scriptable Formula framework.

2008-07-19 Thread Paolo Mantovani
Il domenica 20 luglio 2008 00:56:50 Paolo Mantovani ha scritto: Hi Robert, sorry, I meant to reply to Marcin ciao Paolo M - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Macro Questions

2008-06-27 Thread Paolo Mantovani
Hi Hal, Il venerdì 27 giugno 2008 01:17:22 Hal Vaughan ha scritto: Is no answer, in this case, because nobody's done this or because it can't be done? It can be done. Andrew already gave you some good hints (as usual!) but I'll try anyway to add some (hopefully) useful info I used to

Re: [api-dev] new-style service constructors

2008-06-16 Thread Paolo Mantovani
Hi Ariel, Il lunedì 16 giugno 2008 07:24:36 Ariel Constenla-Haile ha scritto: Hello Paolo, Paolo Mantovani escribió: In practice, if I well understand Frank's answer, using createWithArguments/AndContext/AndWhatever things it's not better than simply doing: obj = CreateUNOService

Re: [api-dev] How to get the canonical path from a script URL, or at least the root directories user and share in a reliable manner ?

2008-06-15 Thread Paolo Mantovani
(sSrvc, mArgs()) s = _ vnd.sun.star.script:HelloWord.py$HelloWordPython?language=Pythonamp;location=share s = oScriptURIHelper.getStorageURI(s) Print s s = oScriptURIHelper.getScriptURI(s) Print s End Sub - ciao Paolo Mantovani

Re: [api-dev] new-style service constructors [comes from How to get the canonical path from a script URL...

2008-06-15 Thread Paolo Mantovani
. Thank you very much Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] How to supress the repair document dialogue?

2008-05-15 Thread Paolo Mantovani
Tobias Krais ha scritto: Hi Fernand, is it not one of tharguments needed by LoadComponentFromURL for altering the MacroExecutionMode i ues the code below i supose your there must been also a non repair argument ? mFileProperties(0).Name=MacroExecutionMode mFileProperties(0).Value=4

Re: [api-dev] How to access the binary stream application/vnd.sun.star.pkg-stream inside an ODT package?

2008-03-21 Thread Paolo Mantovani
Hi Giuseppe, Il mercoledì 19 marzo 2008 12:46:05 Giuseppe Castagno ha scritto: Hi all, After I successfully opened a package (e.g. an ODT document) with Java using UCB low level APIs, I tried to read the content of one of the contained streams. With no luck so far. Is there somewhere some

Re: [api-dev] AWT: some questions concerning Toolkit inconsistencies

2008-02-29 Thread Paolo Mantovani
Hi, Carsten Driesner ha scritto: [...] Third (and last for now): com.sun.star.awt.UnoControlContainer and com.sun.star.awt.UnoControlContainerModel go beyond my understanding, although I've been using them so far this way - instantiate both at the global service manager - set the model at

Re: [api-dev] AWT: some questions concerning Toolkit inconsistencies

2008-02-29 Thread Paolo Mantovani
Hi Carsten, [...] Hi Paolo, I didn't catch that we talk about the UnoControlContainerModel as a normal control. It's simple, you cannot nest UnoControlContainerModel. Although you can add it them into a container model, they won't do anything useful. May be the creator of the toolkit

Re: [api-dev] xStorable.getLocation() return old MS-DOS style path - How to solve?

2008-02-20 Thread Paolo Mantovani
Hi Tobias, Tobias Krais ha scritto: Hi together, I have a litte application and need to know the full path of the current document. Thus I use the XStorable interface. Using the xStorable.getLocation() method returns on a Windows XP system (using OOo 2.3):

Re: [api-dev] Learning macros: thanks to all

2008-02-15 Thread Paolo Mantovani
Jonathan Kaye ha scritto: Hi all, Thanks to the excellent advice I've received I now have (I believe) a working and bug free macro. One difficult (for me) piece of it was a macro called cutspace which scans a string until it finds either a fullstop or a space (let's call it a chunk) and

Re: [api-dev] looking for DecimalSeparator in OOoBasic

2008-02-15 Thread Paolo Mantovani
Hi Cor, Cor Nouws ha scritto: Hi, I know how to get the OOoLocale and DecimalSeparatorAsLocale [1], but I'm looking for the decimal separator itself. I know I should get XLocaleData, but the dev guide [2] says No further functionality is discussed. Cannot find it elsewhere. The following

Re: [api-dev] Re: the meaning of =

2008-02-12 Thread Paolo Mantovani
Hi, Il lunedì 11 febbraio 2008 20:12:48 Jonathan Kaye ha scritto: Steffen Grund wrote: Hello, I am not the Basic expert here, but wouldn't something like this work? While Position exit_value Position = Instr(i, ProcessString, ) etc. etc. etc. Wend and just

Re: [api-dev] How to deploy Python macros as Addon

2007-12-12 Thread Paolo Mantovani
Hi Stephan, Il lunedì 10 dicembre 2007 10:03:49 Stephan Bergmann ha scritto: Noelson Duarte wrote: Hi Paolo, Paolo Mantovani escreveu: I want to know if is it possible to deploy it as an Addon I think yes and, if yes, what is the URL used within addons.xcu to call func1

Re: [api-dev] How to deploy Python macros as Addon

2007-12-08 Thread Paolo Mantovani
Hi Noelson, Il sabato 8 dicembre 2007 01:37:35 Noelson Duarte ha scritto: Hello, I've a py script with only two functions (no class) . From PyUNO docs I know that is possible to deploy scripting framework py files as UNO packages. All right. I want to know if is it possible to deploy it as

Re: [api-dev] How to deploy Python macros as Addon

2007-12-08 Thread Paolo Mantovani
Il sabato 8 dicembre 2007 20:46:46 Noelson Duarte ha scritto: Hi Paolo, Paolo Mantovani escreveu: I want to know if is it possible to deploy it as an Addon I think yes and, if yes, what is the URL used within addons.xcu to call func1 ? You should find this info in the dev

Re: [api-dev] SimpleSystemMail

2007-10-14 Thread Paolo Mantovani
Alle 13:36, sabato 13 ottobre 2007, Mathias Bauer ha scritto: Paolo Mantovani schrieb: Regarding the problem that you mentioned in your follow-up I've just seen that Mathias has alreadly answered. I can only add that in the SnippetCreator wizard I've used the following strategy

Re: [api-dev] SimpleSystemMail

2007-10-12 Thread Paolo Mantovani
Hi Alexandro, Alle 09:36, giovedì 11 ottobre 2007, Alexandro Colorado ha scritto: Hi Paolo, In Barcelona I asked you about the possibility of using SimpleSystemMail uno service to be able to send email from OpenOffice.org. The only reference I got to how it works is through the snippet on

Re: [api-dev] Accessing a dialog from the frame hierarchy

2007-10-10 Thread Paolo Mantovani
basically trying to create a glossary window for my app, acting something like the OOo Stylist (non-modal, always-on-top) and fully accessible to macros from the API. Bit long for a question, but it seems to me a useful problem to resolve. Hope someone can help me out here. regards Paolo

Re: [api-dev] Complex toolbars

2007-09-14 Thread Paolo Mantovani
and hide/show the combobox. For other complex controls than comboboxes I was not able to make any operations, so I am at my wits end too :-) ciao Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [api-dev] Moving CoceSnippets into the Wiki?

2007-08-28 Thread Paolo Mantovani
Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Moving CoceSnippets into the Wiki?

2007-08-27 Thread Paolo Mantovani
link, and open it with the snippet creator. (you should find the open button in the SnippetCreator toolbar ) The only problem is that the snippet source link worked well in a first moment but currently it seems broken. regards Paolo Mantovani

Re: [api-dev] List of supported language names

2007-07-26 Thread Paolo Mantovani
names. Of course, descriptive names are given in English only (not localized) , but it's indeed a great step ahead for me and I will adopt this solution in my app (BasicAddonBuilder), at least in a first moment. Thank you Paolo mantovani P.S.: Just in case someone's interested, below the code

Re: [api-dev] Some Calc Java Macro Issues:

2007-07-18 Thread Paolo Mantovani
are a bit outdated (based on the old pkgchk tool) regards Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Hmm ... (Re: [api-dev] Is there an example for packaging macros as an extension somewhere

2007-07-14 Thread Paolo Mantovani
Hello Rony, Alle 10:43, venerdì 13 luglio 2007, Rony G. Flatscher ha scritto: [...] After reading the text you pointed me to and looking once more to the BasicAddonBuilder I finally looked through the View - Toolbars and saw there was a Basic Addon Toolbar, which I found afterwards, and as

Re: [api-dev] MODEL and CONTROL have different size ?why have

2007-07-12 Thread Paolo Mantovani
Hi Fernand, Alle 11:11, giovedì 12 luglio 2007, Fernand Vanrie ha scritto: Hallo again, Recantly i experienced that the Model and the Control of an dialog ellement have different sizes more: when setting the userGUI scaling to 100% then the ratio between Model and Control is 1.95 for

Re: [api-dev] List and webarchive IDs

2007-06-28 Thread Paolo Mantovani
Hi Christian, Alle 20:15, martedì 26 giugno 2007, Christian Lohmaier ha scritto: Hi Paolo, *, On 6/26/07, Paolo Mantovani [EMAIL PROTECTED] wrote: Alle 13:10, lunedì 25 giugno 2007, Christian Lohmaier ha scritto: [IDs of the ML and the Webinterface] Thank you for the useful

[api-dev] List of supported language names ()

2007-06-26 Thread Paolo Mantovani
hi * The StarBasic IDE now has a dialog where you can manage localized strings for your StarBasic dialogs or controls. From this dialog, by pressig the Add button, you can access to another dialog that contains a list of all supported language names. I need to implement a very similar dialog

Re: [api-dev] SnippetCreator on German Windows XP: errors, because filename too long !

2007-06-26 Thread Paolo Mantovani
extensions also as shared: adding o.k., starting Snippet creator o.k., de-installing Snippet creator o.k. So it really seems, that everything (in all of those combinations) works! Great! Thank you very much for the deep testing. Paolo Mantovani

Re: [api-dev] List and webarchive IDs (was: SnippetCreator on German Windows XP: errors, because filename too long !)

2007-06-26 Thread Paolo Mantovani
Hi Christian, Alle 13:10, lunedì 25 giugno 2007, Christian Lohmaier ha scritto: Hi *, On 6/25/07, Paolo Mantovani [EMAIL PROTECTED] wrote: [...] ops! :-) This is the unwanted result of one of my attempts to get the original message from the ezmlm program (the ML manager) BTW I

Re: [api-dev] SnippetCreator on German Windows XP: errors, because filename too long !

2007-06-25 Thread Paolo Mantovani
Hello Rony, Alle 11:47, lunedì 25 giugno 2007, Rony G. Flatscher ha scritto: Buongiorno Paolo, Sorry for the late reply, but for some reasons I missed your message (now found in the ML archive) Nothing to be sorry of! Just saw that my original post (2007-06-14) popped up yesterday

Re: [api-dev] [code snippet] PrivateProfileString

2007-06-24 Thread Paolo Mantovani
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

Re: [api-dev] SnippetCreator on German Windows XP: errors, because filename too long !

2007-06-24 Thread Paolo Mantovani
/downloads/SnippetCreator/ Please have a try and let me know. Thanks again for your feedback Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] AWT Table in OpenOffice.org

2007-05-03 Thread Paolo Mantovani
Hi, Alle 10:24, giovedì 3 maggio 2007, Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Cedric, I'ld like to create a table to present some data in an OpenOffice.org dialog. I'ld like to know which service(s) should be used to create a table like the one in the Options Fonts

Re: [api-dev] Re: How to re-select a multi selection with a macro?

2007-04-23 Thread Paolo Mantovani
Alle 09:18, lunedì 23 aprile 2007, Volker Lenhardt ha scritto: Paolo Mantovani schrieb: Hi Johnny, Alle 19:43, domenica 22 aprile 2007, Johnny Andersson ha scritto: 2007/4/21, Johnny Andersson [EMAIL PROTECTED]: I know how to do that with simple selections (I am talking about Writer

Re: [api-dev] Re: How to re-select a multi selection with a macro?

2007-04-22 Thread Paolo Mantovani
Hi Johnny, Alle 19:43, domenica 22 aprile 2007, Johnny Andersson ha scritto: 2007/4/21, Johnny Andersson [EMAIL PROTECTED]: I know how to do that with simple selections (I am talking about Writer, but it would also be interesting to know the same about Calc) with only one selection, and I

Re: [api-dev] Replaceing selected text with Basic Macro

2007-04-16 Thread Paolo Mantovani
Alle 00:31, martedì 17 aprile 2007, Johnny Andersson ha scritto: I have a small problem that I just can't figure out at these late hours (00:13 right now): I have written a macro that reads highlighted text and replaces it with something else (which is calculated by the macro). To read the

Re: [api-dev] extension's max supported OOo version

2007-03-25 Thread Paolo Mantovani
Hello Mathias, Alle 08:41, venerdì 23 marzo 2007, Mathias Bauer ha scritto: [] I suppose one can think of more things which contribute to an extension's required environment, but are not guaranteed to be stable over major OOo upgrades. dispatch Url's are probably one of these

Re: [api-dev] extension's max supported OOo version (was: [api-dev] external application getting OOo version number)

2007-03-22 Thread Paolo Mantovani
Hi, Alle 20:20, giovedì 22 marzo 2007, Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Stephan, [...] I suppose one can think of more things which contribute to an extension's required environment, but are not guaranteed to be stable over major OOo upgrades. dispatch Url's are

Re: [api-dev] performing multiple selections in Writer

2007-03-17 Thread Paolo Mantovani
Hi Christoph, Alle 16:26, sabato 17 marzo 2007, Christoph Jopp ha scritto: Hi Paolo, I played a bit around with your code and found following: You can hand an array of TextRanges to .select() So the code oCurrCon = ThisComponent.CurrentController oSelect() =

Re: [api-dev] performing multiple selections in Writer

2007-03-17 Thread Paolo Mantovani
Alle 16:29, sabato 17 marzo 2007, Christoph Jopp ha scritto: P.S.: I forgot to say: The Selection-Array consists of two elements more than selections are in the document. The real selections are found through index 1 to n-1. The first elem (0) is an empty range that represents the current

[api-dev] performing multiple selections in Writer

2007-03-16 Thread Paolo Mantovani
Hi all, sorry for the dumb question, but I'm not able to figure this out.. I've a macro that modify the selected text (in writer) example: txtrange = ThisComponent.CurrentSelection(0) txtrange.setString(ciao) At this point the selection is lost, but I can easily restore it in this way:

Re: [api-dev] [code snippet] Improve sorting capabilities

2007-02-09 Thread Paolo Mantovani
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

Re: [api-dev] [code snippet] Improve sorting capabilities

2007-02-09 Thread Paolo Mantovani
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

Re: [api-dev] [code snippet] Improve sorting capabilities

2007-02-09 Thread Paolo Mantovani
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

Re: [api-dev] [code snippet] Improve sorting capabilities

2007-02-08 Thread Paolo Mantovani
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?

Re: [api-dev] Most convenient way to delete cells in a macro?

2007-01-27 Thread Paolo Mantovani
Hi Johnny, Alle 13:04, sabato 27 gennaio 2007, Johnny Andersson ha scritto: Hi! Sorry for bothering again... When I delete the contents of a cell in a macro (for a spreadsheet document) I just set ThisComponent.Value to 0 and .String to and maybe also Formula to for each cell. Is there

Re: [api-dev] Most convenient way to delete cells in a macro?

2007-01-27 Thread Paolo Mantovani
* sub Main ' Recorded by Paolo Mantovani ' Date: Sat Jan 27 14:39:34 2007 ' get access to the document oDocumentModel = ThisComponent oDocumentView = oDocumentModel.getCurrentController() oDocumentFrame = oDocumentView.Frame ' the dispatcher service

[api-dev] [announce] BasicAddonBuilder extension - new version

2006-12-01 Thread Paolo Mantovani
with complicated xml files. More info: http://wiki.services.openoffice.org/wiki/Extensions_Packager#BasicAddonBuilder Please, notice that this is a very first version, partially untested and potentially dangerous for your data. Be careful Any feedback is welcome Thank you Paolo mantovani

Re: [api-dev] [SOLVED] zip write access throug UCB

2006-11-28 Thread Paolo Mantovani
Hi Mikhail, Kai, Thank you very much for your replies. Sincerely I didn't notice the note about the flush command. My mistake of course, but perhaps the docu could be improved here: The examples on the dev guide are all generic (not about a specific content type), so the flush command is

[api-dev] [SOLVED] zip write access throug UCB

2006-11-25 Thread Paolo Mantovani
Hi, I solved using the technique explained from Mikhail Voitenko in this old post: http://api.openoffice.org/servlets/ReadMsg?listName=devmsgNo=13383 Thank you Paolo Mantovani Alle 20:26, venerdì 24 novembre 2006, Paolo Mantovani ha scritto: Hi, me again, about zip packages... Thanks

Re: [api-dev] accessing to a zip through UCB

2006-11-24 Thread Paolo Mantovani
Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[api-dev] zip write access throug UCB

2006-11-24 Thread Paolo Mantovani
Hi, me again, about zip packages... Thanks to help from Kai Sommerfeld I was able to read any contents into a zip file Now I'm trying to *write* contents, but again :-( without any luke Please see my test code below Notice that if I try with a regular file URL the code works perfectly and I

Re: [api-dev] question about XLibraryContainerExport

2006-11-17 Thread Paolo Mantovani
Hi Christoph, Alle 02:21, venerdì 17 novembre 2006, Christoph Jopp ha scritto: Hi Paolo, if the executing macro is in the same document as the dialog library it's easy ( DialogLibraries.exportLibrary(...) ), but I fear that's not what you've meant. No, it doesn't, my macro runs into a

Re: [api-dev] question about XLibraryContainerExport

2006-11-17 Thread Paolo Mantovani
archive before to post. Maybe there is a workaround coping first to thz global an then back to the document Good hint! I'll try to do in this way. Thank you very much Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [api-dev] Document title

2006-11-12 Thread Paolo Mantovani
Hi Bart, Alle 11:20, sabato 11 novembre 2006, Bart Aimar ha scritto: Mathias Bauer wrote: Paolo Mantovani wrote: Is there an API to retrieve this user presentable title for an open document? ..zot... Well, we try to fix some bugs around titles together with it, Thank's Mathias, because

Re: [api-dev] Document title

2006-11-12 Thread Paolo Mantovani
anyway. However this behaviour does make sense, because if the number would be assigned to every created document (hidden or not) you could have gaps in the numbering of visible documents. Thank you very much Paolo Mantovani

Re: [api-dev] Document title

2006-11-08 Thread Paolo Mantovani
Hi Mathias, Alle 19:51, martedì 7 novembre 2006, Mathias Bauer ha scritto: Paolo Mantovani wrote: Is there an API to retrieve this user presentable title for an open document? It's in the works, unfortunately other work permanently distracted us from finishing it. :-) In effect it's

[api-dev] Document title

2006-11-07 Thread Paolo Mantovani
on an implementation detail that may change in future. Thank you for any help Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Refreshing a modified menu bar

2006-10-18 Thread Paolo Mantovani
Hi Bart, Alle 23:12, mercoledì 18 ottobre 2006, Bart Aimar ha scritto: Carsten Driesner ha scritto: Sample code to make transient changes on a frame menu bar REM * BASIC * Sub Main ...zot... Hi Carsten, I have tried to copy all your code, past it in //standard/module1

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-10 Thread Paolo Mantovani
still need of regular API's for this. regards Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Assign to Save)-as) events behaviour

2006-09-08 Thread Paolo Mantovani
Hi Mathias, First of all, thanks for useful information and suggestions Please, see my comments in line Alle 08:50, giovedì 7 settembre 2006, Mathias Bauer ha scritto: [] Although an official support is actually missing, with a creative ;-) use of the createUnoListener() function it's

Re: [api-dev] Assign to Save)-as) events behaviour

2006-09-06 Thread Paolo Mantovani
Hi Mathias, Alle 16:50, martedì 5 settembre 2006, Mathias Bauer ha scritto: Cor Nouws wrote: Hi *, In order to force/advice the saving of certain documents on a specified location, I prepared some macro's, looking at the documents state, name and such, and opening the save-dialog.

Re: [api-dev] [Announce] Snippet Collection holds more then 100 Snippets

2006-07-14 Thread Paolo Mantovani
. It is a good way to get started without deep knowledge of the code base. Don't hesitate to come back on the list with your own ideas or when you are simply interested to help. regards Paolo Mantovani REM * BASIC * Sub Main ' Recorded by Paolo Mantovani ' Date: Fri Jul 14 15:17:18 2006

Re: [api-dev] Fwd: Request w.r.t. SnippetCreator...

2006-07-07 Thread Paolo Mantovani
the language has to supported by vim's coloring plugin. Updated the SnippetCreator: - fixed the programming languages list - fixed some typo in the first page of the dialog download: http://www.paolo-mantovani.org/downloads/SnippetCreator/ ciao Paolo Mantovani

Re: [api-dev] SOLVED: Show a message box with the UNO based toolkit

2006-07-04 Thread Paolo Mantovani
Alle 09:55, lunedì 3 luglio 2006, Jürgen Schmidt ha scritto: Paolo Mantovani wrote: [...] I would like to make a code-snippet with this solution but since I've used an implementation detail, not officially documented (AFAIK), I would like to hear your comments before. It's fine

  1   2   >