[api-dev] Re: executing a dialog without blocking the program

2011-10-27 Thread Bernard Marcelly
Hi, Please don't multi-post. This has already been answered in dev@api.openoffice.org At bottom of these archive pages you will find links to the answers. http://www.mail-archive.com/dev@api.openoffice.org/msg02924.html http://www.mail-archive.com/dev@api.openoffice.org/msg04026.html Regards

[api-dev] Re: missing setSelectedItem() method in XComboBox interface

2011-10-15 Thread Bernard Marcelly
Hi Gerardo, There are two ways to select an item of a ComboBox. From the model of the ComboBox, set the Text property to the value that you want to select: myControl.Text = yellow From the view of the control, use the setText() method: myControlView.setText(yellow) Regards Bernard

[api-dev] Re: Document Text Fields

2011-06-15 Thread Bernard Marcelly
Hi, Message de Hal Vaughan date 2011-06-15 07:23 : While looking through the reference, I can find info on getting and storing text fields in a document in com.sun.star.text.FieldMaster.User, where I can name a text field and save the data. I don't find anything telling me if there is a

[api-dev] Re: LibreOffice/OpenOffice.org BASIC – CDbl doesn't work properly with string argument

2011-06-07 Thread Bernard Marcelly
Hi, No bug here. CDbl uses the locale settings of your OpenOffice.org. Verify Tools Options Language settings Languages : the second item Local Settings should show : Swedish (Swede) Just under this item, you will see a comma indicated as separator for decimal values (it is small but

[api-dev] Re: Is LineEndName locale dependent?

2011-05-25 Thread Bernard Marcelly
Hi, My reply to [api-dev] seems lost, I send it again with copy to Andrew. Bernard Message de Bernard Marcelly date 2011-05-24 09:36 : Hi Andrew, Your code works with french locale. If I create by hand such a line, inspection of properties LineEndName and LineStartName also show the en-US

[api-dev] Re: Get list of printers

2011-04-08 Thread Bernard Marcelly
Hi, Issue 117765 is good news. But this service com.sun.star.awt.PrinterServer is not documented in the IDL ! Only its interface. I hate using undocumented API. Can it be also corrected ? Regards Bernard Message de Frank Schönheit date 2011-04-08 09:28 : Hi Andrew, I had hoped it would

[api-dev] Re: Get list of printers

2011-04-08 Thread Bernard Marcelly
I have created Issue http://openoffice.org/bugzilla/show_bug.cgi?id=117769 to request the IDL documentation. Bernard Message de Bernard Marcelly date 2011-04-08 13:47 : Hi, Issue 117765 is good news. But this service com.sun.star.awt.PrinterServer is not documented in the IDL ! Only its

[api-dev] Re: Scrolling a spreadsheet with a macro

2011-03-04 Thread Bernard Marcelly
Hi, I always want A1 to be selected, keeping the selection out of the important area. Why select A1 ? Select any other far away cell, e.g. cell KK3000 _Then_ set the first visible row and column. Regards Bernard -- - To

Re: [api-dev] I can see the method/property which can not be found ...

2011-02-09 Thread Bernard Marcelly
Hi Andreas, I ran your code on OOo 3.3.0 / Windows XP. I got a Writer table with the formatted cells. It works as expected. Suggestion : re-install OOo after a good cleaning. Regards Bernard - To unsubscribe, e-mail:

Re: [api-dev] Grid control on OOo 3.3.0

2011-02-08 Thread Bernard Marcelly
Hi Frank, Message de Frank Schönheit date 2011-02-08 10:55 : Hi Bernard, Attached is my test dialogue, in library CtrlGrid, if you can see what is wrong or missing. You add 4 columns to the column model, but only 3 columns to each row of the data model. This inconsistency prevents the

Re: [api-dev] Grid control on OOo 3.3.0

2011-02-03 Thread Bernard Marcelly
Message de Frank Schönheit date 2011-02-03 15:21 : Hi Bernard, Can the Grid control be displayed on OOo 3.3.0 ? It can, but there's a number of ... undocumented traps. Without investigating your concrete use case, it is difficult to tell what you miss - but there sure is something, I

Re: [api-dev] Grid control on OOo 3.3.0

2011-02-03 Thread Bernard Marcelly
OK, found my bug ! I had declared one column too many. The column of the row headers must not be defined. Using Oliver code adding the control to the dialog, my grid example throws GridInvalidDataException : number of items per row does not match the number of columns. With the method of

[api-dev] How to handle OnSelect event on sheet ?

2011-01-25 Thread Bernard Marcelly
Hi, I am trying to attach a macro to the sheet events available in OOo 3.3 (by a right-click on the sheet tab). With the OnSelect event, if the called macro displays a message you go into an endless loop because, once the message appears, the slightest move of the mouse changes the selection

Re: [api-dev] AdministrationProvider no more accessible

2011-01-17 Thread Bernard Marcelly
Message de Stephan Bergmann date 2011-01-11 14:41 : On 01/11/11 10:52, Bernard Marcelly wrote: I discovered another oddity in the configuration API in OOo 3.3 RC. It is no longer possible to get the AdministrationProvider. Yes, gone for good, but I apparently forgot to document

Re: [api-dev] AdministrationProvider no more accessible

2011-01-17 Thread Bernard Marcelly
Message de Stephan Bergmann date 2011-01-17 15:13 : On 01/17/11 15:04, Bernard Marcelly wrote: Message de Stephan Bergmann date 2011-01-11 14:41 : On 01/11/11 10:52, Bernard Marcelly wrote: I discovered another oddity in the configuration API in OOo 3.3 RC. It is no longer possible to get

[api-dev] AdministrationProvider no more accessible

2011-01-11 Thread Bernard Marcelly
Hi, I discovered another oddity in the configuration API in OOo 3.3 RC. It is no longer possible to get the AdministrationProvider. Dim cfp As Object cfp = CreateUnoService(com.sun.star.configuration.AdministrationProvider) cfp returns as Null, which means the service is not recognized.

Re: [api-dev] ConfigurationProvider getByHierarchicalName regression

2011-01-10 Thread Bernard Marcelly
Message de Stephan Bergmann date 2011-01-10 11:24 : On 01/10/11 10:06, Stephan Bergmann wrote: On 01/10/11 08:34, Bernard Marcelly wrote: A second anomaly is that if you put a Watch in Basic on the variable containing the registry key content, OpenOffice crashes. Seems similar to Issue

[api-dev] ConfigurationProvider getByHierarchicalName regression

2011-01-09 Thread Bernard Marcelly
Hi, Running a code that works in previous versions (up to 1.1.5 !) I found that it throws an exception in OOo 3.3 RC3 / Windows XP. Probably same in the latest RC, not tested. I use getByHierarchicalName to obtain a set in a container. If the argument is an absolute address within the

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

2010-12-20 Thread Bernard Marcelly
Issue finally created (after servlet errors) http://www.openoffice.org/issues/show_bug.cgi?id=116184 Regards Bernard Message de Stephan Bergmann date 2010-12-20 10:12 : On 12/19/10 08:39, Bernard Marcelly wrote: I tried to make it work like this: Dim keyType As Object, valueType

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

2010-12-18 Thread Bernard Marcelly
I fully agree with Paolo, this kind of API is a complex solution to a simple need. I tried to make it work like this: Dim keyType As Object, valueType As Object, reflect As Object reflect = CreateUnoService(com.sun.star.reflection.CoreReflection) keyType = reflect.forName(string) valueType =

Re: [api-dev] Extremely slow performance with getCellByPosition

2010-11-08 Thread Bernard Marcelly
Hi, I used OOoBasic, which is not really fast. For the test my sheet had numbers on the first 637 rows, but the macro runs on 27001 rows. Sub Main Dim sh As Object, myCell As Object Dim x As Long, y As Long, t As Long sh = ThisComponent.Sheets(0) t = GetSystemTicks for y = 0 to 27000 for

[api-dev] Some consistency in IDL please

2010-10-29 Thread Bernard Marcelly
Hello, This is not a problem, just an annoyance which could be avoided. I downloaded the Dev SDK for version 3.3, and run a grep tool on all IDL files, to find out which files contain the string : @since The following remarks are also valid for previous versions. For the latest version 3.3.0

Re: [api-dev] [terrible solution..] Opening *.dbf file - workaround?

2010-08-11 Thread Bernard Marcelly
Message de Thomas Krumbein date 2010-08-11 14:48 : Hi, This old version may not be able to guess the import filter and encoding of the dBase document. Did you try to add this information? dim arg(2) as new com.sun.star.beans.PropertyValue arg(0).Name = Hidden arg(0).Value = true

Re: [api-dev] Searching for a Document Property - Writer

2010-08-04 Thread Bernard Marcelly
Message de Thomas Krumbein date 2010-08-04 11:24 : Hey, By one of my customer we have a problem during migration to OOo 3.2.1: The page-layout is different and this is dramaticly because the page break in now one line prior - and a lot of document didn´1 work as expected. Analysing the

Re: [api-dev] Re: ERRCODE_IO_CANTWRITE writing a PDF file

2010-07-29 Thread Bernard Marcelly
Message de Joaquin Cuenca Abela date 2010-07-29 11:58 : Any other ideas? Thanks! For what's worth (I am not fluent in Python), I do not understand this code (and similar for output) : self._toProperties( InputStream=inputStream, FilterName='writer8', ReadOnly=True) which calls this :

Re: [api-dev] Regarding max value of UnoControlNumericField

2010-06-15 Thread Bernard Marcelly
Message de Madhur Kashyap date 2010-06-15 12:21 : Hi, I am using OOO 3.2. I do not know the max value of the numeric field inputs I get from user. So, in other words I wan to leave it to the highest value supported by the precision of the field (double I believe). While creating the numeric

Re: [api-dev] Measuring time with OpenOffice.org BASIC

2010-05-30 Thread Bernard Marcelly
Message de Johnny Rosenberg date 2010-05-29 23:05 : I know about the GetSystemTicks() function, but isn't that System Ticks rather than time? Like CPU time or something like that. I want to know the time from when I start doing something until it's done in absolute time. now() would work if

Re: [api-dev] Measuring time with OpenOffice.org BASIC

2010-05-30 Thread Bernard Marcelly
Message de Konstantin Tokarev date 2010-05-29 19:10 : On MS-Windows the result is in milliseconds, with a precision of 16 ms due to IBM PC hardware design. Does it mean that results of OOo Basic scripts may be platform-dependent? Help says it depends on OS. I have not tested on other OS

Re: [api-dev] Measuring time with OpenOffice.org BASIC

2010-05-29 Thread Bernard Marcelly
Hello Johnny, Message de Johnny Rosenberg date 2010-05-29 17:53 : Have been searching in Help but I didn't find anything so far. I want the current time in ms, but all I find is the now() function which seems to have 1 s for resolution. Hints? If you want to measure short delays, see function

Re: [api-dev] options for the pdf export

2010-05-23 Thread Bernard Marcelly
Message de Ariel Constenla-Haile date 2010-05-21 04:34 : Hello Andreas, On Thursday 20 May 2010, 15:01, Andreas Mantke wrote: I have a look on the wiki site (http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export) and missed the option FitWindow. AFAIK there is no option (in the

Re: [api-dev] Form, how do I set Control Property to Empty (BackgroundColor)

2010-04-29 Thread Bernard Marcelly
Hi Johannes, Message de Johannes Öberg date 2010-04-29 15:11 : How can I set the BackgroundColor of a label to transparent from a macro? When I Xray BackgroundColor after setting it to Default from the Form designer, it says it is of type Empty. Should i remove the property? How do I do that?

Re: [api-dev] Embedding data files in Calc and extracting on need

2010-03-18 Thread Bernard Marcelly
Message de Madhur Kashyap date 2010-03-18 05:35 : Hi, I have built an application on top of openoffice calc using the Macro programming techniques. Now, some part of my application is in a compiled executable in a separate file which I invoke through a shell command. I want to distribute a

Re: [api-dev] From DDE link to cells

2010-03-12 Thread Bernard Marcelly
Message de Niklas Nebel date 2010-03-11 10:56 : On 03/10/10 21:08, Bernard Marcelly wrote: fp = ThisComponent.createInstance(com.sun.star.sheet.FormulaParser) fp.FormulaConvention = com.sun.star.sheet.AddressConvention.XL_OOX fp.ReferencePosition = c.CellAddress ftseq = fp.parseFormula

[api-dev] From DDE link to cells

2010-03-10 Thread Bernard Marcelly
Hi, The container DDELinks of a spreadsheet contains the DDE links used in the spreadsheet. Is it possible to find where (in which cells) a DDE link is used ? An idea is to scan cells containing formulas. But a call to DDE() function can appear in a complex form in a cell formula, so you need

Re: [api - dev] How to change Macro Security Level in program?

2010-01-29 Thread Bernard Marcelly
Hi, The option MacroExecutionMode does not change the security level in OpenOffice.org ! It only defines what to do if the document you are loading contains macros. If you decide to load a document so that macros that exist in the document will run without any warning, that is your

Re: [api-dev] How to use a PropertyChangeListener in Basic

2010-01-09 Thread Bernard Marcelly
Message de Regina Henschel date 2010-01-09 15:33 : Hello, I need to react on the change of the property CircleStartAngle and CircleEndAngle of an EllipseShape. I tried to use a PropertyChangeListener but it doesn't work. So I tried a PropertyChangeListener with a more simple example to

Re: [api-dev] How to use a PropertyChangeListener in Basic

2010-01-09 Thread Bernard Marcelly
Message de Regina Henschel date 2010-01-09 18:55 : OK, I see that all EllipseShape properties are without value change may be listened. So I have to find another way. But the property ZoomValue has got value change may be listened, and there is no reaction on changing zoom in Writer, Draw

Re: [api-dev] Trying to understand random access to a file with OpenOffice.org Basic

2010-01-04 Thread Bernard Marcelly
Message de Johnny Rosenberg date 2010-01-01 13:58 : The first thing I did was to look in AndrewMacro.odt, the famous macro document by Andrew Pitonyak. I found this example, and I actually also found the same example in the OpenOffice.org BASIC help section, that seems to be broken though (I

Re: [api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-19 Thread Bernard Marcelly
Hi Franck, I think callBack cannot be reliably used with Basic because you cannot know when the message list will be read. It can happen anywhere, as in this example: Option Explicit Private truc As Long Sub Main Dim ac As Object, oCallback As Object Dim n As Long truc = 0 ac =

[api-dev] Service SpreadsheetDocumentSettings

2009-11-08 Thread Bernard Marcelly
Hi all, Service css.sheet.SpreadsheetDocumentSettings is marked as deprecated since SDK 1.1. How can it be deprecated and have new properties added since OOo 3.0 ? [optional, property] boolean IsLoaded; [optional, property] boolean IsUndoEnabled; [optional, property] boolean

Re: [api-dev] loadcomponentfromurl

2009-11-06 Thread Bernard Marcelly
Hi, Message de Wei Min Teo date 2009-11-06 02:51 : Hi, I'm not going to use any filters or perhaps it automatically uses a default filter. Anyway, to clarify, I think my problem occurs with opening *.doc or *.ppt files. When I open it prompts me on which character encoding i want

Re: [api-dev] OpenOffice.org Macros.

2009-10-10 Thread Bernard Marcelly
Hi, Don't forget OpenOffice.org Help : F1 In Contents tab, see section Macros and Programming You will also find references for starters in the Wiki page http://wiki.services.openoffice.org/wiki/Extensions_development Regards Bernard Message de Juergen Schmidt date 2009-10-10 11:04 : Hi,

Re: [api-dev] OpenOffice.org 2.4.0 SDK download links are not working

2009-09-14 Thread Bernard Marcelly
Message de Jia, Yihan date 2009-09-10 12:15 : Hi, I am from London, UK and would like to download above SDK to work on a legacy internal project of my company. But the download links I tried on your download page ( http://download.openoffice.org/2.4.0/sdk.html ) are not working ( I tried

Re: [api-dev] OOoBasic: CreateUnoListener() returns references that can only be held by GLOBAL module vars and not PRIVATE vars ?

2009-09-06 Thread Bernard Marcelly
Hi again, Jan, Message de Jan Holst Jensen date 2009-09-05 22:10 : This behavior is not exactly clear from the Help description - here from the Help text about the Dim Statement: Dim declares local variables within subroutines. Global variables are declared with the PUBLIC or the PRIVATE

Re: [api-dev] Problems with Type…

2009-09-05 Thread Bernard Marcelly
Message de Johnny Rosenberg date 2009-09-05 13:24 : MyArray().Nick=TempArray(0) ' This line produces the error message ”BASIC runtime error. Object variable not set.” Then I expect the following variables containing the following: MyArray(1).Nick=One MyArray(2).Nick=Two

Re: [api-dev] OOoBasic: CreateUnoListener() returns references that can only be held by GLOBAL module vars and not PRIVATE vars ?

2009-09-05 Thread Bernard Marcelly
Hi Jan, Private or Public variables live only during execution of a macro. Global variables survive between two executions. In your dialog example this is same. The macro ShowDialog does not exit because Dlg.execute waits for the dialog to be closed. You can verify this by inserting a

[api-dev] Writer notes containing hyperlink

2009-09-03 Thread Bernard Marcelly
Hi developers, Could someone have a look at Issue 104513 : Writer notes containing hyperlink cannot be read by API http://www.openoffice.org/issues/show_bug.cgi?id=104513 I reproduce it again on 3.1.1. This is very disturbing because using correct API instructions you read only a part of a

Re: [api-dev] Bug when retrieving bookmarks with 3.1.0 ? = previous version

2009-08-25 Thread Bernard Marcelly
Hi Oscar, Message de Oscar Picasso date 2009-08-25 00:01 : Hi, I did install OpenOffice 3.1.0 and now some tests that used to pass with 3.0.1 don't pass anymore. The tests try to retrieve the bookmarks in a document. It uses the Java API: // accessing the Bookmarks collection of the

Re: [api-dev] How to enumerate text document by pages?

2009-08-20 Thread Bernard Marcelly
Hi Wei, Message de Wei Min Teo date 2009-08-21 05:50 : How can i enumerate through a text document by pages to check its individual header? Use interface com.sun.star.text.XPageCursor, from a com.sun.star.text.TextViewCursor. It provides, among others : boolean jumpToFirstPage() boolean

Re: [api-dev] OpenOffice.org BASIC - Global variables

2009-07-17 Thread Bernard Marcelly
Hi Johnny, Message de Johnny Rosenberg date 2009-07-17 18:21 : As I understand it, global variables should be declared first of all, before all subroutines and functions in a module, right? Like this: CODE Option explicit Global x As Long, y As Object, z As Variant, k As String Sub MySub1

Re: [api-dev] Avoiding Moving The Cursor Before Start of Document

2009-06-27 Thread Bernard Marcelly
Hi Hal, Message de Hal Vaughan date 2009-06-26 08:41 : Sub InsertAutoMacroText oDoc = ThisComponent oCurs = oDoc.getCurrentController().getViewCursor() iEnd = false iCount = 0 Do 'Go back one character, then get that character and put it in a separate variable 'for

Re: [api-dev] How to find the Default paragraph style

2009-06-12 Thread Bernard Marcelly
Hi Andrew, A style has an internal name and a localized display name. A custom style has the same internal name and display name. Built-in styles may have a display name different from the internal name. The built-in paragraph style with internal name : Standard has a display name Default in

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Bernard Marcelly
Message de Bart Aimar date 2009-06-05 12:20 : Thomas Krumbein ha scritto: Hey Bart, Hai Thomas, Works well under Vista and OOo 3.1 :-) Yes, under Vista seems working properly... like under Linux. Hi, I confirm on Windows XP, OOo 3.1.0 : - macro run on sheet 1 : OK - macro run on sheet

Re: [api-dev] Adding text to a TitleTextShape on an XDrawPage

2009-05-30 Thread Bernard Marcelly
Hi Jeremy, First add the form on the draw page. Then setString. Regards Bernard - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

Re: [api-dev] UNO API features question

2009-05-21 Thread Bernard Marcelly
Hi Richard, OpenOffice documents may be handled through COM Automation (on MS-Windows), using OpenOffice API. See the Developer's Guide http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Bridge/Automation_Bridge For an easy access with VB/VBA/VBScript, get VBx OOo tool :

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

2009-05-18 Thread Bernard Marcelly
Message de Ariel Constenla-Haile date 2009-05-14 17:04 : Hello Mathias, On Wednesday 13 May 2009, 14:14, Mathias Bauer wrote: 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

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

2009-05-12 Thread Bernard Marcelly
: issues 22625, 64800, 93716 Regards Bernard Marcelly - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

Re: [api-dev] OOo equivalent of Winword Sections

2009-05-02 Thread Bernard Marcelly
Hi Laurent, Your code does not work (in Basic). The number of sections is displayed by: print ThisComponent.getTextSections().getCount() Without any programming, the Navigator lists the sections in a document. For further investigation, delete any confidential data in your document and make it

Re: [api-dev] How to access the properties of an dialog which is not created at runtime

2009-04-30 Thread Bernard Marcelly
Hi Benjamin, The property Step is found on the model of the dialog and on the model of each control. See Developer's Guide, section Graphical User Interfaces Dialog Creation and its sub-sections. http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/GUI/Dialog_Creation Regards

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Bernard Marcelly
Hi Alex, According to the IDL documentation, XEventListener is deprecated. Use (still unpublished) XDocumentEventListener. http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentEventListener.html Regards Bernard Message de Alex P date 2009-04-29 12:37 : Hello! I've got a

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Bernard Marcelly
Message de Mikhail Voytenko date 2009-04-29 15:00 : Hi Bernard, Alex, com::sun::star::lang::XEventListener is not deprecated. The problem looks to be that the document implements two addEventListener() methods that differ only by the type of the provided argument. You need the one that gets

Re: [api-dev] Extension's help file(xhp) in Japanese

2009-04-10 Thread Bernard Marcelly
Hi, Message de sakimotok date 2009-04-10 12:20 : Hi, I am developing an extension using NetBeans OOo plugin. I followed the DeveloperGuide for adding a help file for extensions. The example worded fine. DevGuide:

Re: [api-dev] GroupShape in Java

2009-03-27 Thread Bernard Marcelly
Hi Ariel, Message de Ariel Constenla-Haile date 2009-03-27 11:58 : look at the code I attached to my answer in d...@graphics.openoffice.org (IIRC I CCed this list and you, so you'll get the fileon your mail). Grouping with a css.drawing.GroupShape seems not to work in Wirter (may be you

Re: [api-dev] GroupShape in Java

2009-03-26 Thread Bernard Marcelly
Hi Sebastian, Message de Sebastian Patschorke date 2009-03-26 16:50 : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! I asked my question at d...@graphics.openoffice.org. But Christian isn't sure about the support of the API. So I ask here again :-) See

Re: [Fwd: Re: [api-dev] How to search inside notes ?]

2009-03-25 Thread Bernard Marcelly
Hi all, As a reminder, I have created enhancement Issue 100557. http://www.openoffice.org/issues/show_bug.cgi?id=100557 I wish it can be included in version 3.2. Regards Bernard Message de Mathias Bauer date 2009-03-13 23:19 : Maximilian Odendahl wrote: Hi, Searching into Writer notes

Re: [api-dev] FilePicker now needs initialize (for some OS)

2009-03-15 Thread Bernard Marcelly
Hi all again, I have added Issue 100214 : FileControl control does not work in Vista or MacOS. So the problem is more general than thought in Issue 90219. Would be fine to correct it for 3.1... Regards Bernard Message de Bernard Marcelly date 2009-03-14 18:01 : Hi all, Users of OOo 3.0

[api-dev] FilePicker now needs initialize (for some OS)

2009-03-14 Thread Bernard Marcelly
Hi all, Users of OOo 3.0 on Windows Vista have complained that opening a file with com.sun.star.ui.dialogs.FilePicker simply does not do anything in Vista (while it works in Windows XP and other OS, and also on Vista with 2.4.2). This is only with the system FilePicker, not OpenOffice

[api-dev] How to search inside notes ?

2009-03-12 Thread Bernard Marcelly
Hi all, Searching into Writer notes is introduced with version 3.1. And it works, for the user. Question : how to do this with the API ? - service com.sun.star.util.SearchDescriptor does not document a corresponding boolean item. - function createSearchDescriptor returns an object without

Re: [api-dev] No more lck file with HSQLDB Base ?

2009-02-23 Thread Bernard Marcelly
Hi, Issue 97032 has target OOo 3.1 and indicated as verified fixed in CWS dba31h. Now, dba31h_OOO310 is integrated into OOO310m2 but the problem is still here : no lock file when opening an odb with integrated hsql database. Was the patch forgotten ? Regards Bernard Message de Frank

Re: [api-dev] XCell methods getValue and getError

2009-02-13 Thread Bernard Marcelly
Message de Petteri Larjos date 2009-02-13 15:34 : I am using UNO C++ API and need help with XCell interface (again). How I can set cell value to empty? I tried xCell-setFormula(OUString()) but xCell-getType() does not return CellContentType_EMPTY after that. Any ideas? I also need set cell

Re: [api-dev] Finding Formula objects in a Write document

2009-02-03 Thread Bernard Marcelly
Message de Andrew Douglas Pitonyak date 2009-02-03 16:50 : How can I find a Formula object in a paragraph? I used a simple enumeration of the text object, and I even found the text section containing the formula. I only know this, however, because I used a very simple document with simple

Re: [api-dev] Varying results when connecting to OOo through COM

2009-02-03 Thread Bernard Marcelly
Message de Bernard Marcelly date 2009-02-03 19:29 : Message de Cor Nouws date 2009-02-03 12:34 : Hi *, Some months ago, I reworked some functions in Lotus Script to connect with OpenOffice.org Part of the functions take care to insert and resize a picture. With some experience and info

Re: [api-dev] Basic: reading Locale from configuration returns only language for Dutch installation

2009-01-31 Thread Bernard Marcelly
Message de Cor Nouws date 2009-02-01 01:14 : reading this http://api.openoffice.org/docs/common/ref/com/sun/star/i18n/LanguageCountryInfo.html and knowing what is returned for other languages (en_GB for exmaple), I wonder how it is possible that for my local Dutch installation, I get only

Re: [api-dev] Problem with SXW filter in oo-2.4

2009-01-28 Thread Bernard Marcelly
Hi John, In OpenOffice 1.1.x the property Name of a shape in Writer is not shown by the user interface but it can be found and displayed by macro. I can confirm your observation, using OpenOffice 3.0 and 1.1.5. You don't need macros to reproduce. Create a Writer document in 3.0, add a

Re: [api-dev] Setting Cell Annotation text attributes

2009-01-17 Thread Bernard Marcelly
Message de Andrew Douglas Pitonyak date 2009-01-17 04:27 : I would also like to be able to set the font for text in a CellAnnotation (note). Using the GUI, I can select text in an annotation and set the font. When I look at the Wiki, it specifically says that I can not do this:

[api-dev] Usability of presentation.XSlideShowController

2009-01-08 Thread Bernard Marcelly
Hello, com.sun.star.presentation.XSlideShowController is still in unpublished state in the latest SDK. This interface has interesting features, many working but some do not work in DEV300m37. Is it useful to create issues ? Changing the value of attribute MouseVisible does not change the

[api-dev] No more lck file with HSQLDB Base ?

2008-12-08 Thread Bernard Marcelly
Hi, I am playing with DEV300m37 on Windows XP. I found that when I open a table or form in a Base document using internal HSQLDB, no xxx.lck file appears. In the same situation (same Base doc) in OOo 3.0 the .lck file does appear. Is it intentional ? Perhaps related to Issue 93381 ? Regards

Re: [api-dev] Removing focus from a control

2008-10-28 Thread Bernard Marcelly
Hi Andrew, I found the same problem with a simple control Button. You have to set focus again on the document window (sort of). Just add this instruction at end of your macro: oFrame.ContainerWindow.setFocus By the way, I did not know the .uno:SetInputMode trick ! __ Bernard Message de

[api-dev] How to choose ODF version in document saving

2008-10-23 Thread Bernard Marcelly
Hi, With OOo 3.0 API how can I store a document in a specific ODF version ? For example, with .store() or .storeAsURL() force the use ODF version 1.0/1.1, whatever the current value in Tools Options Save. Bernard - To

Re: [api-dev] API discussion/announce in the API mailing list?

2008-10-20 Thread Bernard Marcelly
Message de Ariel Constenla-Haile date 2008-10-20 05:06 : my proposal[1]: why not announcing and discussing this topics directly in *this* API mailing list? (and let [EMAIL PROTECTED]/ [EMAIL PROTECTED] for internal C++ API or whatever name you give to the core C++ code) They way I see it,

[api-dev] User cannot see document Custom Properties

2008-10-16 Thread Bernard Marcelly
Hello, Back one year ago a Gulfoss blog promised for OOo 3.0 a new UI to display or change value, add, remove document Custom Properties from menu File Properties. http://blogs.sun.com/GullFOSS/entry/custom_properties_and_fields Here is OOo 3.0.0, this user interface has not changed. Was it

Re: [api-dev] OOo 3.0 SDK

2008-10-14 Thread Bernard Marcelly
Hi, Message de Finn Gruwier Larsen date 2008-10-14 16:10 : Hi, Can anyone give me at clue when the SDK for 3.0 will be released? The SDK for 3.0.0 RC4 is already in the servers, section contrib/rc/3.0.0rc4/ The list of servers is available here http://distribution.openoffice.org/mirrors/

Re: [api-dev] Select function in XMenuListener is a reserved word

2008-09-19 Thread Bernard Marcelly
Hi Carlos, Message de Carlos Rocha date 2008-09-18 22:42 : Hi, I'm trying to make an activex wrapper in VB6 to simplify the use of listeners with automation bridge. With more or less work I've been able to put them to work, but now I got a problem I can't solve by myself :( The function

Re: [api-dev] Basic Dialogues doesn't look like when I created them.

2008-09-13 Thread Bernard Marcelly
Hi, Message de Johnny Rosenberg date 2008-09-14 02:27 : In this case I created the dialogue with OpenOffice.org 2.0.4, Operating system=Xandros for Eee PC (using an Eee PC 900, Swedish). After loading the document into my Ubuntu 8.04 laptop (not the Eee) with OpenOffice.org 2.4.1 it looks

Re: [api-dev] Non modal dialog staying in front ?

2008-08-24 Thread Bernard Marcelly
Hi Laurent :) You cannot put a dialog window at front _and_ work with another window : this is not a floating toolbar. A little improvement is to hide the current document window and show the dialog. The dialog window will be visible but of course out of focus if you work on another OOo

Re: [api-dev] XCellFormatRangesSupplier on multiple selections

2008-07-09 Thread Bernard Marcelly
Hi Dietmar, Message de Dietmar Hiller date 2008-07-09 21:23 : It works fine if I select a continous range of cells (e.g. A1:C3), but I select e.g. A1:A3 and C1:C3 (so 2 ranges), xFormatSupp is null. If you select several zones you get a com.sun.star.sheet.SheetCellRanges object. This is a

Re: [api-dev] How to use com.sun.star.ui.dialogs.FolderPicker such that it works as documented ?

2008-06-14 Thread Bernard Marcelly
Message de Thomas Krumbein date 2008-06-14 16:56 : Hi rony, Rony G. Flatscher schrieb: [..] Platform is Windows XP SP 3. [..] However, this does not work at all. Tried all variations (system file path, URL, with and without trailing slash, feeding the directory path exactly like the

Re: [api-dev] compile button in Basic IDE

2008-05-17 Thread Bernard Marcelly
Hi, Message de Cor Nouws date 2008-05-16 17:51 : Hi, The compile button in Basic IDE does very little for me. From former experiences, I expect it to give warnings for non declared variables, for example (option explicit ON, of course). Wrong expectation? Bug, Enhancement? The compile

Re: [api-dev] Reconising haard coded textportions

2008-04-30 Thread Bernard Marcelly
Message de Fernand Vanrie date 2008-04-29 16:14 : when a paragraph has only 1 textportion, the whole pargraph was hardcoded , then the PropertyState indicates that there was no hardcoding (com.sun.star.beans.PropertyState.DIRECT_VALUE = 1) Is this a issue are am i missing something Hi

Re: [api-dev] copy/paste with dispatcher

2008-04-24 Thread Bernard Marcelly
Message de Atte André Jensen date 2008-04-24 11:49 : Hi I'm trying to copy a part of a document while preserving the formatting with python. Here's the code I have: print rangeCursor.String controller = doc.getCurrentController() controller.select(rangeCursor) frame = controller.getFrame()

Re: [api-dev] copy/paste with dispatcher

2008-04-24 Thread Bernard Marcelly
Message de Atte André Jensen date 2008-04-24 13:56 : Bernard Marcelly wrote: Your Copy and Paste instructions work on the same range... You have to select the origin range, Copy, select the destination range, Another angle (that also suggests something else is wrong): I recorded a simple

Re: [api-dev] Naming a Toolbar Add-On

2008-04-04 Thread Bernard Marcelly
Message de Tobias Krais date 2008-04-04 10:55 : Hi Ariel, thank you for your help. I tested a lot but had no success... Have a look at the Extension Compiler http://wiki.services.openoffice.org/wiki/Extensions_Packager#Extension_Compiler It may look complex at first sight, but it's easier

Re: [api-dev] any workaround for issue 84718?

2008-02-27 Thread Bernard Marcelly
Message de Mathias Röllig date 2008-02-27 15:38 : Hello! I created a form document for a costumer so one can dial a phone number from this form. The macrocode for this uses SystemShellExecute. It worked fine until OOo 2.1. Now it doesn't work but the costumer want to use it. The target of

Re: [api-dev] How to use structs with COM/Automation?

2008-02-26 Thread Bernard Marcelly
Message de Dmitry Teslenko date 2008-02-26 16:04 : Hello! I've using OO api via COM/Automation and I've stumbled upon this thing: I can't instantiate/manipulate structs such as com.sun.star.beans.PropertyValue or com.sun.star.table.CellAddress. COM/Automation is acessed via Trolltech Qt's

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

2008-02-20 Thread Bernard Marcelly
Message de Tobias Krais date 2008-02-19 12:28 : 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] CustomShapes not visible after drawing with API

2008-01-30 Thread Bernard Marcelly
Message de Daniel Rentz date 2008-01-30 15:43 : Sven Jacobi schrieb: To ease the creation of shapes, we added the interface com::sun::star::drawing::XEnhancedCustomShapeDefaulter which is able to create the geometry for many shapes. But I am sorry, this Interface is not yet accessible from

Re: [api-dev] How to now when a structure is empty ?

2008-01-08 Thread Bernard Marcelly
Message de Fernand Vanrie date 2008-01-08 13:47 : For retrieving the demensions of an TextTablecell i uses : CurRow.TableColumnSeparators() who gives me a structure widt isVisible and Position of all the columns off the row. when the cells are merged then there is no longer a Separator

Re: [api-dev] How to unselect a current sleection

2008-01-07 Thread Bernard Marcelly
Message de Fernand Vanrie date 2008-01-07 12:26 : Hei, I need the current selection made by the UI but after I worked on the object I wont to UNselect the slection made by the UI so in basic: object = thiscomponent.getcurrentselection i do somthing with the object and now I hav to

Re: [api-dev] Get XTextTable service, cursor is in (Java)

2008-01-03 Thread Bernard Marcelly
Message de Dietmar Hiller date 2008-01-03 19:46 : I am trying to change the border of a texttable, the cursor is in. In OOo Basic it worked like this: What you are trying is not easy, because it depends on what is selected. In the simplest case, nothing is selected, the cursor is inside a

Re: [api-dev] Constant group with varying datatypes ?

2007-12-30 Thread Bernard Marcelly
Message de Rony G. Flatscher date 2007-12-29 22:50 : Jim White wrote: Rony G. Flatscher wrote: just curious: ran over the definition of com.sun.star.packages.zip.ZipConstants, which lists constant values of *different/varying* (!) types! Is that an error or to be expected? ... And if you

  1   2   >