[api-dev] Error with SampleThesaurus in OpenOffice SDK

2006-02-20 Thread RKVS Raman
Hi, In the SampleThesaurus under OfficeDev/Linguist the following method will crash the OpenOffice for any word other than 'house' . This is because aRes is null. Please see that aRes never becomes null in your implementation else it will crash the program. public XMeaning[] queryMeanings(

Re: [api-dev] FaltXml import export filter

2006-02-20 Thread M. Niedermair
Hi, which gcc version do you use? You need at least gcc 3.0.1 and i would recommend gcc 3.4.1 g++ --version g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO

Re: [api-dev] service css.util.SearchDescriptor

2006-02-20 Thread Jürgen Schmidt
Hi Paolo, Paolo Mantovani wrote: Hi all, running this code, in calc: oDesc = ThisComponent.Sheets(0).createSearchDescriptor() print oDesc.dbg_properties you will see a property (among others, obvious): SearchType (integer) This property appears not documented in the IDL:

Re: [api-dev] API design question

2006-02-20 Thread Jürgen Schmidt
Hi Paolo, Paolo Mantovani wrote: Hi, the css.util.XSearchable has the methods: findFirst findNext findAll but the css.util.XReplaceable has only the method replaceAll There are any design reasons for this missing? good question, i don't know. But i assume that XReplaceable is simply a

Re: [api-dev] FaltXml import export filter

2006-02-20 Thread Jürgen Schmidt
M. Niedermair wrote: Hi, which gcc version do you use? You need at least gcc 3.0.1 and i would recommend gcc 3.4.1 g++ --version g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying

Re: [api-dev] Unanswered Request - Fw: [api-dev] HTML and Spreadsheet - BASIC

2006-02-20 Thread Stephan Wunderlich
Hi Rudolf, thank you for your prompt message. you are most welcome :-) I tried VISIBLE = TRUE also. It shows the the link LINK, but I do not see the contents. The problem seems to be to get the contents into a defined cell. Apparently, I have to enlarge the size of the cell. Is there a

[api-dev] Adding menus / menu items at Runtime

2006-02-20 Thread Tobias Krais
Hi Carsten, Yes, you can also use Java. The example uses a UNO API, therefore you can use any supported language. sounds very good. At the moment I am reading your document http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw and up to now it is easy

Re: [api-dev] service css.util.SearchDescriptor

2006-02-20 Thread Jürgen Schmidt
Hi Paolo, Paolo Mantovani wrote: Hi Jürgen, Alle 09:10, lunedì 20 febbraio 2006, Jürgen Schmidt ha scritto: [...] This property appears not documented in the IDL: http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchDescrip tor.html Is perhaps this property documented elsewhere?

Re: [api-dev] Adding menus / menu items at Runtime

2006-02-20 Thread Tobias Krais
Hi Carsten, sounds very good. At the moment I am reading your document http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw You are right that examples are missing. The most important task of the document is to describe the design and the implementation

Re: [api-dev] service css.util.SearchDescriptor

2006-02-20 Thread Paolo Mantovani
Hi Jürgen, Alle 09:10, lunedì 20 febbraio 2006, Jürgen Schmidt ha scritto: [...] This property appears not documented in the IDL: http://api.openoffice.org/docs/common/ref/com/sun/star/util/SearchDescrip tor.html Is perhaps this property documented elsewhere? no, it is nowhere

Re: [api-dev] service css.util.SearchDescriptor

2006-02-20 Thread Niklas Nebel
Paolo Mantovani wrote: Unfortunately I would need to understand what kind of values can take this property. 0 to search in formula text, 1 to search in formula results (both will also find non-formula cell content), 2 to search in notes only. This is needed for my Dispatch2Api Recorder

[api-dev] OpenNewView

2006-02-20 Thread Vincenzo Giuliano
Hi ALL, I have a serious problem. I try to open a Calc file in this way XComponent comp= xComponentLoader.loadComponentFromURL(path_file.ods,_default,FrameSearchFlag.AUTO,new PropertyValue[0]); I try to open a new view subsequently PropertyValue[] props = new PropertyValue[1]; props[0] = new

Re: [api-dev] Adding menus / menu items at Runtime

2006-02-20 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten, sounds very good. At the moment I am reading your document http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw You are right that examples are missing. The most important task of the document is to describe the design

Re: [api-dev] FaltXml import export filter

2006-02-20 Thread M. Niedermair
Hi Jürgen, It is possible, that there is a blank between fdcomp.o and -luno... missing? mmh, probably not it works fine for me You an SDK version which is not prepared to work with gcc 4.x.x. Please check in your sdk/settings.mk file the section for Linux and ensure that COMID=gcc3

[api-dev] Re: Re:Re: Re: Load Excel file (.xls)

2006-02-20 Thread Vincenzo Giuliano
Andreas Schlüns wrote: Does this solve your problems realy ? If it's so - please make realy sure your file is a real xls - file. Your code isnt realy a fix ... it has some other disatvantages. Please use the normal API of OOo - not the command line. As Jürgen already mentione: please file

Re: [api-dev] Re:Re: Re: Load Excel file (.xls)

2006-02-20 Thread Andreas Schlüns
Vincenzo Giuliano wrote: Hi ALL, I come to a conclusion. This code start a .xls file (if it exists). I accept any advice. public class LoadExcel { /[EMAIL PROTECTED] null if url don't exists*/ public static XModel startExcelFile(String urlExcelFile)throws java.lang.Exception{

[api-dev] Re: [SOLVED] [api-dev] Adding menus / menu items at Runtime

2006-02-20 Thread Tobias Krais
Hi Carsten, For explanation: I create a menu called JUDAS and this menu is shown. Then I want to create a menu item called JUDAS_Test and I add it to the menu. But only a separator is shown. When I copy e.g. the File menu into the JUDAS menu (as a submenu), the item JUDAS_Test is suddenly

Re: [api-dev] service css.util.SearchDescriptor

2006-02-20 Thread Paolo Mantovani
Hi Niklas, Alle 12:20, lunedì 20 febbraio 2006, Niklas Nebel ha scritto: Paolo Mantovani wrote: Unfortunately I would need to understand what kind of values can take this property. 0 to search in formula text, 1 to search in formula results (both will also find non-formula cell content),

[api-dev] how to access the autofilter feature ?

2006-02-20 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I tried to enable the autofilter feature for a named range using oo api ... First I recorded the following macro: - --8 Sub DataFilter() Dim oDoc as Object Dim dispatcher as Object

Re: [api-dev] Java: Getting Access to a menu in menubar

2006-02-20 Thread Carsten Driesner
Tobias Krais wrote: Hi ML, in Java I try to get access to the file menu during runtime. Now I am able to create a new menu, but I don't get access the file menu to be able to change it, see comments -%- com.sun.star.ui.XUIElement myMenubar =

Re: [api-dev] C++ and Exeptions: No message-text?!

2006-02-20 Thread Stephan Bergmann
Martin Thoma wrote: Hello! I have some problems concerning exceptions in C++. For example take this code, which just stores a document. If the file already exists or the writing fails, because we want to write on a removable disk which is not inserted, the catch-block is executed, which is

[api-dev] Java: adding functionality to newly created menu item

2006-02-20 Thread Tobias Krais
Hi all, after I created successfully a new menu and menu item I now want to add functionality to the menu item. The functionality should be implemented in Java. Can you tell me where to start to learn doing this, or tell me some package- / interfacenames that are involved in doing this? My goal

Re: [api-dev] Java: adding functionality to newly created menu item

2006-02-20 Thread Tom Schindl
does this snippet help? I don't know but it deals with toolbars. http://codesnippets.services.openoffice.org/Office/Office.AddingACombo_boxToAToolbar.snip Tom Tobias Krais wrote: Hi all, after I created successfully a new menu and menu item I now want to add functionality to the menu item.

[api-dev] Java: Getting Access to a menu in menubar

2006-02-20 Thread Tobias Krais
Hi ML, in Java I try to get access to the file menu during runtime. Now I am able to create a new menu, but I don't get access the file menu to be able to change it, see comments -%- com.sun.star.ui.XUIElement myMenubar =