Re: [api-dev] XComponentLoader: XModel as PropertyValue now crashes the office
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 - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] FTP using IP address instead of ServerName
Hello Fernand, no, the ftp is not limited here. The command works for me with ftp://user:pasw...@81.95.112.15. On the other hand, the invalid ftp command ftp://user:pasw...@ftp://81.95.112.15 opens a connection, but then repeatedly asks for a password. Seems like a bug there. What Office version did you use on which platform? I tried 3.1.1 on Solaris x86. Perhaps the reason are the proxy settings on your system. Does it work if you use no proxy at all? Regards, Steffen Fernand Vanrie wrote: For opening a file over FTP we can use in code or in a filepicker dialog ftp://user:pasw...@servername have connection and acces to the server I tryed to use the IP address but with no luck ftp://user:pasw...@81.95.112.15 no connection ftp://user:pasw...@ftp://81.95.112.15 connection , user and password are accepted but nothing happens ?? Is the OO ftp protocol limited 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 Microsystems Software Engineer - StarOffice Nagelsweg 55 Phone: +49 40 23646 647D-20097 Hamburg Fax:+49 40 23646 550 http://www.sun.com/staroffice --- Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Extension - Addon.xcu
Hello again, this works for me: - Addons.xcu snippet - prop oor:name=MergeToolBar valuetoolbar/value /prop prop oor:name=MergePoint value.uno:Refresh/value /prop prop oor:name=MergeCommand valueAddAfter/value /prop prop oor:name=MergeFallback valueAddLast/value /prop prop oor:name=MergeContext valuecom.sun.star.sdb.DataSourceBrowser/value /prop This lets the button appear whenever the data source browser is opened. The merge context prevents the additional button being shown when a different toolbar is activated. (I did double check with Calc where the toolbar.xml is named Tools in the UI) Hope that helps, Steffen Jörg Schmidt wrote: Hello Steffen, steffen.gr...@sun.com wrote: 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? i mean the toolbar you can see if you click View-Data Sources in the OOo-menu - the shortcut is F4 Regards, Jörg - 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 647D-20097 Hamburg Fax:+49 40 23646 550 http://www.sun.com/staroffice --- Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Extension - Addon.xcu
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 extension (*.oxt) i use the following Addon.xcu to create an button in the browserobject-toolbar - works correct in OOo 2.4.0 but not in OOo 3.1. (in OOo 3.1 i dont get a button in the browserobject-toolbar after installation of the extension) What can i do? Regards, Jörg '-- ?xml version='1.0' encoding='UTF-8'? oor:component-data xmlns:oor=http://openoffice.org/2001/registry; xmlns:xs=http://www.w3.org/2001/XMLSchema; oor:name=Addons oor:package=org.openoffice.Office node oor:name=AddonUI node oor:name=OfficeToolbarMerging node oor:name=org.openoffice.test.testcomponent oor:op=replace node oor:name=T1 oor:op=replace prop oor:name=MergeToolBar valuebrowserobjectbar/value /prop prop oor:name=MergePoint value.uno:Refresh/value /prop prop oor:name=MergeCommand valueAddAfter/value /prop prop oor:name=MergeFallback valueAddLast/value /prop prop oor:name=MergeContext value/ /prop node oor:name=ToolBarItems node oor:name=B1 oor:op=replace prop oor:name=URL oor:type=xs:string valuevnd.sun.star.script:Serien.HDCode.start_hd?language=Basicamp;loc ation=application/value /prop prop oor:name=Title oor:type=xs:string valueTestaufruf/value /prop /node /node /node /node /node /node /oor:component-data '-- - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] NetBeans OOo API plug-in for NB 6.7
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, the question will come: is there a release date for the OOo API plug-in for NB 6.7? we are currently testing the plugin 2.0.5. We will provide the plugin later this week in the file section on api.openoffice.org http://api.openoffice.org to allow some more people to test it. I expect that it will be available in the NB update center in ~2 weeks. We got some minor issues for the plugin that we would like to fix before we put it in the NB update center. We don't know when we will we able to make it but the plugin in the file section of the api project [1] is usable. I use it in prodcution as well ;-) Juergen [1] http://api.openoffice.org/files/documents/22/4546/org-openoffice-extensions-2.0.5.nbm - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org mailto:dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org mailto:dev-h...@api.openoffice.org Hello, I download plugin and find bug. To reproduce do File - New Project - OpenOffice Add-On - Next - Back - OpenOffice Client Application - Next and then Exception! Error log is in attachment -- -- .''`. With best regards, : :' : Alexander Anisimov `. `' JID alexa...@jabber.ru mailto:alexa...@jabber.ru `-Debian - when you have better things to do than fixing systems - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Get last used column/row in a spreadsheet (Macro)
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 document... I have no idea why this is written as it is, but many of the snippets were created years ago with OOo 1.x, so, the issue may be that the author of that particular macro (probably me) was not properly efficient, or, that OOo did not support the methodology. In this case, I suspect the first. On 08/30/2009 08:54 AM, Johnny Rosenberg wrote: At page 142 in the macro manual by A. Pitonyak, there is a section about how to do it, here's a function that returns the last column of the used area: Function getLastUsedColumn(oSheet as Object) as Integer Dim oCell As Object Dim oCursor As Object Dim aAddress As Variant oCell = oSheet.GetCellbyPosition( 0, 0 ) oCursor = oSheet.createCursorByRange(oCell) oCursor.GotoEndOfUsedArea(True) aAddress = oCursor.RangeAddress GetLastUsedColumn = aAddress.EndColumn End Function I am wondering about the oCell thing. Why is that necessary? I tried the following and it seems to work: Function getLastUsedColumn(oSheet as Object) as Integer Dim oCursor As Object Dim aAddress As Variant oCursor = oSheet.createCursor oCursor.GotoEndOfUsedArea(True) aAddress = oCursor.RangeAddress GetLastUsedColumn = aAddress.EndColumn End Function Or even shorter, and still works and just as easy to follow (in my opinion): Function getLastUsedColumn(oSheet as Object) as Integer Dim oCursor As Object oCursor = oSheet.createCursor oCursor.GotoEndOfUsedArea(True) GetLastUsedColumn = oCursor.RangeAddress.EndColumn End Function Johnny Rosenberg - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Re: Wanted! Extensions developers for testing
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 easy download and install it in your NetBeans. A known issue is that when you use a new file wizard in an existing OOo project the explorer view get not updated. The new file is created correct but not visible. It appears after some delay or for example after an explicit build action. We try to workaround this problem asap. I've incured this known problem ? Overview : http://www.netbeans.org/issues/show_bug.cgi?id=157050 Duplicate list : http://statistics.netbeans.org/exceptions/showduplicateslist.do?id=103509 Thank you, best regards. - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] Info: potential SDK changes for OO.org 3.2
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 to provide the examples as Eclipse projects as well, I know, I volunteered :-) The reason I didn't start yet is that the current functionality of the eclipse plug-in does not really fit. Ariel said, most of the examples are Java Client applications, not UNO components. Currently the eclipse plug-in does not support Java Client applications, only UNO components and URE applications. So I started to enhance the eclipse plug-in to support Java Client applications. I thought it is better to do this first. Currently the new functionality comprises - a Java Client Application New Project Wizard - a Java Client Application Export Wizard - an additional Tab for the Java Client Application Project Properties page - a run/debug launch configuration and a launch configuration short-cut Although the NB plug-in does have a similar functionality, I am no longer sure, whether it makes sense at all. The reason is that the export wizard and the launch configuration depend on the loader mechanism, i.e. on starting the main method of com.sun.star.lib.loader.Loader which then starts the client application. I am not sure, whether this is just some tooling to help a beginner to get started and experiment with API functionality. If this were right, it would not make sense to include support for java client applications into the plug-in. At least not if it depends on this loader mechanism. Well, the loader is definitely not some tooling just for beginners. It makes client applications portable and removes the need of starting OpenOffice.org for the user of the client. If it does make sense to support java client applications, I would like to know a little bit more about it, in particular: - What should its functionality be? I cannot really answer this, since I am not familiar with Eclipse. I try my best to describe the way this works in NetBeans. But I really think I should answer the following question first: - Should it include the loader mechanism? Yes, I think so. The benefit of the loader mechanism is that the newest version of OpenOffice.org is located on the user's machine, independent of the platform - the loader always includes algorithms to find OpenOffice.org for all platforms (well, Linux, Solaris, Windows, Mac). Additionally, the Uno environment on the client application side is taken dynamically from the OpenOffice.org version that is found by the loader mechanism. With this, you do not have to start the Office yourself, you can let the client do that. (If you want to work with a definite version of OpenOffice.org, there are several ways to do so e.g set the UNO_PATH environment variable or set the Java property com.sun.star.lib.loader.unopath). This removes the need to pack the OpenOffice.org jars (jurt, juh, etc.) into the client application. But all this references on the usage of the client application standalone, without IDE. - If yes: - - Will teh Loader remain part of the sdk? As far as I know, nothig else is planned. - - Will the Loader always be found in sdk-install-dir/openoffice.org/basis3.1/sdk/classes/? Well, yes, if you mean the basis-link directory which in OOo 3.1 points to the above (and to basis3.2 in the next version). Otherwise one would have to include the Loader source code into each sdk-example and not have client application support in the plug-ins. Or what would be the propper solution? -Karl So here's what we did in NetBeans: the result of a build of the client application is a portable jar, including the loader machanism, but nothing else. The client itself is executable, looking for OpenOffice.org on the user's machine and starts it if it does not already run. Inside NetBeans, there's a different story. We assume that the user wants to test or debug the client here. There are settings in NetBeans that point to an OpenOffice.org version, so that version is started. This may sound easy now, but it wasn't. We had to do some ant trickery, due to the different class loaders used. Hope that helps a little bit. Regards, Steffen - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] NB plug-in: Debug Extension in Target OOo fails on OOO310_m11
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 reproduce this on Windows. I have to investigate further. Regards, Steffen Ariel Constenla-Haile wrote: Hi there, trying OOo 3.1 (Sun's build, OOO310_m11), I find it's impossible (at least on Linux) to make Debug Extension in Target OOo. If fails poping up the dialog with a deffective JRE, asking to choose a new one in the Options dialog. In NB output window: ERROR: transport error 202: connect failed: Conexión rehusada ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) JavaVM: JNI_CreateJavaVM called _exit, caught by abort_handler in javavm.cxx [Java framework] sunjavaplugin.soCan not create JavaVirtualMachine, abort handler was called. [Java framework] sunjavaplugin.soCan not create Java Virtual Machine [Java framework] sunjavaplugin.soCan not create Java Virtual Machine Of course, with this Debug Extension in Target OOo option, a new user dir. is created on the build dir., which has no Java settings (as it's a brand new user dir.). In OOo 3.0.1 everything works. Any hints? Regards - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] OOo for MS Windows problem with extension developed under Linux
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 developed and deployed through NetBeans, OOo plugin and OOo java sdk 3, on GNU/Linux platform. - The oxt package made contains an indispensable folder, called repository, and correctly added to the oxt setting the following on build.xml: target name=-post-uno-package zip update=true destfile=${uno.package.name} zipfileset dir=/root/repository includes=*/* casesensitive=yes prefix=repository/ /zip /target - Running the extension, some stuff contained in the repository folder is processed. - The path of repository is found by this code: public MyExtension(XComponentContext context) { String m_implementationName = MyExtension.class.getName(); m_xContext = context; XPackageInformationProvider xPackageInformationProvider = PackageInformationProvider.get(m_xContext); reposPath = xPackageInformationProvider.getPackageLocation(m_implementationName); reposPath = reposPath.replaceFirst(file://, ); reposPath +=/repository; ... ... } - Running the extension on OOo for GNU/Linux, the repository path is right (I have to suppress file:// at the start), and everything goes fine: /root/.openoffice.org/3/user/uno_packages/cache/uno_packages/FhREz3_/MyExtension.oxt/repository/ (this is the right folder) *_The problem:_* - When I try out the extension on OOo for MS Windows (both XP and Vista) the path is wrong, I get things like this: \C:/ . . . /MyExtension.oxt/repository You mean, the string returned by getPackageLocation is file://\C:/... ? That is a bug; please file an issue; it should be file:///C:/... instead. note the backslash ( \ ) at the start, furthermore note the slashes ( / ) contained in the path: I did know that only backslashes were allowed on MS Windows paths (but I can be wrong). What getPackageLocation returns is a URL, not a filepath in system-specific notation, so it should always only contain forward slashes. - When I try out the extension on my work pc (Windows XP), things get worse... the extension is installed under this lan folder (\\Domainserver1\...), and the REAL repository path is: \\Domainserver1\User_Folder\username\AppData\Roaming\OpenOffice.org\3\user\uno_packages\cache\uno_packages\20.tmp_\MyExtension.oxt\repository - But the path found by the extension is this: Domainserver1/User_Folder/username/AppData/Roaming/OpenOffice.org/3/user/uno_packages/cache/uno_packages/20.tmp_/MyExtension.oxt/repository note that there are no backslashes at the start and AGAIN I have slashes instead of backslashes. Here, the URL returned by getPackageLocation is file://Domainserver1/..., placing the UNC path's server name in the URL's authority component. In short, your approach of converting from a (file) URL to a system-specific filepath notation (by stripping leading file://) is too naive. In Java, you can use functionality provided by java.net.URL, java.net.URI, java.net.File etc. to do the conversion correctly. -Stephan - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org
Re: [api-dev] OpenOffice Add-On in NetBeans: no java files created
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 r_george wrote: even more suspicious: file:///D:/Programme/OpenOffice.org 3/Basis/program/offapi.rdb I don't think that's a valid path, do you? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Best way to know if SomeFileName is loadable ?
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 wrote: Hi, I need to know if a user selected file can be loaded by OOo. My current (working) implementation tests if OOo can load the file (in hidden mode). It is costly, specially when the answer is yes, as the file will actually be loaded before return. Is there a lighter way to get the answer? inline bool CanLoad(LPCWSTR sPath) { ReferenceXComponent xDoc; using com::sun::star::frame::XComponentLoader; ReferenceXComponentLoader xLoader(InstanceXComponentLoader(Lcom.sun.star.frame.Desktop)); if (xLoader.is()) try { using com::sun::star::beans::PropertyValue; using com::sun::star::beans::PropertyState_DIRECT_VALUE; PropertyValue pvHidden(LHidden, 0, Any(true), PropertyState_DIRECT_VALUE); SequencePropertyValue sPV(pvHidden, 1); using com::sun::star::frame::FrameSearchFlag::CREATE; xDoc = xLoader-loadComponentFromURL(GetPathURL(sPath).Complete, L_blank, CREATE, sPV); } catch (Exception e) {} return xDoc.is() ? xDoc-dispose(), true : false; }Thanks, AR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to open a browser with fixed size?
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 clicked and Alt key is pressed at the same time. public boolean mousePressed(MouseEvent mouseEvent) { if ((mouseEvent.Buttons == MouseButton.LEFT) (mouseEvent.ClickCount == 1) (mouseEvent.Modifiers == com.sun.star.awt.KeyModifier.MOD2)) { System.out.println(mousePressed, User pressed Alt key and clicked mouse!); desktop.browse(new URI(www.google.com)); } return false; } When desktop.browse is called, the default browser will be opened and the url will be displayed. Now I want to open a browser with a fixed size, say 600*600 pixels. If you write the following url in the address bar, a fixed size window will be opened. javascript:document.mytrial=window.open('http://www.google.com/','mytrial','width=600,height=600');location.href=location.href;document.mytrial.focus(); But if the url is opened by desktop.browse(), a error message box will be pop up from the browser. Does anybody know how to solve this? Thank you very much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Too many browsers are opened when mouse pressed
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 works as expected, the browser has the focus. Regards, Steffen wheelsdong wrote: I am working on a OpenOffice Add-on to open a browser when mouse is clicked and Alt key is pressed at the same time, as follows. public boolean mousePressed(MouseEvent mouseEvent) { if ((mouseEvent.Buttons == MouseButton.LEFT) (mouseEvent.ClickCount == 1) (mouseEvent.Modifiers == com.sun.star.awt.KeyModifier.MOD2)) { System.out.println(mousePressed, User pressed Alt key and clicked mouse!); desktop.browse(new URI(www.google.com)); } return false; } There are two problems: 1, Sometimes only one browser is opened, but sometimes more than one browsers are opened. Why is desktop.browse() called many times to open many browsers? 2, If only one browser is opened, the focus is not on the browser but still on the OpenOffice application. How can we make the focus on the browser? Can anybody give some solutions for the two problems? Thank you very much! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Java Web services from openoffice
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 file. Inside, there should be an external_jars folder where all additional jars are packed that you use in your extension. If you do not find any jars there or if the jar that should contain HttpClient is missing I'd like to see your project if that's possible. Regards, Steffen Stephan Bergmann wrote: On 10/07/08 10:08, Vinzzz wrote: That's part of my problem, i haven't any kind of error or exception thrown. Openoffice just closed with a message that informs me that the document will be rescued. What is the stack trace and where can i find it ? maybe i'll find something there... The easiest might be to wrap the complete body of your dispatch method in try { ... } catch (java.lang.Error e) { e.printStackTrace(); throw e; } catch (java.lang.RuntimeException e) { e.printStackTrace(); throw e; } (and test on Linux, not Windows, so you see the resulting stderr output). -Stephan Stephan Bergmann wrote: On 10/06/08 23:53, Vinzzz wrote: Hi, I try to launch a web services from an openoffice add-on. I am using netbeans 6.1 on Windows XP platform (i Try on linux and got the same error). i have the code below, using the package org.apache.commons.httpclient.* : public void dispatch( com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments ) { if ( aURL.Protocol.compareTo(com.xxx.xxx:) == 0 ) { if ( aURL.Path.compareTo(getXXX) == 0 ) { HttpClient client = new HttpClient(); When I try the add-on on debug mode, it crashes when he tries to create the new HttpClient. What do you mean with crash? Any Java Exception/Error being thrown? If so, what is the Exception/Error type, message, stack trace? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] converting java functionality to OOo3
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: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Java_Language_Binding You have to use the getComponentLoader() function that already exists in your code: exportFile( (String) file, getCompLoader()); should work, but only when you change the xContext variable from a local variable in the main function to the already existing class variable - you'll get a null pointer exception otherwise. Hope that helps, Steffen Andreas Mantke wrote: Hi Jürgen, Am Saturday 04 October 2008 16:08:53 schrieb Juergen Schmidt: (...) I am not aware of such changes. The changes made for OO.org 3.0 wwere internally only. We had to adapt the code to find and work with the new structure. That's all. You problem must be a different one. thanks for that hint. I tried it with the code of the old implementation of the PDFExporter-Java-Program and it works. I had to test it now on a box without a OOo3 (only 2.4.x). Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Copying sheets between documents
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 think this idea is quite obvious, so am I missing something? Anyway, see http://wiki.services.openoffice.org/wiki/Non-code_extensions on how to add templates to your AddIn. Regards, Steffen Andreas Schneider wrote: Hello mailing list, I'm writing a (java) extension which provides access to a database through Calc functions (a typical AddIn). Since this data can change in the background or a user has to go offline, I wanted to implement a snapshot functionality. The idea is, that the document is replicated but all formulas which refer to the database are replaced by absolute values. The first thing I though of, was to use the method specified here: http://codesnippets.services.openoffice.org/Calc/Calc.CopySheet.snip which selects all, then copies, then pastes. But since this fiddles with the clipboard, I would really like to avoid it ... that looks more like a workaround than a solution. My second though was, to manually copy over everything via API. Cell contents were no problem (query the used ranges, get their data, write them to the target sheet, and so on). But that gets damn complex, since I would also have to copy over styles, number formats, col and row height/width, etc. etc. So this also doesn't seem like the best solution. The question is: is there any (semi-)official way to duplicate a whole document? Or at least everything but the cell contents? (And no, saving and reloading wouldn't be a much better solution than number one ;-)) Thanks, Andreas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Calc Addin questions [Re: .oxt file]
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 resources that we have, give us feedback and help this way to improve the resources/documentation. See some comments inline ... Ariel Constenla-Haile wrote: Hi Andreas, Andreas Lauschke escribió: Ariel, did you get my email of July 6? How do I return an array as an array formula (the Shift+Ctrl Return thing)? yes I recived it, so please sorry me, I have three mails of you marked as TO-DO, but didn't find the time to give a responsible answer (the end of the first academic semester [it ends today here in Argentina - followed by a 2 weeks winter holidays] kept me too busy; to this add a Patagonian trip to see the glacier tearing apart [] and a 22 nights Krystov Kieslowski film retrospective; all this together kept me away from hobby-things like playing with OOo API). Anyway, remember that if you send your mail to dev@api.openoffice.org you have more chances to get a faster/better answer. In the following I quote and answer your previous questions (again, sorry for the delay) Can you see what is wrong with the attached .oxt file? When I double-click it and register with OOo, my test function shows up in the function browser in Calc, but I get an error #Null!, which means there is an internal syntax error. It should just display a test string, that's all, but it doesn't. In the idl file the return type has to be string, in the Java code String (note upper and lower case!). With return Hello World; in your Java code everything should be ok. But this is the wild guessing Ariel mentions. Without seeing the code, unfortunately I can't do much, other than wild guessing... so I guess it has something to do with the type of the value you return, and if it matches its IDL declaration. So please send me the source code if you need a deeper look into this. When I say deploy, I get the number of type error. But when I choose debug, for some reason it works! what do you mean by the number of type error? Any way, I strongly discourage deploying (Deploy OOo Extension or Deploy and run extension in OOo) the extension in your working OOo, even if there is no current OOo process started. Reasons: * by deploying once and again testing extensions in your working OOo, you may end messing up your OOo user installation (the only solution will be then to remove the openoffice.org2/user/uno_packages folder); so you better keep your OOo inst. clean * by deploying in a running installation you may get runtime exceptions (you may want to re-install a component that was already instantiated by the office and is in use, etc.) * etc. ... So the *best* choice for testing/studying is debugging, and deploying only in the final testing step, to make sure it works. It's the best because when debugging, the office is started with an environment parameter that tells to create the user directory inside the *build* folder of your NB project, keeping your real user installation clean and safe. Every time you clean the project, this user directory is deleted. You can try this on your own by using the switch -env:UserInstallation=file:///[here goes an URL pointing to the location where you want your user installation to be]/ For example to deploy the extension on a new user installation anywhere you want [in this case /home/ariel/ooo-debug/]: /opt/openoffice.org2.4/program/unopkg gui -f file:///home/ariel/NetBeansProjects/ooo/Addins/DemoAddin.oxt -env:UserInstallation=file:///home/ariel/ooo-debug/ To start the office reading/writing the user setting from this dir.: /opt/openoffice.org2.4/program/soffice -nologo -nofirststartwizard -norestore -env:UserInstallation=file:///home/ariel/ooo-debug/ For extra command line arguments, type soffice -help on the command line. It makes me go through the whole setup wizard again, use the option -nofirststartwizard and then I am in OOo, not Calc (I have to open Calc from within OOo), but then my function is there, and it works! use the option -calc How to do this from within NetBeans? [a basic knowledge of how Ant works is helpful - unfortunately people now, thanks to cool IDEs, start coding without studying basic things like the use of GNU Make or Ant] * go to the Files window (ctr-2) * expand the tree and open the Ant build script for the UNO project: MyProject |-nbproject \--build-uno-impl.xml * find the target uno-debug (it's very easy using the Navigator window) * there add the environment variables and additional arguments where it says !-- start Office with debug Java and user installation -- exec executable=${office.soffice} dir=${office.program.dir} failonerror=true arg value=-nofirststartwizard/ arg
Re: [api-dev] the meaning of =
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 Rosenberg wrote: snip Hi Johnny and Ariel, Thanks to both of you. Your advice was extremely helpful and I've been able to carry on a fair bit until hitting the next obstacle. The contextual help available in the Macro editor really speeds things up and the methods that Johnny suggests are also the ones I use. Anyway, my next question: Am I correct in thinking that this Basic doesn't distinguish between name assignment and equality testing? It seems that if I right something like: Pet = dog it is ambiguous. It could mean, assign the value dog to the variable Pet or it could mean a statement that the variable Pet has the value dog. In the latter case if could be found in an if statement like If Pet = dog then i = i+1 end If So i gets increased in value if the statement Pet = dog is true. Notice that = is used in 2 different ways above. Now I want to create a While loop of the form While Position = Instr(i, ProcessString, ) It appears this doesn't work. I wanted to evaluate the function InStr and assign its value to the variable Position. I can't do that in Basic, I guess. It looks like I have to repeat the Instr expression in the While statement and inside the loop like this: While Instr(i, ProcessString, ) Position = Instr(i, ProcessString, ) etc. etc. etc. Wend Is this the way I have to do it? It certainly looks ugly. Thanks for putting up with my slowness. I do have a lot of code that works the way I want thanks to your help (both of you). Cheers, Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] NB Plugin - Configuration on Wiki page is incorrect - OO plugin does not show up in NB 6.0 plugin manager
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 main point is that: http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=2320 states: Works with: 5.5, 5.5.1, 6.0 ,and people are asking about it. It probably needs updated to stay the confusion if it doesn't already work in NB 6.0, that or the Wiki page the given URL refers one to after clicking the download button needs to be modified with an explanation. Otherwise people are just getting frustrated with the plugin page, then ask on nbusers, and obviously are not signing up for this mailing list instead to ask questions. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Starting OOo
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 set to the Windows installation directory that must also be set for OOo. (Other variables here are TEMP and HOME.) Of course, this all is futile, if the environment in Java is the same as the one in the command line. Regards, Steffen Hal Vaughan wrote: 1) Is there any reason OOo might not start from the environment created by the Runtime class even though it starts from the command line? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Problem with with NetBeans Plug-In
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 org_openoffice_nb_integration_log_path to the directory of your choice.) The output of the skeletonmaker call is posted into the logfile. It would be really helpful if you could post the content of the file here. Regards, Steffen Max Giesbert wrote: Hi Juergen, yes, i am using the Ubuntu OOo-dev from the repositories. But using the official (32-Bit) OOo-SDK doesn't do the trick either. As before the package is created but no .java file in it... Is there a log file or anything where i can see what's happening? Thx Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Problem with with NetBeans Plug-In
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 contain a path to call basename, so it is simply not found and calling uno-skeletonmaker.bin fails because the name is not constructed correctly. Now that I know it, I can easily extend the plugin to be aware of this and work correctly on Ubuntu. Would you like to write me a bug for it? Regards, Steffen Max Giesbert wrote: CRITICAL # org.openoffice.extensions.util.ProjectCreator,line 486: /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker: 4: basename: not found /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker: 4: /usr/lib/openoffice/sdk/linux/bin/.bin: not found ---this happened with the Ubuntu SDK ---then i changed /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker from #!/bin/sh # wrapper script for OOos SDK programs LD_LIBRARY_PATH=/usr/lib/openoffice/program /usr/lib/openoffice/sdk/linux/bin/`basename $0`.bin $@ ---to #!/bin/sh # wrapper script for OOos SDK programs LD_LIBRARY_PATH=/usr/lib/openoffice/program /usr/lib/openoffice/sdk/linux/bin/uno-skeletonmaker.bin $@ Maybe you can enlighten me what exactly went wrong in the first place because I don't really get it. Thx Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] netbeans and oppen office
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 the the ant jar targetand writes a manifest section for Openoffice bootstrap class loader, unfortunately this target ignores the Class-Path attribute (see [***] below...) I worked this around by creating a manual manifest.mf - copying and pasting the automatically generated bits from the plugin generated manifest, and over-riding the jar target within build.xml to load the manual manifest file...something like: target name=jar depends=-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar jar basedir=${build.classes.dir} compress=true jarfile=${dist.jar} manifest=manifest.mf fileset refid=bootstrap.glue.code/ /jar /target thanks Ashok [***] - build-uno-impl.xml - manifest section without class-path target name=jar depends=-uno-project-init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar jar basedir=${build.classes.dir} compress=true jarfile=${dist.jar} fileset refid=bootstrap.glue.code/ manifest attribute name=Main-Class value=com.sun.star.lib.loader.Loader/ section name=com/sun/star/lib/loader/Loader.class attribute name=Application-Class value=${main.class}/ /section /manifest /jar /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] netbeans and oppen office
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 in the manifest file inside of your jar, feel free to write me a bug. I may be able to create a workaround hopefully. Regards, Steffen houssam elhallak wrote: hello this is my first mail here with this list ,I'm sorry if this is not the right place . I have been spending 2 days on this problem every thing is ok when I create openoffice application client with netbeans the problem start when I try to create a jform or a jpanel and then use any layout netbeans will include a library called swing layout swing-layout-1.0.1.jar my application still run in a good way in netbeans ,but when I try it to execute it from the commande line ,I got this error . java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group I tried every thing I know but no way ,to say the truth Im not expert with ant so I hope any one can give me some help thank you in advance _ Get a preview of Live Earth, the hottest event this summer - only on MSN http://liveearth.msn.com?source=msntaglineliveearthhm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Get new filename on save as event
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. Don't know if there is a simpler solution. Here's some sample code anyway (without handling the recursion!): public void notifyEvent(EventObject event) { if (event.EventName.equals(OnSaveAsDone)) { XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, event.Source); PropertyValue[] props = xModel.getArgs(); for (int i = 0; i props.length; i++) { // still have to check the props[i].Value for the right filter if (FilterName.equals(props[i].Name)) { // get the document for changing... XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xModel); // store again and enter this method again // - never ending recursion! XStorable xStorable = (XStorable)UnoRuntime.queryInterface( XStorable.class, xTextDocument); xStorable.storeAsURL(xModel.getURL(), new PropertyValue[0]); } } } } Jakob Lechner wrote: Hello, I want my UNO component to modify a text document just before it's saved. Therefore I've used an EventListener in order to get notified about the OnSaveAs event. Does anybody know how I can retrieve the new filename of the document? I want to modify the document if and only if it is saved as html document. Thanks in advance! Best regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Registering an XMailMergeListener - possible at all?
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] howto call a method defined in a uno component from a macro
This should work in the right context: document = ThisComponent.CurrentController.Frame dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) rem -- dispatcher.executeDispatch( document, cspsolver.SolverImpl:execute, , 0, Array()) HTH, Steffen Mikael De Bie wrote: Hi everybody, I created a uno component. It contains an execute function. I can call this function by using an button on the officeToolBar. What I want to do is be able to call this function from a macro too. This is the code that permit the call from the button on the toolbar : --- node oor:name=OfficeToolBar node oor:name=cspsolver.SolverImpl oor:op=replace node oor:name=m1 oor:op=replace prop oor:name=URL oor:type=xs:string valuecspsolver.SolverImpl:execute/value /prop prop oor:name=ImageIdentifier oor:type=xs:string value/ /prop prop oor:name=Title oor:type=xs:string value xml:lang=en-USCSP/value /prop prop oor:name=Target oor:type=xs:string value_self/value /prop prop oor:name=Context oor:type=xs:string valuecom.sun.star.sheet.SpreadsheetDocument/value /prop /node /node /node -- Is there a way to call cspsolver.SolverImpl:execute from a macro ? if yes, can somebody tell me how ? Thanks in advance, Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] delete file using oo file open dialog - no restore possible
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 behaviour. Just for completeness: there _is_ a dialog box asking if the file should be deleted before anything happens. HTH, Steffen Oliver Brinzing wrote: Hi, one of our users complains, deleting a file using the oo file open dialog (context menu/ delete button) will delete the file immediatelly ... There seems no possibility to restore the file, e.g. windows trash can ... I remember, in SO 5.2 we had a OO trash can in user/store/trash ... Is there a way to activate the old behaviour ? Oliver - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] NetBeans Integration
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 snapshot, since we do not have a final version of the integration yet. So updates of the sources from our side may happen often (usually weekly). I am naturally curious, in which way you would like to extend the integration? Please have a look in our wiki (if you have not done so already) for an overview of the project: http://wiki.services.openoffice.org/wiki/OpenOffice_NetBeans_Integration Regards, Steffen Robert Vojta wrote: Hallo, NetBeans Integration is very interesting thing. I know that there is a preview available. Is there a place where anyone can find source code for this integration package? To see how it works internally, to extend it, ...? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Unable to connect JDPA debugger
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 OpenOffice.org can be debugged, theoretically. Unfortunately, my guess is that everything will happen as expected and you're none the wiser afterwards. But at least you know that the problem is most likely not on the OpenOffice.org side. Regards, Steffen The switch I am using is for 1.5 is what Oliver (on this list) suggested: agentlib:jdwp=transport=dt_socket,server=y,address=localhost:8000,suspend=n - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OOeBean error in a swt / standalone application
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, http://api.openoffice.org/SDK/) Each jar file must be referenced explicitly in the classpath. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Are TableColumnSeparators working properly?
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to move the CurrentController from a button to a xTextRange
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 problem: Create a text document with two pages; on page one a xTextRange and on page two a push button which triggers the following snippet: oViewCursor.GotoRange(xTextRange, False) 'or 'oDoc.CurrentController.Select(xTextRange) oViewCursor.SetVisible(true) The xTextRange is selected, but the user can not write immediately after clicking the push button, because the button has the focus yet. And curious: msgbox Where's the cursor? oViewCursor.GotoRange(xTextRange, False) 'or 'oDoc.CurrentController.Select(xTextRange) oViewCursor.SetVisible(true) Now the user is confused, because he won't see the selection but the control. For example the push button is used for checking the layout in big documents (made all necessary entries? all placeholders are deleted? etc.). Any hints? Regards Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Table width
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 table. This value is not the real value, but related to the relative table width. Hope that helps, Steffen Cristian Fonti wrote: I try to set the properties also after that before, but nothing... I have another problems: i want to change the column width values, and i suppose that he only way to change them is use TextColumnSeparator. But,the value that you must insert, what is? is a formula of what?? is the distance from left margin or is the real width of the column?? Thanks to all - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]