[dev] plugin for NetBeans 6.9.1
Hello, can someone update the plugin for netbeans 6.9.1 ? I'm currently having this issue on install phase The plugin Editor Library is requested in version >= 1.9.1.1 (release version 1) but only 2.10.2.10.2 (of release version different from 1) was found. The following plugin is affected: OpenOffice.org API Plugin cheers, kiuma
[dev] OOoBean NoConnectionException problems
Hello, I've started openoffice 3.2.1 with the command ooffice -bean "-accept=pipe,name=kiuma_Office;urp;StarOffice.NamingService" Then from my java application I call oo = new OOoBean(); oo.aquireSystemWindow(); . The problem is that I continue to have NoConnectionException. What can I do ? Thanks in advance, kiuma
[dev] OOoBean
Hello, I'm trying to integrate OOoBean inside my application. I have OpenOffice-3.2 installed in my Linux gentoo , so .so files should aready be in lib path. I've only added officebean.jar what else I need ? Also the wiki doc says that I can use methods like setAllBarsVisible and setMenuBarVisible but they are now deprecated, is there any updated resource around ? How can I load a document in readonly mode ? Thanks in advance, kiuma
[dev] Need a suggestion for a java application
Hello I need a suggestion to preview documents in my java application. documents are stored in a remote server and read with soap-ws. I'm facing two options: 1) to embed OOoBean inside my application (in readonly mode). 2) to have a pdf copy of the document in the server and preview then preview the pdf instead of the odt document. What would you suggest ? Is it embedding OOoBean a good choice ? Thanks in advance, kiuma
Re: [dev] java rdf problem again
why every now and then I have a failure message from mailer-dae...@powermail.ce.net.cn ? 2010/3/25 Niklas Nebel > On 03/25/10 08:47, Andrea Chiumenti wrote: > >> Sorry I'm a bit confused, and browsing the site and using google I'm not >> able to get a solution. >> >> I've also tried with >> XURI nodeTableName = URI.create(m_xContext, "tableName"); >> >> but I get this error: >> CURI::initialize: argument not splittable: no separator [#/:] >> >> Could you please give me a sample snippet ? >> > > Just use something like > XURI nodeTableName = URI.create(m_xContext, " > http://www.wingstech.it/gam3/v1.0/tableName";); > > One more thing: To get the URI for removeMetadataFile, you shouldn't use > getURL from the XModel interface. Better use the document's XURI interface > (parent of XDocumentMetadataAccess), so you always get the exact URI that > the rdf implementation expects. > > > Niklas > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
Re: [dev] java rdf problem again
Sorry I'm a bit confused, and browsing the site and using google I'm not able to get a solution. I've also tried with XURI nodeTableName = URI.create(m_xContext, "tableName"); but I get this error: CURI::initialize: argument not splittable: no separator [#/:] Could you please give me a sample snippet ? cheers, kiuma 2010/3/24 Niklas Nebel > On 03/24/10 16:33, Andrea Chiumenti wrote: > >>XURI nodeTableName = URI.create(m_xContext, "gam3:tableName"); >> > > The code generates this rdf file: >> >> >> http://www.w3.org/1999/02/22-rdf-syntax-ns#";> >> http://.wingstech.it/gam3/v1.0";> >>A_TABLE >>12345 >> >> >> >> What I needed was instead something like this: >> >> >> http://www.w3.org/1999/02/22-rdf-syntax-ns#";> >> http://.wingstech.it/gam3/v1.0";> >>A_TABLE >>12345 >> >> >> > > In the URI.create call, the parameter should include the namespace URI, not > the prefix. A prefix (like "ns1") is then generated. You can see it in the > example output: If "gam3:" was replaced by something like " > http://www.wingstech.it/gam3/v1.0/";, it would be equivalent to the second > fragment (except for the namespace definition, which is missing there). > > Niklas > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
[dev] java rdf problem again
Hello, I've a problem with following code: try { XDocumentMetadataAccess xDMA = (XDocumentMetadataAccess) UnoRuntime.queryInterface(XDocumentMetadataAccess.class, xModel); XURI xType = URI.create(m_xContext, "http://.wingstech.it/gam3/v1.0 "); try { xDMA.removeMetadataFile(URI.create(m_xContext, xDoc.getURL() + "/gam3/dbinfo.rdf")); } catch (java.lang.Exception eRemove) { } XURI xGraphName = xDMA.addMetadataFile("gam3/dbinfo.rdf", new XURI[] { xType }); XNamedGraph xGraph = xDMA.getRDFRepository().getGraph(xGraphName); XURI nodeTableName = URI.create(m_xContext, "gam3:tableName"); XLiteral valTableName = Literal.create(m_xContext, "A_TABLE"); xGraph.addStatement(xType, nodeTableName, valTableName); XURI nodeTableId = URI.create(m_xContext, "gam3:tableId"); XLiteral valTableId = Literal.create(m_xContext, "12345"); xGraph.addStatement(xType, nodeTableId, valTableId); } catch (java.lang.Exception e) { e.printStackTrace(); showMessageError("ERROR rdf", e); } The code generates this rdf file: http://www.w3.org/1999/02/22-rdf-syntax-ns#";> http://.wingstech.it/gam3/v1.0";> A_TABLE 12345 What I needed was instead something like this: http://www.w3.org/1999/02/22-rdf-syntax-ns#";> http://.wingstech.it/gam3/v1.0";> A_TABLE 12345 How can I do ? Thanks in advance, kiuma
[dev] Exception on trying to set an rdf metadata in java
Hello I'm having this problem try { XMultiServiceFactory xDocFactory = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, xDoc); Object xMetafield = xDocFactory.createInstance("com.sun.star.text.textfield.MetadataField"); XText xMetafieldText = (XText)UnoRuntime.queryInterface(XText.class, xMetafield); xMetafieldText.setString(""); // clear the field: delete all content <--- LINE 110 XTextCursor xCursor = xMetafieldText.createTextCursor(); xMetafieldText.insertString(xCursor, "evviva", true); } catch (java.lang.Exception e) { e.printStackTrace(); } --->>> com.sun.star.uno.RuntimeException: at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method) at com.sun.star.bridges.jni_uno.JNI_proxy.invoke(JNI_proxy.java:178) at $Proxy18.setString(Unknown Source) at it.wingstech.gam.Saver.dispatch(Saver.java:110) What is it ? and is it correct that I'm not able to resolve com.sun.star.text.textfield.MetadataField from java ?
[dev] openoffice-sdk
Hello, as a Gentoo Linux user, I'm having some problems getting the sdk from http://download.openoffice.org/sdk/ The problem is that there is only rpm.sh and deb.sh I've an x86-64 and a simple tar.gz or tar.bz2 would be really better. Couldn't you provide the sdk in such a form ? Regards, kiuma
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
thank you for comments and suggestion, I've moved the discussion to the marketing ml. 2010/3/8 Konstantin Tokarev > N 08.03.10, 18:00, "Andrea Chiumenti" : > > what about this one ? > > Nice work! much better than it was before > > > > > 2010/3/8 Andrea Chiumenti > > > For the font I used the one provided with original svg, (personally I'd > prefer it a bit more round). I'll try to make gulls more glossy > > > > > > 2010/3/8 Konstantin Tokarev > > > > > > > > > > > > personally I think that the two gulls (my version) should be > reworked, what > > > > > do you think about ? > > > > > > > > I also think they should be reworked (IMHO). Maybe it's worth to > change font? or make birds' color slightly different from text > > > > > > > > > 2010/3/8 Andrea Chiumenti > > > > > > what do you think/suggest about this ? > > > > > > > > > > > > 2010/3/8 Stefan Taxhet (sonews) > > > > > > > > > > > > Hi Andrea, > > > > > >> > > > > > >> You may want to join the "Branding Initiative" > > > > > >> http://marketing.openoffice.org/brand > > > > > >> > > > > > >> Greetings > > > > > >> Stefan > > > > > >> > > > > > >> > > > > > >> Andrea Chiumenti wrote: > > > > > >> > > > > > >>> Hi Stefan, > > > > > >>> do we have an svg for the text logo. > > > > > >>> > > > > > >>> If not which fonts are used ? > > > > > >>> > > > > > >>> I'd like to make the text logo a bit more "sexy" > > > > > >>> > > > > > >>> Ciao, > > > > > >>> kiuma > > > > > >>> > > > > > >>> 2010/3/4 Stefan Taxhet > > > > > >>> > > > > > >>> All, > > > > > >>>> > > > > > >>>> During the last 10 years OpenOffice.org has evolved to a > quite large > > > > > >>>> project in the FLOSS world and a successful product in the > office > > > > > >>>> productivity suite market. Together with our product the > OpenOffice.org > > > > > >>>> brand spread over the world. This brand has a tradition of > quality and > > > > > >>>> it remains faithful to its origins. > > > > > >>>> > > > > > >>>> For an impression of the first two rebrushed elements - the > logo and a > > > > > >>>> symbol - have a look at > > > > > >>>> http://www.openoffice.org/trademark/brandrefresh.html > > > > > >>>> > > > > > >>>> Instead of a complete new design we started a refresh. While > it seems > > > > > >>>> always hard to adapt all input the changes point out the key > components > > > > > >>>> and improves the overall impression to gain even more > strength and > > > > > >>>> confidence. > > > > > >>>> > > > > > >>>> These elements will find their way into the next version of > our product > > > > > >>>> together with the changes that are necessary due to the > Oracle > > > > > >>>> acquisition as announced earlier. > > > > > >>>> > > > > > >>>> The just founded Branding Initiative will be the home for the > work > > > > > >>>> enabling > > > > > >>>> us to use a consistent design. Your are welcome to join the > continuation > > > > > >>>> of > > > > > >>>> this effort in this environment. > > > > > >>>> > > > > > >>>> Greetings > > > > > >>>> Stefan > > > > > >>>> > > > > > >>>> > > > > > >>>> > - > > > > > >>>> 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 > > > > > >> > > > > > >> > > > > > > > > > > > > > > -- > > > > Regards, > > > > Konstantin > > > > > > > > Яндекс.Почта. Письма есть. Спама - нет. > http://mail.yandex.ru/nospam/sign > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > > > > For additional commands, e-mail: dev-h...@openoffice.org > > > > > > > > > > > > -- > Regards, > Konstantin > > Яндекс.Почта. Письма есть. Спама - нет. http://mail.yandex.ru/nospam/sign > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
what about this one ? 2010/3/8 Andrea Chiumenti > For the font I used the one provided with original svg, (personally I'd > prefer it a bit more round). I'll try to make gulls more glossy > > 2010/3/8 Konstantin Tokarev > > >> > personally I think that the two gulls (my version) should be reworked, >> what >> > do you think about ? >> >> I also think they should be reworked (IMHO). Maybe it's worth to change >> font? or make birds' color slightly different from text >> >> > 2010/3/8 Andrea Chiumenti >> > > what do you think/suggest about this ? >> > > >> > > 2010/3/8 Stefan Taxhet (sonews) >> > > >> > > Hi Andrea, >> > >> >> > >> You may want to join the "Branding Initiative" >> > >> http://marketing.openoffice.org/brand >> > >> >> > >> Greetings >> > >> Stefan >> > >> >> > >> >> > >> Andrea Chiumenti wrote: >> > >> >> > >>> Hi Stefan, >> > >>> do we have an svg for the text logo. >> > >>> >> > >>> If not which fonts are used ? >> > >>> >> > >>> I'd like to make the text logo a bit more "sexy" >> > >>> >> > >>> Ciao, >> > >>> kiuma >> > >>> >> > >>> 2010/3/4 Stefan Taxhet >> > >>> >> > >>> All, >> > >>>> >> > >>>> During the last 10 years OpenOffice.org has evolved to a quite >> large >> > >>>> project in the FLOSS world and a successful product in the office >> > >>>> productivity suite market. Together with our product the >> OpenOffice.org >> > >>>> brand spread over the world. This brand has a tradition of quality >> and >> > >>>> it remains faithful to its origins. >> > >>>> >> > >>>> For an impression of the first two rebrushed elements - the logo >> and a >> > >>>> symbol - have a look at >> > >>>> http://www.openoffice.org/trademark/brandrefresh.html >> > >>>> >> > >>>> Instead of a complete new design we started a refresh. While it >> seems >> > >>>> always hard to adapt all input the changes point out the key >> components >> > >>>> and improves the overall impression to gain even more strength and >> > >>>> confidence. >> > >>>> >> > >>>> These elements will find their way into the next version of our >> product >> > >>>> together with the changes that are necessary due to the Oracle >> > >>>> acquisition as announced earlier. >> > >>>> >> > >>>> The just founded Branding Initiative will be the home for the work >> > >>>> enabling >> > >>>> us to use a consistent design. Your are welcome to join the >> continuation >> > >>>> of >> > >>>> this effort in this environment. >> > >>>> >> > >>>> Greetings >> > >>>> Stefan >> > >>>> >> > >>>> >> > >>>> >> - >> > >>>> 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 >> > >> >> > >> >> > > >> >> -- >> Regards, >> Konstantin >> >> Яндекс.Почта. Письма есть. Спама - нет. http://mail.yandex.ru/nospam/sign >> >> - >> 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
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
For the font I used the one provided with original svg, (personally I'd prefer it a bit more round). I'll try to make gulls more glossy 2010/3/8 Konstantin Tokarev > > > personally I think that the two gulls (my version) should be reworked, > what > > do you think about ? > > I also think they should be reworked (IMHO). Maybe it's worth to change > font? or make birds' color slightly different from text > > > 2010/3/8 Andrea Chiumenti > > > what do you think/suggest about this ? > > > > > > 2010/3/8 Stefan Taxhet (sonews) > > > > > > Hi Andrea, > > >> > > >> You may want to join the "Branding Initiative" > > >> http://marketing.openoffice.org/brand > > >> > > >> Greetings > > >> Stefan > > >> > > >> > > >> Andrea Chiumenti wrote: > > >> > > >>> Hi Stefan, > > >>> do we have an svg for the text logo. > > >>> > > >>> If not which fonts are used ? > > >>> > > >>> I'd like to make the text logo a bit more "sexy" > > >>> > > >>> Ciao, > > >>> kiuma > > >>> > > >>> 2010/3/4 Stefan Taxhet > > >>> > > >>> All, > > >>>> > > >>>> During the last 10 years OpenOffice.org has evolved to a quite large > > >>>> project in the FLOSS world and a successful product in the office > > >>>> productivity suite market. Together with our product the > OpenOffice.org > > >>>> brand spread over the world. This brand has a tradition of quality > and > > >>>> it remains faithful to its origins. > > >>>> > > >>>> For an impression of the first two rebrushed elements - the logo and > a > > >>>> symbol - have a look at > > >>>> http://www.openoffice.org/trademark/brandrefresh.html > > >>>> > > >>>> Instead of a complete new design we started a refresh. While it > seems > > >>>> always hard to adapt all input the changes point out the key > components > > >>>> and improves the overall impression to gain even more strength and > > >>>> confidence. > > >>>> > > >>>> These elements will find their way into the next version of our > product > > >>>> together with the changes that are necessary due to the Oracle > > >>>> acquisition as announced earlier. > > >>>> > > >>>> The just founded Branding Initiative will be the home for the work > > >>>> enabling > > >>>> us to use a consistent design. Your are welcome to join the > continuation > > >>>> of > > >>>> this effort in this environment. > > >>>> > > >>>> Greetings > > >>>> Stefan > > >>>> > > >>>> > > >>>> > - > > >>>> 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 > > >> > > >> > > > > > -- > Regards, > Konstantin > > Яндекс.Почта. Письма есть. Спама - нет. http://mail.yandex.ru/nospam/sign > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
personally I think that the two gulls (my version) should be reworked, what do you think about ? 2010/3/8 Andrea Chiumenti > what do you think/suggest about this ? > > 2010/3/8 Stefan Taxhet (sonews) > > Hi Andrea, >> >> You may want to join the "Branding Initiative" >> http://marketing.openoffice.org/brand >> >> Greetings >> Stefan >> >> >> Andrea Chiumenti wrote: >> >>> Hi Stefan, >>> do we have an svg for the text logo. >>> >>> If not which fonts are used ? >>> >>> I'd like to make the text logo a bit more "sexy" >>> >>> Ciao, >>> kiuma >>> >>> 2010/3/4 Stefan Taxhet >>> >>> All, >>>> >>>> During the last 10 years OpenOffice.org has evolved to a quite large >>>> project in the FLOSS world and a successful product in the office >>>> productivity suite market. Together with our product the OpenOffice.org >>>> brand spread over the world. This brand has a tradition of quality and >>>> it remains faithful to its origins. >>>> >>>> For an impression of the first two rebrushed elements - the logo and a >>>> symbol - have a look at >>>> http://www.openoffice.org/trademark/brandrefresh.html >>>> >>>> Instead of a complete new design we started a refresh. While it seems >>>> always hard to adapt all input the changes point out the key components >>>> and improves the overall impression to gain even more strength and >>>> confidence. >>>> >>>> These elements will find their way into the next version of our product >>>> together with the changes that are necessary due to the Oracle >>>> acquisition as announced earlier. >>>> >>>> The just founded Branding Initiative will be the home for the work >>>> enabling >>>> us to use a consistent design. Your are welcome to join the continuation >>>> of >>>> this effort in this environment. >>>> >>>> Greetings >>>> Stefan >>>> >>>> >>>> - >>>> 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 >> >> >
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
what do you think/suggest about this ? 2010/3/8 Stefan Taxhet (sonews) > Hi Andrea, > > You may want to join the "Branding Initiative" > http://marketing.openoffice.org/brand > > Greetings > Stefan > > > Andrea Chiumenti wrote: > >> Hi Stefan, >> do we have an svg for the text logo. >> >> If not which fonts are used ? >> >> I'd like to make the text logo a bit more "sexy" >> >> Ciao, >> kiuma >> >> 2010/3/4 Stefan Taxhet >> >> All, >>> >>> During the last 10 years OpenOffice.org has evolved to a quite large >>> project in the FLOSS world and a successful product in the office >>> productivity suite market. Together with our product the OpenOffice.org >>> brand spread over the world. This brand has a tradition of quality and >>> it remains faithful to its origins. >>> >>> For an impression of the first two rebrushed elements - the logo and a >>> symbol - have a look at >>> http://www.openoffice.org/trademark/brandrefresh.html >>> >>> Instead of a complete new design we started a refresh. While it seems >>> always hard to adapt all input the changes point out the key components >>> and improves the overall impression to gain even more strength and >>> confidence. >>> >>> These elements will find their way into the next version of our product >>> together with the changes that are necessary due to the Oracle >>> acquisition as announced earlier. >>> >>> The just founded Branding Initiative will be the home for the work >>> enabling >>> us to use a consistent design. Your are welcome to join the continuation >>> of >>> this effort in this environment. >>> >>> Greetings >>> Stefan >>> >>> >>> - >>> 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 > > <>- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] A Brand Refresh for OpenOffice.org (was Re: Changes to Site/Product Elements due to Oracle Acquisition)
Hi Stefan, do we have an svg for the text logo. If not which fonts are used ? I'd like to make the text logo a bit more "sexy" Ciao, kiuma 2010/3/4 Stefan Taxhet > All, > > During the last 10 years OpenOffice.org has evolved to a quite large > project in the FLOSS world and a successful product in the office > productivity suite market. Together with our product the OpenOffice.org > brand spread over the world. This brand has a tradition of quality and > it remains faithful to its origins. > > For an impression of the first two rebrushed elements - the logo and a > symbol - have a look at > http://www.openoffice.org/trademark/brandrefresh.html > > Instead of a complete new design we started a refresh. While it seems > always hard to adapt all input the changes point out the key components > and improves the overall impression to gain even more strength and > confidence. > > These elements will find their way into the next version of our product > together with the changes that are necessary due to the Oracle > acquisition as announced earlier. > > The just founded Branding Initiative will be the home for the work enabling > us to use a consistent design. Your are welcome to join the continuation of > this effort in this environment. > > Greetings > Stefan > > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
Re: [dev] Showing a dialog from My java OTX component
exactly what I needed, Thank you! kiuma 2010/2/26 Niklas Nebel > On 02/26/10 16:13, Andrea Chiumenti wrote: > >> Hello, after the dispatch operation I open a message dialog the informs >> the >> user that the operation has been successfully concluded. >> Something like >> JOptionPane.showMessageDialog(null, "Transmission completed!" , "Info", >> JOptionPane.INFORMATION_MESSAGE); >> >> This obviously has a swing layout, how can I do in the OpenOffice way ? >> > > This is described in the Developer's Guide. Take a look at > http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/GUI/Message_Box > . > > Niklas > > - > To unsubscribe, e-mail: dev-unsubscr...@openoffice.org > For additional commands, e-mail: dev-h...@openoffice.org > >
[dev] Showing a dialog from My java OTX component
Hello, after the dispatch operation I open a message dialog the informs the user that the operation has been successfully concluded. Something like JOptionPane.showMessageDialog(null, "Transmission completed!" , "Info", JOptionPane.INFORMATION_MESSAGE); This obviously has a swing layout, how can I do in the OpenOffice way ? Thanks in advance, kiuma
[dev] Help with implementing a java OXT component
Hello I've used netbeans to create an OXT component. The component task will be to save the document and send a notification message to another application. The problem is that I've something worng on dispatch method the makes OO to show an alert saying that capability is not supported by the current os. the dispatch method is: - public void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments) { if (aURL.Protocol.compareTo("it.wingstech.gam.saver:") == 0) { if (aURL.Path.compareTo("GamSave") == 0) { XTextDocument xDoc = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, m_xFrame.getController().getModel()); xDoc.getText().setString("Hello World " + Calendar.getInstance().getTime().toString()); // only for test purposes try { XStorable xStorable = (XStorable) UnoRuntime.queryInterface( XStorable.class, xDoc); xStorable.store(); //will send notification message here return; } catch (IOException ex) { xDoc.getText().setString(ex.getMessage()); } } } } --- Could you tell me please where I am wrong ? Thanks in advance, kiuma
[dev] Fwd: Help with implementing a java OXT component
-- Forwarded message -- From: Andrea Chiumenti Date: 2010/2/25 Subject: Help with implementing a java OXT component To: us...@openoffice.org Hello I've used netbeans to create an OXT component. The component task will be to save the document and send a notification message to another application. The problem is that I've something worng on dispatch method the makes OO to show an alert saying that capability is not supported by the current os. the dispatch method is: --- public void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments) { if (aURL.Protocol.compareTo("it.wingstech.gam.saver:") == 0) { if (aURL.Path.compareTo("GamSave") == 0) { XTextDocument xDoc = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, m_xFrame.getController().getModel()); xDoc.getText().setString("Hello World " + Calendar.getInstance().getTime().toString()); // only for test purposes try { XStorable xStorable = (XStorable) UnoRuntime.queryInterface( XStorable.class, xDoc); xStorable.store(); //will send notification message here return; } catch (IOException ex) { xDoc.getText().setString(ex.getMessage()); } } } } --- Could you tell me please where I am wrong ? Thanks in advance, kiuma
[dev] Help with implementing a java OXT component
Hello I've used netbeans to create an OXT component. The component task will be to save the document and send a notification message to another application. The problem is that I've something worng on dispatch method the makes OO to show an alert saying that capability is not supported by the current os. the dispatch method is: -- - public void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments) { if (aURL.Protocol.compareTo("it.wingstech.gam.saver:") == 0) { if (aURL.Path.compareTo("GamSave") == 0) { XTextDocument xDoc = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, m_xFrame.getController().getModel()); xDoc.getText().setString("Hello World " + Calendar.getInstance().getTime().toString()); // only for test purposes try { XStorable xStorable = (XStorable) UnoRuntime.queryInterface( XStorable.class, xDoc); xStorable.store(); //will send notification message here return; } catch (IOException ex) { xDoc.getText().setString(ex.getMessage()); } } } } --- Could you tell me please where I am wrong ? Thanks in advance, kiuma