[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 = xLayoutManager.getElement("private:resource/menubar/menu

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 it

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

[api-dev] Re: OpenNewView

2006-02-20 Thread Vincenzo Giuliano
Abstract: Vincenzo Giuliano wrote: >I am not able to open new view on calc document > > Whoever seeks will find. I writed this method which is fit for every OO Document and it opens always the view. what do you think of it? Can I improve it? /**return XController if the model exists *

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

2006-02-20 Thread Mathias Bauer
Vincenzo Giuliano wrote: > Hi ALL, > I come to a conclusion. > This code start a .xls file (if it exists). > I accept any advice. (snip) > Runtime r = Runtime.getRuntime(); > Process p = r.exec("soffice -calc "+urlExcelFile); If this loads the file into Calc while loading it wit

Re: [api-dev] API design question

2006-02-20 Thread Mathias Bauer
Paolo Mantovani wrote: > In effect, in a 'normal' use case I would accomplish the thing exactly as you > described. > Anyway I'm currently "translating" dispatch commands to API calls. > As you know the S&R dialog in Calc allows the user to replace occourrences > one > by one. > Translating thi

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 corre

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 = xLayoutManager.getElement("private

[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] Re: Re:Re: Re: Load Excel file (.xls)

2006-02-20 Thread Andreas Schlüns
Vincenzo Giuliano wrote: Hi Andreas, I already answered in another mail. The file was corrupted probably or was not maybe an excel file in real. I paste the mail below. I've readed this email too. But I've tried to mention that using the command line in combination with using the UNO API is

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 con

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

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

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 /settings.mk file the section for Linux and ensure that COMID=gcc3 CPPU_ENV=gc

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 and

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

2006-02-20 Thread Carsten Driesner
Tobias Krais wrote: 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

[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] 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" pro

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 nowhe

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 implem

Re: [api-dev] FaltXml import export filter

2006-02-20 Thread M. Niedermair
fine but still interesting, which version of gnu make do you use, which shell do you use? As i already mentioned it works for me under linux in the morning. GNU Make 3.81beta4 GNU bash, version 3.1.5(1)-release (i486-pc-linux-gnu) XTerm(209) mit kconsole genauso: Qt: 3.3.5 KDE: 3.5.1 Konsole:

Re: [api-dev] FaltXml import export filter

2006-02-20 Thread Jürgen Schmidt
M. Niedermair wrote: 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 /settings.mk file the section for Linux and ensure that

Re: [api-dev] API design question

2006-02-20 Thread Paolo Mantovani
Alle 09:21, lunedì 20 febbraio 2006, Jürgen Schmidt ha scritto: > 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 > > > > Th

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?

[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

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 me

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 condition

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 k

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: http://api.

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 warran

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