Re: [api-dev] XComponentLoader: XModel as PropertyValue now crashes the office

2010-02-12 Thread Steffen Grund
Hello, maybe it's just me, but the first line looks rather un-UNO-like: XModel xModel = (XModel) xTextDocument; I'd expect a UnoRuntime.queryInterface() construct here. I'm just nitpicking, this is probably not bug-related anyway. -Steffen

Re: [api-dev] FTP using IP address instead of ServerName

2010-01-13 Thread Steffen Grund
to the use of only a servername ? Thanks Fernand - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org -- Steffen Grund steffen.gr...@sun.com Sun

Re: [api-dev] Extension - Addon.xcu

2009-12-09 Thread Steffen Grund
- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org -- Steffen Grund steffen.gr...@sun.com Sun Microsystems Software Engineer - StarOffice Nagelsweg 55 Phone: +49 40 23646 647

Re: [api-dev] Extension - Addon.xcu

2009-12-08 Thread Steffen Grund
Hello Jörg, when I change browserobjectbar to standardbar, your Addons.xcu works. It seems that browserobjectbar is not valid anymore, but I am not familiar with it, so I am at a loss there. Where in the UI can you activate that toolbar? HTH, Steffen Jörg Schmidt wrote: Hello, in an

Re: [api-dev] NetBeans OOo API plug-in for NB 6.7

2009-10-14 Thread Steffen Grund
Thank you, I will look into this. Steffen Александр Анисимов wrote: 2009/8/5 Juergen Schmidt juergen.schm...@sun.com mailto:juergen.schm...@sun.com Juergen Schmidt wrote: Hi Ariel, Ariel Constenla-Haile wrote: Hi all, as NB 6.7 is out there,

Re: [api-dev] Get last used column/row in a spreadsheet (Macro)

2009-09-07 Thread Steffen Grund
I was just wondering: createCursor() creates a cursor containing the whole sheet, which could be slow when you have a big sheet. Maybe this is a way to create the cursor with better performance. Just an idea, Steffen Andrew Douglas Pitonyak wrote: Nice tip... I will change this in my

Re: [api-dev] Re: Wanted! Extensions developers for testing

2009-07-22 Thread Steffen Grund
Hi Aladdin, the bug you listed is not the one described in Juergen's mail. Also, NetBeans 6.5 is no valid platform, since our plugin is for NetBeans 6.7 solely. Nevertheless we are interested in learning where you encountered that behavior? Regards, Steffen Aladdin wrote: Hi, You can

Re: [api-dev] Info: potential SDK changes for OO.org 3.2

2009-06-06 Thread Steffen Grund
Hello Karl, see my comments inline... Karl Weber schrieb: Am Mittwoch, 25. März 2009 14:04 schrieb Juergen Schmidt: [...] browse the code and debug the examples directly from NetBeans. The removed examples (in the original structure) can be stored for potential use. Well the idea still is

Re: [api-dev] NB plug-in: Debug Extension in Target OOo fails on OOO310_m11

2009-05-18 Thread Steffen Grund
Hello Ariel, this happens for me (on Solaris x86) even without NetBeans etc. I simply add e.g. -Xdebug -Xrunjdwp:transport=dt_socket,address=8701 as parameters to the JavaVM in OpenOffice.org. The next time I start OpenOffice.org, I get the message box stating the JRE is defect. I cannot

Re: [api-dev] OOo for MS Windows problem with extension developed under Linux

2009-04-17 Thread Steffen Grund
I did not try this (because I do not work on Windows normally), but String absolutePath = (new File(new URI(reposPath)).getCanonicalPath(); should work. Hope that helps, Steffen Stephan Bergmann wrote: On 04/17/09 16:52, giancarlo wrote: _*Introduction to the problem:*_ - My extension is

Re: [api-dev] OpenOffice Add-On in NetBeans: no java files created

2008-10-27 Thread Steffen Grund
Hello George, no, the paths cannot be the problem - they're changed to valid system paths internally. I can reproduce the problem, even in a shell. When I set up the sdk environment and execute the uno-skeletonmaker command in a shell, it crahses. I will check further. Regards, Steffen

Re: [api-dev] Best way to know if SomeFileName is loadable ?

2008-10-20 Thread Steffen Grund
Hello Alain, I do not think so. You could check the extension of the file, if it's one of the known extensions of OOo. But you surely thought of that. If we are talking about possibly corrupt files, then I see no other way than opening them and see if it works. Regards, Steffen Alain Rist

Re: [api-dev] How to open a browser with fixed size?

2008-10-20 Thread Steffen Grund
Hello again, I think this kind of question is better addressed to a Java-specific forum. I see no relevance to OpenOffice.org here - a simple Java application shows the same behaviour. Regards, Steffen wheelsdong wrote: I am working on a OpenOffice Add-on to open a browser when mouse is

Re: [api-dev] Too many browsers are opened when mouse pressed

2008-10-20 Thread Steffen Grund
Hi there, if I remember correctly, the contract for such events is that the code is called at least once, but may be called more often. I cannot reproduce your second problem. What platform are you on and what version of Openoffice.org do you use? With me, OpenOffice.org 3 on Solaris-sparc

Re: [api-dev] Java Web services from openoffice

2008-10-07 Thread Steffen Grund
Hi, could you verify if the HttpClient is packed in your extension? I just want to make sure that the class HttpClient is available when your extension is registered in OpenOffice.org. To verify this: Go to the file view of your project, open the dist folder and expand the YourExtension.oxt

Re: [api-dev] converting java functionality to OOo3

2008-10-07 Thread Steffen Grund
Hi Andreas, when I look at your code, the cast from XComponentContext to XComponentLoader will not work. Note that you cannot simply cast one UNO interface to another, you have to use the UnoRuntime.queryInterface() construct. That's because of the Java UNO language binding:

Re: [api-dev] Copying sheets between documents

2008-08-15 Thread Steffen Grund
Hi Andreas, would a solution be that you create a template sheet and install that with your AddIn and then just fill in the values using the API? You could prepare everything except of the actual values in the template, and so you do not have to be concerned with styles and formatting. I

Re: [api-dev] Calc Addin questions [Re: .oxt file]

2008-08-06 Thread Steffen Grund
Hi to all, I am just giving my 2 cents inside. Regards, Steffen Juergen Schmidt wrote: Hi Ariel, first of all thanks for your detailed reply on all the questions. It should be now very clear even without reading some background documentation. But i strongly recommend that people use the

Re: [api-dev] the meaning of =

2008-02-11 Thread Steffen Grund
Hello, I am not the Basic expert here, but wouldn't something like this work? While Position exit_value Position = Instr(i, ProcessString, ) etc. etc. etc. Wend and just initialize Position before, so it does not have the exit value? -Steffen Jonathan Kaye wrote: Johnny

Re: [api-dev] NB Plugin - Configuration on Wiki page is incorrect - OO plugin does not show up in NB 6.0 plugin manager

2007-12-14 Thread Steffen Grund
Hi Wade, you are right, it states NB 6 on the plugin portal page, but the information there is wrong. We will update this. For issues regarding NB 6, see http://wiki.services.openoffice.org/wiki/OpenOffice_NetBeans_Integration/Releases/Release_1.2 Regards, Steffen Wade Chandler wrote: My

Re: [api-dev] Starting OOo

2007-09-03 Thread Steffen Grund
Hello, the only thing that comes to my mind: is there difference regarding the environment variables when you start from Java compared to the start from the command line? I do not know if that is of interest, but IIRC on Windows XP there's an environment variable called SystemRoot which is

Re: [api-dev] Problem with with NetBeans Plug-In

2007-07-30 Thread Steffen Grund
Hi Max, indeed you can. You have to set an environment variable org_openoffice_nb_integration_log_level = all and start NetBeans with this set. The OOo plugin will then create a log file called OOoNBIntegration1Number.log in your temp directory. (For a different directory, set

Re: [api-dev] Problem with with NetBeans Plug-In

2007-07-30 Thread Steffen Grund
Hi Max, the problem is that Ubuntu inserts the wrapper scripts to call the sdk commands. Commands are renamed with extension .bin and the scripts take the place of the commnds. So the plugin calls the scripts with an environment which is customized for the commands. This environment does not

Re: [api-dev] netbeans and oppen office

2007-06-18 Thread Steffen Grund
Hi Ashok, thank you very much for your workaround. Could you please file a bug on this? (With me as owner.) Regards, Steffen ashok _ wrote: Hi Steffen, I believe there is bug in the 1.0.2 OO plugin for netbeans. the bug seems to be in the generated build-uno-impl.xml file which overrides

Re: [api-dev] netbeans and oppen office

2007-06-15 Thread Steffen Grund
Hi there, could you verify that the manifest file in your jar is correct? You may have stumbled over a bug in the Netbeans plugin: the client application gets a special manifest file for booting OpenOffice.org, using the simple bootstrap mechanism. If you do not find the necessary jar files

Re: [api-dev] Get new filename on save as event

2007-06-11 Thread Steffen Grund
Hi Jacob, as far as I know, you can only get the filter (or URL) after the document is saved, using the OnSaveAsDone event. What may be possible is reacting to that event, change the document and save again. This will lead to a recursion, because the 2nd save will trigger the listener again.

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-02-14 Thread Steffen Grund
Hi Christian, perhaps I am getting this wrong, because you shortened your code to post it here, but: you add a listener to a MailMerge object and then throw the object away? Second, exactly what kind of event do you want to be notified of? Regards, Steffen

Re: [api-dev] howto call a method defined in a uno component from a macro

2007-01-31 Thread Steffen Grund
This should work in the right context: document = ThisComponent.CurrentController.Frame dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) rem -- dispatcher.executeDispatch( document,

Re: [api-dev] delete file using oo file open dialog - no restore possible

2007-01-31 Thread Steffen Grund
Hi there, this is different, depending on the type of Open/Save dialogs selected (see tools - options - StarOffice - general): Windows dialogs delete to the recycle bin, while the OpenOffice/StarOffice dialogs delete immediately. So on Windows, just deactivate the switch for the different

Re: [api-dev] NetBeans Integration

2006-11-10 Thread Steffen Grund
Hi there, thank you for being interested in the NetBeans integration. You can checkout the sources from api/oonetbeansintegration/ooextensions. What you get is a NetBeans project, which can be build and debugged with NetBeans. But keep in mind that what you check out is really just a

Re: [api-dev] Unable to connect JDPA debugger

2006-08-28 Thread Steffen Grund
Hi. Just an idea: could you try with a suspend=y: agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000,suspend=y OpenOffice.org will stop the moment you reach Java code and wait for the debugger to connect. At least then you can be sure that the switch really worked and

Re: [api-dev] OOeBean error in a swt / standalone application

2006-07-25 Thread Steffen Grund
Hi there, if your set your classpath like this: java -verbose -cp C:\programme\OpenOffice2\program\classes -jar Starter.jar you should have a look at http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html (or have a look at the Java examples in the SDK,

Re: [api-dev] Are TableColumnSeparators working properly?

2006-05-03 Thread Steffen Grund
Hi. I wrote a bug for this with a test document to reproduce the behaviour, issue 65041. As a workaround, I'd suggest adding several tables with different count of columns and sizes to adjacent paragraphs. This should similar to one table with different columns. Regards, Steffen

Re: [api-dev] How to move the CurrentController from a button to a xTextRange

2006-03-22 Thread Steffen Grund
Hi Peter, add the following lines to the end of the macro that is executed when the button is pressed: xWindow = ThisComponent.currentController.Frame.ContainerWindow xWindow.setFocus() This sets the focus back to the document, HTH, Steffen Peter Eberlein wrote: Hi, to reproduce the

Re: [api-dev] Table width

2005-03-18 Thread Steffen Grund
Hi there. Right, it's the property TableColumnSeparators. Please see chapter 7.3.4 Tables of the Developer's Guide: http://api.openoffice.org/docs/DevelopersGuide/Text/Text.htm#1+3+4+Tables The TextColumnSeparator describes the distance between the column separator and the left margin of the