Re: [api-dev] xcu documentation or examples
Paolo Mantovani wrote: Hi Ian, Cor, Alle 08:09, mercoledì 19 gennaio 2005, Cor Nouws ha scritto: [...] If you like to learn from examples see how I did it: [...] Thanks a lot - Cor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: Does OOoBean.setToolBarVisible() not work?
Tobias Müller wrote: Hi, calling setToolBarVisible(true) on an OOoBean object does not show the toolbar, as I would expect it. Calling setToolBarVisible(false) before has no effect either. which bean and which office version? Sorry. OpenOffice 1.9.69 and the OOoBean shipped with it. (Full-qualified name: com.sun.star.comp.beans.OOoBean) setToolbarVisible and all the other toolbar functions don't work in the new bean. Remember: the old bean was just a demo! OOo itself now offers an API to access the toolbars. Besides that the new toolbar concept of OOo2.0 does not know the toolbars from OOo1.x anymore. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: OOoBean
On Wed, 19 Jan 2005 20:40:32 +0100 Jochen Staerk [EMAIL PROTECTED] wrote: Hi, I always thought that adding the class path to your manifest would be sufficient and has the same effect than using the cp-commandline switch but I could be completely mistaken. I thought a MANIFEST like this would work: --8-- Manifest-Version: 1.0 Main-Class: at/bestsolution/oeush/members/MembersAdmin Class-Path: lib/a.jar /usr/lib/openoffice/program/classes/officebean.jar ... 1) I'm not sure I'm right either, today was the first time I learned about how to add classpaths to manifests but 2) AFAIK manifest-classpaths can be relative and CLASSPATHs are absolute. And with a manifest very similar to yours (adding jurt and juh.jar and stuff) I get a libofficebean.so not-found-exception. bye, Jochen Hi Jochen, normally if you have the oo-jars (all from oo-home/program/classes) in your classpath (manifest or CLASSPATH or with the -cp switch) the libraries are found. There is a helüper-class, which load the native-libraries in the parent-directory of officebean.jar (if the library is not in LD_LIBRARY_PATH or %PATH% on Windows). If you want to deploy your application together with the oo-jars (in a relative subdirectory) the native-libraries cannot be found. If I understand you correct and you want to deploy your application (some mails above on this list) on different systems and OS. You have to find a way to set the correct-classpath and native-ölibrary-path on the target system. You can use start-scripts (run.bat run.sh) which create a classpath and launch your application with java -cüüp mypath my.package.Main. But the users have to set the OO-path by hand before. In this case you cannot use a selfstarting jar. You can use a classloader to load your application. There you can use a selfstarting jar (double-click on Windows). There are some launcher-projects available like: http://jakarta.apache.org/commons/launcher/ You can develop your own Launcher and add the oo-jars from the target-system to your application. Example: create a subdirectory 'lib' of your application and add there all your application-jars. In the parent-directory place the launcher-class or self-starting jar like(untested): import java.io.*; import java.net.*; import java.util.*; public class Launcher{ public Launcher(){ } public static void main(String[] args){ Launcher l = new Launcher(); l.launchApplication(args); } public launchApplication(String[] args){ ArrayList urls = new ArrayList(); //add your application jars addJars(urls,lib); //get now the path of the OO-installation //from a property-file, dialog or scan the filesystem String oopath = get...(); //add all to the classpath addJars(urls,oopath); //create URL[] from the urls-List URL[] classpath ... URLClassLoader loader = new URLClassLoader(classpath); //now load your application Main-class and start this try{ Class clazz = loader.loadClass(my.Main); //get the main-method Class[] params = new Class[1]; params[0] = args.getClass(); Method m = clazz.getDeclaredMethod(main,params); //prepare the args Object[] methodparams = new Object[1]; //the args from the commandline methodparams[0] = args; //lauch the application m.invoke(null,methodparams); }catch(Exception e){ //handle this } } private void addJars(List list,String dir){ File f = new File(dir); if(f.isDirectory()){ File[] jars = f.listFiles(); for(int i=0;ijars.length;i++){ if(jars[i].getName().toLowerCase().endsWith(.jar)){ try{ list.add(jars[i].toURI().toURL(); }catch(Excpetion e){ //handle this } } } } } } This will launch your application with custom-classloader, which puts the oo-jars to his classpath. On the windows-platform you will get problems if the oo-home/program directory is not int the %PATH%. You can preload the native-libs, but you need the right order of the libs and this can simple changed by newer OO-releases. I hope this can help. Best Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: OOoBean
Hi Simon, and thanks for your answer and the classloader-sample-code, normally if you have the oo-jars (all from oo-home/program/classes) in your classpath (manifest or CLASSPATH or with the -cp switch) the libraries are found. There is a helüper-class, which load the If you want to deploy your application together with the oo-jars (in a relative subdirectory) the native-libraries cannot be found. OK If I understand you correct and you want to deploy your application (some mails above on this list) on different systems and OS. You have to find a way to set the correct-classpath and native-ölibrary-path on the target system. OK. That's what I want to do; deploy my application (if possible as a single java JAR) to users which use different OSses and have their OOs in different locations. I do not need to have officebean.jar in my JAR, but I'll explain why that would have helped in the next paragraph. I won't do it, anyway, because this obviously is not the way it's ment to be. You can use start-scripts (run.bat run.sh) which create a classpath and launch your application with java -cüüp mypath my.package.Main. But the users have to set the OO-path by hand before. In this case you cannot use a selfstarting jar. OK. Additionally, I can not use a selfstarting JAR if I do not have a classloader or a launcher application that changes the JAR-Manifest according to the user's OO-location because a java -jar-Application won't react on the -cp-Argument nor or the CLASSPATH-environment. (http://java.sun.com/j2se/1.4.2/docs/tooldocs/findingclasses.html, The JAR archive specified by the -jar option, which overrides all other values. If this option is used, all user classes come from the specified archive.) You can develop your own Launcher and add the oo-jars from the target-system to your application. Example: ... On the windows-platform you will get problems if the oo-home/program directory is not int the %PATH%. You can preload the native-libs, but you need the right order of the libs and this can simple changed by newer OO-releases. Do you mean this order can change in a newer OO-release or this problem can be resolved by using a newer OO-release? I hope this can help. very much, thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: OOoBean
Hi Simon, I mean the order can changed by newer releases. The officebean.dll depends on MSVCR70, UWINAPI, sal3, jpipe (this is the order to load it). But this can be changed with OO2.0 or 1.1.x. I have not looked at OO2.0 and I don't know if the new OfficeBean will handle this self, Yes, OOoBean (the new Java Bean baseclasss for OOo) does load these libraries. But if you translate it yourself with a new compiler, other libraries might be needed. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] AGAIN: auto grammar checking
Following Michael Hoenig's advice (unanswered questions), here I am again. AIM: check the current API's support for prototyping a grammar-checker API externally, i.e. without messing with OOo's source. MY QUESTIONS TO API DEVELOPERS REGARDING THE CURRENT API'S CURRENT FEATURES (not necessary now to answer HOW, just if the following are possible and an idea of difficulty level) 1 - Can specific context menus be assigned to specific portions of text? 2 - Can a specific portion of text be assigned a user-defined property, e.g. its language? My (not new) idea is let the user specify which language(s) they intend for each portion of text. 3 - Can error underlining (like the curly red one for auto spell-checking) be assigned to specific portions of text in a way that it would neither (i) conflict with end users' formatting nor (ii) be printed out eventually? 4 - Is it possible to implement a service, component or whatever might be plugged-in through the API such that: it _concurrently_ looks for visible text, breaks visible paragraphs into sentences, checks them for grammar and _asynchronously_ request the API to perform (1), (2) and (3) above? Thanks in advance! Cheers, Jorge. Quoting Michael Hoennig [EMAIL PROTECTED]: 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 think about simplifying your question, strip down your code example etc. I'd like to remind that this mailinglist is not a support forum. We core developers like to see all questions answered, but we cannot do your work. Thus, even though some background information can be helpful, phrase your question as easy as possible to us and focus on the OOo API rather then your application. Michael -- http://api.openoffice.org - 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]
[api-dev] Collaborative macro development and an expt with a Find Files macro
I have been blathering on for some time about the need for an environment that facilitates collaborative development of OOo macros. I have decided (being rather stupid I needed others to recommend this) to try using Issue Tracker. As an experiment I have cobbled together a macro for finding OOo files that match user specified criteria including text within the file. I have posted the file to: http://qa.openoffice.org/issues/show_bug.cgi?id=41011 I encourage people to pull apart what I have done so that it can either be improved or discarded as a waste of time. Thanks, Ian Laurenson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OOo Basic Specification
Hi Curtis, Is there a complete specification for the OOo Basic language? For OOo Basic you can just press F1 when you are in the Basic-IDE. For the OOo-API take a look at http://api.openoffice.org/ where you will find the idl-reference: http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html and the Developers Guide: http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html Hope that helps Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: OOo Basic Specification
Stephan Wunderlich wrote: Hi Curtis, Is there a complete specification for the OOo Basic language? For OOo Basic you can just press F1 when you are in the Basic-IDE. For the OOo-API take a look at http://api.openoffice.org/ where you will find the idl-reference: http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html and the Developers Guide: http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html Hope that helps Regards Stephan Thanks for the attempt. Unfortunately the Basic IDE help files are both incomplete and full of error, the IDL reference is for the API and bindings, and not for the OOo Basic language, and the Developers Guide is out-of-date, incomplete, and is not a specification for the OOo Basic language. An an example: None of these references mention that you can use the user defined type keyword Type for compound data. There are a lot of omissions like this, and I am hoping to find the OOo Basic language specification upon which the interpreter implementation is based so that I don't burn man-hours on FAQs and guides built only on experimentation and guesswork. -- The Snake Pit - Development www.TheSnakePitDev.com Curtis Clauson[EMAIL PROTECTED] Proprietor Any sufficiently over-complicated magic is indistinguishable from technology. -- Llelan D. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: OOo Basic Specification
Hi Curtis, no, there is no specification available. Only the existing online help and the docu in the DevGuide. When you find bugs in both kind of documentation, you can easy help us by submitting an issue for the problem. The Community will owe it to you Juergen Curtis Clauson wrote: Stephan Wunderlich wrote: Hi Curtis, Is there a complete specification for the OOo Basic language? For OOo Basic you can just press F1 when you are in the Basic-IDE. For the OOo-API take a look at http://api.openoffice.org/ where you will find the idl-reference: http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html and the Developers Guide: http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html Hope that helps Regards Stephan Thanks for the attempt. Unfortunately the Basic IDE help files are both incomplete and full of error, the IDL reference is for the API and bindings, and not for the OOo Basic language, and the Developers Guide is out-of-date, incomplete, and is not a specification for the OOo Basic language. An an example: None of these references mention that you can use the user defined type keyword Type for compound data. There are a lot of omissions like this, and I am hoping to find the OOo Basic language specification upon which the interpreter implementation is based so that I don't burn man-hours on FAQs and guides built only on experimentation and guesswork. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Re: OOo Basic Specification
Curtis Clauson wrote: Jürgen Schmidt wrote: Hi Curtis, no, there is no specification available. Only the existing online help and the docu in the DevGuide. When you find bugs in both kind of documentation, you can easy help us by submitting an issue for the problem. The Community will owe it to you Juergen Thanks Juergen. Unfortunately, it is difficult to submit issues when you have no idea if the behavior is a bug or part of an unknown and undocumented design. The community would reap far more benefit if an OOo Basic language specification were a live document in the scripting project documentation section. Well, first you search the the issues to see if it has already been filed. You can post here and ask. You can create an issue and have them tell you that it is not an issue. I have found the people who deal with these things to be very polite, even when I am wrong and waste their time (which happens on occassion). Most of the bugs that I bothered to submit for the code have been fixed. -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Embedding OOo into a VB application
Hi, 1) ActiveX By using OOo ActiveX component (so_activex.dll) it seems possible to embed OOo. The problem is that very few methods and properties are exposed and there is a lack of documentation about API on how interact with the component. There is no type library and the IDispatch::GetTypeInfo is not supported as well. That is, you need dynamically invoke methods. For C++ this means calle GetIDsOfNames before every Invoke. 2) Office automation via COM We manage to create a Service Manager component representing OOo server which is possible to send commands for document manipulation. The problem is that every document is associated with its external window (not embedded). If it was possible to capture the window creation and to embed it into the form this will solve the problem The com.sun.star.ServiceManager is an Exe - COM - component and there is no in-process handler DLL available. 4) CLI-UNO Bridge We tried to use CLI-UNO bridge. There are 4 DLLs to reference into .NET project. Unfortunately the documentation it's not clear about what it's possible to do with the exposed namespaces and it's not clear if it is possible to create a Window object to be embed into a form. Even if it's seems very promising some substantial improvements are previewed for the 2.0 and this way could bring to write code not reusable with the new version. The CLI-UNO Bridge for StarOffice 7 / OOo 1.1.x is only a technology preview and is unsupported. I suggest to use OOo 1.9.x to test out the bridge. Then the assemblies are automatically installed (if you have a .NET framework 1.1 installed), the office will be automatically started and there are probably some other improvements. Unfortunately the Developer's Guide which contains updated information will take another couple of weeks until it is available on api.openoffice.org. This probably does not solve your problems but maybe give you some hints. Joachim Hi all, a friend on mine is trying to embed OOo 1.1.3 into a documentation management system developed in Visual Basic. I state in advance I am not an expert and I'm investigating what is the best way to exploit. It's problem is to open an OOo instance into a VB form in order to access documents in different format, to visualize document pages, to zoom into the content, to print and so on. That is, he would like to access OOo services in Visual Basic as it is possible in C++. He tried different ways that are ActiveX, COM, JavaBean as ActiveX control and CLI-UNO bridge. Each way has presented some problems. 1) ActiveX By using OOo ActiveX component (so_activex.dll) it seems possible to embed OOo. The problem is that very few methods and properties are exposed and there is a lack of documentation about API on how interact with the component. 2) Office automation via COM We manage to create a Service Manager component representing OOo server which is possible to send commands for document manipulation. The problem is that every document is associated with its external window (not embedded). If it was possible to capture the window creation and to embed it into the form this will solve the problem 3) Javabean as ActiveX control We managed to create a JavaBean containing an ActiveX and to register it as DLL (BasicOfficeBean.dll) which is possible, at design type, to integrate into a form. When the program is executed, the ActiveX control is created correctly, but during OOo connection initialization phase, officebean.dll is not found. BasicOfficeBean.setOfficeConnection(new LocalOfficeConnection()); public synchronized void setOfficeConnection(OfficeConnection aConn) throws java.lang.IllegalStateException { ... // mConnection = NewLocalOfficeConnection(); mConnection = a Conn ; mConnection.addEventListener(new ConnectionListener()); } The bean initialitazion procedure tries to create a connection to the local server using the code in officebean.jar. This calls the function LocalOfficeConnection() and in its turn try to load officebean.dll into its contructor public LocalOfficeConnection() { try { setUnoUrl( uno:pipe,name= + getPipeName() + ;urp;StarOffice.Servicemanager); } catch ( java.net.MalformedURLException e ) {} // load libofficebean.so/officebean.dll String aSharedLibName = getProgramPath() + java.io.File.separator + System.mapLibraryName(OFFI_LIB_NAME); System.load( a SharedLibName ) ; // System.load(C:\\ooo1.1.3\\program\\officebean.dll); Effectively installation directory of OOo is not found so it's not possible to load the DLL. It seems that getProgramPath returns a void string. 4) CLI-UNO Bridge We tried to use CLI-UNO bridge. There are 4 DLLs to reference into .NET project. Unfortunately the documentation it's not clear about what it's possible to do with the exposed namespaces and it's not clear if it is
[api-dev] Enumerate selected lines in the DataBasebrowser
Need some help (basic coded) to have acces to the different lines when this lines are manualy selected in the DataSourcebrowser. So: A user makes a multiple selection in the datasoursebrowser and then via a macro he need to passes the data, line per line, into textfields and saving the Writer document between every line. Now how to do that via a classic connection to a datasourse but needs some sample code in basic to do the same thing with lines selected in the datasourcebrowser . In the archives i found also so Java code but do not now how to transled to basic. Fernand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Embedding OOo into a VB application
Hi Davide 3) Javabean as ActiveX control We managed to create a JavaBean containing an ActiveX and to register it as DLL (BasicOfficeBean.dll) which is possible, at design type, to integrate into a form. When the program is executed, the ActiveX control is created correctly, but during OOo connection initialization phase, officebean.dll is not found. officebean.dll is included in the OOo installation an found by the bean by - either looking one directory higher in the hierarchy than the jar files refered by the CLASSPATH - or by the findResource method of the ClassLoader. Additionally in the version you are using, the OOo Java Bean is nothing but an SDK example. OOo 2.0 will be the first version with an official OOoJavaBean. But the search mechanism is basically the same. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Enumerate selected DataSourceBrowser lines
Hello Fernand, Need some information in basic code to get acces to multi selected lines in the DataSourceBrowser. out of my head, completely untested, and written in some pidgin basic: oDataSourceBrowser ' the component in the small ' data source browser frame .getControls()' all controls in the responsibility ' of this XFormController (0) ' the first control (which is a ' css.sdb.control.GridControl) .getSelection ' the current selection in this control The selection should contain an array of integer values, denoting absolute positions within the com.sun.star.sdb.DataForm. To use those positions, do oDataSourecBrowser ' as above .getModel() ' the form which is currently loaded ' into the DSB .createResultSet() ' a clone of the form, which can be ' operated without affecting the form ' itself .absolute( position ) ' move the result set to the given ' position, which is one of the integer ' values from the selection Something like this :) Ciao Frank -- - Frank Schönheit, Software Engineer, OpenOffice.org Database Access - - [EMAIL PROTECTED] http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Enumerate selected DataSourceBrowser lines
Hello Frank, Even your pidgin basic is more valuable than my compleet knowledge of this stuff, but i think i can do it working in the way you setout for me, i can already opening a Datasourcebrowser and filing it with data out of a datasource (your oDataSourceBrowser) but how can i get acces to a DSB who is already manualy opened by a user. I tryed this code after i maually loaded a datasourcebrowser with data in the beamer: sub test Dim cntrlr As Object Dim frame1 As Object, frame2 As Object Dim url As new com.sun.star.util.URL Dim dispatcher As Object Dim oShape As Object, oDrawPage As Object, oModel As Object Dim oController As Object, oCtrll As Object Dim params(2) as new com.sun.star.beans.PropertyValue Dim list1 as object, ctrl as object dim oDoc as object dim oObj oDoc = thiscomponent cntrlr = oDoc.getCurrentController() frame1 = StarDesktop.getCurrentFrame() url.Complete = .component:DB/DataSourceBrowser dispatcher = frame1.queryDispatch(url, _beamer, 12) dispatcher.dispatch(url, DimArray()) frame2 = frame1.findFrame(_beamer, 4) frame2.setName(ODatasourceBrowser) oObj = frame2.getController() end sub But running it the first time I end up with an EMPTY beamer and running it a second time i get an error dispatcher.dispatch(url, DimArray())object variable not set what are i am missing here ? Thanks Fernand At 17:40 25/01/05, you wrote: Hello Fernand, Need some information in basic code to get acces to multi selected lines in the DataSourceBrowser. out of my head, completely untested, and written in some pidgin basic: oDataSourceBrowser ' the component in the small ' data source browser frame .getControls()' all controls in the responsibility ' of this XFormController (0) ' the first control (which is a ' css.sdb.control.GridControl) .getSelection ' the current selection in this control The selection should contain an array of integer values, denoting absolute positions within the com.sun.star.sdb.DataForm. To use those positions, do oDataSourecBrowser ' as above .getModel() ' the form which is currently loaded ' into the DSB .createResultSet() ' a clone of the form, which can be ' operated without affecting the form ' itself .absolute( position ) ' move the result set to the given ' position, which is one of the integer ' values from the selection Something like this :) Ciao Frank -- - Frank Schönheit, Software Engineer, OpenOffice.org Database Access - - [EMAIL PROTECTED] http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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]
[api-dev] Open dialog before printing of a document
Hello, is it possible to open a dialog when the user calls the print function within the UI of OpenOffice.org - do something in the dialog and then go on to the normal print dialog. Thanks for any help in Java or StarBasic. Regards Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] building examples on Win
Hi Jorge, the SDK with it's oww simple build env based on gnu make doesn't work with the cygwin tools. Follow the install instructions in sdk/docs/install.html and everything should work fine. In install.html you find a link where you can donwload a gnu make binary for windows. Juergen Jorge Marques Pelizzoni wrote: Hi, all! Has anybody out there ever built the examples from the Developer's Guide on Windows? I must admit I am clueless. I have cygwin installed, but just typing make won't do the trick... Anyway, the truth is I wouldn't like to use cygwin. How do you guys build for with msvc++? Cheers, Jorge. - 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]
[api-dev] TextCursor at ViewCursor
Hi! Since some people are discussing BASIC issues, I'd like to ask somthing, too: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? The only way I found until now is to mark from the ViewCursor to the start of the doc, get the selected text and from that the end and make a cursor there. That somewhat complicated and not very intuitive. Hopefully there is a shorter and more self explaning technique to achieve it... TIA, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: [users] Creating documents programmatically using UNO and MSVC
On Sat, 2005-01-29 at 17:26 +0100, Antonio Leonforte wrote: Hi all, this is my first post on this list. I have searched for a while for the info I need, but I could find nothing helpful. Please let me know it this is not the appropriate list to post to. I would make clear first that I am NOT a OpenOffice developer, I just would like to USE OpenOffice to create .doc documents programmatically (i.e. by invoking UNO API from a C++ application). I have spent a couple of days compiling UNO IDL and finally succeeded in coding a test C++ application, compiling and linking it with MSVC 6.0. My problem is that I get a crash the very first invocation of a UNO API class method. I checked and the code seems to be ok, maybe I need to set some compiler option? Does anyone here have some experience in crating documents programmatically within a MSVC application ? Thanks in advance. Antonio Leonforte INTEGRA Sisyemi. Chance are you will get more appropriate and pithy answers from the api project. I am forwarding this to the most active list this project has and I recommend you look for most of your answers there. \ -- Documentation Co-Lead PLEASE - keep list traffic on the list. Email sent directly to me may be ignored utterly. Dinna meddle wi' things ye ken nuthin' aboot! J.Herriot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] TextCursor at ViewCursor
Am Sa, den 29.01.2005 schrieb Darragh Sherwin um 18:15: Marc, Hi Darragh, Marc Santhoff wrote: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor = document.Text.createTextCursor() //TextCursors include the TextRange service viewCursorRange = viewCursor.getEnd() textCursor.gotoRange( viewCursorRange ) This works (as expected), but I've been unclear in my question: In fact I want to have a TextCursor at the same position in the main text as the ViewCursor. The cause is that A ViewCursor doesn't implement the optional interface XDodumentInsertable, a TextCursor does. I think the way I used was lengthly but okay. I can change it using a smaller step to get a selection and fetch the selections TextRanges end. This may be worth an issue, it would be nice to have without letting the cursor jump around... Thank you very much, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] TextCursor at ViewCursor
Hi, In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor = document.Text.createTextCursor() //TextCursors include the TextRange service viewCursorRange = viewCursor.getEnd() textCursor.gotoRange( viewCursorRange ) You may try viewCursor = document.getCurrentController().getViewCursor() textCursor = document.Text.createTextCursorByRange(viewCursor) Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Looking for demo MSVC++ projects controlling OpenOffice in order to programmatically create MSWord-compatible documents
Hi all, this is my first post on this list (I actually have been redirected to this list after having posted to a more general one). I would like to use OpenOffice to create .doc documents programmatically by invoking UNO API from a C++ application. My dev environment is Win2K, MSVC6.0 and QT. Although Im developing on Win I would like to keep my code portable, thats why Im using QT for the GUI and why I would like to use OpenOffice to create my documents programmatically (rather than controlling MS Word via OLE automation, as I have already done in the past). I have to admit I thought it could have been an easier task. However I have spent a couple of days compiling UNO IDL and finally succeeded in coding a test C++ application, compiling and linking it with MSVC 6.0. My problem is that I get a crash the very first invocation of a UNO API class method. I checked and the code seems to be ok, maybe I need to set some compiler option? Does anyone here have some experience in crating documents programmatically within a MSVC application ? Are there some ready-made MSVC demo projects ready to be compiled and run ? Thanks in advance. Antonio Leonforte INTEGRA Sistemi
Re: [api-dev] Python in 1.9.74
Ian Laurenson wrote: I have put together a uno package that contains a Python component. The component uses the os module. The package installs and runs fine 1.1.4. In 1.9.74 (for Linux - Mandrake 10.1) I get the following error message when installing the package via: Tools Package Manager... My Packages (need to select OpenOffice.org packages and then reselect My Packages for the add button to become active) Add... select the file. (com.sun.star.uno.RuntimeException) { { Message = pythonloader: couldn't find core lement pythonloader.Loader, Context = (com.sun.star.uno.XInterface) 0x0 } } Do I need to package the uno file differently or is there a bug or ...? The file is available from: http://qa.openoffice.org/issues/show_bug.cgi?id=41011 Thanks, Ian I have also seen this while trying to install some of Ian's really cool and very useful things -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] How to create a database in OOo 2.0?
I am so close, I can smell it, but it does not work. Any comments on the steps that I am missing... I think that I need to set default keys and that sort of thing... The following macro tries to create a databsae document... Sub NewDB Dim sDBUrl As String 'URL of a New Database document. Dim sTableName As String 'The name of the table to creat. Dim oDoc 'The newly created database document. Dim oTable'A table in the database. Dim oTables Dim oDescriptor Dim oCols Dim sName As String sDBUrl = private:factory/sdatabase sTableName = Address sName = ConvertToURL(C:\OODB\Address01.odb) 'First, create the database document and set the database type oDoc = StarDesktop.loadComponentFromURL(sDBUrl,_blank,0,Array()) oDoc.Name = sName oDoc.URL = sdbc:embedded:hsqldb REM Logically, I expect that I can call create instance on the database REM document. Unfortunately, this is not correct. oTables = oDoc.getTables() If (oTables.getCount() 1) Then oTable = oTables.createInstance(com.sun.star.sdbcx.Table) oCols = oTable.getColumns() oDescriptor = oCols.createDataDescriptor() oDescriptor.IsNullable = 0 oDescriptor.Precision = 50 oDescriptor.Name = LastName oDescriptor.Type = 12 oDescriptor.TypeName = VARCHAR oCols.appendByDescriptor(oDescriptor) REM I do not have to create a new descriptor, I can use the existing one. REM This makes things easier if I add similar columns. oDescriptor.Name = FirstName oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = Address oDescriptor.IsNullable = 1 oDescriptor.Precision = 200 oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = City oDescriptor.Precision = 50 oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = StateOrProvince oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = PostalCode oDescriptor.Precision = 20 oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = PhoneNumber oDescriptor.Precision = 30 oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = FaxNumber oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = MobileNumber oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = DateUpdated oDescriptor.Precision = 0 oDescriptor.Type = 91 oDescriptor.TypeName = DATE oCols.appendByDescriptor(oDescriptor) oDescriptor.Name = CountryOrRegion oDescriptor.Precision = 50 oDescriptor.Type = 12 oDescriptor.TypeName = VARCHAR oCols.appendByDescriptor(oDescriptor) oTables.insertByName(sTableName, oTable) End If oDoc.store() End Sub -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Enumerate selected DataSourceBrowser lines
Am Mo, den 31.01.2005 schrieb sos um 12:37: ' For ii=LBound(oSelection) To UBound(oSelection) 'Print oSelection(ii) ' Next oDataSourceBrowser.getModel(oModel) You can try here like this (untested): oModel = oDataSourceBrowser.getModel() no, tryed it first like Omodel = .. I think i have to define Omodel in a different way, has to be a DATAform ? You're right, it is always NULL. Seems to me like a bug, because in the IDL reference one can read: :: com :: sun :: star :: form :: interface XFormController ... This is also reflected in this interface: If you call XTabController::getModel on a form controller, the form which the controller is responsible for will be returned. ... I'm not really sure yet if this is really a bug you discovered or if we're doing something the wrong way... HTH, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Creating a resizeable dialog.
How do you create a resizeable OOo Basic dialog? There is no setting for this in the IDE form editor. I've tried setting the Sizeable property of the dialog Model to True before execution, but it has no effect. -- The Snake Pit - Development www.TheSnakePitDev.com Curtis Clauson[EMAIL PROTECTED] Proprietor Any sufficiently over-complicated magic is indistinguishable from technology. -- Llelan D. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] insert a bunch of paragraphs into main text via API
Hi, I'm stuck with text portions again: The task is to insert a TextRange consisting of one or more paragraphs with complex char and paragraph formatting into a given text. How is this expected to be done? I read any type of docs, but found no direct method of doing so. I can insert a string without formatting or some special TextContent. But nothing inbetween. Okay, I can use the clipboard ... If this is missing from the api I think it's worth an RFE. TIA, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] starting the OOo-help without API
Hi Arne, I have found several UNO dispatches that probably can invoke displaying the OpenOffice Help, possibly also specific help components (writer, calc ...). How these dispatches are launched is explained in the Developer's Guide. In short: You simply use the DispatchHelper service and invoke the executeDispatch() method which takes some arguments. The dispatch commands are listed in the slots.sxc, that you can download from the Documents Files section of the api project page; just search through all sheets for the keyword help and you should find good results. The description given for those dispatch commands is generally pretty low so testing them is very important. I wish you good luck, I didn't test any of the several help dispatches I found but if I have some time again I will take a look, except until then your problem has been solved. Best Regards Christian Junker On Thu, 3 Feb 2005 17:20:33 +0100, Bock, Arne [EMAIL PROTECTED] wrote: Hello, is there any possibility to start the OOo-SWriter-help from a Java-application without using the OOo-API? I have the problem/challenge that I want to start this helpViewer from a JavaHelp-Window which does not know anything about the 'rest' of the application (inlcuding the OOo-bean). I know that I could make it knowing exactly that, but this is not what I want. If someone has an idea or even experiences with that kind of stuff, please let me know! Arne - 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] storing textrange to a stream
Hi Marc, the xmlcontent is what it says it is :). It's simply a string automatically put together in another function that builds up a simple xml structure. But as you're dealing with objectoutput and not textoutput you wouldn't write strings into your file but dump actual OpenOffice objects into it. Best Regards Christian Junker On Fri, 04 Feb 2005 02:44:08 +0100, Marc Santhoff [EMAIL PROTECTED] wrote: Am Fr, den 04.02.2005 schrieb Christian Junker um 01:21: Hi Marc, yes that is possible. Hi Christian, wow, that loks promising, thank you. Although it'll take some time for me to understand and adapt to my needs, there's one question left at once, see inline: I will give you some code that will show you how to deal with xml outputstreams (it's actually pretty similiar to Java's API): snip fileAccessService = createUnoService(com.sun.star.ucb.SimpleFileAccess) textOutputStream = createUnoService(com.sun.star.io.TextOutputStream) If fileAccessService.exists(SaveFileName) Then If fileAccessService.isReadOnly(SaveFileName) Then IOStreamXML = -2 Exit Function End If End If 'now open the file.. outputStream = fileAccessService.openFileWrite(SaveFileName) outputStream.truncate() textOutputStream.setOutputStream(outputStream) textOutputStream.writeString(xmlcontent) What type of thing is this xmlcontent? That's the missing link to the documents content, I think. :) 'Close the Xml File, no writing possible anymore textOutputStream.closeOutput() 'msgbox xml saved under: SaveFilename '[dbg] /snip Don't worry about the If statements and what is happening in there, because I took this code fragment out of a bigger macro that I have written. You can see that I use the [...]io.TextOutputStream, you would need to apply the [...].io.ObjectOutputStream service of course. I hope that the code is enough to give you the start. The IDL reference, the Developer's Guide - and in case you need advanced information about data sinks etc. the udk project page - should give you enough information to write a good working implementation. Hope this helps in some way. Best Regards Christian Junker On Thu, 03 Feb 2005 16:01:25 +0100, Marc Santhoff [EMAIL PROTECTED] wrote: Hi, is there any chance of storing arbitrary writer text snippets (mostly TextRange ojects) into an OutputStream (or to a TextOutputStream represented as XML)? Think of autotexts that are streamed away instead of being stored in any container file while not losing formatting ... TIA, Marc - 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] - 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] insert a bunch of paragraphs into main text via API
Am Fr, den 04.02.2005 schrieb Andrew Douglas Pitonyak um 04:18: Marc Santhoff wrote: Hi, I'm stuck with text portions again: The task is to insert a TextRange consisting of one or more paragraphs with complex char and paragraph formatting into a given text. How is this expected to be done? I read any type of docs, but found no direct method of doing so. I can insert a string without formatting or some special TextContent. But nothing inbetween. Okay, I can use the clipboard ... If this is missing from the api I think it's worth an RFE. TIA, Marc Hi Marc, Hello Andrew I am not certain that I understand what you want to do Do you want to COPY a range of text from one location to another? Of so, then you probably want to copy to the clipboard and then paste. No. Or, do you want to insert a lot of text that will contain special formatting? Yes, tht's what I'd like to achieve. If you want to insert text with special formatting, you probably want to first insert the text as a string and then apply the formatting. You are correct that this is not ideal You may want to consider using a paragraph style. This will make it much easier to apply formatting to sections of the text without setting individual properties. This is no good way of doing it, because I have several preformatted text pieces and I do not know, what formatting is involved. If there's no other option I have to decompose any text snippet into it's atoms and formattings before saving and reapply them afterwards. This is why I'm asking about streaming in another thread. In principle it is like using aututexts from another source. I really think there is something missing from the API ... Thanks, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Re: Creating a resizeable dialog.
Curtis Clauson wrote: How do you create a resizeable OOo Basic dialog? There is no setting for this in the IDE form editor. I've tried setting the Sizeable property of the dialog Model to True before execution, but it has no effect. Still no progress on this. Even if you create the UNO dialog by creating a com.sun.star.awt.UnoControlDialog service instance and setting the model to a created com.sun.star.awt.UnoControlDialogModel with the Sizeable property set to True, the dialog is still not resizeable. Resizeable dialogs are such a fundamental requirement, there's got to be a way to do this. Anyone?? -- The Snake Pit - Development www.TheSnakePitDev.com Curtis Clauson[EMAIL PROTECTED] Proprietor Any sufficiently over-complicated magic is indistinguishable from technology. -- Llelan D. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Exception, removeJob - unexpected:java.lang.InterruptedException
Title: Exception, removeJob - unexpected:java.lang.InterruptedException Hi, I have Java code that looks like: nxOfficeWriterOutputStream out = new nxOfficeWriterOutputStream(); PropertyValue[] propertyValue = new PropertyValue[1]; propertyValue[0] = new PropertyValue(); propertyValue[0].Name = OutputStream; propertyValue[0].Value = new com.sun.star.uno.Any(com.sun.star.io.XOutputStream.class, out); storable.storeToURL(private:stream, propertyValue); Most of the time this works fine. Sometimes I get the following exception. com.sun.star.lib.uno.environments.remote.JobQueue.removeJob - unexpected:java.lang.InterruptedException Does anyone have any ideas why I get the exception and what I should do to handle the exception. Thanks Bob Crothers
[api-dev] [EMAIL PROTECTED] TOPIC: Contributing
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 *** - The OOo community needs YOUR contribution too. And we are sure that you can contribute real value to OOo. Don't know how? YOU too can contribute to the OOo API project by: - Reviewing the documentation and reporting issues if you find any - Useing the OOo API and reporting issues if you find any - Answering the Questions of other Users of the OOo API - Summarizing answers which were given to questions (CodeSnippets) - Contributing your larger API examples to our example collection - Pointing out important articles for the [EMAIL PROTECTED] NEWSLETTER - Tracking unanswered questions on this mailing list - Preparing the next issue of [EMAIL PROTECTED] TOPIC - Writing Test Cases - Translating Examples to C++ (NEW!) - Becoming an Official OOo Contributor Each idea contains a short description of how you could help in its respect, one ore more URLs for more information and an estimation about the efford on the task. *** = *** Reviewing the documentation and report issues if you find any *** - Besides others, the OOo SDK contains a Developers Guide and a Reference Guide. It's not only important for developers who want to develop applications with OOo to know these well. There is also always room for improvement in such documents. Thus, read the documentation: - http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html - http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html And when you find anything to improve which you think should actually be improved, report an issue to IssueZilla. After once being registered with IssueZilla, reporting an issue is just a matter of minutes. *** = *** Using the OOo API and reporting issues if you find any *** - Next you might want to use the OOo API for your own projects. Nothing is perfect, thus don't hesitate to report problems you consider worth getting fixed to IssueZilla. Here you find a description of OOos IssueZilla: - http://www.openoffice.org/project_issues.html After once being registered with IssueZilla, reporting an issue is just a matter of minutes. Of course code examples, well stripped down to the point, would help us even more. Thus count about up to 30 minutes for a complex issue. *** = *** Answering the Questions of other Users of the OOo API *** - dev@api.openoffice.org is not an official support medium. But that does not mean, we do not want questions answers. The OOo developers will do their very best to answer questions, but WE NEED YOUR HELP! The OOo core development team is very small compared to competing projects. Thus we cannot answer all questions. If you know an answer of somebody elses question, please post it to the list. If you are not sure, answer anyway, but mention your incertitude. This way you give the core developers more space to answer the tough questions, maybe your next tough question. If you know the answer off hand, it only needs a few minutes to contribute by answering questions. But we appreciate it even more if you have a vague idea and do some research. *** = *** Summarizing answers which were given to questions (CodeSnippets) *** - If you asked a question and got a satisfactory answer with a code example, be so nice and save it for somebody else who might have the same question in future. The mail archive can be searched, but the search features are not good enough, mostly because mails are not structured enough. But there is a better way: Summarize your question and the given answer(s) in an XML format for CodeSnippets. You can find more information here: - http://api.openoffice.org/SDK/snippets/ To delopy a CodeSnippet, you need about 15 minutes each. Don't you think that the answer given to you was worth it? Please submit the created codesnippet to the mailinglist dev@api.openoffice.org and it will be integrated into the snippet-collection on http://codesnippets.services.openoffice.org/ by one of the comminity members with CVS commit rights. As an addon to easily create codesnippets Paolo Mantovani has
Re: [api-dev] How to open a database form
On Wed, 2005-02-16 at 14:28, Ian Laurenson wrote: On 2005-02-12, Frank Schönheit - Sun Microsystems, Inc. wrote: Andrew Pitonyak wrote: How can I load a Base document, com.sun.star.sdb.DatabaseContext.loadComponentFromURL( ... ) [remainder snipped] My apologies for being thick but I can only get the form displayed but not in a way that it actually functions as a form (code below). I was being thick - this seems to work: sub subDisplayForm(sDatabaseName as string, sFormName as string) dim mArgs(1) as new com.sun.star.beans.PropertyValue oDatabase = fnGetOpenDatabase(sdatabaseName) oConnection = oDatabase.getConnection(,) mArgs(0).name = OpenMode mArgs(0).value = open 'openDesign mArgs(1).name = ActiveConnection mArgs(1).value = oConnection oForm = oDatabase.getFormDocuments.getByName(sFormName) 'oForm.visibilityChanged(true) oForm = oDatabase.getFormDocuments.loadComponentFromURL(sFormName, _blank, 0, mArgs()) end sub Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to open a database form
Hi Ian, Also, is there any way of having basic code be part of the .odb file? No, unfortunately there isn't, and won't be for 2.0. OOo internally features two application frameworks, an old one and a new (UNO-based) one. For new applications (like Base), the latter is recommended, but unfortunately it still lacks some features - like embedding Basic scripts ... :( I can add a macro library to a form but it doesn't appear to get saved (1.9.77 for Linux). This issue should be fixed in one of the next developer snapshots. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems, Inc. http://www.sun.com - - OpenOffice.org Database Accesshttp://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] MailMerge = CommandType.COMMAND
Hi, does anybody now how the fields in a writer-doc have to be named when using the code todo an automatic mail-merge? ---8--- Object dbContext = xMSF.createInstance(com.sun.star.sdb.DatabaseContext); XNameAccess nameAccess = (XNameAccess)UnoRuntime.queryInterface(XNameAccess.class, dbContext); Object dataSource = nameAccess.getByName(mailMerge); if( dataSource != null ) { Object mService = xMCF.createInstanceWithContext(com.sun.star.text.MailMerge, xComponentContext); System.out.println(Before Query is registered!); registerQuery(dataSource); System.out.println(Query is registered!); XPropertySet oObjProps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, mService); oObjProps.setPropertyValue(DataSourceName, mailMerge); oObjProps.setPropertyValue(Command, SELECT a, b FROM bla ); oObjProps.setPropertyValue(CommandType,new Integer(com.sun.star.sdb.CommandType.COMMAND)); oObjProps.setPropertyValue(OutputType,new Short(com.sun.star.text.MailMergeType.PRINTER)); oObjProps.setPropertyValue(DocumentURL, templateFile); XJob job = (XJob) UnoRuntime.queryInterface(XJob.class, mService); System.out.println(Print job is getting started!); try { job.execute(new NamedValue[0]); System.out.println(Print job is started!); } catch (com.sun.star.lang.IllegalArgumentException iae) { System.err.println(Caught IllegalArgumentException: + iae); } catch (com.sun.star.uno.Exception e) { System.err.println(Caught UNO Exception: + e); } ---8--- The main problem is that I don't want OO to pop-up and that's why I can register a query because it needs an opened OO-Window. When using an registered Query the field holds myquery.a, myquery.b is there any default? Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] draw_html_export
Return Receipt Your [api-dev] draw_html_export document: wasAlessandro Portale/Minosse received by: at:16/02/2005 17.19.00 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to open a database form
Hi Frank, Am 16.02.2005 13:53 schrieb Frank Schönheit - Sun Microsystems, Inc.: Is there a way to link writer documents (form document) to a database? I can't see it ... No, the Links (or Verknüpfungen in your version) are not available anymore. The idea is that you now store your text documents in the database document (and don't let confuse you that they're called forms, you of course have the full power of Writer at your disposal :). Yes, but if i would attach basic macros the document wants to save as a separately writer document. Or have i made a mistake? greetings Mathias -- ·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-8·-· - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] draw_html_export
Hi Jaime, instead of using macros, you even might integrate your mappings of OOo XML to HTML into the exisiting XHTML export filter. This filter is used for every application type and might get greatly enhanced for Draw documents. To receive the latest version, install http://ftp.stardiv.de/pub/OpenOffice.org/developer/680_m79/ and add during installation the XSLT Sample Filter. The XHTML filter is still based on the old OpenOffice.org XML, and can therefore easily be used in earlier StarOffice/OpenOffice versions by using the start stylesheet from INST/share/xslt/export/xhtml/ooo2xhtml.xsl If XSLT is completly new for you, any mapping you provide might be used as input for XSLT developer to enhance this filter. Have you a link to a sample document you want to transform? Regards, Svante Jaime Alvarez wrote: I want to export to html some OOoDraw flowcharts with several slides and links. Unfortunately, it appears to me that the draw_html_export filter transforms the slides into plain images. I want to develop this functionality by using image maps in html for adding the links where they belong. I guess a macro would work, which would lead me to unearth my programming neurons from college... ;-) After looking into the 'content.xml' file of a OOoDraw document, it seems to me that all the information I need about the links is available. Therefore, my ideal macro would do the following: 1. Use the draw_html_export filter to create the html files. 2. Get the links' location and url without having to save, unzip it and open the respective content.xml file. 3. Modify the files created in #1 and add the links and some navigation features. I'm looking forward to work on this. However, I'd like to know beforehand whether it is feasible or not (specially for #2). Any suggestions? Regards Jaime - 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] Insert Formula in a swriter document
Hello , Mathias Bauer a écrit : Didier Dorange-Pattoret wrote: Hello Sub Main obj=ThisComponent.CreateInstance(com.sun.star.text.TextEmbeddedObject) obj.CLSID=078B7ABA-54FC-457F-8551-6147e776a997 obj.AnchorType = com.sun.star.text.TextContentAnchorType.AS_CHARACTER CurseurVisible = ThisComponent.CurrentController.ViewCursor Montexte = Thiscomponent.Text MonTexte.InsertTextContent(CurseurVisible,obj,false) TheFormule = obj.Model TheFormule.Formula = 1 over x TheFormule.Modified = TRUE End Sub I'm working on 1.9.74m This macro puts the formula in my text, but I can't see it. If I click, I can see the right formula, If I click at the second time I get the right size. This is a bug in the 1.9.74 version. Should be fixed until Beta. Best regards, Mathias Sorry, I tried So8 beta, OOom79 and I got the following formula. image de bug -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net S'inscrire à la liste de diffusion de dmaths: [EMAIL PROTECTED] Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english: http://www.dmaths.org/modules.php?name=Contentpa=showpagepid=9 Le livre de référence pour OpenOffice.org : http://www.amazon.fr/exec/obidos/ASIN/221211348X/dmaths-21 Programmation OpenOffice.org : http://www.amazon.fr/exec/obidos/ASIN/2212114397/dmaths-21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] codesnippets homepage
Tom Schindl wrote: Hi, Sometime ago (app 6 months) I have been ask to present how the codesnippets-service page is working. I have given a talk about it at 7th German Perlworkshop. Here are the slides I used. Oh the URI: http://www.bestsolution.at/support/lectures/perl-lectures.html.en The first PDF is the right one. People asked me whether this small system can be released as its own because they want to use it in other projects (most of them perl based) so I think about makeing an installable package out of the whole thing. Just if you are interested in it. At the moment we have 5 hits in a month which is not really much but the number is rising every month. Does anybody know if this is possible or am I getting into Licence-Trouble? Tom - 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]
[api-dev] pkgchk
I have some questions about the OOo's commandline tool for deploying an addon to OOo: Is there somewhere a manual where I can find the possible parameters which I can use with pkgchk? In the forum and the Developers Guide I only have found informations like copy zip file to OOo/user/uno_packages and execute pkgchk... and for removing delete zip from... and execute pkgchk... Is it possible to get an answer from pkgchk after deploying where it copied the zip file, when I call it this way pkgchk /mypath/addon.uno.zip because I need the information for uninstall (if the addon becomes automatically installed with an installer I will not search manually for the file). Or better: is there a way to uninstall the addon with executing pkgchk with some parameters? Hope, someone can help :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] problem with jar file
Hi, At first I am sorry, because I think my problem does not belong very good to this mailing list. For the last 20 weeks I was creating an java add-on for OOo. Now three days are left and my installer does not what it should. Therefore I hope, someone can help me: I have created a self-executing jar file with some class files, which contains the GUI and the execution of pkgchk. It also contains the zip file, which I want to deploy with pkgchk. But when I try to copy the zip to some directory I get filenotfoundexception. Is there an other way to extract a file from within the self-executing jar (without using a jar command) to any directory...? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] problem with jar file
On 23.02.2005, at 13:24, Simon Mieth wrote: Hi Ines, Hi Simon, if I understand you correct and you want to copy the embeded zip-file. Yes, thats exactly what I want. (code) Thank your for your fast answer. And: THANK YOU so much for the code. With some simple changes it did exactly what I want. :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] [reminder]TextTable and row duplication
Hi all in case of someone has an idea, i remind the question any hint or way to look at would be usefull feel free to ask if i'm not clear enough Thanks in advance Laurent '- Hi all i have to duplicate rows of a TextTable in WRITER (OOo 1.1.4 - pyUNO) I found 2 ways to achieve this : - use dispatch and UNO slots to copy/paste - loop over each textPortion of each cell to build the new content The second is quite time consumming to develop and IMHO too error prone The first is rather straightforward Nevertheless, this script will be executed in a parallel environnement (multple access at the same time) and i wonder if using the clipboard will not show random problem mixing the contents i can not use the getDataArray as the TextTable may also contain TextContent and i want to keep the original formatting I've spent some time on this and there seems missing something like copyRange like in Calc Is there an other way to achieve this ? Any hint in whatever language would be ok ! Thansk a lot in advance laurent '- -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [reminder]TextTable and row duplication
Hi Laurent, i have to duplicate rows of a TextTable in WRITER (OOo 1.1.4 - pyUNO) I found 2 ways to achieve this : - use dispatch and UNO slots to copy/paste - loop over each textPortion of each cell to build the new content The second is quite time consumming to develop and IMHO too error prone The first is rather straightforward Nevertheless, this script will be executed in a parallel environnement (multple access at the same time) and i wonder if using the clipboard will not show random problem mixing the contents i can not use the getDataArray as the TextTable may also contain TextContent and i want to keep the original formatting I've spent some time on this and there seems missing something like copyRange like in Calc Is there an other way to achieve this ? There is an issue for this topic, as far as I know. The issue actually is about getting data objects from selection, similar to how the clipboard works. But I dont't know the issue id. I am not even 100% sure that there is a issue id, but it's a very important feature which was already once on the requirements list. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] XTextComponent: setSelection
On Fri, Feb 18, 2005 at 12:10:39PM +0100, Achim Derigs wrote: Hi, I am working with the XTextComponent at the moment. The method `setSelection' selects some text, but the not selected text is displayed in white color. I've to change the default background color to see the not selected text: const ReferenceXTextComponent component(control, UNO_QUERY); if (component.is()) { const OUString text(OUString::createFromAscii(Test)); component-setText(text); Selection selection; selection.Min = 0; selection.Max = 2; component-setSelection(selection); } Is this a bug or do I've forgotten something? This happens only if `MultiLine' is set to `true'. With best regards Achim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] small problem with starbasic in OOo 1.1.x
Hi there, I have a small problem with Starbasic in OOo that I wonder if there is any sollution to, or perheps a workaround for, I'm not sure this is a bug at all... anyway, I have a small starbasic script that will save the document locally and after that do some small updates to the document after it has been saved the problem I have is then the following 1: the document is beeing saved by the script, this takes a while for big documents 2: the user tries to close the document whil it is beeing saved (nothing will happen at this stage since the document is under saving) 3: the document has now been saved and the document is beeing closed (since the user pressed the close button) 4: my scripts tries to modify the document but encounters errors since the document is no longer opened. well that is in short what happens Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished /Christian Andersson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi christian, Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished i see 2 ways : - declaring a listener on the document closing event. Don't sure it suites totally your nee - lock OOo until your script has finished ThisComponent.lockControllers - save - modify ThisComponent.unlockController Then the user won't be able to close the document has the GUI is frozen for user interactions HTH laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. Best Regards Christian Junker Laurent Godard wrote: Hi christian, Is there some way that I can (in script or config) tell OOo to not close the document before the script has finished i see 2 ways : - declaring a listener on the document closing event. Don't sure it suites totally your nee - lock OOo until your script has finished ThisComponent.lockControllers - save - modify ThisComponent.unlockController Then the user won't be able to close the document has the GUI is frozen for user interactions HTH laurent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi Laurent, hi Christian, Laurent Godard schrieb: Hi, I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. for me this does not work like expected. LockControllers only disables writing into document and the toolbar buttons, not the menubar and shortkeys (1.9.74 WinNT). Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
On Fri, 2005-02-25 at 20:32, Tom Schindl wrote: [snip] Couldn't we learn from projects like eclipse? They have an XML-Format specified to download their plugins. An example can be found here: * http://e-p-i-c.sourceforge.net/updates/ * http://www.eclipse.org/uml2/ (See page-source) We should also invent a fileformat like this. I could help you to define it if you want me to. I would appreciate any help very much! Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
Hi Ian, Alle 06:42, venerdì 25 febbraio 2005, Ian Laurenson ha scritto: I am trying to write a routine to make it easier for people to find and install templates and add-ons. The wizard that I am trying to implement follows these steps: 1. At the click of a button user downloads a file with information about all the available templates and add-ons in the system. 2. In a series of subsequent steps user specifies criteria to help them find the desired template or add-on. 3. The final button installs the templates and add-ons that the user selected. I have written step 2. But keep dithering about the best way of implementing step 1. Namely what format this information file should take. Thus this email hoping that someone will kick me to get me going again. My current preferred idea is to have a zipped file which contains the equivalent of meta.xml files for each template / add-on. Where the user defined info. fields are defined as Version; Languages; and Requirements currently leaving the fourth field for future development. What do people think of this approach? And, if it is a good idea any pointers for quick ways of reading such a file using the OpenOffice.org API? Some ideas: 1) share the code! may you host your library somewhere in the web? 2) Think the UI before! the UI of your applet shall be nice, functional and confortable, do not accept compromises here. If you're thinking to a wizard, keep in mind the new wizard concept used in OOo2 (with a side bar). Start the code only when you'll be 100% satisfied from the appearance and usability of your wizard! Remember: if the your app has a perfect coding but an ugly UI, nobody will use it. 3) regarding the format of the descriptor file, Tom Schindl said to think to a custom xml format. Of course, I agree with him and I would add that, with xml api's you will be able to parse the file very easily. You may want to look the sources of SnippetCreator for some ideas about this. I don't think you really need to package your descriptor into a zip file but, in case, you will need some code to extract the file before to parse it. Laurent Godard published several examples about how to zip/unzip packages using OOo API's. (check the code snippet archive and/or Andrew's Macro Document) I really need a kick in the pants to get me motivated for this project, I think it is an important project, but feel like a writer with writers' block. :-) HTH Ciao Paolo Mantovani - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi Peter, should have tested this (again it shows that you should always test something before you give advice). I thought again about your problem and if your script does not run all the time but only sometimes I would propose the following to you: Either you create a dialog, or which is little bit more complicated a modular window (with the windowdescriptor service), that pops up when the macro begins its execution. In that time the user is caught in this one dialog (I would put an explanatory text like Please wait until the progress finishes... and if you want to make it professional you add some progressbar or some animation or whatever so that the user is occupied at least with something). The important thing is that the dialog itself has been disabled which means that it is not closed when the user presses the X button that you can see for every window on popular platforms. You do that by setting the enabled property in the dialog properties to the value off. Of course the macro shouldn't take too long, because a normal user probably would get angry when he clicks on the window to close it but it doesn't :). I know this is not a very user-friendly thing, but look around in other programs: They also sometimes show dialogs like Please wait... when they need to process a lot of data. Best Regards Christian Junker Peter Eberlein wrote: Hi Laurent, hi Christian, Laurent Godard schrieb: Hi, I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. for me this does not work like expected. LockControllers only disables writing into document and the toolbar buttons, not the menubar and shortkeys (1.9.74 WinNT). 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] Macros for all users
Hello, Michael, it seems you do'nt understand me. If I am root, I have the acces right. But for my knowledge the method CreateLinkLibrary creates a library only for the root account. I would like that the su root creates a library avalaible for all the users. Is it possible, without using pkgchk (Addons) and if yes how. Thanks. Michael Hoennig a écrit : Hi Didier, The CreateLibraryLink methods allows to create a library with an URL. But, in case of network-installation, it's created only for the current user. Is it possible to create this library for all the users ? Usually a normal user would not have the neccessary access rights, anyway. Michael -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net S'inscrire à la liste de diffusion de dmaths: [EMAIL PROTECTED] Ses archives: http://listes.dmaths.org/wws/arc/users Les Forums: http://www.dmaths.org/modules.php?name=Forums Mailing List in english: http://www.dmaths.org/modules.php?name=Contentpa=showpagepid=9 Le livre de référence pour OpenOffice.org : http://www.amazon.fr/exec/obidos/ASIN/221211348X/dmaths-21 Programmation OpenOffice.org : http://www.amazon.fr/exec/obidos/ASIN/2212114397/dmaths-21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Christian Junker schrieb: and I forgot: Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again. Christian, when the dialog is executed and shown on the screen, the macro stops (sleeps) at this point until the user triggers any event (pushs a button), doesn't it? That means, the user must trigger the main function (disabling the dialog, showing the progress bar, doing all the other things and ending execute the dialog). But that's not what Christian Anderson wanted. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Macros for all users
Hi Didier, Michael, it seems you do'nt understand me. If I am root, I have the acces right. But for my knowledge the method CreateLinkLibrary creates a library only for the root account. I understood you well, but I was only reasoning. As far as I know there is no way to do this by using the API. Maybe you can open a enhancement request in IssueZilla. Michael -- Michael Hoennig [EMAIL PROTECTED] / project lead OOo API / http://api.openoffice.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Hi Peter, please read on! What can be done is to assign the macro to the receiving focus event, this event gets fired when the macro is started, so it is fired right at the beginning. Build the dialog in the Basic IDE, do define the property enabled as Yes. Thus code structure should look like this: 1.) load dialog library, createunodialog, execute dialog (thread starts) - dialog pops up and receiving focus event is fired, the assigned function is called 2.) dlg.setEnable(False) - user cannot close the dialog 2.) do everything you wanted to do now with the document (=implementation) 3.) at the end call dlg.setEnable(True) and then dlg.endexecute() - the dialog vanishes, the user can now work on with the document, control flow of the Starbasic code goes back to the .execute() statement and continues from there on (in the standard case the next line would just be End Sub or End Function). Note, that dlg should be a global variable as it is propably used in not just one function. Best Regards Christian Junker Peter Eberlein wrote: Christian Junker schrieb: and I forgot: Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again. Christian, when the dialog is executed and shown on the screen, the macro stops (sleeps) at this point until the user triggers any event (pushs a button), doesn't it? That means, the user must trigger the main function (disabling the dialog, showing the progress bar, doing all the other things and ending execute the dialog). But that's not what Christian Anderson wanted. 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] small problem with starbasic in OOo 1.1.x
Christian Junker schrieb: Hi Peter, - dialog pops up and receiving focus event is fired, the assigned function is called That's it, thank you (shame on me). All the other things were clear. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] small problem with starbasic in OOo 1.1.x
Thank you Christian And Peter, I will look into this now that you have shown me a sollution, and actually I do have an dialog already opened (what my system does is that it saves the document locally first, then takes the file on the disc and transfer it to a remote location using soap with attachments, when that transfer is done I need to modify that document and store some values I got in return from the soap call. this last part sometimes returned an error due to the fact that the user closed the document, but by doing this disabling of the dialog I probably can solve those errors. :-) /Christian Andersson Christian Junker wrote: Hi Peter, please read on! What can be done is to assign the macro to the receiving focus event, this event gets fired when the macro is started, so it is fired right at the beginning. Build the dialog in the Basic IDE, do define the property enabled as Yes. Thus code structure should look like this: 1.) load dialog library, createunodialog, execute dialog (thread starts) - dialog pops up and receiving focus event is fired, the assigned function is called 2.) dlg.setEnable(False) - user cannot close the dialog 2.) do everything you wanted to do now with the document (=implementation) 3.) at the end call dlg.setEnable(True) and then dlg.endexecute() - the dialog vanishes, the user can now work on with the document, control flow of the Starbasic code goes back to the .execute() statement and continues from there on (in the standard case the next line would just be End Sub or End Function). Note, that dlg should be a global variable as it is propably used in not just one function. Best Regards Christian Junker Peter Eberlein wrote: Christian Junker schrieb: and I forgot: Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again. Christian, when the dialog is executed and shown on the screen, the macro stops (sleeps) at this point until the user triggers any event (pushs a button), doesn't it? That means, the user must trigger the main function (disabling the dialog, showing the progress bar, doing all the other things and ending execute the dialog). But that's not what Christian Anderson wanted. 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] problem with external jar and java add-on - PS
PS. When executing the program extern from OOo this error does not occur. Today I changed something in the addons.xcu file, but this should not be the problem, because older versions of my addon still make this strange error when executing within OOo. Does someone have an idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] oo macros and concurrency
Hello We have a Java gui client that manages a pool of oo documents (xp + oo.1.1..3) and executes oo-Basic macros on them via a UNO XDispatch interface. We also have Java robotic processes that need to do the same. While we can serialize attempts to execute macros in a single client (or robotic) process, there is the chance that two robotic processes on the same machine, sharing the same soffice.exe instance will attempt to launch oo-basic macros on their documents simultaneously. The documentation implies that this will cause oo-basic to fail. - is this so? - will XDispatch try to launch a basic macro on behalf of one client while another is running on behalf of another client? - is there any defense against this? - I imagine it would require some mutexes in the heart of the oo side of XDispatch thank you john sisson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] CodeSnippet changes regarding OO2.0
Paolo Mantovani wrote: Hi Tom, Alle 12:24, lunedì 28 febbraio 2005, Tom Schindl ha scritto: Hi, I have now added things when there's a new version of OO released. I simply added the possibility to add the supported OO-Version(we have discussed this sometime ago) to the Snippet. An example can be seen here: http://codesnippets.services.openoffice.org/Writer/Writer.ChangeDocumentBac kgroundColor.snip Paolo could you maybe add this to the SnippetCreator? Ok, I'll try. some questions: 1) is there some reason for not having the untested value under the status attribute? No. Just added it. 2) may the number attribute contain also values such 1.9.m79 or 2.0 beta candidate? 2.1) can we define a list of allowed values for that attribute? That was my first thought but I'm unsure about this. I think at least the DTD should not make use of list. But in the Snippet-Editor would make sense. 3) what about the platform? ok added. thank you Paolo Mantovani cu Tom - 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] oo macros and concurrency
Hi, John Sisson wrote: Hello We have a Java gui client that manages a pool of oo documents (xp + oo.1.1..3) and executes oo-Basic macros on them via a UNO XDispatch interface. We also have Java robotic processes that need to do the same. While we can serialize attempts to execute macros in a single client (or robotic) process, there is the chance that two robotic processes on the same machine, sharing the same soffice.exe instance will attempt to launch oo-basic macros on their documents simultaneously. The documentation implies that this will cause oo-basic to fail. - is this so? - will XDispatch try to launch a basic macro on behalf of one client while another is running on behalf of another client? - is there any defense against this? - I imagine it would require some mutexes in the heart of the oo side of XDispatch to be secure i would suggest that you create an office pool and that use one office for one robotic process. Everything else will probably result in a deadlock or failure. Juergen thank you john sisson - 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] oo macros and concurrency
Hi, it is a known fact that OOo has several multithreading problems. Most of them reveal when using OOo API via remote UNO. Every single multithreading problem can be considered a bug, but fixing all of them is a rather complex task (due to the size and complexity of OOo code). However, we're working on it... but even OOo 2.0 will still suffer from multithreading issues. For now, I strongly suggest not to use OOo in a multithreaded way. Several workarounds for OOo's multithreading problems have been discussed in the OOo mailing lists already. You should follow one of these approaches. - Kai. John Sisson wrote: Hello We have a Java gui client that manages a pool of oo documents (xp + oo.1.1..3) and executes oo-Basic macros on them via a UNO XDispatch interface. We also have Java robotic processes that need to do the same. While we can serialize attempts to execute macros in a single client (or robotic) process, there is the chance that two robotic processes on the same machine, sharing the same soffice.exe instance will attempt to launch oo-basic macros on their documents simultaneously. The documentation implies that this will cause oo-basic to fail. - is this so? - will XDispatch try to launch a basic macro on behalf of one client while another is running on behalf of another client? - is there any defense against this? - I imagine it would require some mutexes in the heart of the oo side of XDispatch thank you john sisson - 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] Format for information file about templates and addons
Hi, I'd like the idea as well and i will try to share some facts and thoughts here. 1. OO.org 2.0 comes with a smart integrated package manager (UI and command line support) which supports installation as well as removing of new UNO packages (real components as well as Basic or script libraries) 2. it offers also the export of UNO packages to extract UNO packages from an existing installation 3. UNO packages are described with a XML based package descriptor file I think it would be a great start point and we should concentrate on this package manager and should define how we can improve and extend it with missing features (what ever make sense). The important thing from my point of view is that we have at the end only one kind of UNO packages. To many different formats will probably confuse the end users and nobody will know which installer is necessary for what kind of package. What do you think? Juergen Ian Laurenson wrote: On Fri, 2005-02-25 at 23:38, Tom Schindl wrote: Ok. Here are my first shots: http://qa.openoffice.org/issues/show_bug.cgi?id=43532 Thanks Tom - you thought of many things that I had not. I think that I have now included the concepts covered in your example xml file i the wizard. I have attached a package to issue 43532 that contains a draft wizard for an add-on installer. There is a module that demonstrates parsing xml files but is not called by the Wizard. At this stage the Wizard is really just a dialog for discussion showing a proposed (rough) layout. The wizard was developed in OOo1.9.79 for Linux. I hope that people will make many comments, upload there own versions, and if someone wanted to take over this project I would be delighted. As to programming approach, I guess I use a cyclical approach, a bit on the GUI, a bit on the code, a bit on the xml file format, hopefully getting closer to something that will work well. Thanks, Ian Laurenson - 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] Macros for all users
Hi Didier, i would suggest to use an UNO package for deploying a new library into your office installation. Unopkg (oo.o2.0, pkgchk for older versions) offers all the necessary features to delpoy such a library safely into the shared section of an office installation so that it can be used by all users. Everything else will might be work but an update of the installation base can probably overwrite your changes. So why hacking when a well defined way is available. Juergen Didier Dorange-Pattoret wrote: Hello, Didier Dorange-Pattoret a écrit : Hello, Michael, it seems you do'nt understand me. If I am root, I have the acces right. But for my knowledge the method CreateLinkLibrary creates a library only for the root account. I would like that the su root creates a library avalaible for all the users. Is it possible, without using pkgchk (Addons) and if yes how. A solution: Root insert a module in an existing shared library: for example Tools or Launcher. This module is avalaible for all users. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
Hi Jürgen, Reply in-line. On Tue, 2005-03-01 at 20:42, Jürgen Schmidt wrote: Hi, I'd like the idea as well and i will try to share some facts and thoughts here. 1. OO.org 2.0 comes with a smart integrated package manager (UI and command line support) which supports installation as well as removing of new UNO packages (real components as well as Basic or script libraries) A great advancement it is to! It is the possibility of adding packages while OpenOffice.org is running that makes the concept of an add-on installer possible. 2. it offers also the export of UNO packages to extract UNO packages from an existing installation As far as I can tell, the export of UNO packages provides a way of copying an installed UNO package to another location. From a brief test it doesn't include any changes to the installed files. 3. UNO packages are described with a XML based package descriptor file Could you let me know where the documentation for this file format can be found? I think it would be a great start point and we should concentrate on this package manager and should define how we can improve and extend it with missing features (what ever make sense). The important thing from my point of view is that we have at the end only one kind of UNO packages. To many different formats will probably confuse the end users and nobody will know which installer is necessary for what kind of package. I agree that there should be only one kind of UNO packages! What do you think? I'll try and explain the overall concept of what I am trying to achieve. I have written a number of Openoffice.org macros which I have made available from: http://homepages.paradise.net.nz/hillview/OOo/ The most common request / feedback that I receive is for an add-on installer along the lines of that provided by Firefox. My interpretation of that request is that the installer needs to: * work from within OpenOffice.org * help people to find the addons that they require * install selected add-ons at a click of a button My first attempt at a user interface to try and meet this need is a wizard which is available from: http://qa.openoffice.org/issues/show_bug.cgi?id=43532 The first step of that wizard is to download a file that contains information about all available add-ons and templates in the system. It is the format of this file that the thread has been about. [By the system I am referring to a proposed central place for uploading OpenOffice.org add-ons and templates.] Also on that first step is the possibility to download rating / review information. The second step allows the user to see and select updates for add-ons and templates that they already have installed. For add-ons I think that this could be done by checking the names of installed UNO packages against the names of packages in the downloaded information file. I confess that I haven't checked the feasibility of this yet. Also on this step it is possible to upload rating / review information to the central site. Steps 3 - 6 are to help the user find their desired add-on or template. Step 7 is to display dependency information (add-on 50 is dependent on add-on 12 so add-on 12 should be included). On clicking install, all the selected add-ons and templates get downloaded and installed. The add-ons would all be standard UNO packages. I have no preconceived preferences for the uploading of the files to the central site. Whether it be from within OpenOffice.org or through a web interface. I think that some members of the OpenOffice.org community should have the responsibility for checking uploaded files for malicious content. The wizard has a check box for eliminating from the displayed list those add-ons or templates that haven't been checked. I hope it is clear from the above, that I am not proposing a different format for UNO packages, but I am trying to find a way of helping users to find UNO package to meet their needs, and to do that may require an additional file with information about available UNO packages. Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions
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 think about simplifying your question, strip down your code example etc. I'd like to remind that this mailinglist is not a support forum. We core developers like to see all questions answered, but we cannot do your work. Thus, even though some background information can be helpful, phrase your question as easy as possible to us and focus on the OOo API rather then your application. Michael -- http://api.openoffice.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
Ian Laurenson wrote: Hi Jürgen, Also on that first step is the possibility to download rating / review information. The second step allows the user to see and select updates for add-ons and templates that they already have installed. For add-ons I think that this could be done by checking the names of installed UNO packages against the names of packages in the downloaded information file. I confess that I haven't checked the feasibility of this yet. Also on this step it is possible to upload rating / review information to the central site. [...] Steps 3 - 6 are to help the user find their desired add-on or template. Step 7 is to display dependency information (add-on 50 is dependent on add-on 12 so add-on 12 should be included). On clicking install, all the selected add-ons and templates get downloaded and installed. The add-ons would all be standard UNO packages. I have no preconceived preferences for the uploading of the files to the central site. Whether it be from within OpenOffice.org or through a web interface. I think that some members of the OpenOffice.org community should have the responsibility for checking uploaded files for malicious content. The wizard has a check box for eliminating from the displayed list those add-ons or templates that haven't been checked. I hope it is clear from the above, that I am not proposing a different format for UNO packages, but I am trying to find a way of helping users to find UNO package to meet their needs, and to do that may require an additional file with information about available UNO packages. Thanks, Ian That's how I understood your idea and I like it. At the moment from my point of view (and I'm a software developer) the install dialog is too complex and overloaded. As already stated before I'd volunteer to set up a system to let developers upload their addons/addins/plugins/templates and users download. I hope I have time on weekend to spent sometime and really think about the file-format and maybe come up with a idea of the install-gui needs and work-flow (don't expect too much I'm not a very good GUI-Designer :-) - 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] Format for information file about templates and addons
Hi Tom, Thanks for the feedback and I agree with you! On Wed, 2005-03-02 at 20:08, Tom Schindl wrote: [snip] At the moment from my point of view (and I'm a software developer) the install dialog is too complex and overloaded. As you can tell I am not a good GUI-Designer! I think that having an easy way for people to download and install OOo Extensions is really important. My aim is to generate discussion and get this project moving by having a crack at a Wizard. I have no objection to my work being replaced. As already stated before I'd volunteer to set up a system to let developers upload their addons/addins/plugins/templates and users download. I hope I have time on weekend to spent sometime and really think about the file-format and maybe come up with a idea of the install-gui needs and work-flow (don't expect too much I'm not a very good GUI-Designer :-) Tom you rock! Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
Hi Jürgen, Replies in-line. On Wed, 2005-03-02 at 22:29, Jürgen Schmidt wrote: Hi Ian, Ian Laurenson wrote: Hi Jürgen, Reply in-line. On Tue, 2005-03-01 at 20:42, Jürgen Schmidt wrote: Hi, I'd like the idea as well and i will try to share some facts and thoughts here. 1. OO.org 2.0 comes with a smart integrated package manager (UI and command line support) which supports installation as well as removing of new UNO packages (real components as well as Basic or script libraries) A great advancement it is to! It is the possibility of adding packages while OpenOffice.org is running that makes the concept of an add-on installer possible. Sure and the add-on installer is already there but it needs to be extended with more functionality to install UNO packages for example from the web and detect new versions of alread installed packages ... I agree that this would be the ideal! I just didn't realise that this was an option. 2. it offers also the export of UNO packages to extract UNO packages from an existing installation As far as I can tell, the export of UNO packages provides a way of copying an installed UNO package to another location. From a brief test it doesn't include any changes to the installed files. Why it should change the installed files? My apologies what I said was not clear at all. I will give an example of what I mean: Someone installs IannzFindFiles.uno.zip UNO package. They don't like my cluttered dialog and so modify the dialog and BASIC code in the IannzFindFile library so that it is a more intuitive wizard. Currently if they export the IannzFindFiles.uno.zip UNO package what they are exporting is my original cluttered version rather than their new improved wizard. Further to this, I think it would be good if their was a wizard to help people build their UNO package. 3. UNO packages are described with a XML based package descriptor file Could you let me know where the documentation for this file format can be found? It is documented in the updated Developers Guide for OOo2.0 Where can I find the updated Developers Guide for OOo2.0? [snip] I think that some members of the OpenOffice.org community should have the responsibility for checking uploaded files for malicious content. The wizard has a check box for eliminating from the displayed list those add-ons or templates that haven't been checked. good idea, the packages should definitely checked and QA'ed My thoughts on the QA concept is that if it is easy for users to rate and review extensions then the users will be doing the QA. But, I suspect not many users would be able to check if some code had some hidden malicious intent (or accidental catastrophe). I hope it is clear from the above, that I am not proposing a different format for UNO packages, but I am trying to find a way of helping users to find UNO package to meet their needs, and to do that may require an additional file with information about available UNO packages. Yes of course and i like the idea. And i think the package manager is still the right start point or at least the right point to trigger a further UI to cover the online search, update and deployment of packages. I really like the concept of the package manager being the starting point for on-line searches, updates and deployment of packages. I would suggest that we use a different term instead of add-on, because add-on in OOo is a specialized UNO component providing some kind of UI integration. But there are a lot of more UNO packages (BASIC library, calc add-ins, ). I would prefer OO.org extensions. GBut of course it's only a guess to minimize confusion. If we use the term Extension then the Package Manager should probably be renamed Extension Manager. I like the term OpenOffice.org Extensions and within OpenOffice.org simply called Extensions. I wonder if there should be a top level menu item between Tools and Window called Extension. The tools menu is already quite long, and having the main way of accessing extensions through the tools menu adds another click. E.g: Tools Add-ons Iannz FindFiles Compared with: Extensions Iannz FindFiles Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Format for information file about templates and addons
Hi Ian, Ian Laurenson wrote: Hi Jürgen, Replies in-line. On Wed, 2005-03-02 at 22:29, Jürgen Schmidt wrote: Hi Ian, Ian Laurenson wrote: Hi Jürgen, Reply in-line. On Tue, 2005-03-01 at 20:42, Jürgen Schmidt wrote: Hi, I'd like the idea as well and i will try to share some facts and thoughts here. 1. OO.org 2.0 comes with a smart integrated package manager (UI and command line support) which supports installation as well as removing of new UNO packages (real components as well as Basic or script libraries) A great advancement it is to! It is the possibility of adding packages while OpenOffice.org is running that makes the concept of an add-on installer possible. Sure and the add-on installer is already there but it needs to be extended with more functionality to install UNO packages for example from the web and detect new versions of alread installed packages ... I agree that this would be the ideal! I just didn't realise that this was an option. 2. it offers also the export of UNO packages to extract UNO packages from an existing installation As far as I can tell, the export of UNO packages provides a way of copying an installed UNO package to another location. From a brief test it doesn't include any changes to the installed files. Why it should change the installed files? My apologies what I said was not clear at all. I will give an example of what I mean: Someone installs IannzFindFiles.uno.zip UNO package. They don't like my cluttered dialog and so modify the dialog and BASIC code in the IannzFindFile library so that it is a more intuitive wizard. Currently if they export the IannzFindFiles.uno.zip UNO package what they are exporting is my original cluttered version rather than their new improved wizard. oh, ok now it is clear what you mean. I agree that would be the best solution and we should evaluate if it easy possible (after OO.org 2.0) Further to this, I think it would be good if their was a wizard to help people build their UNO package. Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. So if there are any volunteers who are familiar with one of the IDE'S and who are willing to investigate some time in this please let me know. I have a lot of ideas but didn't find the time until now. 3. UNO packages are described with a XML based package descriptor file Could you let me know where the documentation for this file format can be found? It is documented in the updated Developers Guide for OOo2.0 Where can I find the updated Developers Guide for OOo2.0? It can be found in the Beta SDK and will be published soon on api.openoffice.org [snip] I think that some members of the OpenOffice.org community should have the responsibility for checking uploaded files for malicious content. The wizard has a check box for eliminating from the displayed list those add-ons or templates that haven't been checked. good idea, the packages should definitely checked and QA'ed My thoughts on the QA concept is that if it is easy for users to rate and review extensions then the users will be doing the QA. But, I suspect not many users would be able to check if some code had some hidden malicious intent (or accidental catastrophe). Probably it is a good idea to have both. People who really review the code if desired because quality is really important. And on the other hand a rating from the users. The users will detect obvious hazards and we will get an ranking of the most useful and best extensions. I hope it is clear from the above, that I am not proposing a different format for UNO packages, but I am trying to find a way of helping users to find UNO package to meet their needs, and to do that may require an additional file with information about available UNO packages. Yes of course and i like the idea. And i think the package manager is still the right start point or at least the right point to trigger a further UI to cover the online search, update and deployment of packages. I really like the concept of the package manager being the starting point for on-line searches, updates and deployment of packages. I would suggest that we use a different term instead of add-on, because add-on in OOo is a specialized UNO component providing some kind of UI integration. But there are a lot of more UNO packages (BASIC library, calc add-ins, ). I would prefer OO.org extensions. GBut of course it's only a guess to minimize confusion. If we use the term Extension then the Package Manager should probably be renamed Extension Manager. I like the term OpenOffice.org Extensions and within OpenOffice.org simply called Extensions. I wonder if there should be a top level menu item between Tools and Window called Extension. The tools menu is already quite long, and having the main way of accessing extensions through the tools
Re: [api-dev] CDbl function
Hi again cDbl(0.30) --- 0,02 cDbl(0,30) --- 0 0,02 !! where does it come from ? using comma as decimal seprator opn my laptop (be_FR locale, using fr OOo 1.1.4 under debian) print cdbl(0.30) -- 0,3 'print cdbl(0,30) -- error 'print cdbl(0.30) -- error print cdbl(0,30) -- O don't know if it helps Lauren -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OpenOffice.org Extensions - was Format for information file about templates and addons
On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. So if there are any volunteers who are familiar with one of the IDE'S and who are willing to investigate some time in this please let me know. I have a lot of ideas but didn't find the time until now. While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. [snip] Where can I find the updated Developers Guide for OOo2.0? It can be found in the Beta SDK and will be published soon on api.openoffice.org Just checking that my understanding is correct: At the moment the updated Developers Guide for OOo2.0 is in the Beta SDK, which is not yet publicly available? I am keen to help with the updated Developers Guide for OOo2.0 - is there anything that I can do now? [Remainder snipped] Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] CDbl function
Davide Dozza wrote: Bernard Marcelly wrote: Le 2005-03-03 20:04, Alexej Kryukov a écrit : On Thursday 03 March 2005 20:40, Sevastian `seva` Foglia wrote: Sub Main Dim sVal as String sVal = 0,30 print CDbl(sVal) End Sub I correctly display 0,3 on my OOo 1.1.3 french, Windows XP french On my iBook with NeoOffice 1.1 I get 0,3 On a PC with Window XP professional and OOo 1.1.3 I get 0,3 [...] I have created an issue devoted to this problem long time ago, see http://www.openoffice.org/issues/show_bug.cgi?id=21413 This IZ says it is Linux specific. From what Sevastian sees it exists also on Mac/OsX NeoOffice. No problem with good old Windows. It's what Sevastian said.. CDbl() works well both on Win and NeoOffice but not on Linux. Definitely, it's a Linux issue. Davide I found where problem is: environment variable LANG on linux. If LANG is [EMAIL PROTECTED] this macro Sub Main Dim sVal as String sVal = 0,30 print CDbl(sVal) End Sub return 0 If LANG is not set macro return correct value 0,3 Note: In OOo option Locale is set to Italian (Italy) Bye Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Menu control
Christian Junker wrote: I remember some time ago, that it had been discussed that OOo 2.0 will provide functional interfaces that haven't been functional yet in any way (XMenu, XMenuListener) and probably add some more interfaces that make menus accessible via API. We don't use XMenu etc., those interfaces remain deprecated. The new API is much more abstract. I'm afraid the documentation is still not ready. Maybe we can provide some example code on the framework project Website. Now that the first beta candidate has been released, I would like to know if that is possible yet. I tried putting information together and working it out for 1.9.m79 but I did not succeed. I think that there is a lot of request in this area, since it would improve customization of OOo's GUI a lot and make it possible for developers around the world to create their own OOo looks (of course there are tight boundaries, but as of yet it is not even possible to disable certain menu entries in the main menu as far as I know) without having to hack portions of the huge source code and repackaging their own oo distributions. For complete customization of menu it is still recommended to use XML files. The new API for menus is a dynamic way to change the menu at runtime, f.e. to extend it for components added to the installation. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code snippets ....
You can safely treat Duo project (http://sourceforge.net/projects/duo-wrapper) as an integreated collection of code snippets. It's working code, tested in actual use which solves a number of problems we encountered when working with OO.org. Hm, right, I should make a new file release :-) Regards, Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Code snippets ....
Absolutely Jürgen, as you know there are others that don't have much time, as well :(. I also have the strong feeling of wanting to have one place where useful macros, that are asked a whole lot on oooforum.org periodically, are listed. Right now it seems like pieces can be found here and there, lying scattered around, which is confusing to many people, because they usually don't know all those sites. This feeling gets stronger and stronger because I try to help people on oooforum but very often it's the same questions that are asked and I feel like a coffee machine producing the same coffee every single day. quote The upcoming MS Office Developer Studio will come with a bunch of code snippets for often used API's. /quote Is there someone here that will get this Studio or already has it? I think we could all gain from the competitor what kind of snippets they have. Finally, I think UNO and OO API are very powerful buildings and one of the main strengths of the OpenOffice suite giving users an immense possibility of programmatic control - let's omit menu control right now - and in my opinion the OO API is far ahead of the MS Office API. Thus it's even more important to show the real strengths of OO to the people out there that think of switching to OpenOffice or that will be impressed by how much automation can be put into OpenOffice. Best Regards Christian Junker Jürgen Schmidt wrote: Hi, we have started some time ago with our code snippet base where Tom Schindle did a great work and also Paolo Mantovani who created the code snippet wizard. I would like to invite all of you to submit code snippets for often used API's or often asked questions. I think it so important to have a good base of code snippets which helps people to solve their problems fast or simple get started. I have promised that i will submit one snippet per week and i must apologize that i haven't reached my personal goal but i will work on it when i have time ;-) The upcoming MS Office Developer Studio will come with a bunch of code snippets for often used API's. Everything is well integrated and the user have only to click here and there, fill in some gaps (controlled navigation from gap to gap) and has then a working macro. We will probably not reach this kind of IDE integration but we can provide a good code snippet base. And of course it is possible to take this code snippets, convert them all to Java for example and create an extension for NetBeans or Eclipse. Any volunteers here? - Juergen - 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] OpenOffice.org Extensions - was Format for information file about templates and addons
How about updating the StarOffice 7 Programmer's Guide. I think this is the no.1 tutorial on Starbasic/OpenOffice Basic and could get an update, I think. By update I mean not just possible corrections but also extending the guide with a few more examples. Best Regards Christian Junker Jürgen Schmidt wrote: Hi Ian, Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. So if there are any volunteers who are familiar with one of the IDE'S and who are willing to investigate some time in this please let me know. I have a lot of ideas but didn't find the time until now. While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? [snip] Where can I find the updated Developers Guide for OOo2.0? It can be found in the Beta SDK and will be published soon on api.openoffice.org Just checking that my understanding is correct: At the moment the updated Developers Guide for OOo2.0 is in the Beta SDK, which is not yet publicly available? I think it will be available this week. I am keen to help with the updated Developers Guide for OOo2.0 - is there anything that I can do now? No, not for this version, but you are welcome to review the guide and feedback is always welcome. As we all know the Devguide is probably more for core developers. I would like start the work on some shorter tutorials, for example 5 pager for add-ons in Java and one for C++. I think we need more documentation concentrating on certain aspects. Thanks Juergen [Remainder snipped] Thanks, Ian - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] CDbl function
The one distributed with Fedora heidelberg. I have not set the LANG environment variable however, so I guess it only happens then (I set the locale under ToolsOptionsLanguage Settings). Best Regards Christian Junker Davide Dozza wrote: Christian Junker wrote: Hi Sevastian, I tested your piece of code for OOo 1.1.2 - locale setting german - on Fedora Core 3 and it didn't print 0 but the correct value 0,3. Do you have the vanilla distribution of OOo or the one distributed with Fedora? Davide - 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]
[api-dev] preventing users from accessing copy/cut/paste
hi there I have a small problem that I would like to get some help with... I have been asked to see if there is some way to prevent users from using the copy/cut/paste functionallity in openoffice (in the menu and the shortcut.) the reason for this is that the users are students in a class and they are going to have some exams soon, during these exams they are to write a report in OOo, and they will have access to the net so that they can use it for research. To stop them from just copy paste text from the internet the teachers want me to find a way to stop copy/cut/paste functionallity in OOo so that they have to type everything, and by having to type everything the chance for cheating will be less... if it is possible they also would like me to turn on the record changes and to prevent the users from turning it off. anyway, I've tried searching the openoffice.org site but keep getting internal errors from it.. I read some time ago that it was possible to configure OOo using some sort of slot files but since I cannot search the openoffice website I turn to you... Is anything of the above possible? /Christian Andersson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Updating StarOffice 7 Programmer's Guide was OpenOffice.org Extensions - was Format for information file about templates and addons
Maybe I can help update the StarOffice 7 Programmer's Guide. To do this I would like to use OOoAuthors, so that the update is a team effort and was being peer reviewed. I am presenting a number of papers at the LCA 2005 OpenOffice.org Miniconf so this work could form the basis of those papers - but I need to get on to it right away. Is it ok for me to do this? If so, is it possible to have the file in .sxw or .odt format? Similarly for the Programmers Tutorial? Any update when the Developers Guide for OOo2.0 will be publicly available? Thanks, Ian Laurenson [Top posted - copy of previous messages below] On Sat, 2005-03-05 at 01:38, Jürgen Schmidt wrote: Hi, i agree that is one thing i can hopefully address in the future - Juergen Christian Junker wrote: How about updating the StarOffice 7 Programmer's Guide. I think this is the no.1 tutorial on Starbasic/OpenOffice Basic and could get an update, I think. By update I mean not just possible corrections but also extending the guide with a few more examples. Best Regards Christian Junker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OpenOffice.org Extensions - was Format for information file about templates and addons
On Fri, 2005-03-04 at 21:58, Jürgen Schmidt wrote: Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. [snip] While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? Not just Basic libraries, my wish list includes: any graphics that are being used, the associated help files, Python components, the xcu file. [remainder snipped] Thanks, Ian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OpenOffice.org Extensions - was Format for information file about templates and addons
Ian Laurenson wrote: On Fri, 2005-03-04 at 21:58, Jürgen Schmidt wrote: Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. [snip] While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? Not just Basic libraries, my wish list includes: any graphics that are being used, the associated help files, Python components, the xcu file. mmh, i am not sure. I think this would maybe overload the functionality and it is probably used by less than 0,1% of all users. Whereas the function to simply install an extension is definitely helpful for users to extend their office installation. - Juergen [remainder snipped] Thanks, Ian - 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] SDB query
Hi Indukamar, I am new to the OOo UNO APIs. I was trying to connect to the SDB from OOo using Java. But I could not find the com.sun.star.sdb.RowSet class in any JARs supplied with the standard installation of OOo. Can anyone please point me to the place where I can find it? I downloaded the SDK, the documentation and all, but could not find a reference which points to where I can find it. css.sdb.RowSet is a Service and the jar files only contain types, so you won't find a class file, corresponding to this service anywhere. To get an idea how database access works using the OOo-UNO-API you might want to have a look at the corresponding developers guide chapter http://api.openoffice.org/docs/DevelopersGuide/Database/Database.htm Hope that helps Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] SDB query
Hi Menon, I am new to the OOo UNO APIs. I was trying to connect to the SDB from OOo using Java. But I could not find the com.sun.star.sdb.RowSet class in any JARs supplied RowSet is not a Java class, it is an UNO service. You should read at least the first chapter of the Developers Guide to get aquainted with UNO concets. Implementations of UNO services are not created using Java new, but by a factory method of the UNO runtime. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] preventing users from accessing copy/cut/paste
Hi Paolo, I read some time ago that it was possible to configure OOo using some sort of slot files but since I cannot search the openoffice website I turn to you... Is anything of the above possible? I also read this: check the StarOffice 7 Office Suite Administration Guide chapter: Restricting Star Office Functionality just for completeness: The StarOffice 7 Office Suite Administration Guide can be dowloaded here: http://docs.sun.com/app/docs/doc/817-1820 Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Number of line of a paragraph
Hi Laurent, using macros (but any language welcomed) I retreive a paragraph containing text. Is there a way to know how many lines it represents displayed in the document ? (so, depending on the formats, font, font size aso) I know i can count characters with num = Len(myParagraph.string) but need know that this number is displayed on N lines I suppose you have an XTextRange as base for your calculation. The following macro should count the lines of a selected text, but by replacing the first line with your text range it should work for you too :-) textRange = thiscomponent.currentcontroller.Selection.getByIndex(0) textCursor = thisComponent.getText.createTextCursorByRange(textRange) viewCursor = thisComponent.currentcontroller.ViewCursor() viewCursor.gotoRange(textRange,false) viewCursor.collapseToStart() counter = 0 while thiscomponent.getText.compareRegionEnds(textCursor,viewCursor)0 viewCursor.goDown(1,false) counter = counter +1 wend msgbox lines in selected paragraph +counter Hope that helps Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Number of line of a paragraph
Hi Laurent, The trick with a view cursor will work I didn't try this as i was searching for Non-view methods No View no lines I'd say :-) The XTextRange doesn't know in how many lines it will be displayed and so can't tell you how many lines it contains. Nevertheless, i'll save the current selection before and restore it at the end. But his will flicker for the user ... using thiscomponent.lockControllers at the beginning of the macro and thiscomponent.unlockControllers at the end should avoid the flicker. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Number of line of a paragraph
Hi No View no lines I'd say :-) The XTextRange doesn't know in how many lines it will be displayed and so can't tell you how many lines it contains. humm, not so sure it is an intermediate information between the XTextRange and the effective displayed text Nevertheless, i'll save the current selection before and restore it at the end. But his will flicker for the user ... using thiscomponent.lockControllers yes, i just realized after sending the mail that i could use that :) Thanks Stefan Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] OOoBean project
Dear OOo SDK/API and especially Office bean users, The new and first official OOoBean was integrated into a OOo 2 prerelease some months ago. Now I have closed the project website: http://api.openoffice.org/Projects/OOoBean/index.html The source code can be found in the api/bean project, the spec in the specs project: http://specs.openoffice.org/ for which I introduced a new page for UNO/API/SDK related specs: http://specs.openoffice.org/sdk/index.html Putting the Bean into the application wide area would cause trouble at latest when we introduce application specific Java Beans. The same might be true for other SDK components. All other specs are more UI specs rather than API specs anyway. The OOoBean is actually just a base class which can be used to implement JavaBeans for OOo comoments. It can be used directly in Java applications, though. Just not as a real Java Bean. Please take details from the updated chapter on the OOoBean, which is currently checked and will be replace the old OfficeBean chapter soon. Implementations based on the old Office Bean framework (LocalOfficeWindow and LocalOfficeConnection) should still work. But toolbox/menu controll will not work anymore due to changes in the OOo toolbox/menu implementation. The new OOoBean uses the new APIs for this funktionality. Michael -- Michael Hoennig [EMAIL PROTECTED] project lead OpenOffice.org API http://api.openoffice.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] CDbl function
Sevastian `seva` Foglia wrote: I found where problem is: environment variable LANG on linux. If LANG is [EMAIL PROTECTED] this macro Sub Main Dim sVal as String sVal = 0,30 print CDbl(sVal) End Sub return 0 If LANG is not set macro return correct value 0,3 Perhaps you should add this to the issue so that they can reproduce the problem... Note: In OOo option Locale is set to Italian (Italy) Although it is a hack, perhaps you can change the , to a ., and then use Val to convert the number rather than CDbl. -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OpenOffice.org Extensions - was Format for information file about templates and addons
Alle 09:35, lunedì 7 marzo 2005, Jürgen Schmidt ha scritto: Ian Laurenson wrote: On Fri, 2005-03-04 at 21:58, Jürgen Schmidt wrote: Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. [snip] While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? Not just Basic libraries, my wish list includes: any graphics that are being used, the associated help files, Python components, the xcu file. mmh, i am not sure. I think this would maybe overload the functionality and it is probably used by less than 0,1% of all users. Whereas the function to simply install an extension is definitely helpful for users to extend their office installation. IMHO this used by less than 0,1% it's due to the fact that currently it's very difficult to deploy graphics or other resources whithin uno packages. This operation infact, requires to write a custom configuration schema (xcs file) plus an xcu file in order to extend the OOo registry. Furthermore you must write some not silly code to extract informations from your custom registry entries and finally for loading the graphics on the proper controls. I'm sure that there are many peoples that would add some graphics to embellish their dialogs, much more than 0.1% of starbasic users. Most probably they would like to deploy their work as uno package, but it's simply too difficult for almost all of them. ciao Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] OpenOffice.org Extensions - was Format for information file about templates and addons
Paolo Mantovani wrote: Alle 09:35, lunedì 7 marzo 2005, Jürgen Schmidt ha scritto: Ian Laurenson wrote: On Fri, 2005-03-04 at 21:58, Jürgen Schmidt wrote: Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. [snip] While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? Not just Basic libraries, my wish list includes: any graphics that are being used, the associated help files, Python components, the xcu file. mmh, i am not sure. I think this would maybe overload the functionality and it is probably used by less than 0,1% of all users. Whereas the function to simply install an extension is definitely helpful for users to extend their office installation. IMHO this used by less than 0,1% it's due to the fact that currently it's very difficult to deploy graphics or other resources whithin uno packages. This operation infact, requires to write a custom configuration schema (xcs file) plus an xcu file in order to extend the OOo registry. Furthermore you must write some not silly code to extract informations from your custom registry entries and finally for loading the graphics on the proper controls. I would say that this is more a problem of missing documentation and examples. Private graphics for example can be accessed within the package as far as i know (i will check it and i will come back with the info). Own configuration schemes are only necessary if you have really configurable data in your component. I'm sure that there are many peoples that would add some graphics to embellish their dialogs, much more than 0.1% of starbasic users. Most probably they would like to deploy their work as uno package, but it's simply too difficult for almost all of them. I agree for the Basic users, because they use the office as IDE for their macros and dialogs. For all other languages (e.g. Java , C++) i would prefer some kind of integration (e.g. wizards) in popular IDE's like Eclipse or Netbeans for Java. - Juergen ciao Paolo - 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] OpenOffice.org Extensions - was Format for information file about templates and addons
Hi Ian, I am not a friend of licenses and I am not good at policies and stuff, but I think that the Programmer's Guide cannot be edited by you, because it is published under the Sun Microsystems flag. That means that you probably need to make an agreement with Sun first. Am I correct with this, Hamburg?? -- Best Regards Christian Junker On Mon, 07 Mar 2005 11:44:43 +1300, Ian Laurenson [EMAIL PROTECTED] wrote: On Fri, 2005-03-04 at 21:58, Jürgen Schmidt wrote: Ian Laurenson wrote: On Thu, 2005-03-03 at 21:49, Jürgen Schmidt wrote: [snip] Sure, the new SDK provides makefiles for creating UNO packages (both component packages and script/library packages). I also have the first running ant scripts and ideally would be an integrated wizard in NetBeans and/or Eclipse. [snip] While it would be good to be able create UNO packages from external IDEs, to me it would be even better if it were possible within OpenOffice.org. I assume you mean that it would be nice to export Basic libraries as UNO packages, right? Not just Basic libraries, my wish list includes: any graphics that are being used, the associated help files, Python components, the xcu file. [remainder snipped] Thanks, Ian - 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] Menu control
Hi Matthias, I do ask myself, why those interfaces are deprecated. Why not removing them completely? a) from source code (I searched with ximian lxr and there was no single implementation I found about XMenu) b) from documentation (IDL Reference) -- Best Regards Christian Junker On Fri, 04 Mar 2005 09:07:52 +0100, Mathias Bauer [EMAIL PROTECTED] wrote: Christian Junker wrote: I remember some time ago, that it had been discussed that OOo 2.0 will provide functional interfaces that haven't been functional yet in any way (XMenu, XMenuListener) and probably add some more interfaces that make menus accessible via API. We don't use XMenu etc., those interfaces remain deprecated. The new API is much more abstract. I'm afraid the documentation is still not ready. Maybe we can provide some example code on the framework project Website. Now that the first beta candidate has been released, I would like to know if that is possible yet. I tried putting information together and working it out for 1.9.m79 but I did not succeed. I think that there is a lot of request in this area, since it would improve customization of OOo's GUI a lot and make it possible for developers around the world to create their own OOo looks (of course there are tight boundaries, but as of yet it is not even possible to disable certain menu entries in the main menu as far as I know) without having to hack portions of the huge source code and repackaging their own oo distributions. For complete customization of menu it is still recommended to use XML files. The new API for menus is a dynamic way to change the menu at runtime, f.e. to extend it for components added to the installation. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - 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]
[api-dev] [EMAIL PROTECTED] TOPIC: Contributing
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 *** - The OOo community needs YOUR contribution too. And we are sure that you can contribute real value to OOo. Don't know how? YOU too can contribute to the OOo API project by: - Reviewing the documentation and reporting issues if you find any - Useing the OOo API and reporting issues if you find any - Answering the Questions of other Users of the OOo API - Summarizing answers which were given to questions (CodeSnippets) - Contributing your larger API examples to our example collection - Pointing out important articles for the [EMAIL PROTECTED] NEWSLETTER - Tracking unanswered questions on this mailing list - Preparing the next issue of [EMAIL PROTECTED] TOPIC - Writing Test Cases - Translating Examples to C++ (NEW!) - Becoming an Official OOo Contributor Each idea contains a short description of how you could help in its respect, one ore more URLs for more information and an estimation about the efford on the task. *** = *** Reviewing the documentation and report issues if you find any *** - Besides others, the OOo SDK contains a Developers Guide and a Reference Guide. It's not only important for developers who want to develop applications with OOo to know these well. There is also always room for improvement in such documents. Thus, read the documentation: - http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html - http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html And when you find anything to improve which you think should actually be improved, report an issue to IssueZilla. After once being registered with IssueZilla, reporting an issue is just a matter of minutes. *** = *** Using the OOo API and reporting issues if you find any *** - Next you might want to use the OOo API for your own projects. Nothing is perfect, thus don't hesitate to report problems you consider worth getting fixed to IssueZilla. Here you find a description of OOos IssueZilla: - http://www.openoffice.org/project_issues.html After once being registered with IssueZilla, reporting an issue is just a matter of minutes. Of course code examples, well stripped down to the point, would help us even more. Thus count about up to 30 minutes for a complex issue. *** = *** Answering the Questions of other Users of the OOo API *** - dev@api.openoffice.org is not an official support medium. But that does not mean, we do not want questions answers. The OOo developers will do their very best to answer questions, but WE NEED YOUR HELP! The OOo core development team is very small compared to competing projects. Thus we cannot answer all questions. If you know an answer of somebody elses question, please post it to the list. If you are not sure, answer anyway, but mention your incertitude. This way you give the core developers more space to answer the tough questions, maybe your next tough question. If you know the answer off hand, it only needs a few minutes to contribute by answering questions. But we appreciate it even more if you have a vague idea and do some research. *** = *** Summarizing answers which were given to questions (CodeSnippets) *** - If you asked a question and got a satisfactory answer with a code example, be so nice and save it for somebody else who might have the same question in future. The mail archive can be searched, but the search features are not good enough, mostly because mails are not structured enough. But there is a better way: Summarize your question and the given answer(s) in an XML format for CodeSnippets. You can find more information here: - http://api.openoffice.org/SDK/snippets/ To delopy a CodeSnippet, you need about 15 minutes each. Don't you think that the answer given to you was worth it? Please submit the created codesnippet to the mailinglist dev@api.openoffice.org and it will be integrated into the snippet-collection on http://codesnippets.services.openoffice.org/ by one of the comminity members with CVS commit rights. As an addon to easily create codesnippets Paolo Mantovani has
Re: [api-dev] CDbl function
Hi Andrew and all, hopefully this thread brings some light into this mysterious problem. I will have another look on this issue the next days. Sevastian `seva` Foglia wrote: ... Perhaps you should add this to the issue so that they can reproduce the problem... I've just done this. Regards Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]