<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-12782</id>
	<title>Nabble - openoffice - api dev</title>
	<updated>2009-11-22T22:47:40Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/openoffice---api-dev-f12782.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/openoffice---api-dev-f12782.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26473438</id>
	<title>Question about weak reference list inside java bridge code.</title>
	<published>2009-11-22T22:47:40Z</published>
	<updated>2009-11-22T22:47:40Z</updated>
	<author>
		<name>Huaidong Qiu</name>
	</author>
	<content type="html">We got a problem like this, one of the L2 entry list keep growing consume
&lt;br&gt;too much memory.
&lt;br&gt;&lt;br&gt;module jurt
&lt;br&gt;&lt;br&gt;package com.sun.star.lib.uno.environments.java;
&lt;br&gt;&lt;br&gt;the cleanUp member function of class Registry.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // must only be called while synchronized on map:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private void cleanUp() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (;;) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Level2Entry l2 = (Level2Entry) queue.poll();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (l2 == null) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // It is possible that a Level2Entry e1 for the OID/type
&lt;br&gt;pair
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // (o,t) becomes weakly reachable, then another Level2Entry
&lt;br&gt;e2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // is registered for the same pair (o,t) (a new Level2Entry
&lt;br&gt;is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // created since now e1.get() == null), and only then e1 is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // enqueued. &amp;nbsp;To not erroneously remove the new e2 in that
&lt;br&gt;case,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // check whether the map still contains e1:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String oid = l2.getOid();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Level1Entry l1 = getLevel1Entry(oid);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (l1 != null &amp;&amp; l1.get(l2.getType()) == l2) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; removeLevel2Entry(oid, l1, l2);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;All those weak reference Level2Entry entries are invalid, the condition
&lt;br&gt;(l1.get(l2.getType()) == l2) keeps cleanUp function from removing them from
&lt;br&gt;the list.
&lt;br&gt;&lt;br&gt;I think if this
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // It is possible that a Level2Entry e1 for the OID/type
&lt;br&gt;pair
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // (o,t) becomes weakly reachable, then another Level2Entry
&lt;br&gt;e2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // is registered for the same pair (o,t) (a new Level2Entry
&lt;br&gt;is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // created since now e1.get() == null), and only then e1 is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // enqueued.
&lt;br&gt;happened once then there is no way the condition (l1.get(l2.getType()) ==
&lt;br&gt;l2) can be true again, because get(l2.getType()) always return the first
&lt;br&gt;element in the list, but queue.poll() return the newly released weak
&lt;br&gt;reference which can not be the first one in the list.
&lt;br&gt;&lt;br&gt;If weak reference list cleanup mechanism is correct, could please give some
&lt;br&gt;possible reasons could cause the growing problem of L2 entry list.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Huai Dong
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-about-weak-reference-list-inside-java-bridge-code.-tp26473438p26473438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26457427</id>
	<title>listbox events</title>
	<published>2009-11-21T07:14:47Z</published>
	<updated>2009-11-21T07:14:47Z</updated>
	<author>
		<name>Paolo Mantovani</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm having a strange problem that affects only certain versions of ooo 3.1.1
&lt;br&gt;&lt;br&gt;In practice, having a listbox model, if you set the SelectedItems 
&lt;br&gt;property, on some ooo version the &amp;nbsp;itemStateChanged event of the ListBox 
&lt;br&gt;is raised.
&lt;br&gt;&lt;br&gt;The problem does not affect OOo vanilla version (sun build) but affects 
&lt;br&gt;the ooo packaged from Ubuntu.
&lt;br&gt;&lt;br&gt;you can test with the code below (you'll need to prepare a simple dialog 
&lt;br&gt;with a listbox before)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Now, my question is:
&lt;br&gt;what is the correct behaviour:
&lt;br&gt;OOo by sun: the event is NOT raised if you modify the selection from the 
&lt;br&gt;model but it is raised if the user modify the selection manually.
&lt;br&gt;&lt;br&gt;OOo Ubuntu 9.10: the event is alwais raised
&lt;br&gt;&lt;br&gt;IMHO the first is correct or at least is the most used, because I have 
&lt;br&gt;never observed the second in old ooo versions.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Paolo M
&lt;br&gt;&lt;br&gt;&lt;br&gt;REM &amp;nbsp;***** &amp;nbsp;BASIC &amp;nbsp;*****
&lt;br&gt;&lt;br&gt;Sub Main
&lt;br&gt;oDlg = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
&lt;br&gt;oDlg.Model.ListBox.StringItemList = Array(1,2,3,4,5)
&lt;br&gt;&lt;br&gt;'this line raises the event but only on certain versions
&lt;br&gt;oDlg.Model.ListBox.SelectedItems = (Array(0)) '****
&lt;br&gt;&lt;br&gt;oDlg.execute
&lt;br&gt;End Sub
&lt;br&gt;&lt;br&gt;&lt;br&gt;'manually binded to the itemstateChanged event of the listbox
&lt;br&gt;Sub ListBox_itemStateChanged(oEvent As Object)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print &amp;quot;halo!&amp;quot;
&lt;br&gt;End Sub
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26457427&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26457427&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/listbox-events-tp26457427p26457427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26436738</id>
	<title>Presenting Instant Bird</title>
	<published>2009-11-19T16:35:34Z</published>
	<updated>2009-11-19T16:35:34Z</updated>
	<author>
		<name>JZA</name>
	</author>
	<content type="html">This is an interesting test case of the future of the toolkits such as &amp;nbsp;
&lt;br&gt;libpurple and XUL.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://instantbird.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://instantbird.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is a great way to see if OOo can grow into new modules maybe by &amp;nbsp;
&lt;br&gt;encapsulating the libraries such as the project management project. For &amp;nbsp;
&lt;br&gt;example something like the Planner app (project management in Gnome) and &amp;nbsp;
&lt;br&gt;the OOo toolkit. Althought I am not sure if XULRunner and UNO represent &amp;nbsp;
&lt;br&gt;the same stack.
&lt;br&gt;&lt;br&gt;Also a side project could be a better collaboration environment using &amp;nbsp;
&lt;br&gt;libpurple which also works on all 3 OS.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Using Opera's revolutionary e-mail client: &lt;a href=&quot;http://www.opera.com/mail/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opera.com/mail/&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26436738&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26436738&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Presenting-Instant-Bird-tp26436738p26436738.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26407567</id>
	<title>Re: loadcomponentfromrul with whitespace bug?</title>
	<published>2009-11-18T05:19:22Z</published>
	<updated>2009-11-18T05:19:22Z</updated>
	<author>
		<name>Daniel Käfer</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;Mathias Bauer schrieb
&lt;br&gt;&amp;gt; are you sure that you have write access to the file? Can you open it for
&lt;br&gt;&amp;gt; editing with the same instance of OOo with the same OOo user profile
&lt;br&gt;&amp;gt; that you are using for your loadComponentFromURL call?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I hava read und write access to the file. In OpenOffice i can open the 
&lt;br&gt;document and save the modifications. It is the same profile and the same 
&lt;br&gt;instance of OpenOffice.
&lt;br&gt;&lt;br&gt;&amp;gt; Are you talking about &amp;quot;ReadOnly&amp;quot; or about &amp;quot;Hidden&amp;quot;?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Sorry, i have copy the wrong code snippet. I am talking about &amp;quot;ReadOnly&amp;quot;
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Daniel Käfer
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407567&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407567&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromrul-with-whitespace-bug--tp26405814p26407567.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26407366</id>
	<title>Re: loadcomponentfromrul with whitespace bug?</title>
	<published>2009-11-18T05:04:16Z</published>
	<updated>2009-11-18T05:04:16Z</updated>
	<author>
		<name>Mathias Bauer</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Daniel Käfer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I try to open a document. In the Path are whitespace. I replace the 
&lt;br&gt;&amp;gt; whitespace with '%20', for example 
&lt;br&gt;&amp;gt; file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the ReadOnly property is true or the property is not set, it works 
&lt;br&gt;&amp;gt; well. If the property ist false a IllegalArgumentException is throw.
&lt;br&gt;&lt;br&gt;are you sure that you have write access to the file? Can you open it for
&lt;br&gt;editing with the same instance of OOo with the same OOo user profile
&lt;br&gt;that you are using for your loadComponentFromURL call?
&lt;br&gt;&lt;br&gt;&amp;gt; The complete call is:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; PropertyValue[] properties = new PropertyValue[1];
&lt;br&gt;&amp;gt; properties[0] = new PropertyValue();
&lt;br&gt;&amp;gt; properties[0].Name = &amp;quot;Hidden&amp;quot;;
&lt;br&gt;&amp;gt; properties[0].Value = Boolean.valueOf(false);
&lt;br&gt;&lt;br&gt;Are you talking about &amp;quot;ReadOnly&amp;quot; or about &amp;quot;Hidden&amp;quot;?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Mathias
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
&lt;br&gt;OpenOffice.org Engineering at Sun: &lt;a href=&quot;http://blogs.sun.com/GullFOSS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.sun.com/GullFOSS&lt;/a&gt;&lt;br&gt;Please don't reply to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407366&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nospamformba@...&lt;/a&gt;&amp;quot;.
&lt;br&gt;I use it for the OOo lists and only rarely read other mails sent to it.
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407366&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26407366&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromrul-with-whitespace-bug--tp26405814p26407366.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405814</id>
	<title>loadcomponentfromrul with whitespace bug?</title>
	<published>2009-11-18T02:54:41Z</published>
	<updated>2009-11-18T02:54:41Z</updated>
	<author>
		<name>Daniel Käfer</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I try to open a document. In the Path are whitespace. I replace the 
&lt;br&gt;whitespace with '%20', for example 
&lt;br&gt;file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt.
&lt;br&gt;&lt;br&gt;If the ReadOnly property is true or the property is not set, it works 
&lt;br&gt;well. If the property ist false a IllegalArgumentException is throw.
&lt;br&gt;&lt;br&gt;de.twc.ooo.OOoException: com.sun.star.lang.IllegalArgumentException: URL 
&lt;br&gt;seems to be an unsupported one.
&lt;br&gt;&amp;nbsp; &amp;nbsp; at de.twc.ooo.OOoDocumentHandler.open(OOoDocumentHandler.java:184)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;de.twc.tinyoocom.OOComJudas6Impl.openDocumentVisible(OOComJudas6Impl.java:99)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at de.twc.tinyoocom.Main.&amp;lt;init&amp;gt;(Main.java:67)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at de.twc.tinyoocom.Main.main(Main.java:181)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:597)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.sun.star.lib.loader.Loader.main(Loader.java:143)
&lt;br&gt;Caused by: com.sun.star.lang.IllegalArgumentException: URL seems to be 
&lt;br&gt;an unsupported one.
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:182)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:148)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:344)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:313)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:101)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:652)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:154)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at 
&lt;br&gt;com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:136)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at $Proxy5.loadComponentFromURL(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; at de.twc.ooo.OOoDocumentHandler.open(OOoDocumentHandler.java:172)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... 8 more
&lt;br&gt;&lt;br&gt;The complete call is:
&lt;br&gt;&lt;br&gt;PropertyValue[] properties = new PropertyValue[1];
&lt;br&gt;properties[0] = new PropertyValue();
&lt;br&gt;properties[0].Name = &amp;quot;Hidden&amp;quot;;
&lt;br&gt;properties[0].Value = Boolean.valueOf(false);
&lt;br&gt;&lt;br&gt;xComponent = xComponentLoader.loadComponentFromURL(
&lt;br&gt;&amp;quot;file:///C:/Dokumente%20und%20Einstellungen/twc/TWC/Documents/1258539328921.odt&amp;quot;,
&lt;br&gt;&amp;quot;_blank&amp;quot;, FrameSearchFlag.CREATE, properties);
&lt;br&gt;&lt;br&gt;I think this is a bug.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Daniel Käfer
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405814&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405814&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromrul-with-whitespace-bug--tp26405814p26405814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26368412</id>
	<title>OOo API plugin 2.0.6 for NetbEans 6.7.1 and 6.8 Beta available</title>
	<published>2009-11-16T00:36:55Z</published>
	<updated>2009-11-16T00:36:55Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;maybe some of you have already seen or got notified that a new version 
&lt;br&gt;of the OOo API plugin for NetBeans is available.
&lt;br&gt;&lt;br&gt;This new version is only a maintenance update for newer version of 
&lt;br&gt;NetBeans and it supports now the current stable release NetBeans 6.7.1 
&lt;br&gt;and also NetBeans 6.8 Beta.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368412&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368412&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OOo-API-plugin-2.0.6-for-NetbEans-6.7.1-and-6.8-Beta-available-tp26368412p26368412.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26368016</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-15T23:57:27Z</published>
	<updated>2009-11-15T23:57:27Z</updated>
	<author>
		<name>Bernard Marcelly</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;You must also specify the filter name...
&lt;br&gt;&lt;br&gt;props(0).Name = &amp;quot;FilterName&amp;quot;
&lt;br&gt;props(0).Value = &amp;quot;Text (encoded)&amp;quot;
&lt;br&gt;props(1).Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;props(1).Value = &amp;quot;UTF8&amp;quot;
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; Bernard
&lt;br&gt;&lt;br&gt;Message de Wei Min Teo &amp;nbsp;date 2009-11-16 07:34 :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've created a text file, renamed the extension to odt and tried using filteroptions. It is unable to open the file. However, if i select this option via the text encoding dialog UI, it is able to display the text. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Prop.Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Prop.Value &amp;lt;&amp;lt;= &amp;quot;UTF8&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've yet to try the type detection, will further update after i figure it out. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368016&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26368016&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26368016.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26367437</id>
	<title>RE: loadcomponentfromurl</title>
	<published>2009-11-15T22:34:16Z</published>
	<updated>2009-11-15T22:34:16Z</updated>
	<author>
		<name>Wei Min Teo</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I've created a text file, renamed the extension to odt and tried using filteroptions. It is unable to open the file. However, if i select this option via the text encoding dialog UI, it is able to display the text. 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; Prop.Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; Prop.Value &amp;lt;&amp;lt;= &amp;quot;UTF8&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I've yet to try the type detection, will further update after i figure it out. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Wei Min
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Date: Mon, 9 Nov 2009 10:14:56 +0100
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Juergen.Schmidt@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [api-dev] loadcomponentfromurl
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mikhail is right, an important piece of documentation is missing here 
&lt;br&gt;&amp;gt; and i renew my request that we document filter specific settings 
&lt;br&gt;&amp;gt; somewhere. A wiki page showing the names that have to be used via API 
&lt;br&gt;&amp;gt; and all filter specific settings. These settings depends on the filter 
&lt;br&gt;&amp;gt; implementation and should be documented for each filter.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Today we have only a list of filter names somewhere in the framework 
&lt;br&gt;&amp;gt; wiki section.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi Wei Min,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; As I have written in one of the previous emails, I would suggest to make
&lt;br&gt;&amp;gt; &amp;gt; the type detection explicitly to get the required filter name. And in
&lt;br&gt;&amp;gt; &amp;gt; case you get &amp;quot;Text (encoded)&amp;quot; filter, please add the filter options
&lt;br&gt;&amp;gt; &amp;gt; containing the encoding.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The problem with filter options is that there seems to be no
&lt;br&gt;&amp;gt; &amp;gt; documentation regarding them. According to source-code the following
&lt;br&gt;&amp;gt; &amp;gt; property in the MediaDescriptor might work in case of &amp;quot;Text (encoded)&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; filter.
&lt;br&gt;&amp;gt; &amp;gt; Prop.Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; Prop.Value &amp;lt;&amp;lt;= &amp;quot;UTF8&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Before you start with the TypeDetection usage, please try just to add
&lt;br&gt;&amp;gt; &amp;gt; the filter options property in MediaDescriptor and try it with the
&lt;br&gt;&amp;gt; &amp;gt; problematic documents. Just to be sure that the options are accepted in
&lt;br&gt;&amp;gt; &amp;gt; this format.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;gt; Mikhail.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On 11/09/09 03:09, Wei Min Teo wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks for your responses. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Let's assume that indeed those files are not &amp;quot;legitimate&amp;quot; .doc files. If someone creates a text file and renames it as .doc, the Writer encoding text dialog will pop out a UI. If I do choose a encoding such as UTF-8, it will be able to open the text file with no problems and the text will be readable. This is what i want to do programatically, to open with a specified encoding without using the pop-out UI. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Is it possible to do this?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Wei Min
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Date: Fri, 6 Nov 2009 12:10:58 +0100
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mikhail.Voytenko@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Subject: Re: [api-dev] loadcomponentfromurl
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; On 11/06/09 10:26, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; like the scenario that Ariel has described.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Sorry, I was wrong in my last comment.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Indeed the text filter still wins sometimes by unknown formats, although 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; actually the filter selection dialog should be shown. And MSWord filter 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; has no filter options dialog.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Maybe a complete code snippet could help to understand ...
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; It is probably more interesting to take a look to the document. I 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; suspect that Bernard is right and the document is no valid .doc document.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Windows 7: Simplify what you do everyday. Find the right PC for you.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://windows.microsoft.com/shop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windows.microsoft.com/shop&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367437&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;New Windows 7: Find the right PC for you. Learn more.
&lt;br&gt;&lt;a href=&quot;http://windows.microsoft.com/shop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windows.microsoft.com/shop&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26367437.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26354623</id>
	<title>Re: Help with ip output stream from Basic macro in OOo Calc on XP</title>
	<published>2009-11-14T14:44:41Z</published>
	<updated>2009-11-14T14:44:41Z</updated>
	<author>
		<name>Jan Holst Jensen</name>
	</author>
	<content type="html">Martin Jacobs wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am happy to explain why I want it, but it's a long story -
&lt;br&gt;&amp;gt; essentially, it's for writing to an LED display hung over a theatrical
&lt;br&gt;&amp;gt; stage, using a WiFi connection from a laptop. If it works reliably, I
&lt;br&gt;&amp;gt; intend to make the code freely available, as this sort of requirement is
&lt;br&gt;&amp;gt; becoming increasingly in demand to help the hard-of-hearing and for
&lt;br&gt;&amp;gt; language barriers. &amp;nbsp;Current commercial software is either very expensive
&lt;br&gt;&amp;gt; or too crude. However, I need to implement the connection before I worry
&lt;br&gt;&amp;gt; about how to publish the code! &amp;nbsp;Anyway, here is the request.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;Sounds fun!
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Help with ip output stream from Basic macro in OOo Calc on XP.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am attempting to send lines of text to a remote display device. &amp;nbsp;As a
&lt;br&gt;&amp;gt; first step, I have written a set of macros to extract the data I want
&lt;br&gt;&amp;gt; from a spreadsheet and save each line as a file on disc in the required
&lt;br&gt;&amp;gt; format. &amp;nbsp;I did this by copying bits of code I found, with a very
&lt;br&gt;&amp;gt; superficial understanding of how it all works. &amp;nbsp;I am very grateful to
&lt;br&gt;&amp;gt; all those who contribute examples and help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My next step is to send the data to the display device instead of disc
&lt;br&gt;&amp;gt; file. &amp;nbsp;The instruction I have from the device manufacturer is -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Use a socket component and transmit the data string to port 10001 on
&lt;br&gt;&amp;gt; the IP address of the display device.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have no idea how to do this, and have not found examples that I
&lt;br&gt;&amp;gt; understand. &amp;nbsp;The display only listens and does not respond - does that
&lt;br&gt;&amp;gt; mean I should use UDP rather than TCP? &amp;nbsp; Below is my current output
&lt;br&gt;&amp;gt; routine. &amp;nbsp;I would be grateful for suggestions on how to convert or
&lt;br&gt;&amp;gt; replace it.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;I have no idea whether socket communications can be done in OOoBasic. 
&lt;br&gt;But I would know how to create a small Windows application that can read 
&lt;br&gt;a string from a file and send it to a port on a given IP address. You 
&lt;br&gt;can then use SHELL() from OOoBasic to run that application when you need 
&lt;br&gt;to update the display. This should be fast enough since you are using it 
&lt;br&gt;for something equivalent to subtitles on TV.
&lt;br&gt;&lt;br&gt;But first you should get communications going with the LED display. Try 
&lt;br&gt;doing &amp;quot;telnet 10.10.10.1 10001&amp;quot; where 10.10.10.1 is the IP address of 
&lt;br&gt;the display. I then believe you should be able to see the text you write 
&lt;br&gt;on the LED display. If that works for you I can help you with a 
&lt;br&gt;dedicated application for sending strings. Feel free to write to me in 
&lt;br&gt;private at the address &amp;quot;jan &amp;lt;at&amp;gt; jan-holst.dk&amp;quot;.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;-- Jan Holst Jensen
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354623&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354623&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-with-ip-output-stream-from-Basic-macro-in-OOo-Calc-on-XP-tp26354385p26354623.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26354385</id>
	<title>Help with ip output stream from Basic macro in OOo Calc on XP</title>
	<published>2009-11-14T04:50:56Z</published>
	<updated>2009-11-14T04:50:56Z</updated>
	<author>
		<name>Martin Jacobs-2</name>
	</author>
	<content type="html">&lt;br&gt;Please forgive me writing to you on this e-mail address, but I find the
&lt;br&gt;OOo world overwhelming from my limited knowledge of computing theory and
&lt;br&gt;terminology, and I haven't found how or where to submit a request for
&lt;br&gt;help. &amp;nbsp;I am looking for a snippet as described below. &amp;nbsp;Is this the sort
&lt;br&gt;of thing that some kind person might write for me? If not, can you
&lt;br&gt;please suggest where I might put my request? &amp;nbsp;I would be grateful for
&lt;br&gt;any assistance.
&lt;br&gt;&lt;br&gt;I am happy to explain why I want it, but it's a long story -
&lt;br&gt;essentially, it's for writing to an LED display hung over a theatrical
&lt;br&gt;stage, using a WiFi connection from a laptop. If it works reliably, I
&lt;br&gt;intend to make the code freely available, as this sort of requirement is
&lt;br&gt;becoming increasingly in demand to help the hard-of-hearing and for
&lt;br&gt;language barriers. &amp;nbsp;Current commercial software is either very expensive
&lt;br&gt;or too crude. However, I need to implement the connection before I worry
&lt;br&gt;about how to publish the code! &amp;nbsp;Anyway, here is the request.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Help with ip output stream from Basic macro in OOo Calc on XP.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I am attempting to send lines of text to a remote display device. &amp;nbsp;As a
&lt;br&gt;first step, I have written a set of macros to extract the data I want
&lt;br&gt;from a spreadsheet and save each line as a file on disc in the required
&lt;br&gt;format. &amp;nbsp;I did this by copying bits of code I found, with a very
&lt;br&gt;superficial understanding of how it all works. &amp;nbsp;I am very grateful to
&lt;br&gt;all those who contribute examples and help.
&lt;br&gt;&lt;br&gt;My next step is to send the data to the display device instead of disc
&lt;br&gt;file. &amp;nbsp;The instruction I have from the device manufacturer is -
&lt;br&gt;&lt;br&gt;&amp;quot;Use a socket component and transmit the data string to port 10001 on
&lt;br&gt;the IP address of the display device.&amp;quot;
&lt;br&gt;&lt;br&gt;I have no idea how to do this, and have not found examples that I
&lt;br&gt;understand. &amp;nbsp;The display only listens and does not respond - does that
&lt;br&gt;mean I should use UDP rather than TCP? &amp;nbsp; Below is my current output
&lt;br&gt;routine. &amp;nbsp;I would be grateful for suggestions on how to convert or
&lt;br&gt;replace it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sub DisplayText(FilePath as String, DataString as String)
&lt;br&gt;rem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Currently writes a file to disc - overwriting the
&lt;br&gt;previous.
&lt;br&gt;rem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;derived from Useful Macro Information. For
&lt;br&gt;OpenOffice.org.
&lt;br&gt;rem &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;by Andrew Pitonyak. www.pitonyak.org/oo.php and
&lt;br&gt;CodeSnippets
&lt;br&gt;Dim oFileAccess as Object
&lt;br&gt;Dim oFile as Object
&lt;br&gt;Dim oOutputStream as Object
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oFileAccess =
&lt;br&gt;createUnoService(&amp;quot;com.sun.star.ucb.SimpleFileAccess&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oOutputStream =
&lt;br&gt;createUnoService(&amp;quot;com.sun.star.io.TextOutputStream&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If oFileAccess.Exists(FilePath) Then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oFileAccess.Kill(FilePath)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Endif
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oFile = oFileAccess.OpenFileReadWrite(FilePath)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oOutputStream.SetOutputStream(oFile.GetOutputStream)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oOutputStream.WriteString(DataString)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; oOutputStream.CloseOutput()
&lt;br&gt;End Sub
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;Martin Jacobs
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26354385&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-with-ip-output-stream-from-Basic-macro-in-OOo-Calc-on-XP-tp26354385p26354385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26339797</id>
	<title>Re: Is there any &quot;OpenOffice.org Look&amp;Feel&quot; for extensions in Java?</title>
	<published>2009-11-13T08:57:43Z</published>
	<updated>2009-11-13T08:57:43Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Marcin Miłkowski wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Juergen Schmidt pisze:
&lt;br&gt;&amp;gt;&amp;gt; Marcin Miłkowski wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Konstantin Tokarev pisze:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is there any &amp;quot;OpenOffice.org Look&amp;Feel&amp;quot; for extensions in Java?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; As far as I know, there is none. If you want to have the native look 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (which is different under different OSes and graphical managers), use 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the AWT via UNO. However, this is a bit cumbersome if you display 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; something more complex than a message box. And you cannot really 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; implement anything new in the UI (no new UI elements by overriding 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; classes, as far as I know). No wonder most extension developers don't 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; use it...
&lt;br&gt;&amp;gt;&amp;gt; it is correct that the UNO awt toolkit has limitations but it is the 
&lt;br&gt;&amp;gt;&amp;gt; best way to integrate in the office and to avoid problems.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, the problem is that Java/Swing programmers are used to create 
&lt;br&gt;&amp;gt; their own user interface elements, so these limitations are quite serious.
&lt;/div&gt;sure i totally agree but it is as it is at the moment. I don't see that 
&lt;br&gt;we be able to make the big shot. The only thing we can do is to improve 
&lt;br&gt;the available controls step by step and can try to improve the overall 
&lt;br&gt;usability. This includes hopefully a layout manager some day ;-)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; You can use the dialog editor in the office to do the initial design. 
&lt;br&gt;&amp;gt;&amp;gt; Export the dialog description in your extensions Java project and use 
&lt;br&gt;&amp;gt;&amp;gt; via dialog provider ... Appropriate handler have to be implemented and 
&lt;br&gt;&amp;gt;&amp;gt; registered to handle the different events. See the SDK samples and the 
&lt;br&gt;&amp;gt;&amp;gt; DevGuide docu.
&lt;br&gt;&amp;gt;&amp;gt; With OOo 3.2 it is also possible to import dialog descriptions and 
&lt;br&gt;&amp;gt;&amp;gt; modify it again with the dialog editor.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is still a lot of space for improvements and volunteers are 
&lt;br&gt;&amp;gt;&amp;gt; always welcome ;-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've heard that RedOffice 4.5 will support deep and custom changes of UI 
&lt;br&gt;&amp;gt; using extensions, so if their code gets to the core (someday), then it 
&lt;br&gt;&amp;gt; should be easier to persuade people to do the switch.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;the hope will never die ;-)
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; &amp;nbsp;Marcin
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339797&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339797&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339797&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26339797&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-any-%22OpenOffice.org-Look-Feel%22-for-extensions-in-Java--tp26336469p26339797.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26338455</id>
	<title>Re: Is there any &quot;OpenOffice.org Look&amp;Feel&quot; for extensions in Java?</title>
	<published>2009-11-13T07:34:12Z</published>
	<updated>2009-11-13T07:34:12Z</updated>
	<author>
		<name>Marcin Miłkowski</name>
	</author>
	<content type="html">Juergen Schmidt pisze:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Marcin Miłkowski wrote:
&lt;br&gt;&amp;gt;&amp;gt; Konstantin Tokarev pisze:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there any &amp;quot;OpenOffice.org Look&amp;Feel&amp;quot; for extensions in Java?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; As far as I know, there is none. If you want to have the native look 
&lt;br&gt;&amp;gt;&amp;gt; (which is different under different OSes and graphical managers), use 
&lt;br&gt;&amp;gt;&amp;gt; the AWT via UNO. However, this is a bit cumbersome if you display 
&lt;br&gt;&amp;gt;&amp;gt; something more complex than a message box. And you cannot really 
&lt;br&gt;&amp;gt;&amp;gt; implement anything new in the UI (no new UI elements by overriding 
&lt;br&gt;&amp;gt;&amp;gt; classes, as far as I know). No wonder most extension developers don't 
&lt;br&gt;&amp;gt;&amp;gt; use it...
&lt;br&gt;&amp;gt; it is correct that the UNO awt toolkit has limitations but it is the 
&lt;br&gt;&amp;gt; best way to integrate in the office and to avoid problems.
&lt;/div&gt;&lt;br&gt;Well, the problem is that Java/Swing programmers are used to create 
&lt;br&gt;their own user interface elements, so these limitations are quite serious.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; You can use the dialog editor in the office to do the initial design. 
&lt;br&gt;&amp;gt; Export the dialog description in your extensions Java project and use 
&lt;br&gt;&amp;gt; via dialog provider ... Appropriate handler have to be implemented and 
&lt;br&gt;&amp;gt; registered to handle the different events. See the SDK samples and the 
&lt;br&gt;&amp;gt; DevGuide docu.
&lt;br&gt;&amp;gt; With OOo 3.2 it is also possible to import dialog descriptions and 
&lt;br&gt;&amp;gt; modify it again with the dialog editor.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is still a lot of space for improvements and volunteers are always 
&lt;br&gt;&amp;gt; welcome ;-)
&lt;/div&gt;&lt;br&gt;I've heard that RedOffice 4.5 will support deep and custom changes of UI 
&lt;br&gt;using extensions, so if their code gets to the core (someday), then it 
&lt;br&gt;should be easier to persuade people to do the switch.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; Marcin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26338455&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26338455&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-any-%22OpenOffice.org-Look-Feel%22-for-extensions-in-Java--tp26336469p26338455.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337223</id>
	<title>Hi at all</title>
	<published>2009-11-13T06:14:32Z</published>
	<updated>2009-11-13T06:14:32Z</updated>
	<author>
		<name>Raphael Bircher</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;The moast of the community members know me... for the rest, I like to 
&lt;br&gt;say helo. My name is Raphael Bircher, 29 Years old, from Switzerland. I 
&lt;br&gt;contribute since November 2005 for OpenOffice.org. My main part is QA.
&lt;br&gt;&lt;br&gt;I'm here, because I like to start a extension project for sport coachs. 
&lt;br&gt;A.t.m. the preparation of a training is a hard work. If you do it 
&lt;br&gt;seriosly, that's a load of paper work. This i like to simplify.
&lt;br&gt;&lt;br&gt;I'm here for the tecnical part. It's my first extension, and I think, I 
&lt;br&gt;will need your help sametimes. ;-)
&lt;br&gt;&lt;br&gt;Thanks and Greetings
&lt;br&gt;Raphael
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;# Raphael Bircher
&lt;br&gt;# Community Member of OpenOffice.org
&lt;br&gt;# Private Website: &lt;a href=&quot;http://www.raphaelbircher.ch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.raphaelbircher.ch&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337223&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26337223&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hi-at-all-tp26337223p26337223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336822</id>
	<title>Re: Is there any &quot;OpenOffice.org Look&amp;Feel&quot; for extensions in Java?</title>
	<published>2009-11-13T05:47:04Z</published>
	<updated>2009-11-13T05:47:04Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Marcin Miłkowski wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Konstantin Tokarev pisze:
&lt;br&gt;&amp;gt;&amp;gt; Is there any &amp;quot;OpenOffice.org Look&amp;Feel&amp;quot; for extensions in Java?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As far as I know, there is none. If you want to have the native look 
&lt;br&gt;&amp;gt; (which is different under different OSes and graphical managers), use 
&lt;br&gt;&amp;gt; the AWT via UNO. However, this is a bit cumbersome if you display 
&lt;br&gt;&amp;gt; something more complex than a message box. And you cannot really 
&lt;br&gt;&amp;gt; implement anything new in the UI (no new UI elements by overriding 
&lt;br&gt;&amp;gt; classes, as far as I know). No wonder most extension developers don't 
&lt;br&gt;&amp;gt; use it...
&lt;/div&gt;it is correct that the UNO awt toolkit has limitations but it is the 
&lt;br&gt;best way to integrate in the office and to avoid problems.
&lt;br&gt;&lt;br&gt;You can use the dialog editor in the office to do the initial design. 
&lt;br&gt;Export the dialog description in your extensions Java project and use 
&lt;br&gt;via dialog provider ... Appropriate handler have to be implemented and 
&lt;br&gt;registered to handle the different events. See the SDK samples and the 
&lt;br&gt;DevGuide docu.
&lt;br&gt;With OOo 3.2 it is also possible to import dialog descriptions and 
&lt;br&gt;modify it again with the dialog editor.
&lt;br&gt;&lt;br&gt;There is still a lot of space for improvements and volunteers are always 
&lt;br&gt;welcome ;-)
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Marcin
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336822&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336822&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336822&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336822&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-any-%22OpenOffice.org-Look-Feel%22-for-extensions-in-Java--tp26336469p26336822.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336564</id>
	<title>Re: Is there any &quot;OpenOffice.org Look&amp;Feel&quot; for extensions in Java?</title>
	<published>2009-11-13T05:25:54Z</published>
	<updated>2009-11-13T05:25:54Z</updated>
	<author>
		<name>Marcin Miłkowski</name>
	</author>
	<content type="html">Konstantin Tokarev pisze:
&lt;br&gt;&amp;gt; Is there any &amp;quot;OpenOffice.org Look&amp;Feel&amp;quot; for extensions in Java?
&lt;br&gt;&lt;br&gt;As far as I know, there is none. If you want to have the native look 
&lt;br&gt;(which is different under different OSes and graphical managers), use 
&lt;br&gt;the AWT via UNO. However, this is a bit cumbersome if you display 
&lt;br&gt;something more complex than a message box. And you cannot really 
&lt;br&gt;implement anything new in the UI (no new UI elements by overriding 
&lt;br&gt;classes, as far as I know). No wonder most extension developers don't 
&lt;br&gt;use it...
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Marcin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336564&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336564&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-any-%22OpenOffice.org-Look-Feel%22-for-extensions-in-Java--tp26336469p26336564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336469</id>
	<title>Is there any &quot;OpenOffice.org Look&amp;Feel&quot; for extensions in Java?</title>
	<published>2009-11-13T05:16:21Z</published>
	<updated>2009-11-13T05:16:21Z</updated>
	<author>
		<name>Konstantin Tokarev</name>
	</author>
	<content type="html">Is there any &amp;quot;OpenOffice.org Look&amp;Feel&amp;quot; for extensions in Java?
&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Konstantin
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336469&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336469&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-any-%22OpenOffice.org-Look-Feel%22-for-extensions-in-Java--tp26336469p26336469.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26334771</id>
	<title>Re: Error messages / Exception handling</title>
	<published>2009-11-13T02:29:21Z</published>
	<updated>2009-11-13T02:29:21Z</updated>
	<author>
		<name>Steffen Boersig</name>
	</author>
	<content type="html">Hi Juergen,
&lt;br&gt;&lt;br&gt;it's sad that OOBean ist not maintained anymore. It's a nice feature and 
&lt;br&gt;has it's uses :).
&lt;br&gt;&lt;br&gt;I can recommend it to certain extent since I'm working with it right now 
&lt;br&gt;and it's quite stable and offers nice features. Of course not everything 
&lt;br&gt;is perfect and some methods shouldn't be used but overall it's useable.
&lt;br&gt;&lt;br&gt;I'm not yet familiar with the OO build env but I'm definitly looking 
&lt;br&gt;into it at some point in the future when theres more freetime :) I'll 
&lt;br&gt;definitly get back to your support offering by that time ;).
&lt;br&gt;And staying with the curent interface should be no problem for the first 
&lt;br&gt;few changes.
&lt;br&gt;&lt;br&gt;I'm currently writing for Windows platforms. Didn't test my work on 
&lt;br&gt;Linux yet but that's something I'm looking forward to in the near future.
&lt;br&gt;&lt;br&gt;Steffen
&lt;br&gt;&lt;br&gt;&lt;br&gt;Juergen Schmidt schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Steffen,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; the OOBean is not really maintained for a long time and i would say it 
&lt;br&gt;&amp;gt; never reached a state where it was really finished. Today i would of 
&lt;br&gt;&amp;gt; course never suggest to use it because of too many problems that have 
&lt;br&gt;&amp;gt; to be solved first.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't know the code in detail but i know that every developer who 
&lt;br&gt;&amp;gt; worked on it started to make it better ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As i mentioned the OOBean is not really maintained and if you have 
&lt;br&gt;&amp;gt; interest to help out here i will help and support you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you are familiar with the OO build env you can start to improve the 
&lt;br&gt;&amp;gt; error handling and we can discuss your changes. The only thing that i 
&lt;br&gt;&amp;gt; would suggest is that you keep the interface stable at the beginning. 
&lt;br&gt;&amp;gt; Further improvements on this level should be postponed to later.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; By the way on which platform are you working?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Steffen Boersig wrote:
&lt;br&gt;&amp;gt;&amp;gt; Good morning,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; before i start, let me get this clear: It's awesome that you guys do 
&lt;br&gt;&amp;gt;&amp;gt; all that work here. OO is a great product and I defintly appreciate 
&lt;br&gt;&amp;gt;&amp;gt; the work you all have put into it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yesterday I encountered several problems while programming with 
&lt;br&gt;&amp;gt;&amp;gt; OOBean and decided to download the source code to get a better 
&lt;br&gt;&amp;gt;&amp;gt; understanding how things are handled inside OO. I solved all my 
&lt;br&gt;&amp;gt;&amp;gt; problems through reading the code so thumbs up here :).
&lt;br&gt;&amp;gt;&amp;gt; But one thing that bugged me while reading the code was error 
&lt;br&gt;&amp;gt;&amp;gt; handling in the packages.
&lt;br&gt;&amp;gt;&amp;gt; I knew that the error messages in OO weren't great and always thought 
&lt;br&gt;&amp;gt;&amp;gt; this was due to lazy programming ;) or sometimes there are no better 
&lt;br&gt;&amp;gt;&amp;gt; alternatives. But after reading the code I have to say it's definitly 
&lt;br&gt;&amp;gt;&amp;gt; more of a lazy programming problem when it comes down to error 
&lt;br&gt;&amp;gt;&amp;gt; handling rather than availabilty of alternatives
&lt;br&gt;&amp;gt;&amp;gt; .
&lt;br&gt;&amp;gt;&amp;gt; One example: 
&lt;br&gt;&amp;gt;&amp;gt; com.sun.star.comp.beans.LocalOfficeConnection.parseUnoUrlWithOfficePath
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The method parses an UnoURL. If everything goes right a 
&lt;br&gt;&amp;gt;&amp;gt; state-variable will be set to 7 and after parsing this state value 
&lt;br&gt;&amp;gt;&amp;gt; will be used for checking if everythings correct. If not, an error 
&lt;br&gt;&amp;gt;&amp;gt; will be thrown.
&lt;br&gt;&amp;gt;&amp;gt; Errors occure on invalid URLs of course and there are several 
&lt;br&gt;&amp;gt;&amp;gt; different errors. All are &amp;quot;catched&amp;quot; in some way since the state value 
&lt;br&gt;&amp;gt;&amp;gt; will be set to a negative number so the check at the end will fail. I 
&lt;br&gt;&amp;gt;&amp;gt; counted 6 error states, all indicated through negative numbers.
&lt;br&gt;&amp;gt;&amp;gt; Well, the problem is: at the end there is only a check if state != 7. 
&lt;br&gt;&amp;gt;&amp;gt; An error will be thrown stateing that the UNO Url is invalid. The 6 
&lt;br&gt;&amp;gt;&amp;gt; different error codes are not used at all. No info on what is invalid 
&lt;br&gt;&amp;gt;&amp;gt; even though the error states could be used to inform the user what 
&lt;br&gt;&amp;gt;&amp;gt; was wrong.
&lt;br&gt;&amp;gt;&amp;gt; I mean, there is already a kind of exception handling built in, but 
&lt;br&gt;&amp;gt;&amp;gt; it is not used. Why even bother with 6 different error codes if they 
&lt;br&gt;&amp;gt;&amp;gt; are not used for something good?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Of course I didn't check all the source code since most of my 
&lt;br&gt;&amp;gt;&amp;gt; problems could be solved by reading some snippets of the OObean 
&lt;br&gt;&amp;gt;&amp;gt; package but I know for sure, that most exceptions are not really 
&lt;br&gt;&amp;gt;&amp;gt; informative compared to other APIs. And maybe it's a bad example 
&lt;br&gt;&amp;gt;&amp;gt; because the method isn't even used anymore or whatever, I didn't 
&lt;br&gt;&amp;gt;&amp;gt; check that. I also don't want to blame one programmer or make the 
&lt;br&gt;&amp;gt;&amp;gt; feature look bad or something like that. It's just difficult to 
&lt;br&gt;&amp;gt;&amp;gt; understand why there is no better exception handling overall.
&lt;br&gt;&amp;gt;&amp;gt; Most of the time if something goes wrong, I get an Runtime Error and 
&lt;br&gt;&amp;gt;&amp;gt; that's it. Almost never theres more information given.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I mean, of course I'm able to trace it back anyway. And after reading 
&lt;br&gt;&amp;gt;&amp;gt; some bunch of code and researching the web I get the information I 
&lt;br&gt;&amp;gt;&amp;gt; need to solve the problem, but a more precise exception handling 
&lt;br&gt;&amp;gt;&amp;gt; would be great too.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If I insulted someone with this, I'm sorry. I just wanted to bring 
&lt;br&gt;&amp;gt;&amp;gt; this up since exception handling in OO bothered me and former 
&lt;br&gt;&amp;gt;&amp;gt; colleagues for quite a while now. Maybe it's a food for thought for 
&lt;br&gt;&amp;gt;&amp;gt; some of you or a start for a discussion how it could be made better :) .
&lt;br&gt;&amp;gt;&amp;gt; Or maybe I just made everyone mad at me :D
&lt;br&gt;&amp;gt;&amp;gt; Feedback would be appreciated anyway ;).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Steffen Börsig
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334771&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-messages---Exception-handling-tp26333096p26334771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26333262</id>
	<title>Re: Error messages / Exception handling</title>
	<published>2009-11-13T00:52:58Z</published>
	<updated>2009-11-13T00:52:58Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Hi Steffen,
&lt;br&gt;&lt;br&gt;the OOBean is not really maintained for a long time and i would say it 
&lt;br&gt;never reached a state where it was really finished. Today i would of 
&lt;br&gt;course never suggest to use it because of too many problems that have to 
&lt;br&gt;be solved first.
&lt;br&gt;&lt;br&gt;I don't know the code in detail but i know that every developer who 
&lt;br&gt;worked on it started to make it better ...
&lt;br&gt;&lt;br&gt;As i mentioned the OOBean is not really maintained and if you have 
&lt;br&gt;interest to help out here i will help and support you.
&lt;br&gt;&lt;br&gt;If you are familiar with the OO build env you can start to improve the 
&lt;br&gt;error handling and we can discuss your changes. The only thing that i 
&lt;br&gt;would suggest is that you keep the interface stable at the beginning. 
&lt;br&gt;Further improvements on this level should be postponed to later.
&lt;br&gt;&lt;br&gt;By the way on which platform are you working?
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&lt;br&gt;Steffen Boersig wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Good morning,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; before i start, let me get this clear: It's awesome that you guys do all 
&lt;br&gt;&amp;gt; that work here. OO is a great product and I defintly appreciate the work 
&lt;br&gt;&amp;gt; you all have put into it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yesterday I encountered several problems while programming with OOBean 
&lt;br&gt;&amp;gt; and decided to download the source code to get a better understanding 
&lt;br&gt;&amp;gt; how things are handled inside OO. I solved all my problems through 
&lt;br&gt;&amp;gt; reading the code so thumbs up here :).
&lt;br&gt;&amp;gt; But one thing that bugged me while reading the code was error handling 
&lt;br&gt;&amp;gt; in the packages.
&lt;br&gt;&amp;gt; I knew that the error messages in OO weren't great and always thought 
&lt;br&gt;&amp;gt; this was due to lazy programming ;) or sometimes there are no better 
&lt;br&gt;&amp;gt; alternatives. But after reading the code I have to say it's definitly 
&lt;br&gt;&amp;gt; more of a lazy programming problem when it comes down to error handling 
&lt;br&gt;&amp;gt; rather than availabilty of alternatives
&lt;br&gt;&amp;gt; .
&lt;br&gt;&amp;gt; One example: 
&lt;br&gt;&amp;gt; com.sun.star.comp.beans.LocalOfficeConnection.parseUnoUrlWithOfficePath
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The method parses an UnoURL. If everything goes right a state-variable 
&lt;br&gt;&amp;gt; will be set to 7 and after parsing this state value will be used for 
&lt;br&gt;&amp;gt; checking if everythings correct. If not, an error will be thrown.
&lt;br&gt;&amp;gt; Errors occure on invalid URLs of course and there are several different 
&lt;br&gt;&amp;gt; errors. All are &amp;quot;catched&amp;quot; in some way since the state value will be set 
&lt;br&gt;&amp;gt; to a negative number so the check at the end will fail. I counted 6 
&lt;br&gt;&amp;gt; error states, all indicated through negative numbers.
&lt;br&gt;&amp;gt; Well, the problem is: at the end there is only a check if state != 7. An 
&lt;br&gt;&amp;gt; error will be thrown stateing that the UNO Url is invalid. The 6 
&lt;br&gt;&amp;gt; different error codes are not used at all. No info on what is invalid 
&lt;br&gt;&amp;gt; even though the error states could be used to inform the user what was 
&lt;br&gt;&amp;gt; wrong.
&lt;br&gt;&amp;gt; I mean, there is already a kind of exception handling built in, but it 
&lt;br&gt;&amp;gt; is not used. Why even bother with 6 different error codes if they are 
&lt;br&gt;&amp;gt; not used for something good?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Of course I didn't check all the source code since most of my problems 
&lt;br&gt;&amp;gt; could be solved by reading some snippets of the OObean package but I 
&lt;br&gt;&amp;gt; know for sure, that most exceptions are not really informative compared 
&lt;br&gt;&amp;gt; to other APIs. And maybe it's a bad example because the method isn't 
&lt;br&gt;&amp;gt; even used anymore or whatever, I didn't check that. I also don't want to 
&lt;br&gt;&amp;gt; blame one programmer or make the feature look bad or something like 
&lt;br&gt;&amp;gt; that. It's just difficult to understand why there is no better exception 
&lt;br&gt;&amp;gt; handling overall.
&lt;br&gt;&amp;gt; Most of the time if something goes wrong, I get an Runtime Error and 
&lt;br&gt;&amp;gt; that's it. Almost never theres more information given.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I mean, of course I'm able to trace it back anyway. And after reading 
&lt;br&gt;&amp;gt; some bunch of code and researching the web I get the information I need 
&lt;br&gt;&amp;gt; to solve the problem, but a more precise exception handling would be 
&lt;br&gt;&amp;gt; great too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I insulted someone with this, I'm sorry. I just wanted to bring this 
&lt;br&gt;&amp;gt; up since exception handling in OO bothered me and former colleagues for 
&lt;br&gt;&amp;gt; quite a while now. Maybe it's a food for thought for some of you or a 
&lt;br&gt;&amp;gt; start for a discussion how it could be made better :) .
&lt;br&gt;&amp;gt; Or maybe I just made everyone mad at me :D
&lt;br&gt;&amp;gt; Feedback would be appreciated anyway ;).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Steffen Börsig
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333262&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333262&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333262&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333262&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-messages---Exception-handling-tp26333096p26333262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26333096</id>
	<title>Error messages / Exception handling</title>
	<published>2009-11-13T00:29:52Z</published>
	<updated>2009-11-13T00:29:52Z</updated>
	<author>
		<name>Steffen Boersig</name>
	</author>
	<content type="html">Good morning,
&lt;br&gt;&lt;br&gt;before i start, let me get this clear: It's awesome that you guys do all 
&lt;br&gt;that work here. OO is a great product and I defintly appreciate the work 
&lt;br&gt;you all have put into it.
&lt;br&gt;&lt;br&gt;Yesterday I encountered several problems while programming with OOBean 
&lt;br&gt;and decided to download the source code to get a better understanding 
&lt;br&gt;how things are handled inside OO. I solved all my problems through 
&lt;br&gt;reading the code so thumbs up here :).
&lt;br&gt;But one thing that bugged me while reading the code was error handling 
&lt;br&gt;in the packages.
&lt;br&gt;I knew that the error messages in OO weren't great and always thought 
&lt;br&gt;this was due to lazy programming ;) or sometimes there are no better 
&lt;br&gt;alternatives. But after reading the code I have to say it's definitly 
&lt;br&gt;more of a lazy programming problem when it comes down to error handling 
&lt;br&gt;rather than availabilty of alternatives
&lt;br&gt;.
&lt;br&gt;One example: 
&lt;br&gt;com.sun.star.comp.beans.LocalOfficeConnection.parseUnoUrlWithOfficePath
&lt;br&gt;&lt;br&gt;The method parses an UnoURL. If everything goes right a state-variable 
&lt;br&gt;will be set to 7 and after parsing this state value will be used for 
&lt;br&gt;checking if everythings correct. If not, an error will be thrown.
&lt;br&gt;Errors occure on invalid URLs of course and there are several different 
&lt;br&gt;errors. All are &amp;quot;catched&amp;quot; in some way since the state value will be set 
&lt;br&gt;to a negative number so the check at the end will fail. I counted 6 
&lt;br&gt;error states, all indicated through negative numbers.
&lt;br&gt;Well, the problem is: at the end there is only a check if state != 7. An 
&lt;br&gt;error will be thrown stateing that the UNO Url is invalid. The 6 
&lt;br&gt;different error codes are not used at all. No info on what is invalid 
&lt;br&gt;even though the error states could be used to inform the user what was 
&lt;br&gt;wrong.
&lt;br&gt;I mean, there is already a kind of exception handling built in, but it 
&lt;br&gt;is not used. Why even bother with 6 different error codes if they are 
&lt;br&gt;not used for something good?
&lt;br&gt;&lt;br&gt;Of course I didn't check all the source code since most of my problems 
&lt;br&gt;could be solved by reading some snippets of the OObean package but I 
&lt;br&gt;know for sure, that most exceptions are not really informative compared 
&lt;br&gt;to other APIs. And maybe it's a bad example because the method isn't 
&lt;br&gt;even used anymore or whatever, I didn't check that. I also don't want to 
&lt;br&gt;blame one programmer or make the feature look bad or something like 
&lt;br&gt;that. It's just difficult to understand why there is no better exception 
&lt;br&gt;handling overall.
&lt;br&gt;Most of the time if something goes wrong, I get an Runtime Error and 
&lt;br&gt;that's it. Almost never theres more information given.
&lt;br&gt;&lt;br&gt;I mean, of course I'm able to trace it back anyway. And after reading 
&lt;br&gt;some bunch of code and researching the web I get the information I need 
&lt;br&gt;to solve the problem, but a more precise exception handling would be 
&lt;br&gt;great too.
&lt;br&gt;&lt;br&gt;If I insulted someone with this, I'm sorry. I just wanted to bring this 
&lt;br&gt;up since exception handling in OO bothered me and former colleagues for 
&lt;br&gt;quite a while now. Maybe it's a food for thought for some of you or a 
&lt;br&gt;start for a discussion how it could be made better :) .
&lt;br&gt;Or maybe I just made everyone mad at me :D
&lt;br&gt;Feedback would be appreciated anyway ;).
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Steffen Börsig
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333096&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26333096&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-messages---Exception-handling-tp26333096p26333096.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312487</id>
	<title>Re: OpenOffice.org Basic - Search and Replace in code…</title>
	<published>2009-11-11T18:41:12Z</published>
	<updated>2009-11-11T18:41:12Z</updated>
	<author>
		<name>pitonyak</name>
	</author>
	<content type="html">On 10/28/2009 12:32 PM, Johnny Rosenberg wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/10/28 Jan Holst Jensen&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312487&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jan@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Andrew Douglas Pitonyak wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You should post your code...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 10/24/2009 06:05 AM, Johnny Rosenberg wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; One example:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Search for: ([a-zA-Z0-9\(\)])([\+|\-|\*|\/])([a-zA-Z0-9\(\)])
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Replace with: $1 $2 $3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I tried this in OpenOffice.org Writer and it works perfectly.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Before:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a+b
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hej(3)+svejs(4)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; tjoho(x)+3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; After:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a + b
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hej(3) + svejs(4)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; tjoho(x) + 3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Doing the same thing in OpenOffice.org Basic:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Before:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; a+b
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hej(3)+svejs(4)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; tjoho(x)+3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; After:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; $1 $2 $3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; hej(3$1 $2 $3vejs(4)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; tjoho(x$1 $2 $3
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Doesn't look very nice to me…
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Is this a bug or am I not supposed to do this?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; I believe that is exactly what Johnny did. I can reproduce it from the
&lt;br&gt;&amp;gt;&amp;gt; above. Writer reformats the text in a document so the spacing is nicer. In
&lt;br&gt;&amp;gt;&amp;gt; the Basic code editor the replace action inserts &amp;quot;$1 $2 $3&amp;quot; which is pretty
&lt;br&gt;&amp;gt;&amp;gt; useless. At least I can conclude that regular expression search/replace
&lt;br&gt;&amp;gt;&amp;gt; works differently in a Writer text document and in the Basic editor.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt; -- Jan
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; I think that Andrew maybe misunderstood me a bit there, and that you
&lt;br&gt;&amp;gt; then misunderstood him, but maybe I am wrong. Just in case I am right,
&lt;br&gt;&amp;gt; I will just point out that I use the ordinary Ctrl+F search in my code
&lt;br&gt;&amp;gt; to replace things. I did NOT write a Search&amp; &amp;nbsp;Replace macro of my own
&lt;br&gt;&amp;gt; or anything like that.
&lt;br&gt;&amp;gt; All I wanted to do was to make my code look more consistent, making
&lt;br&gt;&amp;gt; sure that spaces and things like that are used the same way in all
&lt;br&gt;&amp;gt; code of the project, making it easier to read and nicer to look at…
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So there is no point to post any kind of code, since the same thing
&lt;br&gt;&amp;gt; happens for any kind of text, for example the text I used in my
&lt;br&gt;&amp;gt; examples in my original post.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Johnny Rosenberg
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;Oh my, yes, I thought that I was reading the dev forum, and I thought 
&lt;br&gt;that this was only with respect to a macro. &amp;lt;sigh&amp;gt;
&lt;br&gt;&lt;br&gt;Sorry
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Andrew Pitonyak
&lt;br&gt;My Macro Document: &lt;a href=&quot;http://www.pitonyak.org/AndrewMacro.odt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pitonyak.org/AndrewMacro.odt&lt;/a&gt;&lt;br&gt;My Book: &lt;a href=&quot;http://www.hentzenwerke.com/catalog/oome.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.hentzenwerke.com/catalog/oome.htm&lt;/a&gt;&lt;br&gt;Info: &amp;nbsp;&lt;a href=&quot;http://www.pitonyak.org/oo.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.pitonyak.org/oo.php&lt;/a&gt;&lt;br&gt;See Also: &lt;a href=&quot;http://documentation.openoffice.org/HOW_TO/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://documentation.openoffice.org/HOW_TO/index.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312487&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312487&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OpenOffice.org-Basic---Search-and-Replace-in-code%E2%80%A6-tp26037675p26312487.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26310596</id>
	<title>Problem with MySQL and ResultSet.absolute()</title>
	<published>2009-11-11T15:16:19Z</published>
	<updated>2009-11-11T15:16:19Z</updated>
	<author>
		<name>Sergio Corato</name>
	</author>
	<content type="html">I can't use
&lt;br&gt;oResultSet.absolute()
&lt;br&gt;with MySQL 5.1.40 and &amp;nbsp;connector ODBC 5.1.6.
&lt;br&gt;It give False as result.
&lt;br&gt;It works with HSQLDB, or MySQL 5.1.40 with OOo native driver for MySQL.
&lt;br&gt;&lt;br&gt;I'm doing something wrong?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Sergio Corato
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26310596&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26310596&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-with-MySQL-and-ResultSet.absolute%28%29-tp26310596p26310596.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26301602</id>
	<title>Re: [extensions-dev] IDL references from the Wiki -&gt; via IDL tags</title>
	<published>2009-11-11T05:48:05Z</published>
	<updated>2009-11-11T05:48:05Z</updated>
	<author>
		<name>bjoern michaelsen - Sun Microsystems - Hamburg Germany</name>
	</author>
	<content type="html">On Wed, 11 Nov 2009 14:17:04 +0100
&lt;br&gt;Juergen Schmidt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Juergen.Schmidt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; this can be seen more as a reminder to make use of the IDL tags, see 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; for detailed info.
&lt;br&gt;&lt;br&gt;And while we at it, please also use:
&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Special:Interwiki&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Special:Interwiki&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Template:M&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Template:M&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Template:CWS&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Template:CWS&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Template:Bug&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Template:Bug&lt;/a&gt;&lt;br&gt;&lt;br&gt;and follow the guidelines in:
&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/User_Experience/SOP&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/User_Experience/SOP&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;&lt;br&gt;Bjoern Michaelsen
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;===========================================================================
&lt;br&gt;&amp;nbsp;Sitz der Gesellschaft:
&lt;br&gt;&amp;nbsp;Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
&lt;br&gt;&amp;nbsp;Amtsgericht Muenchen: HRB 161028
&lt;br&gt;&amp;nbsp;Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel
&lt;br&gt;&amp;nbsp;Vorsitzender des Aufsichtsrates: Martin Haering
&lt;br&gt;===========================================================================
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301602&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301602&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IDL-references-from-the-Wiki--%3E-via-IDL-tags-tp26301045p26301602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26301045</id>
	<title>IDL references from the Wiki -&gt; via IDL tags</title>
	<published>2009-11-11T05:17:04Z</published>
	<updated>2009-11-11T05:17:04Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;this can be seen more as a reminder to make use of the IDL tags, see 
&lt;br&gt;&lt;a href=&quot;http://wiki.services.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.services.openoffice.org/wiki/Wiki_maintenance/IDLTagExtension&lt;/a&gt;&amp;nbsp;
&lt;br&gt;for detailed info.
&lt;br&gt;&lt;br&gt;When we moved the Developer's Guide into the wiki we thought about a way 
&lt;br&gt;how we could achieve the useful IDL tags. The tags that get 
&lt;br&gt;automatically converted into links to the related type in the generated 
&lt;br&gt;IDL reference. In the end the IDLTagExtension was developed that allows 
&lt;br&gt;exactly the same functionality.
&lt;br&gt;&lt;br&gt;PLEASE whenever you want or have to reference an IDL type please use one 
&lt;br&gt;of the IDL tags to create a link automatically. It will help our users 
&lt;br&gt;and developers to find the appropriate information faster and it will 
&lt;br&gt;help to improve the overall navigation between the documentation 
&lt;br&gt;(guides, examples, tutorials, ...) in the wiki and the type reference.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301045&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26301045&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/IDL-references-from-the-Wiki--%3E-via-IDL-tags-tp26301045p26301045.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26281919</id>
	<title>Re: Add-on toolbars - settings inaccessible ?</title>
	<published>2009-11-10T03:32:21Z</published>
	<updated>2009-11-10T03:32:21Z</updated>
	<author>
		<name>Jan Holst Jensen</name>
	</author>
	<content type="html">Carsten Driesner wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jan Holst Jensen wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am confused by add-on toolbars. My add-on toolbar doesn't show up 
&lt;br&gt;&amp;gt;&amp;gt; when listing the LayoutManager's elements via
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Sub ListToolbars
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Dim s as String
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;For Each x in 
&lt;br&gt;&amp;gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElements()
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;s = s &amp; x.ResourceURL &amp; CHR$(10)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;Next
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;MsgBox s, 0, &amp;quot;Toolbars in Component&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;End Sub
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; All add-on toolbars show as &amp;quot;0&amp;quot; in this list instead of showing a 
&lt;br&gt;&amp;gt;&amp;gt; URL. The standard toolbars are &amp;quot;fully equipped&amp;quot; as seen by
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;x = 
&lt;br&gt;&amp;gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElement(&amp;quot;private:resource/toolbar/standardbar&amp;quot;) 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Xray x
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; but if I check my own add-on toolbar in a very simple add-on 
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;doobiedoo.my.toolbar&amp;quot; (or any other add-on toolbar - I tried 
&lt;br&gt;&amp;gt;&amp;gt; installing a few)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;x = 
&lt;br&gt;&amp;gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElement(&amp;quot;private:resource/toolbar/addon_doobiedoo.my.toolbar&amp;quot;) 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Xray x
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; the returned object is rather naked and lacks all the properties 
&lt;br&gt;&amp;gt;&amp;gt; needed for manipulating its state. What's going on ?
&lt;br&gt;&amp;gt; Hi Jan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What you see is intended design and correct. An add-on toolbar is 
&lt;br&gt;&amp;gt; defined by a XCU-file and have no settings which can be changed. This 
&lt;br&gt;&amp;gt; is related to the fact that changes have to be stored in the user 
&lt;br&gt;&amp;gt; layer. Unfortunately if you deinstall an extension these user layer 
&lt;br&gt;&amp;gt; data won't be removed. That would mean that your add-on toolbar won't 
&lt;br&gt;&amp;gt; be removed, too. Therefore we decided to disable settings for add-on 
&lt;br&gt;&amp;gt; toolbars. If you want to circumvent this design, what I cannot 
&lt;br&gt;&amp;gt; recommend, then you can use the configuration API to make direct 
&lt;br&gt;&amp;gt; changes to your Addons.xcu file. Please be aware that you and your 
&lt;br&gt;&amp;gt; users would see the negative effects that I described before!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can enable/disable button if you have a DispatchProvider that 
&lt;br&gt;&amp;gt; controls the commands behind the buttons. This is a very complex task 
&lt;br&gt;&amp;gt; if you want to do it in Basic.
&lt;/div&gt;&lt;br&gt;Hi Carsten.
&lt;br&gt;&lt;br&gt;Thanks for the explanation. At least I am no longer confused.
&lt;br&gt;&lt;br&gt;I was trying to change settings to either change the button icon 
&lt;br&gt;according to an ON/OFF state or enable/disable one of two buttons 
&lt;br&gt;according to ON/OFF state. I have settled with just having both buttons 
&lt;br&gt;visible always and then flashing a notification when the button is used 
&lt;br&gt;without effect - e.g. pressing the &amp;quot;Turn OFF&amp;quot; button while in the OFF 
&lt;br&gt;state would notify the user that it's no use trying to turn things off 
&lt;br&gt;that are already off.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;-- Jan
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281919&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26281919&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Add-on-toolbars---settings-inaccessible---tp26205305p26281919.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26279888</id>
	<title>Re: Add-on toolbars - settings inaccessible ?</title>
	<published>2009-11-10T00:24:27Z</published>
	<updated>2009-11-10T00:24:27Z</updated>
	<author>
		<name>Carsten Driesner</name>
	</author>
	<content type="html">Jan Holst Jensen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am confused by add-on toolbars. My add-on toolbar doesn't show up when 
&lt;br&gt;&amp;gt; listing the LayoutManager's elements via
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Sub ListToolbars
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Dim s as String
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;For Each x in 
&lt;br&gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElements()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;s = s &amp; x.ResourceURL &amp; CHR$(10)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Next
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;MsgBox s, 0, &amp;quot;Toolbars in Component&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;End Sub
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; All add-on toolbars show as &amp;quot;0&amp;quot; in this list instead of showing a URL. 
&lt;br&gt;&amp;gt; The standard toolbars are &amp;quot;fully equipped&amp;quot; as seen by
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt; &amp;nbsp;x = 
&lt;br&gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElement(&amp;quot;private:resource/toolbar/standardbar&amp;quot;) 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Xray x
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but if I check my own add-on toolbar in a very simple add-on 
&lt;br&gt;&amp;gt; &amp;quot;doobiedoo.my.toolbar&amp;quot; (or any other add-on toolbar - I tried installing 
&lt;br&gt;&amp;gt; a few)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Dim x as Variant
&lt;br&gt;&amp;gt; &amp;nbsp;x = 
&lt;br&gt;&amp;gt; ThisComponent.GetCurrentController.GetFrame.LayoutManager.getElement(&amp;quot;private:resource/toolbar/addon_doobiedoo.my.toolbar&amp;quot;) 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Xray x
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; the returned object is rather naked and lacks all the properties needed 
&lt;br&gt;&amp;gt; for manipulating its state. What's going on ?
&lt;/div&gt;Hi Jan,
&lt;br&gt;&lt;br&gt;What you see is intended design and correct. An add-on toolbar is 
&lt;br&gt;defined by a XCU-file and have no settings which can be changed. This is 
&lt;br&gt;related to the fact that changes have to be stored in the user layer. 
&lt;br&gt;Unfortunately if you deinstall an extension these user layer data won't 
&lt;br&gt;be removed. That would mean that your add-on toolbar won't be removed, 
&lt;br&gt;too. Therefore we decided to disable settings for add-on toolbars. If 
&lt;br&gt;you want to circumvent this design, what I cannot recommend, then you 
&lt;br&gt;can use the configuration API to make direct changes to your Addons.xcu 
&lt;br&gt;file. Please be aware that you and your users would see the negative 
&lt;br&gt;effects that I described before!
&lt;br&gt;&lt;br&gt;You can enable/disable button if you have a DispatchProvider that 
&lt;br&gt;controls the commands behind the buttons. This is a very complex task if 
&lt;br&gt;you want to do it in Basic.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Am I unable to change the settings of an add-on toolbar that is defined 
&lt;br&gt;&amp;gt; by an .XCU file - e.g. disable/enable buttons ? Or is it just Basic that 
&lt;br&gt;&amp;gt; is stopping me ? Can I do it from e.g. Python ?
&lt;br&gt;&lt;br&gt;I don't know what features the current UNO Python implementation 
&lt;br&gt;provides, but would guess that it supports all necessary things.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Carsten
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26279888&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26279888&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Add-on-toolbars---settings-inaccessible---tp26205305p26279888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265125</id>
	<title>Re: Service SpreadsheetDocumentSettings</title>
	<published>2009-11-09T03:45:40Z</published>
	<updated>2009-11-09T03:45:40Z</updated>
	<author>
		<name>Daniel Rentz</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Juergen Schmidt schrieb:
&lt;br&gt;&amp;gt; Hi Bernard,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; this is a good question and i will clarify it. I assume that the 
&lt;br&gt;&amp;gt; deprecated tag is wrong
&lt;br&gt;&lt;br&gt;Yeah, it is plain wrong in my eyes.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; Service css.sheet.SpreadsheetDocumentSettings is marked as deprecated 
&lt;br&gt;&amp;gt;&amp;gt; since SDK 1.1.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; How can it be deprecated and have new properties added since OOo 3.0 ?
&lt;br&gt;&amp;gt;&amp;gt; [optional, property] boolean IsLoaded;
&lt;br&gt;&amp;gt;&amp;gt; [optional, property] boolean IsUndoEnabled;
&lt;br&gt;&amp;gt;&amp;gt; [optional, property] boolean IsAdjustHeightEnabled;
&lt;br&gt;&amp;gt;&amp;gt; [optional, property] boolean IsExecuteLinkEnabled;
&lt;br&gt;&amp;gt;&amp;gt; [readonly, optional, property] com::sun::star::awt::XDevice 
&lt;br&gt;&amp;gt;&amp;gt; ReferenceDevice;
&lt;/div&gt;&lt;br&gt;These new properties are mostly used in external filters (Excel 2007 
&lt;br&gt;XML) to control/change the behaviour of the model while loading a file.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265125&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265125&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Service-SpreadsheetDocumentSettings-tp26251650p26265125.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26263248</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-09T01:14:56Z</published>
	<updated>2009-11-09T01:14:56Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Mikhail is right, an important piece of documentation is missing here 
&lt;br&gt;and i renew my request that we document filter specific settings 
&lt;br&gt;somewhere. A wiki page showing the names that have to be used via API 
&lt;br&gt;and all filter specific settings. These settings depends on the filter 
&lt;br&gt;implementation and should be documented for each filter.
&lt;br&gt;&lt;br&gt;Today we have only a list of filter names somewhere in the framework 
&lt;br&gt;wiki section.
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;Mikhail Voytenko wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Wei Min,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As I have written in one of the previous emails, I would suggest to make
&lt;br&gt;&amp;gt; the type detection explicitly to get the required filter name. And in
&lt;br&gt;&amp;gt; case you get &amp;quot;Text (encoded)&amp;quot; filter, please add the filter options
&lt;br&gt;&amp;gt; containing the encoding.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The problem with filter options is that there seems to be no
&lt;br&gt;&amp;gt; documentation regarding them. According to source-code the following
&lt;br&gt;&amp;gt; property in the MediaDescriptor might work in case of &amp;quot;Text (encoded)&amp;quot;
&lt;br&gt;&amp;gt; filter.
&lt;br&gt;&amp;gt; Prop.Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;&amp;gt; Prop.Value &amp;lt;&amp;lt;= &amp;quot;UTF8&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Before you start with the TypeDetection usage, please try just to add
&lt;br&gt;&amp;gt; the filter options property in MediaDescriptor and try it with the
&lt;br&gt;&amp;gt; problematic documents. Just to be sure that the options are accepted in
&lt;br&gt;&amp;gt; this format.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/09/09 03:09, Wei Min Teo wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for your responses. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Let's assume that indeed those files are not &amp;quot;legitimate&amp;quot; .doc files. If someone creates a text file and renames it as .doc, the Writer encoding text dialog will pop out a UI. If I do choose a encoding such as UTF-8, it will be able to open the text file with no problems and the text will be readable. This is what i want to do programatically, to open with a specified encoding without using the pop-out UI. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is it possible to do this?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Wei Min
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Date: Fri, 6 Nov 2009 12:10:58 +0100
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mikhail.Voytenko@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: [api-dev] loadcomponentfromurl
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On 11/06/09 10:26, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; like the scenario that Ariel has described.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sorry, I was wrong in my last comment.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Indeed the text filter still wins sometimes by unknown formats, although 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; actually the filter selection dialog should be shown. And MSWord filter 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; has no filter options dialog.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Maybe a complete code snippet could help to understand ...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It is probably more interesting to take a look to the document. I 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; suspect that Bernard is right and the document is no valid .doc document.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Windows 7: Simplify what you do everyday. Find the right PC for you.
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://windows.microsoft.com/shop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windows.microsoft.com/shop&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263248&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26263248.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26263084</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-09T00:55:44Z</published>
	<updated>2009-11-09T00:55:44Z</updated>
	<author>
		<name>Mikhail.Voytenko</name>
	</author>
	<content type="html">Hi Wei Min,
&lt;br&gt;&lt;br&gt;As I have written in one of the previous emails, I would suggest to make
&lt;br&gt;the type detection explicitly to get the required filter name. And in
&lt;br&gt;case you get &amp;quot;Text (encoded)&amp;quot; filter, please add the filter options
&lt;br&gt;containing the encoding.
&lt;br&gt;&lt;br&gt;The problem with filter options is that there seems to be no
&lt;br&gt;documentation regarding them. According to source-code the following
&lt;br&gt;property in the MediaDescriptor might work in case of &amp;quot;Text (encoded)&amp;quot;
&lt;br&gt;filter.
&lt;br&gt;Prop.Name = &amp;quot;FilterOptions&amp;quot;
&lt;br&gt;Prop.Value &amp;lt;&amp;lt;= &amp;quot;UTF8&amp;quot;
&lt;br&gt;&lt;br&gt;Before you start with the TypeDetection usage, please try just to add
&lt;br&gt;the filter options property in MediaDescriptor and try it with the
&lt;br&gt;problematic documents. Just to be sure that the options are accepted in
&lt;br&gt;this format.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Mikhail.
&lt;br&gt;&lt;br&gt;On 11/09/09 03:09, Wei Min Teo wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks for your responses. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Let's assume that indeed those files are not &amp;quot;legitimate&amp;quot; .doc files. If someone creates a text file and renames it as .doc, the Writer encoding text dialog will pop out a UI. If I do choose a encoding such as UTF-8, it will be able to open the text file with no problems and the text will be readable. This is what i want to do programatically, to open with a specified encoding without using the pop-out UI. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is it possible to do this?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Wei Min
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Date: Fri, 6 Nov 2009 12:10:58 +0100
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mikhail.Voytenko@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [api-dev] loadcomponentfromurl
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/06/09 10:26, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; like the scenario that Ariel has described.
&lt;br&gt;&amp;gt;&amp;gt; Sorry, I was wrong in my last comment.
&lt;br&gt;&amp;gt;&amp;gt; Indeed the text filter still wins sometimes by unknown formats, although 
&lt;br&gt;&amp;gt;&amp;gt; actually the filter selection dialog should be shown. And MSWord filter 
&lt;br&gt;&amp;gt;&amp;gt; has no filter options dialog.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Maybe a complete code snippet could help to understand ...
&lt;br&gt;&amp;gt;&amp;gt; It is probably more interesting to take a look to the document. I 
&lt;br&gt;&amp;gt;&amp;gt; suspect that Bernard is right and the document is no valid .doc document.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt; Windows 7: Simplify what you do everyday. Find the right PC for you.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://windows.microsoft.com/shop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windows.microsoft.com/shop&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26263084&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26263084.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260304</id>
	<title>RE: loadcomponentfromurl</title>
	<published>2009-11-08T18:09:51Z</published>
	<updated>2009-11-08T18:09:51Z</updated>
	<author>
		<name>Wei Min Teo</name>
	</author>
	<content type="html">&lt;br&gt;Hi all,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Thanks for your responses. 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Let's assume that indeed those files are not &amp;quot;legitimate&amp;quot; .doc files. If someone creates a text file and renames it as .doc, the Writer encoding text dialog will pop out a UI. If I do choose a encoding such as UTF-8, it will be able to open the text file with no problems and the text will be readable. This is what i want to do programatically, to open with a specified encoding without using the pop-out UI. 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Is it possible to do this?
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Wei Min
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Date: Fri, 6 Nov 2009 12:10:58 +0100
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260304&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mikhail.Voytenko@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260304&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [api-dev] loadcomponentfromurl
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/06/09 10:26, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt; &amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;&amp;gt; &amp;gt; doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;&amp;gt; &amp;gt; like the scenario that Ariel has described.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry, I was wrong in my last comment.
&lt;br&gt;&amp;gt; Indeed the text filter still wins sometimes by unknown formats, although 
&lt;br&gt;&amp;gt; actually the filter selection dialog should be shown. And MSWord filter 
&lt;br&gt;&amp;gt; has no filter options dialog.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Maybe a complete code snippet could help to understand ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It is probably more interesting to take a look to the document. I 
&lt;br&gt;&amp;gt; suspect that Bernard is right and the document is no valid .doc document.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Juergen
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260304&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260304&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows 7: Simplify what you do everyday. Find the right PC for you.
&lt;br&gt;&lt;a href=&quot;http://windows.microsoft.com/shop&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://windows.microsoft.com/shop&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26260304.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251692</id>
	<title>Re: Service SpreadsheetDocumentSettings</title>
	<published>2009-11-08T00:27:07Z</published>
	<updated>2009-11-08T00:27:07Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Hi Bernard,
&lt;br&gt;&lt;br&gt;this is a good question and i will clarify it. I assume that the 
&lt;br&gt;deprecated tag is wrong
&lt;br&gt;&lt;br&gt;Thanks to bring this up.
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;Bernard Marcelly wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Service css.sheet.SpreadsheetDocumentSettings is marked as deprecated 
&lt;br&gt;&amp;gt; since SDK 1.1.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How can it be deprecated and have new properties added since OOo 3.0 ?
&lt;br&gt;&amp;gt; [optional, property] boolean IsLoaded;
&lt;br&gt;&amp;gt; [optional, property] boolean IsUndoEnabled;
&lt;br&gt;&amp;gt; [optional, property] boolean IsAdjustHeightEnabled;
&lt;br&gt;&amp;gt; [optional, property] boolean IsExecuteLinkEnabled;
&lt;br&gt;&amp;gt; [readonly, optional, property] com::sun::star::awt::XDevice 
&lt;br&gt;&amp;gt; ReferenceDevice;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; &amp;nbsp; Bernard
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251692&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251692&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251692&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251692&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Service-SpreadsheetDocumentSettings-tp26251650p26251692.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26251650</id>
	<title>Service SpreadsheetDocumentSettings</title>
	<published>2009-11-08T00:15:10Z</published>
	<updated>2009-11-08T00:15:10Z</updated>
	<author>
		<name>Bernard Marcelly</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;Service css.sheet.SpreadsheetDocumentSettings is marked as deprecated since SDK 1.1.
&lt;br&gt;&lt;br&gt;How can it be deprecated and have new properties added since OOo 3.0 ?
&lt;br&gt;[optional, property] boolean IsLoaded;
&lt;br&gt;[optional, property] boolean IsUndoEnabled;
&lt;br&gt;[optional, property] boolean IsAdjustHeightEnabled;
&lt;br&gt;[optional, property] boolean IsExecuteLinkEnabled;
&lt;br&gt;[readonly, optional, property] com::sun::star::awt::XDevice ReferenceDevice;
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; &amp;nbsp;Bernard
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26251650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Service-SpreadsheetDocumentSettings-tp26251650p26251650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26230322</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-06T03:10:58Z</published>
	<updated>2009-11-06T03:10:58Z</updated>
	<author>
		<name>Mikhail.Voytenko</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On 11/06/09 10:26, Juergen Schmidt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mikhail Voytenko wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;&amp;gt; doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;&amp;gt; like the scenario that Ariel has described.
&lt;/div&gt;&lt;br&gt;Sorry, I was wrong in my last comment.
&lt;br&gt;Indeed the text filter still wins sometimes by unknown formats, although 
&lt;br&gt;actually the filter selection dialog should be shown. And MSWord filter 
&lt;br&gt;&amp;nbsp; has no filter options dialog.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Maybe a complete code snippet could help to understand ...
&lt;br&gt;&lt;br&gt;It is probably more interesting to take a look to the document. I 
&lt;br&gt;suspect that Bernard is right and the document is no valid .doc document.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Mikhail.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230322&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26230322&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26230322.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26229292</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-06T01:50:45Z</published>
	<updated>2009-11-06T01:50:45Z</updated>
	<author>
		<name>Bernard Marcelly</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Message de Wei Min Teo &amp;nbsp;date 2009-11-06 02:51 :
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a default filter.
&lt;br&gt;&amp;gt; Anyway, to clarify, I think my problem occurs with opening *.doc or *.ppt files.
&lt;br&gt;&amp;gt; When I open it prompts me on which character encoding i want to use.
&lt;br&gt;&lt;br&gt;It means these are not real .doc or .ppt files.
&lt;br&gt;Microsoft sometimes creates simple (not formatted) text files as .doc
&lt;br&gt;Probably it uses Windows encoding ( e.g. Windows 1252 for European text).
&lt;br&gt;Open those files with user interface, you will be requested an encoding. If you
&lt;br&gt;can't find a correct one, how could you find it by program?
&lt;br&gt;&lt;br&gt;Another case is when a file is corrupted : no solution here.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&amp;nbsp; Bernard
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229292&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229292&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26229292.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26229020</id>
	<title>Re: loadcomponentfromurl</title>
	<published>2009-11-06T01:26:55Z</published>
	<updated>2009-11-06T01:26:55Z</updated>
	<author>
		<name>Juergen Schmidt-3</name>
	</author>
	<content type="html">Mikhail Voytenko wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/06/09 08:50, Juergen Schmidt wrote:
&lt;br&gt;&amp;gt;&amp;gt; Ariel Constenla-Haile wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hello Wei,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Thursday 05 November 2009, 22:51, Wei Min Teo wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm not going to use any filters or perhaps it automatically uses a 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; default
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;filter. Anyway, to clarify, I think my problem occurs with opening 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; *.doc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;or *.ppt files. When I open it prompts me on which character 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; encoding i
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;want to use. This would &amp;quot;hang&amp;quot; an automation program. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this sounds like the Writer encoding text dialog, that shows up for 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; example when you try to open with OOo an unkown file format (by 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; default is treated as text, and you are prompted to select the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; encoding, etc.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Aren't you passing a filter name?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; even if he doesn't use a filter name, the type detection should work 
&lt;br&gt;&amp;gt;&amp;gt; well for .doc and .ppt files. Sounds strange.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The type detection works well and the correct filter is detected as I 
&lt;br&gt;&amp;gt; understand. The problem here, is that the mentioned filters need 
&lt;br&gt;&amp;gt; character encoding, thus the FilterOptions dialog ( not &amp;quot;Unknown file 
&lt;br&gt;&amp;gt; format&amp;quot; dialog ) is shown.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;i don't think so. A valid .doc file is auto detected and the word filter 
&lt;br&gt;doesn't have a filter options dialog as far as i know. It looks more 
&lt;br&gt;like the scenario that Ariel has described.
&lt;br&gt;&lt;br&gt;Maybe a complete code snippet could help to understand ...
&lt;br&gt;&lt;br&gt;Juergen
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Generally speaking, a filter that gets no filter options should check 
&lt;br&gt;&amp;gt; the CharacterSet property from the MediaDescriptor. Unfortunately it 
&lt;br&gt;&amp;gt; does not happen in this case. For me it looks like a missing feature, I 
&lt;br&gt;&amp;gt; would suggest to submit an enhancement issue for each filter that does 
&lt;br&gt;&amp;gt; not support the property currently.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The only workaround, that I see for now, is to make the type detection 
&lt;br&gt;&amp;gt; explicitly to get the required filter name. And based on the filter name 
&lt;br&gt;&amp;gt; provide the filter options in the format the filter requires it. The 
&lt;br&gt;&amp;gt; problem here is that there seems to be no documentation regarding filter 
&lt;br&gt;&amp;gt; options format for each filter. Thus you would probably have to ask on 
&lt;br&gt;&amp;gt; the applications-related lists regarding each filter ( for example on 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev@...&lt;/a&gt; regarding writer filters ).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best regards,
&lt;br&gt;&amp;gt; Mikhail.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Juergen
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;Thus, I thought I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;could pass in the character encoding set for it to open by using
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;ChracterSet UTF8 in the media descriptor. However, this didn't work 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; even
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;with &amp;quot;UTF8&amp;quot;. Do I have to use this with some filter implementation? 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If so,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;how can i do that?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26229020&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/loadcomponentfromurl-tp26211054p26229020.html" />
</entry>

</feed>
