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
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
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
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
*
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
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
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
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
-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
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
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
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"
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{
/*
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
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
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
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
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
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
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
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
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:
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
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
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?
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
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
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
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
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.
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
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(
32 matches
Mail list logo