[dev] Register XML Filter
Hello, is it possible to register a XML Filter via JAVA API? I found the possibility via GUI to Open a Package in the XML filter options..can I make this also via API? Greetings - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Re: XML Import Filter
Ok thanks, i figured it out. But now the next Problem. How I can register a filter using this API? At the moment I added my filter via the menu in Open Office but I want to change that. 2009/8/11 tora - Takamichi Akiyama t...@openoffice.org: Hi, Looking up those key words - application, getDocumentService, and loadDocument - in the Internet gives us information on what you are using. That type of helper classes developed by a third party could be one of the ways to handle document files. To understand OpenOffice.org's original API, I guess, many people here would recommend use of Software Development Kit of OpenOffice.org first. Once you have understood the API, then try to use such helper classes offered by third parties. SDK can be downloaded from a link Download in the navigator SDK at http://api.openoffice.org/ There are many example codes available in the SDK. They could help you understand the API. API documentation of the method I mentioned is also available in the SDK and a web site at http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XComponentLoader.html#loadComponentFromURL Tora Jakob Mandalka wrote: But this I don't understand. At the moment I open my document this way document = application.getDocumentService().loadDocument(iFrame, location + \\ + file.getFullPath().toOSString(), DocumentDescriptor.DEFAULT); This will open a document. And now? How I spezifiy here now a Filter and and file which have to be imported? Sry for this stupid question but I am not the best in this case. :( 2009/8/11 tora - Takamichi Akiyama t...@openoffice.org: It would not be hard to do that. There might be lots of solutions. This is one of the examples: http://distribution.openoffice.org/source/browse/distribution/mirrors/repository/production/tools/Calc/ The key you might have been looking for would be: 1. Name the filter as you like and fill Filter name field with it during XSLT installation to your OpenOffice.org. 2. Specify the exact same filter name as a value of FilterName property which will be passed to loadComponentFromURL(). - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Re: XML Import Filter
Noone any Idea how to make this? 2009/8/6 Jakob Mandalka jakob.manda...@googlemail.com: Hello everyone, i am new here and i have a question to ask which might be a little complicated. What i want to do is to develop a component such as a button in open office which , when pressed, imports an xml file which can be selected by a file dialog and apply an already installed xslt import filter -which basically transforms the XML file and fits its data to a simple table-.So the result is a report-like .odt file with data provided by my xml file. (this is the final goal,for the moment i want to just do it from command line java program) I am stuck at how can i use the api to load a filter package i installed before opening the document,so that when the page opens you see the .odt file with the table and my data.. i am able to do so from openoffice interface , the traditional way, but how can i do it programmatically..?For the moment i open a file from java using the NOA API but i dont find any info on how to apply a filter prior to opening it. thank you very much - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Re: XML Import Filter
But this I don't understand. At the moment I open my document this way document = application.getDocumentService().loadDocument(iFrame, location + \\ + file.getFullPath().toOSString(), DocumentDescriptor.DEFAULT); This will open a document. And now? How I spezifiy here now a Filter and and file which have to be imported? Sry for this stupid question but I am not the best in this case. :( 2009/8/11 tora - Takamichi Akiyama t...@openoffice.org: It would not be hard to do that. There might be lots of solutions. This is one of the examples: http://distribution.openoffice.org/source/browse/distribution/mirrors/repository/production/tools/Calc/ The key you might have been looking for would be: 1. Name the filter as you like and fill Filter name field with it during XSLT installation to your OpenOffice.org. 2. Specify the exact same filter name as a value of FilterName property which will be passed to loadComponentFromURL(). Tora Jakob Mandalka wrote: Noone any Idea how to make this? 2009/8/6 Jakob Mandalka jakob.manda...@googlemail.com: Hello everyone, i am new here and i have a question to ask which might be a little complicated. What i want to do is to develop a component such as a button in open office which , when pressed, imports an xml file which can be selected by a file dialog and apply an already installed xslt import filter -which basically transforms the XML file and fits its data to a simple table-.So the result is a report-like .odt file with data provided by my xml file. (this is the final goal,for the moment i want to just do it from command line java program) I am stuck at how can i use the api to load a filter package i installed before opening the document,so that when the page opens you see the .odt file with the table and my data.. i am able to do so from openoffice interface , the traditional way, but how can i do it programmatically..?For the moment i open a file from java using the NOA API but i dont find any info on how to apply a filter prior to opening it. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] XML Import Filter
Hello everyone, i am new here and i have a question to ask which might be a little complicated. What i want to do is to develop a component such as a button in open office which , when pressed, imports an xml file which can be selected by a file dialog and apply an already installed xslt import filter -which basically transforms the XML file and fits its data to a simple table-.So the result is a report-like .odt file with data provided by my xml file. (this is the final goal,for the moment i want to just do it from command line java program) I am stuck at how can i use the api to load a filter package i installed before opening the document,so that when the page opens you see the .odt file with the table and my data.. i am able to do so from openoffice interface , the traditional way, but how can i do it programmatically..?For the moment i open a file from java using the NOA API but i dont find any info on how to apply a filter prior to opening it. thank you very much - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] NOA / UNO using custom export Filter
Hello, can anyone tell me how to use the xml export with a own export filter. So I have created a XSLT for export and configured it in open office. Now I want to call this export filter via API. But I cant... I found from NOA the following thing: document.getPersistenceService().export(./test.xhtml, filter); Here I can spezify my filter..but how? I found just exampltes using the default export filter like PDF or JPEG. Greetings - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
[dev] Adding custom Form Control Elements
Hallo, is it possible to add custom Form Control Elements to OO Write? Background of this question is, that I want to add some new Elements to the already available XForms Designer. At the moment things like repeat and so on are missing. Thats why I wanted to know if it is possible to add a custom button with a custom Icon to OpenOffice Write as a Form Controle Element. I already searched for any tutorial or documentation but I didn't find anything. Maybe anyone here can tell me if this is possible or link me a documentation or somthing like that. Greetings Jakob
[dev] XForms - DOMActions
Hallo, I started to test the XForms functionality of OpenOffice and i found it great. But at the moment I am missing a little bit the actions (DOMActions). Is there a way to add the actions to my Form or will this be implemented in the near future? A simple example: I have a table and want to add a new row to it with a Trigger-Button with XForms is this no problem, but Open Office didn't support such a Action. So is it possible to add XFomrs actions to Open Office? Or will this be implemented in the Future? Greetings Jakob