<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ODF Toolkit for Java &#187; Uncategorized</title>
	<atom:link href="http://odf4j.wordpress.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://odf4j.wordpress.com</link>
	<description>Weblog of the odf4j Project</description>
	<lastBuildDate>Thu, 10 Apr 2008 22:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='odf4j.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e668db975ba0c53ea9c0d8a7d85dc34c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>ODF Toolkit for Java &#187; Uncategorized</title>
		<link>http://odf4j.wordpress.com</link>
	</image>
			<item>
		<title>Last post here: Time to move;</title>
		<link>http://odf4j.wordpress.com/2008/04/10/last-post-here-time-to-move/</link>
		<comments>http://odf4j.wordpress.com/2008/04/10/last-post-here-time-to-move/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 22:09:58 +0000</pubDate>
		<dc:creator>amit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://odf4j.wordpress.com/?p=21</guid>
		<description><![CDATA[This is the last post on this blog, time to move on and get all my stuffs on one blog. From now on, all things on &#8216;odf4j&#8217; will be available at this link
See you!
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=21&subd=odf4j&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is the last post on this blog, time to move on and get all my stuffs on one <a href="http://amitksaha.blogspot.com">blog</a>. From now on, all things on &#8216;odf4j&#8217; will be available at this <a href="http://amitksaha.blogspot.com/search/label/odf4j">link</a></p>
<p>See you!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odf4j.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odf4j.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odf4j.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odf4j.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odf4j.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odf4j.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odf4j.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odf4j.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odf4j.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odf4j.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odf4j.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odf4j.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=21&subd=odf4j&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odf4j.wordpress.com/2008/04/10/last-post-here-time-to-move/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e649984086cb48e24a6dfd040a86fe96?s=96&#38;d=identicon" medium="image">
			<media:title type="html">amit</media:title>
		</media:content>
	</item>
		<item>
		<title>Style Tree Implementation</title>
		<link>http://odf4j.wordpress.com/2007/10/05/style-tree-implementation/</link>
		<comments>http://odf4j.wordpress.com/2007/10/05/style-tree-implementation/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 07:25:51 +0000</pubDate>
		<dc:creator>amit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://odf4j.wordpress.com/2007/10/05/style-tree-implementation/</guid>
		<description><![CDATA[/*
* StyleTree.java
*
* Created on 28 Sep, 2007, 2:43:06 PM
*
*
*/
package org.openoffice.odf.style;
/**
*
* @author amitksaha &#60;amitksaha@openoffice.org&#62;
*/
import javax.swing.tree.DefaultMutableTreeNode;
import java.util.Enumeration;
/*
* Implementation of the Style Hierarchy in ODF documents
* EXPERIMENTAL CODE
*/
public class StyleTree {
private DefaultMutableTreeNode top;
public void getStyle(String style_name) {
//Create the nodes.
top = new DefaultMutableTreeNode(&#8220;ODT Style Families&#8221;);
createNodes(top);
search(style_name);
}
private void createNodes(DefaultMutableTreeNode top) {
DefaultMutableTreeNode style_family = null;
DefaultMutableTreeNode parent_style = null;
DefaultMutableTreeNode style_name_1 = null;
DefaultMutableTreeNode style_name_2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=20&subd=odf4j&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><code>/*<br />
* StyleTree.java<br />
*<br />
* Created on 28 Sep, 2007, 2:43:06 PM<br />
*<br />
*<br />
*/</code></p>
<p>package org.openoffice.odf.style;</p>
<p>/**<br />
*<br />
* @author amitksaha &lt;amitksaha@openoffice.org&gt;<br />
*/<br />
import javax.swing.tree.DefaultMutableTreeNode;<br />
import java.util.Enumeration;</p>
<p>/*<br />
* Implementation of the Style Hierarchy in ODF documents<br />
* EXPERIMENTAL CODE<br />
*/</p>
<p>public class StyleTree {<br />
private DefaultMutableTreeNode top;</p>
<p>public void getStyle(String style_name) {</p>
<p>//Create the nodes.<br />
top = new DefaultMutableTreeNode(&#8220;ODT Style Families&#8221;);</p>
<p>createNodes(top);<br />
search(style_name);<br />
}</p>
<p>private void createNodes(DefaultMutableTreeNode top) {<br />
DefaultMutableTreeNode style_family = null;<br />
DefaultMutableTreeNode parent_style = null;<br />
DefaultMutableTreeNode style_name_1 = null;<br />
DefaultMutableTreeNode style_name_2 = null;<br />
DefaultMutableTreeNode style_name_3 = null;</p>
<p>style_family = new DefaultMutableTreeNode(&#8220;graphic&#8221;);<br />
top.add(style_family);</p>
<p>style_family = new DefaultMutableTreeNode(&#8220;Paragraph&#8221;);<br />
top.add(style_family);</p>
<p>parent_style = new DefaultMutableTreeNode(&#8220;standard&#8221;);<br />
style_family.add(parent_style);</p>
<p>style_name_1 = new DefaultMutableTreeNode(&#8220;index&#8221;);<br />
parent_style.add(style_name_1);</p>
<p>style_name_2 = new DefaultMutableTreeNode(&#8220;Text_20_body&#8221;);<br />
parent_style.add(style_name_2);</p>
<p>style_name_1 = new DefaultMutableTreeNode(&#8220;P1&#8243;);<br />
style_name_2.add(style_name_1);</p>
<p>style_name_1 = new DefaultMutableTreeNode(&#8220;P2&#8243;);<br />
style_name_2.add(style_name_1);</p>
<p>style_name_1 = new DefaultMutableTreeNode(&#8220;Heading&#8221;);<br />
style_name_2.add(style_name_1);</p>
<p>style_name_1 = new DefaultMutableTreeNode(&#8220;List&#8221;);<br />
style_name_2.add(style_name_1);</p>
<p>style_name_3 = new DefaultMutableTreeNode(&#8220;caption&#8221;);<br />
parent_style.add(style_name_3);</p>
<p>style_family = new DefaultMutableTreeNode(&#8220;table&#8221;);<br />
top.add(style_family);</p>
<p>style_family = new DefaultMutableTreeNode(&#8220;table_row&#8221;);<br />
top.add(style_family);</p>
<p>}</p>
<p>private void search(String item){</p>
<p>Enumeration res = top.depthFirstEnumeration();</p>
<p>for (; res.hasMoreElements() <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  {<br />
Object obj = res.nextElement();</p>
<p>//trivial typecast</p>
<p>DefaultMutableTreeNode node = (DefaultMutableTreeNode)obj;</p>
<p>if(item.equals(node.toString())){</p>
<p>//traverse up the tree for the style information</p>
<p>System.out.println(&#8220;Style Information for: &#8221; + item);<br />
System.out.println(&#8220;Style Family: &#8221; + node.getParent().getParent().getParent().toString());<br />
System.out.println(&#8220;Parent Style: &#8221; + node.getParent().getParent().toString());<br />
System.out.println(&#8220;Previous Higher Style Category: &#8221; + node.getParent().toString());</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odf4j.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odf4j.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odf4j.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odf4j.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odf4j.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odf4j.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odf4j.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odf4j.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odf4j.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odf4j.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odf4j.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odf4j.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=20&subd=odf4j&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odf4j.wordpress.com/2007/10/05/style-tree-implementation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e649984086cb48e24a6dfd040a86fe96?s=96&#38;d=identicon" medium="image">
			<media:title type="html">amit</media:title>
		</media:content>
	</item>
		<item>
		<title>Style Hierarchy in ODT documents</title>
		<link>http://odf4j.wordpress.com/2007/09/04/style-hierarchy-in-odt-documents/</link>
		<comments>http://odf4j.wordpress.com/2007/09/04/style-hierarchy-in-odt-documents/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 13:30:07 +0000</pubDate>
		<dc:creator>amit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://odf4j.wordpress.com/2007/09/04/style-hierarchy-in-odt-documents/</guid>
		<description><![CDATA[I have identified a hierarchical relationship among the way Style information is stored in &#8220;style.xml&#8221; file. Based on my findings I have represented them in a Style tree.

Now, using this Style tree we can retrieve style information associated with each style, like the Parent-style, Style family, etc by using the style-name which are the leaves [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=18&subd=odf4j&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have identified a hierarchical relationship among the way Style information is stored in &#8220;style.xml&#8221; file. Based on my findings I have represented them in a Style tree.<br />
<a href="http://odf4j.files.wordpress.com/2007/09/style-tree.png" title="Style Tree"><img src="http://odf4j.files.wordpress.com/2007/09/style-tree.png?w=597&#038;h=488" alt="Style Tree" height="488" width="597" /></a></p>
<p>Now, using this Style tree we can retrieve style information associated with each style, like the Parent-style, Style family, etc by using the style-name which are the leaves of the tree. This will save us from parsing the &#8220;style.xml&#8221; everytime.</p>
<p><a href="http://odf4j.files.wordpress.com/2007/09/style-tree.png" title="Style Tree"></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odf4j.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odf4j.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odf4j.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odf4j.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odf4j.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odf4j.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odf4j.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odf4j.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odf4j.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odf4j.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odf4j.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odf4j.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=18&subd=odf4j&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odf4j.wordpress.com/2007/09/04/style-hierarchy-in-odt-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e649984086cb48e24a6dfd040a86fe96?s=96&#38;d=identicon" medium="image">
			<media:title type="html">amit</media:title>
		</media:content>

		<media:content url="http://odf4j.files.wordpress.com/2007/09/style-tree.png" medium="image">
			<media:title type="html">Style Tree</media:title>
		</media:content>
	</item>
		<item>
		<title>Updates</title>
		<link>http://odf4j.wordpress.com/2007/06/16/updates/</link>
		<comments>http://odf4j.wordpress.com/2007/06/16/updates/#comments</comments>
		<pubDate>Sat, 16 Jun 2007 04:15:36 +0000</pubDate>
		<dc:creator>amit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://odf4j.wordpress.com/2007/06/16/updates/</guid>
		<description><![CDATA[After a fortnight of coding inactivity, I am currently working on Style Handling in ODT documents.
In the meantime,my role has also been upgraded to a developer.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=14&subd=odf4j&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After a fortnight of coding inactivity, I am currently working on <span style="font-weight:bold;">Style Handling</span> in ODT documents.</p>
<p>In the meantime,my <span style="font-weight:bold;">role</span> has also been upgraded to a developer.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/odf4j.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/odf4j.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odf4j.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odf4j.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odf4j.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odf4j.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odf4j.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odf4j.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odf4j.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odf4j.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odf4j.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odf4j.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odf4j.wordpress.com&blog=1048277&post=14&subd=odf4j&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odf4j.wordpress.com/2007/06/16/updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e649984086cb48e24a6dfd040a86fe96?s=96&#38;d=identicon" medium="image">
			<media:title type="html">amit</media:title>
		</media:content>
	</item>
	</channel>
</rss>