Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-07-04 Thread David Dankwerth
Hello Mathias Sorry it took me so long to come back to you, I have now incorporated your suggestion into my code however i get [java] Exception in thread main com.sun.star.uno.Exception: Query for service factory for com.sun.star.loader.SharedLibrary failed. before the program attempts to load ,

Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-07-04 Thread Stephan Bergmann
David Dankwerth wrote: Hello Mathias Sorry it took me so long to come back to you, I have now incorporated your suggestion into my code however i get [java] Exception in thread main com.sun.star.uno.Exception: Query for service factory for com.sun.star.loader.SharedLibrary failed. before the

Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-07-04 Thread David Dankwerth
Stephan Many thanks, that was the problem , now the InteractionHanlder loads fine and I managed to go ahead with the loadComponenet However , I am not sure what can i do with the interaction handler, all examples i managed to find show the sdb interaction handler. Should i construct a

Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-07-04 Thread David Dankwerth
Hello Stephan I have implemented Mathias's suggestion, and as long as i did : args[ 1 ].Name = Interactionhandler; nothing happened now that i am doing args[ 1 ].Name = InteractionHandler; well, still nothing happens however, the client is still waiting for the return of the method call Object o

Re: [api-dev] Problem with loadComponent when OpenOffice 2 runs on windows

2005-07-04 Thread Mathias Bauer
David Dankwerth wrote: I have implemented Mathias's suggestion, and as long as i did : args[ 1 ].Name = Interactionhandler; nothing happened now that i am doing args[ 1 ].Name = InteractionHandler; well, still nothing happens however, the client is still waiting for the return of the

Re: [api-dev] [code snippet] erase-create_range_name

2005-07-05 Thread Ennio-Sr
* Tom Schindl [EMAIL PROTECTED] [040705, 09:43]: Ennio-Sr schrieb: | * Ennio-Sr [EMAIL PROTECTED] [240605, 02:04]: | |[skip] | | The attachment to the above referred post doesn't seem to have got | through to Code-snippets-Calc pages. | Did I do something wrong? | sorry done. now.

[api-dev] New co-lead in the API project

2005-07-06 Thread Jürgen Schmidt
Hi, i am pleased to nominate Andreas Schluens as the new co-lead in the API project. Andreas has a deep knowledge of the API and the underlying UNO component technology. His main working area was/is the framework where he always looks forward to improve or create new API's. He is currently

[api-dev] Programmability Workshop on the OO Conference Sep. 2005 in Koper

2005-07-07 Thread Jürgen Schmidt
Hi, last year i've tried to organize such a workshop but in fact of to few interested people and sickness i was not able to do that. But i think the idea is it worth to try it again. The general idea is to offer one programming workshop during the OpenOffice.org conference 2005 in Koper if

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

2005-07-08 Thread Jack Park
Thanks for this opportunity to comment on the dev doc. I'd like to point out a potential ambiguity. I confess, I don't have the doc in front of me; I hope what I sketch is sufficiently robust that someone can spot the issue properly. It deals with the early stages of building from source

[api-dev] number formats in calc

2005-07-09 Thread Marc Santhoff
Hi, when asking a calc cell for it's number format cType = aCell.NumberFormat it does return this values: E F G H 1,23 € 01.01.75 12.10.05 12.06.39 00:00 NumberFormat dez1063750

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

2005-07-11 Thread Christian Junker
2005/7/9, Jack Park [EMAIL PROTECTED]: Thanks for this opportunity to comment on the dev doc. I'd like to point out a potential ambiguity. I confess, I don't have the doc in front of me; I hope what I sketch is sufficiently robust that someone can spot the issue properly. It deals with the

[api-dev] XMouseClickHandler and corresponding cell

2005-07-12 Thread Laurent Godard
Hi all i try to react to clicks on some cells Using the com.sun.star.awt.XMouseClickHandler, i only retreive the coordinates of the pointer. Is there a way to know which cell has been clicked ? I'm actually using the com.sun.star.view.XSelectionChangeListener It globally works but i

Re: [api-dev] XMouseClickHandler and corresponding cell

2005-07-12 Thread Christian Junker
Hi Laurent, XMouseClickHandler was not working in the last milestones, which should have been fixed as stated in: #i47814#, however it is very recent, so it's probably not in m113 thus it's not a surprise that you have problems with XMouseClickHandler. 2005/7/12, Laurent Godard [EMAIL

[api-dev] Crash after detach and attach toolbar using XStorable

2005-07-13 Thread Bob Crothers
Hi, We have a Java client which interacts with OpenOffice. One of the functions is to have OpenOffice save the document as a PDF. This works fine, except in one odd case. If the user holds down the ctrl key and double clicks on the toolbar, which detaches the toolbar, and then holds

Re: [api-dev] Java and com.sun.star.beans.XIntrospectionAccess.inspect() on 1.1.4 ?

2005-07-13 Thread Rony G. Flatscher
Hi Christian, Christian Junker wrote: First of all XIntrospectionAccess does not support the method .inspect(...), it is css :: beans :: XIntrospection. XIntrospectionAccess is the type of the *returned* object instead. Sorry, I *mistyped* the class name it should have been

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-13 Thread Rony G. Flatscher
Hi there, just an additional data point: the same Java exception ("object is not instance of declaring class") occurs on OOo 1.9.113 as well. [The object to inspect is a Java proxy representing a spreadsheet document returned by "loadComponentFromURL("private:factory/scalc", "_blank", ...)".]

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-14 Thread Rony G. Flatscher
Hi Stephan, The following Java program works just fine for me: Thank you *very*, *very* much indeed! This has been a total eye-opener for me and I could get over to the next steps (still quite some miles to go, but for that I hopefully do not need to bother anyone on this list). Maybe

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-14 Thread Stephan Bergmann
Rony G. Flatscher wrote: Hi Stephan, The following Java program works just fine for me: Thank you *very*, *very* much indeed! This has been a total eye-opener for me and I could get over to the next steps (still quite some miles to go, but for that I hopefully do not need to bother

Re: [api-dev] Programming OOo as a Groupware App

2005-07-14 Thread Jürgen Schmidt
Hi, see my comments inline Bradley Bolen wrote: Hello. I asked the following on dev@udk.openoffice.org about programming OOo as a groupware app. There is a reply that I received that I pasted below as well. The responder (btw thanks Stephan Bergmann) suggested asking on this mailing

Re: [api-dev] Programmability Workshop on the OO Conference Sep. 2005 in Koper

2005-07-14 Thread Paolo Mantovani
Hi Jürgen, Alle 11:47, giovedì 7 luglio 2005, Jürgen Schmidt ha scritto: Hi, last year i've tried to organize such a workshop but in fact of to few interested people and sickness i was not able to do that. But i think the idea is it worth to try it again. The general idea is to offer one

Re: [api-dev] Programming OOo as a Groupware App

2005-07-15 Thread Andreas Schlüns
Jürgen Schmidt wrote: Hi, see my comments inline Bradley Bolen wrote: Hello. I asked the following on dev@udk.openoffice.org about programming OOo as a groupware app. There is a reply that I received that I pasted below as well. The responder (btw thanks Stephan Bergmann) suggested

[api-dev] Runtime problems when using IntrospectionReflection via Java ...

2005-07-15 Thread Rony G. Flatscher
Hi there, since a few hours, "all of a sudden" it has not been possible anymore to successfully use [com.sun.star.lang.XMultiComponentFactory] (supplying a context) or [com.sun.star.lang.XMultiServiceFactory] to instantiate "com.sun.star.beans.Introspection" and/or

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-15 Thread Rony G. Flatscher
Hi, w.r.t. my problem description with the subject "Runtime problems when using IntrospectionReflection via Java" I also get a runtime error with your program. F:\work\tmp\ooo\testjava Introspect Exception in thread "main" java.lang.NullPointerException at

[api-dev] How to use th PathSettings service

2005-07-15 Thread Ennio-Sr
Hi all, I'm trying to set up a macro to change the default _MyDocuments_ dir. Found a good example in Andrew Pitonyak macro.sxc (sublisting 5.76 by Paolo Mantovani) but cannot fully understand what happens: I open a .sxc file in ~/OO_files/dir1 and save in it a macro which simply calls the two

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-15 Thread Rony G. Flatscher
Christian Junker wrote: Just a remark: Why do you delete registry keys manually (messy messy thing to do!)? I recommend something like Registry Mechanic or any other registry-cleaner, that works. Well, I expected originally, that the de-install would take care of all registry entries

[api-dev] Assigning a macro to Start Application

2005-07-17 Thread Ennio-Sr
Hi all! In Tools/Configure/(OpenOffice.org) I'm trying to assign a macro contained in a menu.sxc Library/Module in order to get the menu opened when I start OOo, but it doesn't work. However, if I copy the same macro in the Standard/Module OOo Library, it works! The problem is that then I'm unable

[api-dev] [EMAIL PROTECTED] GUIDE: important things to know about this mailing list

2005-07-17 Thread Michael Hoennig
Dear OpenOffice.org community, This is the monthly reminder of important things to know about the dev@api.openoffice.org mailing list. We, the project leads of the OOo API project, would like to give you some general information to help you with your questions. ***

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-18 Thread Stephan Bergmann
Rony G. Flatscher wrote: Hi, w.r.t. my problem description with the subject Runtime problems when using IntrospectionReflection via Java I also get a runtime error with your program. F:\work\tmp\ooo\testjava Introspect Exception in thread main java.lang.NullPointerException

Re: [api-dev] How to use th PathSettings service

2005-07-18 Thread Jürgen Schmidt
Hi, Ennio-Sr wrote: Hi all, I'm trying to set up a macro to change the default _MyDocuments_ dir. Found a good example in Andrew Pitonyak macro.sxc (sublisting 5.76 by Paolo Mantovani) but cannot fully understand what happens: I open a .sxc file in ~/OO_files/dir1 and save in it a macro which

Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-18 Thread Rony G. Flatscher
Hi Stephan, So it is affected as well (does not work anymore). In the meantime I have de-installed all OpenOffices (1.1.4, 1.9), deleted all remainders of these installations in the file-system, tried to find traces in the Windows registry and deleted them. Then - after

Re: [api-dev] How to use th PathSettings service

2005-07-18 Thread Ennio-Sr
* Jürgen Schmidt [EMAIL PROTECTED] [180705, 09:48]: Hi, Ennio-Sr wrote: Hi all, [skip] After running the macro I can see that _MyDocuments_ dir (as seen with Tools - Options - OO.org/Paths) correctly shows dir2 as _MyDocuments_ directory. However, if I do: File/Open, the old dir1 is shown

Re: [api-dev] Assigning a macro to Start Application

2005-07-18 Thread Ennio-Sr
* Ennio-Sr [EMAIL PROTECTED] [180705, 00:08]: Hi all! In Tools/Configure/(OpenOffice.org) I'm trying to assign a macro contained in a menu.sxc Library/Module in order to get the menu opened when I start OOo, but it doesn't work. However, if I copy the same macro in the Standard/Module OOo

Re: [api-dev] Assigning a macro to Start Application

2005-07-18 Thread Ennio-Sr
* Jürgen Schmidt [EMAIL PROTECTED] [180705, 09:46]: Hi, Ennio-Sr wrote: [skip] it looks that your macros should run in the global application context and not in the context of a single document. I would create a globally available Basic library containing all my macros. For the menu

Re: [api-dev] instantiating Basic dialogs from UNO componets

2005-07-18 Thread Thomas Benisch
Jorge Marques Pelizzoni wrote: Hi, all! Once Mathias Bauer wrote: But why do you want to call Basic macros from C++? I would expect that you instantiate your (IDE-designed) dialog from your C++ code (should be possible by some UNO calls) ... Its is exactly those UNO calls that interest

Re: [api-dev] Assigning a macro to Start Application

2005-07-18 Thread Joerg Barfurth
Hi, Ennio-Sr wrote: If, once the menu.sxc has been opened (on Start Application), I open the macro doalog and choose the module/macros attached to the menu.sxc I'm not allowed to run any of them (Security check will prevent me from doing that, although I included the relative path in the

Re: [api-dev] Documenation of com.sun.star.lib.uno.helper.WeakBase

2005-07-18 Thread Jürgen Schmidt
Hi Tom, where are you looking for the docu? It should be still part of the SDK Java UNO runtime documentation. Juergen Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Isn't there any API-Doc for com.sun.star.lib.uno.helper.WeakBase, has it been erased with 2.0? Tom

Re: [api-dev] Documenation of com.sun.star.lib.uno.helper.WeakBase

2005-07-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh. I see but it is not part of the IDL-Docs at http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html? Are these docs online the one for: As well as one for: - - com.sun.star.comp.loader.FactoryHelper Tom Jürgen Schmidt schrieb:

Re: [api-dev] Call a class Java from an Open Office Basic

2005-07-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://codesnippets.services.openoffice.org/Office/Office.CallingJavaFromOOBasic.snip Tom Cristian Fonti schrieb: Hi to all, i have made a java class that interact with openoffice (create a writer document, and insert some text). Now i would

Re: [api-dev] Documenation of com.sun.star.lib.uno.helper.WeakBase

2005-07-18 Thread Jürgen Schmidt
Hi Tom, they should be available from api.openoffice.org (left navigation bar) Juergen Tom Schindl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh. I see but it is not part of the IDL-Docs at http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html? Are these docs

[api-dev] Dialog controls: relative ImageURLs

2005-07-18 Thread Jorge Marques Pelizzoni
Hi, all! I wonder if there is a way to set property ImageURL (e.g. of CommandButtons) to some kind of relative URL at _design time_ (i.e. not resorting to com.sun.star.util.PathSettings at runtime). I what I need is (in decreasing order of importance): 1 - an application dialog to retrieve

[api-dev] A first basis for an OOO eclipse integration

2005-07-18 Thread Cedric Bosdonnat
Hello, I am quite new on this list. I work on an eclipse plugin providing a support for OpenOffice.org development. I commited a first working basic version on the CVS. The features implemented in this version are : + syntax highlighting for uno-idl files + SDK Configuration using eclipse

Re: [api-dev] Dialog controls: relative ImageURLs

2005-07-18 Thread Christian Junker
Hi Jorge, get your ooo-installationpath (folder) from PathSubstitution service, like so: code pathsub = createUnoService(com.sun.star.util.PathSubstitution) oodir = pathsub.getSubstituteVariableValue($(inst)) /code Once you have the installation path it shouldn't be hard to get to your desired

Re: [api-dev] instantiating Basic dialogs from UNO componets

2005-07-19 Thread Thomas Benisch
Thank you, Thomas! However, the company I work for does not use the beta version yet, just OOo 1.1.4. I've just checked that this service is not available there. Can that be achieved - even if much more hardly - by 1.1.4 UNO primitives? No, that's not possible. Thomas

Re: [api-dev] instantiating Basic dialogs from UNO componets

2005-07-19 Thread Christoph Neumann
Hi Jorge, Jorge Marques Pelizzoni schrieb: Thank you, Thomas! However, the company I work for does not use the beta version yet, just OOo 1.1.4. I've just checked that this service is not available there. Can that be achieved - even if much more hardly - by 1.1.4 UNO primitives? Cheers,

Re: [api-dev] GraphicObject vs TextGraphicObject

2005-07-19 Thread Jürgen Schmidt
hi, Matthias Benkmann wrote: According to the IDL (from version 1.9.113), the service for an image in a text document is: com.sun.star.text.TextGraphicObject However, I can't instantiate this object from StarBasic. doc.createInstance(com.sun.star.text.TextGraphicObject) throws a

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

2005-07-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] referencing resources inside UNO package

2005-07-21 Thread Daniel Boelzle
Hello Jorge Marques, Hi, all! I am struggling to deploy a BASIC library including a dialog which, in turn, should have ImageURLs (buttons and stuff) referencing files inside the same package. I understand this is just one instance of a bigger problem, namely handling resources not directly

Re: [api-dev] referencing resources inside UNO package

2005-07-21 Thread Daniel Boelzle
Hello Jorge Marques, Thank you also for your idea, but I am afraid I don't quite get it. As far as I know, pkgchk will only substitute that %origin% variable inside a xcu file, right? How could I retrieve the generated information programmatically from a UNO module? What kind of

Re: [api-dev] referencing resources inside UNO package

2005-07-21 Thread Paolo Mantovani
Hi, Alle 10:30, giovedì 21 luglio 2005, Jorge Marques Pelizzoni ha scritto: Daniel, Thank you also for your idea, but I am afraid I don't quite get it. As far as I know, pkgchk will only substitute that %origin% variable inside a xcu file, right? How could I retrieve the generated

Re: [api-dev] GraphicObject vs TextGraphicObject

2005-07-21 Thread Matthias Benkmann
On 7/19/05, Jürgen Schmidt [EMAIL PROTECTED] wrote: This is a known documentation issue i47503, you can use the old name GraphicObject but i would suggest to use a newer build where this issue is fixed to avoid further misunderstandings. I've just tried again with 1.9.118 (which is the most

Re: [api-dev] referencing resources inside UNO package

2005-07-21 Thread Jorge Marques Pelizzoni
Great, Paolo! Thank you very much! Cheers, Jorge. Quoting Paolo Mantovani [EMAIL PROTECTED]: Hi, Alle 10:30, giovedì 21 luglio 2005, Jorge Marques Pelizzoni ha scritto: Daniel, Thank you also for your idea, but I am afraid I don't quite get it. As far as I know, pkgchk will only

Re: [api-dev] GraphicObject vs TextGraphicObject

2005-07-21 Thread Jürgen Schmidt
Matthias Benkmann wrote: On 7/19/05, Jürgen Schmidt [EMAIL PROTECTED] wrote: This is a known documentation issue i47503, you can use the old name GraphicObject but i would suggest to use a newer build where this issue is fixed to avoid further misunderstandings. I've just tried again with

Re: [api-dev] A first basis for an OOO eclipse integration

2005-07-21 Thread Jürgen Schmidt
Hi Cedric, Cedric Bosdonnat wrote: Hello, I am quite new on this list. I work on an eclipse plugin providing a support for OpenOffice.org development. I commited a first working basic version on the CVS. The features implemented in this version are : + syntax highlighting for uno-idl files

Re: [api-dev] referencing resources inside UNO package

2005-07-22 Thread Stephan Bergmann
Paolo Mantovani wrote: Hi Daniel, Alle 13:31, giovedì 21 luglio 2005, Daniel Boelzle ha scritto: Hello Paolo, This is the code-snippet made when I posted the same question on this list, time ago: http://codesnippets.services.openoffice.org/Office/Office.ArbitraryDeploy .snip Looking at

Re: [api-dev] referencing resources inside UNO package

2005-07-22 Thread Paolo Mantovani
Hello Stephan, Alle 09:34, venerdì 22 luglio 2005, Stephan Bergmann ha scritto: [...] I must admit that I don't understand this part of your explanation I'm sure that I'm missing something, may you detail a bit more this part? The syntax for vnd.sun.star.expand URLs is

Re: [api-dev] referencing resources inside UNO package

2005-07-22 Thread Stephan Bergmann
Paolo Mantovani wrote: Hello Stephan, Alle 09:34, venerdì 22 luglio 2005, Stephan Bergmann ha scritto: [...] I must admit that I don't understand this part of your explanation I'm sure that I'm missing something, may you detail a bit more this part? The syntax for vnd.sun.star.expand URLs

[api-dev] Problem with XTextViewCursor

2005-07-22 Thread MuiFull Tam
Hi all, I play with OfficeBean and Writer (OOo 2.0), and experience a problem. I would like to create an embedded-image in the document and then position the viewCursor to a specified range. The embedded-image did create successfully, but unfortunately, I could not ask the viewCursor to do

[api-dev] Populating a Calc document via DDE

2005-07-25 Thread Davide Dozza
Hi all, We've a SAS application which populates an Excel document using DDE. We need to translate such procedure in order to populate a Calc document in the same way. The question is: how much is DDE standard enough in order to reuse the code? Davide

Re: [api-dev] Populating a Calc document via DDE

2005-07-25 Thread Davide Dozza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Schindl wrote: If I would know what: - SAS stands for It's an application development frame for business intelligence. http://www.sas.com/ - DDE stands for Dynamic Data Exchange http://en.wikipedia.org/wiki/DDE Davide -BEGIN PGP

Re: [api-dev] Building process in C++ -

2005-07-25 Thread Pierre-André
Le Jeudi 21 Juillet 2005 08:32, Jürgen Schmidt a écrit : Hi, Hi Jürgen, First of all, thanks for your reply ! It helped-me not to panic when an error occured during the compile phase and to focus my mind only on the important points while compiling ! After this experience, I have quite a few

Re: [api-dev] Crash after detach and attach toolbar using XStorable

2005-07-25 Thread Andreas Schlüns
Hello Bob! snip Regarding, Please send the error report so we can have a look on that. Of course you should fill out crash report formular, so we know that this error report is related to this problem here. - I sent a report about 9:40 A.M. July 15, 2005. I have also pasted the report into

Re: [api-dev] Building process in C++ -

2005-07-25 Thread Jürgen Schmidt
Hi, Pierre-André wrote: Le Jeudi 21 Juillet 2005 08:32, Jürgen Schmidt a écrit : Hi, Hi Jürgen, First of all, thanks for your reply ! It helped-me not to panic when an error occured during the compile phase and to focus my mind only on the important points while compiling ! After this

Re: [api-dev] Populating a Calc document via DDE

2005-07-26 Thread Eike Rathke
Hi Davide, On Mon, Jul 25, 2005 at 08:26:07 +0200, Davide Dozza wrote: We've a SAS application which populates an Excel document using DDE. How is that achieved on the Excel side? We need to translate such procedure in order to populate a Calc document in the same way. The question is:

Re: [api-dev] Crash after detach and attach toolbar using XStorable

2005-07-26 Thread Andreas Schlüns
Hello Bob ! Regarding, Do you remember, how often the error report dialog cames up for one crash? - one time. ??? The stacktrace show another sceanrio. Regarding, sending the error report to our VCL team - thanks Andreas. But fixing of this bug needs some time ... so I cant say anything

Re: [api-dev] Populating a Calc document via DDE

2005-07-26 Thread Davide Dozza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eike Rathke wrote: Hi Davide, On Mon, Jul 25, 2005 at 08:26:07 +0200, Davide Dozza wrote: We've a SAS application which populates an Excel document using DDE. How is that achieved on the Excel side? Is it activate from the server side? I

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

2005-07-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] C++ - Reference

2005-07-27 Thread Pierre-André
Hi, I have a question about UNO Reference in C++. What I would like to do is the following : I want to connect to a listening office, and then have an object which keeps a reference to the connection. That way, I can open a connection with the constructor or a function of the object, and call

[api-dev] Browsing the source code

2005-07-27 Thread Senthilkumar Mehalingam
Hi All, I want to see how the cut,paste,undo,redo functionalities are implemented in OO.org. If anybody could point me to the specific files and modules in which they are implemented I would highly appreciate that. I want to know if Design Patterns are used in implementing them or not. If

Re: [api-dev] C++ - Reference

2005-07-27 Thread Daniel Boelzle
Hello Pierre-André, using namespace com::sun::star::uno; side-note: using directives are bad in header files. Use fully qualified names. class MyClass { public: connect(); set_text(); private : // OK XInterface* rInstance2; //

Re: [api-dev] C++ - Reference

2005-07-27 Thread Pierre-André
Le Mercredi 27 Juillet 2005 15:22, Daniel Boelzle a écrit : Hello Pierre-André, Hi Daniel, using namespace com::sun::star::uno; side-note: using directives are bad in header files.  Use fully qualified names. :-) Thanks, I will correct that. class MyClass {   public:   

Re: [api-dev] Re: newbie drawing question

2005-07-27 Thread Andrew Douglas Pitonyak
My guess is that this fails because you are using a macro to create a draw page in a Draw document, but you are running the macro in a Write document. A write document contains only one draw page, not multiple draw pages. In other words, you can not create a new draw page in a Write document

Re: [api-dev] Browsing the source code

2005-07-27 Thread Andrew Douglas Pitonyak
I typically download the source code and then I use a text search on the whole thing. Of course, the whole thing is more than 1GB I think, so on my computer, this can take a long time. Especially since sometimes I search for the wrong thing :-( Senthilkumar Mehalingam wrote: Hi All, I want

Re: [api-dev] On Bootstrap.defaultBootstrap_InitialComponentContext()

2005-07-29 Thread Jürgen Schmidt
Hi, Rony G. Flatscher wrote: Hi there, while using Bootstrap.defaultBootstrap_InitialComponentContext() I ran into the following problem(s) with OOo 1.1.4 and 1.9.118, using the Windows version (on XP with SP2): 1. juh is not found, adding $SYSBINDIR to the Windows path

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Daniel Boelzle
Hello Rony G., When will that object be registered? Is there anything I could do that it gets registered and available at bootstrap time? What follows is a small Java program that shows that theServiceManager is registred with the context, but theCoreReflection object is not yet. You

Re: [api-dev] On Bootstrap.defaultBootstrap_InitialComponentContext()

2005-07-29 Thread Daniel Boelzle
Hello Rony G., 2. types.rdb is not found, because it is being searched in the employed Java directory/bin, instead of $SYSBINDIR as per the definitions in uno.ini. $SYSBINDIR denotes always the executable's directory, in your case your java.exe's directory. You can set/override

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

2005-07-29 Thread Pierre-André
Le Jeudi 28 Juillet 2005 16:09, [EMAIL PROTECTED] a écrit : Hi everybody, Hi Cedric, First of all, I would like to thank-you for taking the time to do this integration with Eclipse ! It will help developpers to gain precious time ! As you could imagine, I'll need some tests and returns of

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Rony G. Flatscher
Hi Daniel, When will that object be registered? Is there anything I could do that it gets registered and available at bootstrap time? What follows is a small Java program that shows that "theServiceManager" is registred with the context, but "theCoreReflection" object is not yet.

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Rony G. Flatscher
Hi Jürgen, No, you need not use the same component context, but it may be more performant to choose one within your process. Please use the singleton entry com.sun.star.reflection.theCoreReflection for the sole reason that it internally caches created IdlClass objects. The above mentioned

Re: [api-dev] On Bootstrap.defaultBootstrap_InitialComponentContext()

2005-07-29 Thread Rony G. Flatscher
Hi Jürgen, while using Bootstrap.defaultBootstrap_InitialComponentContext() I ran into the following problem(s) with OOo 1.1.4 and 1.9.118, using the Windows version (on XP with SP2): 1. juh is not found, adding $SYSBINDIR to the Windows path environment variable (used for

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Jürgen Schmidt
Rony G. Flatscher wrote: Hi Daniel, When will that object be registered? Is there anything I could do that it gets registered and available at bootstrap time? What follows is a small Java program that shows that theServiceManager is registred with the context, but theCoreReflection object is

[api-dev] Query for service factory for com.sun.star.reflection.CoreReflection not found at bootstrap

2005-07-29 Thread Rony G. Flatscher
Hi there, while further experimenting with the objects one can get from the class Bootstrap I managed to get an initial context and theServiceManager which I can ask for the available services. service=com.sun.star.connection.Connector service=com.sun.star.bridge.UnoUrlResolver

Re: [api-dev] On Bootstrap.defaultBootstrap_InitialComponentContext()

2005-07-29 Thread Rony G. Flatscher
Hi Daniel, thank you very much for your explanations (w.r.t. $SYSBINDIR) and help, which is highly appreciated! Regards, ---rony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Jürgen Schmidt
Daniel Boelzle wrote: Hello Jürgen, In your example you bootstrap a new fresh Java UNO env. I assume that the singleton is not registered in this env but when you use the native bootstrap mechanism or use the context from an office this singleton should be registered. This can maybe

[api-dev] C++ - Try / catch block not catching anything ?

2005-07-29 Thread Pierre-André
Hello, While trying to code, I am not able to catch Exceptions, not even standrard exceptions... In standard C++, this works : #include exception #include iostream using namespace std; class MyObj { public: void func() { throw Hello Exception; } }; int main() {

Re: [api-dev] detecting if paragraph is in toc

2005-07-29 Thread Laurent Godard
Hi marc, The other way round: is it possible to compare anchors? If I get the anchor from the toc and compare it to the start of a TexRange (or the like), will they match if at equal position? look at compareRegionEnds and compareRegionstarts methods on the Text object HTH Laurent --

Re: [api-dev] C++ - Try / catch block not catching anything ?

2005-07-29 Thread Joerg Budischewski
Hi, I guess, you are on some unix ? You need to build your program with the same compiler version as OOo has been built with. Not doing this typically breaks exception handling, because you get incompatible stdc++ libraries into your process. Bye, Joerg Pierre-André wrote: Hello, While

Re: [api-dev] detecting if paragraph is in toc

2005-07-29 Thread Marc Santhoff
Am Freitag, den 29.07.2005, 19:05 +0200 schrieb Laurent Godard: Hi marc, The other way round: is it possible to compare anchors? If I get the anchor from the toc and compare it to the start of a TexRange (or the like), will they match if at equal position? look at compareRegionEnds

Re: [api-dev] One or two questions ad XMulti{Component|Service}Factory ... (Re: [api-dev] Java and com.sun.star.beans.XIntrospection.inspect() ?

2005-07-29 Thread Rony G. Flatscher
Hi, implement the core reflection in Java - working directly on the type library. But of course it will be a lot of work when you want a Java only solution, because the storage format of the type library is acced by using a C/C++ API which is not available in Java. So you would need a jni

Re: [api-dev] Browsing the source code

2005-07-29 Thread Senthilkumar Mehalingam
Hi All, Thanks Andrew for your reply. I did as you told but I cannot find the functions(cut,paste,undo,redo) inspite of a thorugh search as searching for cut finds .cpp files which have cut as a middle word in them and searching for cut finds no .cpp files. I got the source from

Re: [api-dev] Browsing the source code

2005-07-31 Thread Christian Junker
Hi there, searching can easily be done on http://ooo.ximian.com , it has a powerful search engine. 2005/7/27, Senthilkumar Mehalingam [EMAIL PROTECTED]: Hi All, I want to see how the cut,paste,undo,redo functionalities are implemented in OO.org. If anybody could point me to the specific

[api-dev] Updating formulas (JAVA)

2005-08-01 Thread Andreas Bröker
Hello, we have a text document with a text table which contains several formulas. This text table will be filled with data in hidden mode. After the filling process we export the document to pdf. In most cases the fields with the formulas contains the message **expression faulty**. But the

Re: [api-dev] Updating formulas (JAVA)

2005-08-01 Thread Stephan Wunderlich
Hi Andreas, we have a text document with a text table which contains several formulas. This text table will be filled with data in hidden mode. After the filling process we export the document to pdf. In most cases the fields with the formulas contains the message **expression faulty**. But

RE: [api-dev] Updating formulas (JAVA)

2005-08-01 Thread Andreas Bröker
Hello Stephan, sorry for the misunderstanding with the fields. I mean the cells of the text table which contains the message. Best regards Andreas -Original Message- From: Stephan Wunderlich [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 10:00 AM To:

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

2005-08-01 Thread Jürgen Schmidt
Hi Cedric, Cedric Bosdonnat wrote: Hi, [EMAIL PROTECTED] a écrit : I am now working on the uno project build integration with the eclipse build facilities. So in a few days you should be able to build your project to generate the urd, rdb and Java class files. I am still wondering what

Re: [api-dev] Updating formulas (JAVA)

2005-08-01 Thread Stephan Wunderlich
Hi Andreas, we have tested the reformat of the text document. But this does not solve the problem. What can we do else ? can you send me a running sample that demonstrates the behaviour ? Regards Stephan - To

Re: [api-dev] Browsing the source code

2005-08-01 Thread Andrew Douglas Pitonyak
The real problem is finding the specific code that you want. For example, I decided to look at the Writer specific code so I looked here: sw/source/core/frmedt and I searched for the word Clipboard. Probably NOT what you want. I also some stuff off of the core directories. In fact, I saw many

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

2005-08-02 Thread Rony G. Flatscher
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 first argument changed from [in] to

[api-dev] Interface classes: assumptions correct?

2005-08-02 Thread Rony G. Flatscher
Hi there, are the following few assumptions correct? Interface class names in UNO always start with a capital X only. Interface classes must not have fields (they consist of methods only). TIA, ---rony

Re: [api-dev] Browsing the source code

2005-08-02 Thread Senthilkumar Mehalingam
Hi All, Thanks Christian for your reply. I did as you told and found several functions which use the words(specially AccessibleEditableTextPara_cxx). I again appreciate your help. Sincerely Senthil From: Christian Junker [EMAIL PROTECTED] Reply-To: Christian Junker [EMAIL PROTECTED]

Re: [api-dev] Browsing the source code

2005-08-02 Thread Senthilkumar Mehalingam
Hi All, Thanks Andrew for your reply. I found the file fecopy.cxx in the directory you suggested. That has the copy function implemented. But as the documentation is in a language other than English so I could not understand it. Is it possible to convert the source file to an English file. I

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