Re: [api-dev] XField vs XField2: a question ?

2005-08-03 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi there, while working a little bit with the reflection interface I have been stumbling over the following: com.sun.star.reflection.XField is deprecated in favor of com.sun.star.reflection.XField2. All signatures are the same except for set(), where the

Re: [api-dev] XField vs XField2: a question ?

2005-08-03 Thread Daniel Boelzle
while working a little bit with the reflection interface I have been stumbling over the following: com.sun.star.reflection.XField is deprecated in favor of com.sun.star.reflection.XField2. All signatures are the same except for set(), where the first argument changed from [in] to [inout].

Re: [api-dev] Deprecated getInterfaces() in XIdlClass ?

2005-08-03 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi there, it seems that the official way of getting all the interfaces there are is only available via an object which possesses the XTypeProvider interface. Does this mean that one could not infer from an UNO class object which interfaces it supplies, but

Re: [api-dev] Interface classes: assumptions correct?

2005-08-03 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi there, are the following few assumptions correct? * Interface class names in UNO always start with a capital X only. yes * Interface classes must not have fields (they consist of methods only). no, the was the recommendation in the past but with

[api-dev] Insert embedded graphic by breaking the image link

2005-08-03 Thread MuiFull Tam
Hi all, I would like to insert embedded graphics into Writer. By using the API, I could successfully insert graphics which are linked to image files. I realize that there is a Link menu under the Edit menu which displays a dialog box and allow the removal of links. I suppose this option fits

Re: [api-dev] Difficulties to understand Javamaker error

2005-08-03 Thread Jürgen Schmidt
Hi Cedric, [EMAIL PROTECTED] wrote: Hi all, I had an javamaker error that I didn't understood: Cannot create temporary file for a file that should be generated I got this by running the SDK 1.9.113 javamaker on a Linux Debian system (I checked the permissions and quotas: it is OK) and my

Re: [api-dev] Deprecated getInterfaces() in XIdlClass ?

2005-08-03 Thread Arnulf Wiedemann
Hi Rony, what I did to solve a similar problem: I am using the service /singletons/com.sun.star.reflection.theTypeDescriptionManager instantiated by using interface: com.sun.star.uno.XComponentContext, method: getValueByName From that I can query the interface: XTypeDescriptionEnumerationAccess

Re: [api-dev] Insert embedded graphic by breaking the image link

2005-08-03 Thread MuiFull Tam
HI Stephan, I tried with your solution and it worked perfectly. :) Thanks for taking time! I will try also the solution from Christian and compare which one performs better. Thanks again for your help! Best Regards, MuiFull Stephan Wunderlich wrote: Hi MuiFull, I couldn't find any

Re: [api-dev] Deprecated getInterfaces() in XIdlClass ?

2005-08-04 Thread Rony G. Flatscher
Hi Arnulf, thank you very much for your valuable hint! Will try to apply it... Regards, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] Browsing the source code

2005-08-04 Thread Senthilkumar Mehalingam
Hi All, Below is a note from the Developers guide(http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.pdf) Pg 327 Chapter 5 Design patterns and coding recommendations for OpenOffice.org. Possible candidates are: • Singleton:

Re: [api-dev] Ad XInterfaceMemberTypeDescription (Re: [api-dev] Deprecated getInterfaces() in XIdlClass ?

2005-08-04 Thread Rony G. Flatscher
Hi Arnulf, if you use the stuff I described in my last email, having the XInterfaceTypeDescription you can directly query for the XInterfaceMemberTypeDescription. Calling method getMembers you get a sequence of objects. With these objects you can queryInterface for

Re: [api-dev] Ad XInterfaceMemberTypeDescription (Re: [api-dev] Deprecated getInterfaces() in XIdlClass ?

2005-08-04 Thread Rony G. Flatscher
Hi Arnulf, Arnulf Wiedemann wrote: Yes, I have written a tcluno library which can drive ooo from TCL using as the underlaying base the ooo C++ UNO interface. That is at the moment only running on Linux, but I hope with the help of Christian Junker, we have that running soon on Windows and

Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-05 Thread Daniel Boelzle
Hello Rony G., theTypeDescriptionManager=(XMultiComponentFactory) UnoRuntime.queryInterface( XMultiComponentFactory.class, xcc.getValueByName(/singletons/com.sun.star.reflection.theTypeDescriptionManager)); I assume a copy-paste bug in your code:

[api-dev] Re: [dev] Style change listener for calc.

2005-08-05 Thread Dinesh Varadharajan
Hi Eike, I am using calc component in one of my projects. And I specifically need this. XEventBroadcaster is broadcasting something is modified but I am not able to get the change information. Thanks, Dinesh Eike Rathke wrote: Hi Dinesh, On Thu, Aug 04, 2005 at 23:05:07 +0530, Dinesh

Re: [api-dev] Almost there? (Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-05 Thread Rony G. Flatscher
Hi Jürgen, * a) use theTypeDescriptionManager.getByHierarchicalName( strClassName ); e.g. receiving an exception com.sun.star.container.NoSuchElementException: com.sun.star.comp.helper.Bootstrap, if using com.sun.star.comp.helper.Bootstrap as the class name.

[api-dev] TCLUNO ... (Re: [api-dev] Almost there? (Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-05 Thread Rony G. Flatscher
Hi Arnulf, I don't know, what you are looking exactly for, but try that link and see if it is something in the direction you want: http://www.tugm.de/Projekte/TCLUNO/index.html English: http://www.tugm.de/Projekte/TCLUNO/index.html.en It is an Introspection Tool using tcluno, written in

Re: [api-dev] TCLUNO ... (Re: [api-dev] Almost there? (Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-05 Thread Arnulf Wiedemann
Hi Rony, Am Freitag, 5. August 2005 20:36 schrieb Rony G. Flatscher: Hi Arnulf, I don't know, what you are looking exactly for, but try that link and see if it is something in the direction you want: http://www.tugm.de/Projekte/TCLUNO/index.html English:

Re: [api-dev] Browsing the source code

2005-08-06 Thread Senthilkumar Mehalingam
Hi All, Below is a note from the Developers guide(http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.pdf) Pg 327 Chapter 5 Design patterns and coding recommendations for OpenOffice.org. Possible candidates are: • Singleton:

[api-dev] existing UNO bridges

2005-08-07 Thread Christian Junker
I was trying to get the names of the existing UNO bridges implemented into the office. When testing it from Starbasic, like so code Sub Main bridgefac = createUNOService(com.sun.star.bridge.BridgeFactory) msgbox UBound(bridgefac.getExistingBridges()) End Sub /code the msgbox gives me a value of

[api-dev] Active cell from selection

2005-08-08 Thread Jayant Balraj Madavi
Hi, I create a Range from Selection. how do I find the active cell ?? uno::Reference frame::XModel xModel( m_xDesktop-getCurrentComponent(), uno::UNO_QUERY );

Re: [api-dev] Fwd: Retrieving list of _existing_ printers

2005-08-09 Thread Christian Andersson
Turbo Fredriksson wrote: when I asked about this a long time ago, I was told that ther is no such thing in openoffice and I should use the api of the language to do this. for example if you are using java, use the java-api for finding the printers the code below might help you if you are using

Re: [api-dev] Almost there? (Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-09 Thread Rony G. Flatscher
Hi Jürgen * b) using XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() yields always an empty XTypeDescriptionEnumeration. mmh, that is maybe a bug but i am not sure and have to take a closer look into the code. Hoping it is not a bug, but something I am

Re: [api-dev] Almost there? (Re: [api-dev] /singletons/com.sun.star.reflection.theTypeDescriptionManager available in which context ?

2005-08-09 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi Jürgen * b) using XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() yields always an empty XTypeDescriptionEnumeration. mmh, that is maybe a bug but i am not sure and have to take a closer look into the code. Hoping

[api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-09 Thread Rony G. Flatscher
Hi Jürgen, thank you for your feedback. It has clarified some things for me, but also one point is still up: XTypeDescriptionEnumerationAccess .createTypeDescriptionEnumeration() seems not to work as announced in the docs: the enumeration can be restricted if one supplies a sequence of

Re: [api-dev] [CPHennessy] [users] Print order '4; 1; 2; 3'?

2005-08-10 Thread Mathias Röllig
Am 10.08.2005 09:47 schrieb Turbo Fredriksson: I don't know, why you would specifify the pageorder. If you print pages 1-8 with the 'brochure' option, you will get a 'book' with 8 pages in the right order. Also pages 9-16, 17-32 aso. Oki, so which variable do i set for this? I can set the

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-10 Thread Rony G. Flatscher
Hi Jürgen, public class TestTDEnum { static String unoURL=null; static XComponentContext context=null; static XUnoUrlResolverxuur=null; static XNamingService xns=null; static XMultiComponentFactory xmcf=null; static XComponentContext

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-10 Thread Jürgen Schmidt
Hi Rony, i haven't tested your Java program but i have tested it in Basic and it works as expected sub Main servicemgr = getProcessServiceManager() tdmgr = servicemgr.DefaultContext.getValueByName(/singletons/com.sun.star.reflection.theTypeDescriptionManager) Dim types(1) types(0)=

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-08-10 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

Re: [api-dev] Reminder: [api-dev] Style change listener for calc.

2005-08-11 Thread Eike Rathke
Hi Dinesh, On Thu, Aug 11, 2005 at 12:32:34 +0530, Dinesh Varadharajan wrote: Is this a current limitation. Yes, it is. I am expecting XModifyBroadCaster to broadcast even the style change information.. As I already wrote, we currently don't support that. What do you expect to achieve by

[api-dev] Problem to identify the name of a chart

2005-08-12 Thread Sacha Warning
Hello, I'm working on an OpenOffice-based Report-Framework and have a problem with the identification of a chart by its name. The methods XTableCharts.getElementNames() and XTableCharts.getByName(String) refer to the internal name of the chart, i.e. Object 1. What I need is the name, which the

Re: [api-dev] Problem to identify the name of a chart

2005-08-12 Thread Stephan Wunderlich
Hi Sacha I'm working on an OpenOffice-based Report-Framework and have a problem with the identification of a chart by its name. The methods XTableCharts.getElementNames() and XTableCharts.getByName(String) refer to the internal name of the chart, i.e. Object 1. What I need is the name, which

Re: [api-dev] [CPHennessy] [users] Print order '4; 1; 2; 3'?

2005-08-13 Thread Andrew Douglas Pitonyak
Mathias Röllig wrote: Am 10.08.2005 09:47 schrieb Turbo Fredriksson: I don't know, why you would specifify the pageorder. If you print pages 1-8 with the 'brochure' option, you will get a 'book' with 8 pages in the right order. Also pages 9-16, 17-32 aso. Oki, so which variable do

Re: [api-dev] Active cell from selection

2005-08-13 Thread Andrew Douglas Pitonyak
Jayant Balraj Madavi wrote: Hi, I create a Range from Selection. how do I find the active cell ?? uno::Reference frame::XModel xModel( m_xDesktop-getCurrentComponent(), uno::UNO_QUERY );

Re: [api-dev] [CPHennessy] [users] Print order '4; 1; 2; 3'?

2005-08-13 Thread Marc Santhoff
Am Samstag, den 13.08.2005, 17:21 -0400 schrieb Andrew Douglas Pitonyak: Mathias Röllig wrote: [...] I think you need http://api.openoffice.org/docs/common/ref/com/sun/star/text/PrintSettings.html#PrintProspect greetings Mathias What is Prospect Printing? Until now I have

Re: [api-dev] [CPHennessy] [users] Print order '4; 1; 2; 3'?

2005-08-14 Thread Aleksandar Dezelin
I'm from Serbia, sometimes we also say prospekt which means brochure. I guess we're taken this word from German. cheers, Aleksandar Dezelin On 8/14/05, Mathias Röllig [EMAIL PROTECTED] wrote: Hi Andrew! Am 13.08.2005 23:21 schrieb Andrew Douglas Pitonyak: But I can't figure out a way to

Re: [api-dev] [CPHennessy] [users] Print order '4; 1; 2; 3'?

2005-08-14 Thread Andrew Douglas Pitonyak
Marc Santhoff wrote: Am Samstag, den 13.08.2005, 17:21 -0400 schrieb Andrew Douglas Pitonyak: Mathias Röllig wrote: [...] I think you need http://api.openoffice.org/docs/common/ref/com/sun/star/text/PrintSettings.html#PrintProspect greetings Mathias What is

[api-dev] cannot compile 1.1.5 (SRX645_m57)

2005-08-15 Thread Giuseppe Castagno
Hi all, I'm trying to build the 1.1.5-rc2 version (tag SRX645_m57) under Windows XP Pro. The compilation stops with the following log: guw.pl /cygdrive/c/PROGRA~1/MICROS~2/VC98/bin/cl.exe @/tmp/mkN15nWd Command: /cygdrive/c/PROGRA~1/MICROS~2/VC98/bin/cl.exe MutableAttrList.cxx

Re: [api-dev] META-INF and mimetype files in zip archive

2005-08-15 Thread Mikhail Voitenko
Hi Michele, That happens because the initial purpose of the Package service is to access OOo packages formats, and META-INF/manifest.xml is part of this format. If a pure zip-file access is requested then either the special UCP should be used or the Package service must be initialized in a

Re: [api-dev] Interface classes: assumptions correct?

2005-08-15 Thread Stephan Bergmann
Jürgen Schmidt wrote: Hi Rony, Rony G. Flatscher wrote: Hi there, are the following few assumptions correct? * Interface class names in UNO always start with a capital X only. yes But note that this is only a convention. For the OOo (and URE) UNO APIs, this convention will

Re: [api-dev] Interface classes: assumptions correct?

2005-08-15 Thread Rony G. Flatscher
Hi Stephan, are the following few assumptions correct? * Interface class names in UNO always start with a capital X only. yes But note that this is only a convention. For the OOo (and URE) UNO APIs, this convention will probably always be followed---but in general, UNO and UNOIDL

Re: [api-dev] Interface classes: assumptions correct?

2005-08-15 Thread Jürgen Schmidt
Rony G. Flatscher wrote: Hi Stephan, are the following few assumptions correct? * Interface class names in UNO always start with a capital X only. yes But note that this is only a convention. For the OOo (and URE) UNO APIs, this convention will probably always be followed---but

[api-dev] macro to add a new curve in a Calc diagram

2005-08-15 Thread ch'prof
A Calc sheet contains myDiagram which refers to A1:B31 cells. myDiagram.ChartRangeAddress sends the following string :'mySheet'.$A$1:.$B$31 I want my macro to add a new curve in it, with datas located in A32:C33. I used myDiagram.ChartRangeAddress= "'mySheet'.$A$1:.$C$33" and multiple

Re: [api-dev] macro to add a new curve in a Calc diagram

2005-08-16 Thread Stephan Wunderlich
Hi ch'prof, A Calc sheet contains myDiagram which refers to A1:B31 cells. myDiagram.ChartRangeAddress sends the following string : 'mySheet'.$A$1:.$B$31 I want my macro to add a new curve in it, with datas located in A32:C33. I used myDiagram.ChartRangeAddress= 'mySheet'.$A$1:.$C$33 and

[api-dev] Connect to a remote office on another machine from SB

2005-08-18 Thread Christian Junker
Hi all, often it has been talked about that OOo is perfectly capable of acting as a server on one machine and listening for UNO connections from other machines. Up till now I haven't seen a lot of examples showing this, so I just wanted to test if this was practically possible (inspired by a

[api-dev] Having a FilePicker: how to bring it to front ?

2005-08-18 Thread Rony G. Flatscher
Hi there, did try to find a solution firstly by searching the api-search interface to no avail. (E.g. http://api.openoffice.org/servlets/Search?scope=projectAndSubsresultsPerPage=40query=bring+to+frontButton=Go, short of a document object at that point in time I cannot try to use that for

RE: [api-dev] cannot compile 1.1.5 (SRX645_m57)

2005-08-19 Thread Giuseppe Castagno
it seems the problem was with the old VC6 compiler version I was using. After changing to .NET 2002 the problem solved by itself. Giuseppe. -Original Message- From: Giuseppe Castagno [SMTP:[EMAIL PROTECTED] Sent: Monday, August 15, 2005 11:35 To: dev@api.openoffice.org Subject:

[api-dev] Text Table Column properties

2005-08-19 Thread Przemek Króliszewski
Hi Is there an easy way to change properties of text table column, i.e the back color of the column. When i read this mailing list posts i found a post that suggests to use text table rows, but for large tables this is not efficient. Any suggestions? Regards Przemek Kroliszewski

Re: [api-dev] Text Table Column properties

2005-08-19 Thread Stephan Wunderlich
Hi Przemek Is there an easy way to change properties of text table column, i.e the back color of the column. When i read this mailing list posts i found a post that suggests to use text table rows, but for large tables this is not efficient. The macro sub Main atable =

Re: [api-dev] Text Table Column properties

2005-08-19 Thread Przemek Króliszewski
Stephan Wunderlich napisał(a): Hi Przemek Is there an easy way to change properties of text table column, i.e the back color of the column. When i read this mailing list posts i found a post that suggests to use text table rows, but for large tables this is not efficient. The

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-19 Thread Stephan Wunderlich
Hi Rony, What would be a starting point to research to get the FilePicker to the front programmatically (without having a document object yet)? Now I'm curious ... the filepicker is a modal dialog that is always on top and can't be moved to the back ... just to be sure I opened it via

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-19 Thread Rony G. Flatscher
Hi Stephan, What would be a starting point to research to get the FilePicker to the front programmatically (without having a document object yet)? Now I'm curious ... Great! ;) the filepicker is a modal dialog that is always on top and can't be moved to the back ... just to be sure I

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-08-19 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

Re: [api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2005-08-22 Thread Jayant B M
Hi, On Tue, 2005-08-09 at 06:27 +0200, Michael Hoennig wrote: Dear OpenOffice.org community, This is the 2-weekly announcement of current issues regarding the OOo API project which I want to hightlight to the community. *** =

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-22 Thread Stephan Wunderlich
Hi Rony, *WOW*, *that* made it work, thank you *very* much!! (Did try it on OOo 1.1.4 and 1.9.122.) great :-) Now a lest (little?) request: how can one set the properties for OOo altogether (would just need a hint where - which class - or code-samples to start researching this corner of

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-23 Thread Rony G. Flatscher
Hi Stephan, I suppose you mean the things you can adjust via Tools-Options ... these are stored in the Configuration and how to access this can be found in the appropriate Developers Guide Chapter ... http://api.openoffice.org/docs/DevelopersGuide/Config/Config.htm Thank you very much for

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Rony G. Flatscher
Hi Jürgen, i haven't tested your Java program but i have tested it in Basic and it works as expected have you had a chance to test it in the meantime (as mentioned, it doesn't work with INFINITE either)? If so, would you qualify this a bug that should get checked into the bug database?

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi Jürgen, i haven't tested your Java program but i have tested it in Basic and it works as expected have you had a chance to test it in the meantime (as mentioned, it doesn't work with INFINITE either)? If so, would you qualify this a bug that should

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Rony G. Flatscher
Hi Jürgen, have you had a chance to test it in the meantime (as mentioned, it doesn't work with INFINITE either)? If so, would you qualify this a bug that should get checked into the bug database? i have slighty modified your example to make use of the simple bootstrap feature. Everything

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Jürgen Schmidt
Hi Rony, Rony G. Flatscher wrote: Hi Jürgen, have you had a chance to test it in the meantime (as mentioned, it doesn't work with INFINITE either)? If so, would you qualify this a bug that should get checked into the bug database? i have slighty modified your example to make use of the

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Jürgen Schmidt
Rony G. Flatscher wrote: Hi Jürgen, strange that it doesn't work with 1.1.4, i will check it. you are right it won't work in 1.1.4 but i haven't investigated deeper in the problem ;-) - fixed with OO2.0 Juergen Thank you! The program doesn't exit because of garbage collected objects

Re: [api-dev] XTypeDescriptionEnumerationAccess.createTypeDescriptionEnumeration() ( (Re: [api-dev] Almost there? (Re:

2005-08-23 Thread Rony G. Flatscher
Hi Jürgen, you are right it won't work in 1.1.4 but i haven't investigated deeper in the problem ;-) - fixed with OO2.0 O.K., again thank you *very* much for your kind efforts and infos, it really helps a lot! [Will use theTypeDescriptionManager.getByHierarchicalName( typeName ) wherever

[api-dev] XCellDataRange :: Where am I going wrong

2005-08-24 Thread Jayant Balraj Madavi
I have a simple function. This function is failing, so it prints ERROR. Any suggestion where I am going wrong ? uno::Any MyClass::getValue () { uno::Any aAny; uno::Sequence uno::Sequence uno::Any aSeq; uno::Reference sheet::XCellRangeData xData(mxRange,uno::UNO_QUERY);

Re: [api-dev] XCellDataRange :: Where am I going wrong

2005-08-25 Thread Jayant Balraj Madavi
Hi stephan, Let me put clear code/query, The actual code is with reference to the VBA interop work that we are doing for OOo so if a user writer a VBA script like this on OOo Activesheet.Range(A1:A3).value = Activesheet.Range(A4:A5).Value The above macro breaks down to == MyClass obj1,obj2;

Re: [api-dev] XCellDataRange :: Where am I going wrong

2005-08-25 Thread Daniel Boelzle
Hello Jayant Balraj Madavi, just tried the following which works like specified: uno::Any a( static_castsal_Int32(42) ); uno::Sequenceuno::Any seq( a, 1 ); typedef uno::Sequence uno::Sequenceuno::Any seqseqT; seqseqT seqseq( seq, 1 );

[api-dev] Re: XCellDataRange :: Where am I going wrong

2005-08-25 Thread Noel Power
Hi Daniel ( its been a while ;-) ) Daniel Boelzle wrote: Hello Jayant Balraj Madavi, just tried the following which works like specified: uno::Any a( static_castsal_Int32(42) ); uno::Sequenceuno::Any seq( a, 1 ); typedef uno::Sequence uno::Sequenceuno::Any

Re: [api-dev] XCellDataRange :: Where am I going wrong

2005-08-26 Thread Jayant Balraj Madavi
Hi Daniel / Noel, Five interesting facts: * The getValue and setValue is working perfectly fine wrt single Value OUString or long. Its the third type uno::Sequence uno::Sequenceuno::Any that is not working :( * The = and = is working perfectly fine for uno::Sequence uno::Sequenceuno::Any in

Re: [api-dev] XCellDataRange :: Where am I going wrong

2005-08-26 Thread Daniel Boelzle
Hello Jayant Balraj Madavi, Noel, Well, the initial problem was about pure C++-UNO. It is not clear to me why OOo Basic is involved. So please rephrase the exact problem again. BTW: dumping an uno::Any, you can use comphelper/anytostring.hxx (resp. comphelper::anyToString()). regards, -Daniel

[api-dev] Re: XCellDataRange :: Where am I going wrong

2005-08-26 Thread Noel Power
Daniel Boelzle wrote: Hello Jayant Balraj Madavi, Noel, Well, the initial problem was about pure C++-UNO. It is not clear to me why OOo Basic is involved. So please rephrase the exact problem again. BTW: dumping an uno::Any, you can use comphelper/anytostring.hxx (resp.

Re: [api-dev] Any way to combine multiple actions into one undo-able action ?

2005-08-26 Thread Patrik Fimml
Mathias Bauer wrote: CPH wrote: Hi, I have a button on my UI which performs several actions thru API calls. Is ther anyway which I can get all of these actions to be considered one atomic action by the Undo/Redo mechanism ? Not ATM. But we are currently discussing new APIs for Q.

Re: [api-dev] Re: XCellDataRange :: Where am I going wrong

2005-08-26 Thread Daniel Boelzle
Hi Noel, [...] But, you could help here with your expert knowledge, if know of an easy programmatic way to determine the exact type of whats in the Any especially with respect to Sequences Sequences that would be great ;-) The exact value type of the mentioned uno::Any is [][]any (calling

[api-dev] Re: XCellDataRange :: Where am I going wrong

2005-08-26 Thread Noel Power
Daniel Boelzle wrote: Hi Noel, [...] But, you could help here with your expert knowledge, if know of an easy programmatic way to determine the exact type of whats in the Any especially with respect to Sequences Sequences that would be great ;-) The exact value type of the mentioned

[api-dev] OO Draw 1.9.122 Basic Runtime Macro Error while drawing polypolygonshape shapes

2005-08-26 Thread Mike Carmichael
While using a beta version of OpenOffice, on two different systems(Millennium 2000), a macro which draws a parabola generates the following error consistently after the macro has been run once: Basic Runtime error. An exception occurred Type com.sun.star.lang.IllegalArgumentException Message:

Re: [api-dev] OO Draw 1.9.122 Basic Runtime Macro Error while drawing polypolygonshape shapes

2005-08-26 Thread Mike Carmichael
Hi, My problem was in the dimensioning! The old code line which did not work, was: Global Shape1(2999) As New com.sun.star.awt.Point In order to use Shape1() in two different subroutines. A sketch of the new code line and arguments added to subroutines is: sub dshape() . . Dim

[api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2005-08-26 Thread Michael Hoennig
Dear OpenOffice.org community, This is the 2-weekly announcement of current issues regarding the OOo API project which I want to hightlight to the community. *** = *** Todays Issue: Contributing to the OOo API Project ***

[api-dev] Maacro to draw multiple polypolygonshape shapes

2005-08-27 Thread Mike Carmichael
Thanks to recent help from the API DEV group volunteers, the below routine works well when creating one shape sub set_draw(byval oPage as variant, byval Gradient as variant,_ byval Shape1 as variant, byval PShape as variant,_ byval PolyPolygon as variant, byval Shapes as object,

Re: [api-dev] Any way to combine multiple actions into one undo-able action ?

2005-08-29 Thread Mathias Bauer
Patrik Fimml wrote: Mathias Bauer wrote: CPH wrote: Hi, I have a button on my UI which performs several actions thru API calls. Is ther anyway which I can get all of these actions to be considered one atomic action by the Undo/Redo mechanism ? Not ATM. But we are currently

[api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Peter Eberlein
Hi, asking on dev-dba, Frank redirected me to this list. I want to automate the Java-Settings during and after the installation. So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the application. Is there a way to automate this via scripting? There's no

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Joachim Lingner
Hi, There is a C API (jvmfwk/framework.h) which you can use to set the class path for the current user. It is not possible to set it for all users or particular JREs. I am not sure if you can use a C API from Basic or the other scripting languages. If it is not possible, but it is really

Re: [api-dev] Any way to combine multiple actions into one undo-able action ?

2005-08-29 Thread Christian Junker
Hi Patrik, as of right now there is still just the uno dispatch .uno:Undo which for many cases can be sufficient. 2005/8/26, Patrik Fimml [EMAIL PROTECTED]: Mathias Bauer wrote: CPH wrote: Hi, I have a button on my UI which performs several actions thru API calls. Is ther

Re: [api-dev] Hiding a textField throught the API

2005-08-29 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Fabricio, How can I hide a document text field using the API (without macros)? Here´s the code that I use for accessing the textfield: XTextFieldsSupplier xTextFieldsSupplier = (XTextFieldsSupplier) UnoRuntime.queryInterface(

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Peter, asking on dev-dba, Frank redirected me to this list. I want to automate the Java-Settings during and after the installation. So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the application. Is there a way to automate this via scripting?

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Stephan Bergmann
Stephan Wunderlich - Sun Germany - ham02 - Hamburg wrote: Hi Peter, asking on dev-dba, Frank redirected me to this list. I want to automate the Java-Settings during and after the installation. So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Stephan, in case of jdbc-drivers you could try to pack your jdbc-driver in a zip file and then add it calling unopkg add yourzipfile ... unopkg might complain that the zip doesn't contain a uno-package, but as far as I know will copy the jar-file and adjust the classpath, so that the driver

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Stephan Bergmann
Frank Schönheit - Sun Microsystems Germany wrote: Hi Stephan, in case of jdbc-drivers you could try to pack your jdbc-driver in a zip file and then add it calling unopkg add yourzipfile ... unopkg might complain that the zip doesn't contain a uno-package, but as far as I know will copy the

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Stephan, Also, even if what Stephan describes is a hack, it sounds like a convenient way to deploy a Java class into a OOo installation. Shouldn't we continue to offer this convenience, the one way or the other? Especially in the context of UNO components, yes, we will have to think about

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Marc Santhoff
Am Montag, den 29.08.2005, 10:17 +0200 schrieb Peter Eberlein: Hi, asking on dev-dba, Frank redirected me to this list. I want to automate the Java-Settings during and after the installation. So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the

Re: [api-dev] Maacro to draw multiple polypolygonshape shapes

2005-08-29 Thread Mike Carmichael
Hi Stephan, After taking Andy's hint regarding passing parameters, I've almost got this to work ... the shapes are being created when I pass PShape as the only argument to set_draw, but now no groups are created. Got to be something simple! Thanks for all the help, when I get it right,

Re: [api-dev] Hiding a textField throught the API

2005-08-29 Thread Fabricio Lemos
Worked just fine. Thank you, Stephan. But, in my application, I need to hide a textfield that has a given name. How would be the code for that? On 8/29/05, Stephan Wunderlich - Sun Germany - ham02 - Hamburg [EMAIL PROTECTED] wrote: Hi Fabricio, How can I hide a document text field using the

Re: [api-dev] Hiding a textField throught the API

2005-08-30 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Fabricio, Worked just fine. Thank you, Stephan. But, in my application, I need to hide a textfield that has a given name. How would be the code for that? When you have a Enumeration of your TextFields you can query each of them for an XDependentTextField. UserFields are those and then

Re: [api-dev] Hiding a textField throught the API

2005-08-30 Thread Fabricio Lemos
Thank you again Stephan. Now it´s doing what I want. Just for curiosity and future needs: is there any reference where IsVisible property is specified for textfields? Did not find anything in the Developer's Guide (v1.1 from December 2003) and in the api specification (sdk v1.1). In the

[api-dev] [ooeclipseintegration] new release for the Eclipse plugin

2005-08-30 Thread cedric . bosdonnat . ooo
Hi everybody, I have just commited a new release for the Eclipse plugin enabling OOo / SO development. The new features are: + New service wizard + Incorporation of the new service wizard inthe new project wizard + Separation of the OOo and SDK configuration + Correction of some bugs

Re: [api-dev] Insert Image in a TextTable

2005-08-31 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Giorgio, The problem is the following: i have inserted a graphic object in a Bookmark into a TextTable, but now i have a reference to a Cell but don't have a bookmark... I have utilised this code: // oWriter is my document

[api-dev] Get document from table

2005-09-05 Thread Martin Thoma
Hello! I have a XTextTable. How can I get the interface of the document in which the table is embedded? I need this in 2 situations: I want to change a cell-format, but XNumberFormatsSupplier can not be obtained from a XTextTable. I want to get a view-cursor, which cannot be obtained from a

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-09-05 Thread Dinesh Varadharajan
Hi Peter, Its not working for me. That file also contains jre settings. Eventhough the jre is same and installed in same path in all the machines VENDORDATA element in the javasettings_windows_x86.xml is different for every user. I dont know how they are calculating that long string. As that

Re: [api-dev] [ooeclipseintegration] OpenOffice.org integration in Eclipse

2005-09-05 Thread Pierre-André
Le Lundi 1 Août 2005 10:07, [EMAIL PROTECTED] a écrit : Hi Pierre André, Hi Cedric, First of all, I would like to apologize for the delay in my answer. Holydays with no internet connection are very good for resting but not so good for developping ;-) Quoting Pierre-André [EMAIL PROTECTED]:

Re: [api-dev] [ooeclipseintegration] OpenOffice.org integration in Eclipse

2005-09-05 Thread cedric . bosdonnat . ooo
Hi Pierre-Andre, Selon Pierre-André [EMAIL PROTECTED]: First of all, I would like to apologize for the delay in my answer. Holydays with no internet connection are very good for resting but not so good for developping ;-) Hollidays aren't normally given to developp ;-) However I did it...

[api-dev] How to connect to an OpenOffice on a computer you don't know?

2005-09-06 Thread Martin Thoma
Hello! I want to write a small application which uses OpenOffice and which I want to share with others as freeware. The problems are: - I don't know which port the OpenOffice is listing to (or if it listens at all). What is the recommended way? I don't want the user to change the Setup.xcu

Re: [api-dev] How to connect to an OpenOffice on a computer you don't know?

2005-09-06 Thread Jürgen Schmidt
Hi Martin, Martin Thoma wrote: Hello! I want to write a small application which uses OpenOffice and which I want to share with others as freeware. The problems are: - I don't know which port the OpenOffice is listing to (or if it listens at all). What is the recommended way? I don't want the

RE: [api-dev] How to connect to an OpenOffice on a computer you don't know?

2005-09-06 Thread Martin Thoma
Hi Jürgen, first of all i like the question on your subject, it was really fun in the morning ;-) I do my very best ;-) You shouldn't use a socket connection. Take a look into the new SDK for OO2.0 and into the examples using the new simple bootstrap mechanism. With this new bootstrap

[api-dev] Force reformat in Writer?

2005-09-06 Thread Martin Thoma
Hello! I want to find a word in a Writers document and add text-sentences there until a new page is created. I use XPageCursor to determinate how many pages there are in the document. My problem is: After insertion of a text-sentence, it seems that the layout is not updated immediately

<    2   3   4   5   6   7   8   9   10   11   >