[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] 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 collecti

[api-dev] MailMerge settings

2011-05-11 Thread Paolo Mantovani
t I'm missing something. Any help? thank 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 re

[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 insi

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 to

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 great

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 fo

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

2010-12-18 Thread Paolo Mantovani
courage anybody that would like to migrate but is afraid 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
technique are in the source code of the BasicAddonBuilder extension: http://www.paolo-mantovani.org/downloads/BasicAddonBuilder/ regards Paolo Mantovani --8<-- REM * BASIC * Sub Main oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1) x

[api-dev] ContentIndexMark not linkable

2010-06-12 Thread Paolo Mantovani
textrange) having the index mark I'm 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

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( XCellRangeAddressable.

Re: [api-dev] Sending email to multiple recipients

2010-04-19 Thread Paolo Mantovani
Andrew Douglas Pitonyak ha scritto: When I looked at the service definitions, I thought that I should be able to send an email message to multiple people at one time. The setCCRecipient, for example, accepts a list of email addresses. Only the first address is used. I tested on Linux using

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

Re: [api-dev] Paths options page customization

2010-04-01 Thread Paolo Mantovani
ep in mind 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

[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: [...] I see two problems: 1) this approach does not solve the same problem for dialogs included in documents. But nowadays, dialogs in documents can embed their images, can't they? I remember Noel Power having implemented this a

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 c

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 t

[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) b

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

[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 document

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 --

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 su

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

[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 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 thing per s

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 U

[api-dev] Crash problems with Accessibility

2009-04-13 Thread Paolo Mantovani
very often when 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_1

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 above

Re: [api-dev] OO Writer Extension

2009-04-02 Thread Paolo Mantovani
ntation/DevGuide/WritingUNO/Jobs/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
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 action

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 codeli

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

2008-11-05 Thread Paolo Mantovani
The next time I'll add: "PLEASE, DON'T TRY THIS AT HOME!!!" :-) Thanks 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] Re: Intercepting commands ".uno.xxx..."

2008-11-04 Thread Paolo Mantovani
r custom dispatches in order to react to user actions Please find the small example document in attachment. ciao Paolo Mantovani TestDispatchInterceptor.odt Description: application/vnd.oasis.opendocument.text - To unsubscr

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] Scriptable Formula framework.

2008-07-19 Thread Paolo Mantovani
Hi Robert, Il venerdì 18 luglio 2008 14:02:31 Marcin Miłkowski ha scritto: > Robert Vojta pisze: > > On Thu, Jul 17, 2008 at 10:43 PM, Marcin Miłkowski <[EMAIL PROTECTED]> > > wrote: > >> Unfortunately, Basic functions must be defined in the Standard module, > >> otherwise they don't work. And th

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 rem

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 tha

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
emented in PyUNO ... > Frank's issue requesting support for new-style service constructors in > Basic is http://www.openoffice.org/issues/show_bug.cgi?id=82918, > targeted to 3.X due to lack of resources. Thank you very much Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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
tURIHelper" mArgs() = Array("Python", "share") oScriptURIHelper = oSM.createInstanceWithArguments(sSrvc, mArgs()) s = _ "vnd.sun.star.script:HelloWord.py$HelloWordPython?language=Python&location=share" s = oScriptURIHelper.getStorageURI(s) Print s s = oScriptURIHe

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" >> mFilePrope

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

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 too

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

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): file:/F:/DOKUME1/Tobias/EIGE

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 fol

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) an

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 <> > > Position = Instr(i, ProcessString, " ") > > etc. etc. etc. > > Wend >

Re: [api-dev] XTextDocument - Mouse double click (XTextTable, XCell)

2008-01-06 Thread Paolo Mantovani
Hi Robert, Il domenica 6 gennaio 2008 17:27:39 Robert Vojta ha scritto: > Hallo all, > > is there an easy way how to obtain object from XTextDocument, which > received mouse double click event? I would like to know in which XCell > (in XTextTable) this event happend. My goal is to open special win

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 > &

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 wit

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

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

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 o

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

2007-10-10 Thread Paolo Mantovani
> For my original question, Mathias Bauer suggested > implementing a singleton UNO service for the dialog, > but I was hoping > for some simpler way. I'm 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 Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] instantiating InstanceLocker from BASIC

2007-10-06 Thread Paolo Mantovani
Hello Marc, Alle 14:50, sabato 6 ottobre 2007, Marc Santhoff ha scritto: > Hi, > > when running this macro: > > > global doc as object > > sub LockerCheck > dim args(1) as new com.sun.star.beans.PropertyValue > > doc = ThisComponent > args(0).Name = "xInstance" > args(0).V

Re: [api-dev] Complex toolbars

2007-09-14 Thread Paolo Mantovani
a combobox and I was able to get the selected value when the user changes the selection Most probably there is also the possibility to enable/disable 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 :-) ci

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

2007-08-28 Thread Paolo Mantovani
now a bit outdated and we should discuss about this and about our goals before to replace the tools that we're using. ciao 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
able to edit existing snippets. Just download the original codesnippet from the repository using the "snippet source" link, and open it with the snippet creator. (you should find the "open" button in the "SnippetCreator" toolbar ) The only problem

Re: [api-dev] how to do custom formula functions embedded in the document?

2007-08-01 Thread Paolo Mantovani
Hi Christian, Alle 10:09, mercoledì 1 agosto 2007, Ionel Maries Cristian ha scritto: > eh... that's a start. how about xml processing ? i need a dom-like access > and very posibly features like xpath and xsl transformation. I think that you could try with the com.sun.star.xml.dom.DocumentBuilder

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

2007-07-26 Thread Paolo Mantovani
currently are 149) The same interface supports also the method: XLocaleData.getLanguageCountryInfo(aLocale) Combining these two methods I've been able to get a list of all supported languages and countries with their descriptive names. Of course, descriptive names are given in English

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

2007-07-18 Thread Paolo Mantovani
ersion is here: http://www.paolo-mantovani.org/downloads/SnippetCreator/ Also installation instructions 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 a

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.

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 Webinterf

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

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

2007-06-26 Thread Paolo Mantovani
> Snippet creator o.k., de-installing Snippet creator o.k., > * running "unopkg gui" which allows to install extensions also as > shared: adding o.k., starting Snippet creator o.k., de-installing > Snippet creator o.k. > > So it really seem

[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-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 yesterda

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

2007-06-24 Thread Paolo Mantovani
karound by shortening my registry path. The new version is available here: http://www.paolo-mantovani.org/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] [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=dev&msgNo=48 > > you can find a similar rep

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

2007-06-22 Thread Paolo Mantovani
Hi , Alle 17:17, venerdì 22 giugno 2007, Cor Nouws ha scritto: > Hi, > > Those familiar with VBA might know the PrivateProfileString function, > that can read/write the Windows registry as well as an ini-file. > The latter had my interest and I searched for an existing replacement; > makes convers

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 >

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

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 selectio

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 rea

Re: [api-dev] Quotes in strings (OpenOffice.org Basic)

2007-04-16 Thread Paolo Mantovani
Alle 23:21, lunedì 16 aprile 2007, Johnny Andersson ha scritto: > Hi! > > I can't figure out how to sent a quote character (") to a function. > '"' doesn't work and things like "\"" doesn't work either, and of course > """ also will fail. You can use double quoting inside a string in this way: pr

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

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
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 cu

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() = ThisComponent.getC

[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: ThisC

Re: [api-dev] Changing images in dialog interactively

2007-02-27 Thread Paolo Mantovani
i The following basic extensions use the same approach for images shown in their dialogs: http://www.paolo-mantovani.org/downloads/BasicAddonBuilder/BasicAddonBuilder-20061201.uno.pkg http://www.paolo-mantovani.org/downloads/SnippetCreator/SnippetCreator-20060707.uno.pkg In attachment you'

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-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 ? >

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 ? > > O

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? or

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

2007-01-27 Thread Paolo Mantovani
Alle 17:19, sabato 27 gennaio 2007, Johnny Andersson ha scritto: [...] > By the way, do you happen to know if there is a better way to check if a > cell range is empty than the following? > > Dim Blah As Variant > Blah=ThisComponent.Sheets.getByIndex > (0).getCellRangeByPosition(0,2,1,2).getDataArr

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

2007-01-27 Thread Paolo Mantovani
BASIC * 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

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.

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

2006-12-01 Thread Paolo Mantovani
deal 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 mant

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 never

[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=dev&msgNo=13383 Thank you Paolo Mantovani Alle 20:26, venerdì 24 novembre 2006, Paolo Mantovani ha scritto: > Hi, > > me again, about zip package

[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 ca

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

2006-11-24 Thread Paolo Mantovani
dn't thought this, but it actually makes sense, especially for the manifest.xml that is a special file for ooo packages and in the other hand it is a regular content for zip files. Thank you very much Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[api-dev] accessing to a zip through UCB

2006-11-24 Thread Paolo Mantovani
Hi, I'm trying to read the manifest.xml content into a zipped package using the UniversalContentBroker service, but without any success. When I execute the "open" command I get the following error: Type: com.sun.star.ucb.InteractiveAugmentedIOException Message: "Got no data stream!" What am I do

Re: [api-dev] question about XLibraryContainerExport

2006-11-17 Thread Paolo Mantovani
not having searched the ML 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 -

  1   2   3   >