incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1165478 [3/3] - in /incubator/odf/site/trunk/content/odftoolkit/simple: ./ demo/scripts/ demo/styles/ document/ document/cookbook/ document/javadoc/ javadoc/
Date Tue, 06 Sep 2011 02:09:28 GMT
Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.html
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.html?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.html (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.html Tue Sep  6 02:09:27 2011
@@ -0,0 +1,167 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Table</title>
+ <link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />
+<script type="text/javascript">
+
+var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22366020-1']);
+_gaq.push(['_trackPageview']);
+
+(function() {
+var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+})();
+
+</script>
+</head>
+<body>
+<div id="page" align="center">
+<div id="content" style="width:920px" class="contentpanel">
+<div id="topheader">
+<div class="topright"> </div>
+</div>
+<div id="menu">
+<div align="left" class="smallwhitetext"> <a href="../index.html" class="home"> </a> <a href="../downloads.html" class="download"></a> <a href="../documents.html" class="document"></a> <a href="../demo/index.html" class="sample"> </a> </div>
+</div>
+<div id="subcontent" align ="left">
+<div align="left" class="titletext"> <span >
+<a href="../documents.html">Documents</a> > 
+<a href="index.html">Cookbook</a> ><a href="Table.html">Table</a>
+</span>
+</div>
+<div class="navigation">
+ <ul>
+  <li><a href="Slide.html">previous</a></li>
+  <li><a href="Column and Row.html">next</a></li>
+ </ul>
+</div>
+<br/>
+<div class="contenttitle" id="Overview">
+<br/>
+<a href="#Overview" >Overview</a>
+<hr/>
+</div>
+<div class="bodytext">
+ This <a href="">Table</a> API supports to manipulate tables in text and spreadsheet documents. It covers the table definition in <a href="http:docs.oasis-open.org/office/v1.2/cd05/OpenDocument-v1.2-cd05-part1.html#a_9_Tables">ODF Specification 1.2 Committee Draft05</a>
+</div>
+<div class="contenttitle" id="Create Table">
+<br/>
+<a href="#Create Table" >Create Table</a>
+<hr/>
+</div>
+<div class="bodytext">
+Let's create an empty table first.By default,the code below create a table with 5 columns and 2 rows.
+</div>
+<br/><pre class='code' id="code0">
+            <span class='javaclass'>TextDocument</span> document = <span class='javaclass'>TextDocument</span>.newTextDocument();<br/>
+            <span class='javaclass'>Table</span> table1 = <span class='javaclass'>Table</span>.newTable(document);<br/>
+            table1.setTableName("table1");<br/>
+            document.save(filePath);<br/>
+</pre>
+<br/><div class="bodytext">
+If you want to create table with specified column and row,you can do like this:
+</div>
+<br/><pre class='code' id="code1">
+            <span class='basic'>int</span> row=4;<br/>
+            <span class='basic'>int</span> column=3;<br/>
+            <span class='javaclass'>Table</span> table2=<span class='javaclass'>Table</span>.newTable(document, row, column);<br/>
+            table2.setTableName("table2");<br/>
+</pre>
+<br/><div class="bodytext">
+       If you want to put some numbers into a table while creating it, you can use the constructor Table.newTable(document,rowlabels,columnlabels, data)       which you should specify a 2 dimension array as the data and 2 String arrays as table labels,one for row and the other for column. 
+</div>
+<br/><pre class='code' id="code2">
+        <span class='basic'>int</span> rowcount = 10, columncount = 4;<br/>
+     	<span class='basic'>double</span>[][] data = <span class='modifier'>new</span> <span class='basic'>double</span>[rowcount][columncount];	<br/>
+     	<span class='javaclass'>String</span>[] rowlabels = <span class='modifier'>new</span> <span class='javaclass'>String</span>[rowcount];<br/>
+     	<span class='javaclass'>String</span>[] columnlabels = <span class='modifier'>new</span> <span class='javaclass'>String</span>[columncount];<br/>
+     	<span class='javaclass'>Table</span> table3=<span class='javaclass'>Table</span>.newTable(document,rowlabels,columnlabels, data);<br/>
+     	table3.setTableName("dataTable");<br/>
+</pre>
+<br/><div class="bodytext">
+You can also fill table with string values while creating it, to do this you should provide a 2 dimension string array instead of double array.
+</div>
+<br/><pre class='code' id="code3">
+     	<span class='javaclass'>String</span>[][] stringData = <span class='modifier'>new</span> <span class='javaclass'>String</span>[rowcount][columncount];<br/>
+     	<span class='javaclass'>Table</span> table4 = <span class='javaclass'>Table</span>.newTable(document, rowlabels, columnlabels, stringData);<br/>
+     	table4.setTableName("stringTable");<br/>
+</pre>
+<br/><div class="contenttitle" id="Find Table">
+<br/>
+<a href="#Find Table" >Find Table</a>
+<hr/>
+</div>
+<div class="bodytext">
+To get all the tables in the document,you can do like this:
+</div>
+<br/><pre class='code' id="code4">
+        <span class='javaclass'>List</span>&lt;<span class='javaclass'>Table</span>&gt; tableList=document.getTableList();<br/>
+</pre>
+<br/><div class="bodytext">
+If you want to get a single table,you can use the table name to find it.If it's not found,the method returns null.
+</div>
+<br/><pre class='code' id="code5">
+        <span class='javaclass'>Table</span> emptyTable=document.getTableByName("table1");<br/>
+</pre>
+<br/><div class="contenttitle" id="Delete Table">
+<br/>
+<a href="#Delete Table" >Delete Table</a>
+<hr/>
+</div>
+<br/><pre class='code' id="code6">
+        <span class='javaclass'>Table</span> table = document.getTableByName("<span class='javaclass'>DeletedTable</span>");<br/>
+        <span class='control'>if</span> (table != <span class='basic'>null</span>) {<br/>
+     	table.remove();<br/>
+        }<br/>
+</pre>
+<br/><div class="contenttitle" id="Set Table">
+<br/>
+<a href="#Set Table" >Set Table</a>
+<hr/>
+</div>
+<div class="bodytext">
+You can set or update table name,which can be regarded as table identifier in a document.
+</div>
+<br/><pre class='code' id="code7">
+           table1.getTableName();<br/>
+           table1.setTableName("<span class='javaclass'>EnglishScore</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+If you want to change table width,you can do like this:
+</div>
+<br/><pre class='code' id="code8">
+        <span class='javaclass'>Table</span> tableWidth=document.getTableByName("table1");<br/>
+        <span class='control'>if</span>(tableWidth!=<span class='basic'>null</span>) {<br/>
+            <span class='basic'>long</span> width=500;<br/>
+            tableWidth.setWidth(width);<br/>
+            tableWidth.getWidth();<br/>
+        }<br/>
+</pre>
+<br/><div class="bodytext">
+Each table in the document has a protect attribute to show whether it is protected or not.
+</div>
+<br/><pre class='code' id="code9">
+           <span class='basic'>boolean</span> isProtected=table1.isProtected();<br/>
+           table1.setProtected(<span class='basic'>true</span>);<br/>
+</pre>
+<br/><br/> 
+<div class="navigation">
+ <ul>
+  <li><a href="Slide.html">previous</a></li>
+  <li><a href="Column and Row.html">next</a></li>
+  <li><a href="#">top</a></li>
+ </ul>
+</div>
+<br/>
+</div>
+<div id="footer" class="smallgraytext"> <a href="../index.html">Home</a> | <a href="../index.html">About Us</a> | <a href="mailto:Daisy@odftoolkit.org">Contact Us</a> </div>
+</div>
+</div>
+</body>
+</html>

Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text%20Document.html?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html Tue Sep  6 02:09:27 2011
@@ -0,0 +1,510 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Text Document</title>
+ <link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />
+<script type="text/javascript">
+
+var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22366020-1']);
+_gaq.push(['_trackPageview']);
+
+(function() {
+var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+})();
+
+</script>
+</head>
+<body>
+<div id="page" align="center">
+<div id="content" style="width:920px" class="contentpanel">
+<div id="topheader">
+<div class="topright"> </div>
+</div>
+<div id="menu">
+<div align="left" class="smallwhitetext"> <a href="../index.html" class="home"> </a> <a href="../downloads.html" class="download"></a> <a href="../documents.html" class="document"></a> <a href="../demo/index.html" class="sample"> </a> </div>
+</div>
+<div id="subcontent" align ="left">
+<div align="left" class="titletext"> <span >
+<a href="../documents.html">Documents</a> > 
+<a href="index.html">Cookbook</a> ><a href="Text Document.html">Text Document</a>
+</span>
+</div>
+<div class="navigation">
+ <ul>
+  <li><a href="Manipulate Metadata.html">previous</a></li>
+  <li><a href="Presentation Document.html">next</a></li>
+ </ul>
+</div>
+<br/>
+<div class="contenttitle" id="Overview">
+<br/>
+<a href="#Overview" >Overview</a>
+<hr/>
+</div>
+<div class="bodytext">
+Till now, we support high level APIs to manipulate text document, paragraph, section, list, footer, header, textbox and span.
+</div>
+<div class="contenttitle" id="Generate TextDocument">
+<br/>
+<a href="#Generate TextDocument" >Generate TextDocument</a>
+<hr/>
+</div>
+<div class="bodytext">
+		There are typically four kinds of Text Documents with different modes can be generated: text document,		master document, template document and web document.
+</div>
+<div class="bodytext">
+The following codes generates an empty text document.
+</div>
+<br/><pre class='code' id="code0">
+            <span class='javaclass'>TextDocument</span> document1=<span class='javaclass'>TextDocument</span>.newTextDocument();	 <br/>
+	    document1.save(filePath);<br/>
+</pre>
+<br/><div class="bodytext">
+	    There are two methods to generate a new document, one with a parameter of	    OdfMediaType, and the other one just use the corresponding new function.
+</div>
+<div class="bodytext">
+	    The following two lines of codes generate the same kinds of document(Master document). 	    The other three kinds of document are similar.
+</div>
+<br/><pre class='code' id="code1">
+	    <span class='javaclass'>TextDocument</span> documentMedia1=<span class='javaclass'>TextDocument</span>.newTextDocument(<span class='javaclass'>OdfMediaType</span>.TEXT_MASTER);<br/>
+	    <span class='javaclass'>TextDocument</span> documentMedia2=<span class='javaclass'>TextDocument</span>.newTextMasterDocument();<br/>
+</pre>
+<br/><div class="contenttitle" id="Get TextDocument">
+<br/>
+<a href="#Get TextDocument" >Get TextDocument</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    We can get the existing Text Document by using the loadDocument function like follows.	    The loadDocument function has four kinds of parameters: File, InputStream, OdfPackageDocument and	    String. Here the one with string parameter is used as an example.
+</div>
+<br/><pre class='code' id="code2">
+	    <span class='javaclass'>TextDocument</span> document2=(<span class='javaclass'>TextDocument</span>)<span class='javaclass'>TextDocument</span>.loadDocument("textdocument.odt");<br/>
+</pre>
+<br/><div class="bodytext">
+Also we can change the mode of one text document by using the following codes:
+</div>
+<br/><pre class='code' id="code3">
+	    document2.changeMode(<span class='javaclass'>OdfMediaType</span>.TEXT_WEB);<br/>
+</pre>
+<br/><div class="contenttitle" id="Paragraph">
+<br/>
+<a href="#Paragraph" >Paragraph</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    To add a new paragraph to a text document, the following codes can be used,	    the first one add an empty paragraph to the end of the document, and the second one	    add a new paragraph with the corresponding texts to the document.
+</div>
+<br/><pre class='code' id="code4">
+	    document1.addParagraph(<span class='basic'>null</span>);<br/>
+	    document1.addParagraph("test newParagraph function in textDocument");<br/>
+</pre>
+<br/><div class="bodytext">
+	    The first one will get the second paragraph of this document. The second statement will get the last paragraph with text content. 	    The paragraph without text content will be ignored if the second parameter is true.
+</div>
+<div class="bodytext">
+The following codes can be used to append text to the end of a paragrah.
+</div>
+<br/><pre class='code' id="code5">
+	    para1.appendTextContent("test addText function in textDocument");<br/>
+</pre>
+<br/><div class="bodytext">
+The following codes are to get and set the horizontal alignment of a paragraph.
+</div>
+<br/><pre class='code' id="code6">
+	    <span class='javaclass'>HorizontalAlignmentType</span> align = para1.getHorizontalAlignment();<br/>
+	    para1.setHorizontalAlignment(<span class='javaclass'>HorizontalAlignmentType</span>.<span class='javaclass'>CENTER</span>);<br/>
+</pre>
+<br/><div class="bodytext">
+The following codes are to get and set the font of a paragraph.
+</div>
+<br/><pre class='code' id="code7">
+		<span class='javaclass'>Font</span> font = para1.getFont();<br/>
+		font.setFontStyle(<span class='javaclass'>StyleTypeDefinitions</span>.<span class='javaclass'>FontStyle</span>.<span class='javaclass'>ITALIC</span>);<br/>
+		para2.setFont(font);<br/>
+</pre>
+<br/><div class="bodytext">
+The following code is to apply a hyperlink to this paragraph, and append a text with a hyperlink to this paragraph.
+</div>
+<br/><pre class='code' id="code8">
+		para2.applyHyperlink(<span class='modifier'>new</span> <span class='javaclass'>URI</span>("mailto:daisy@odftoolkit.org"));<br/>
+		para2.appendHyperlink("mail to me",new <span class='javaclass'>URI</span>("mailto:daisy@odftoolkit.org"));<br/>
+</pre>
+<br/><div class="bodytext">
+The following code is to add a comment at the front of the paragraph.
+</div>
+<br/><pre class='code' id="code9">
+		para2.addComment("<span class='javaclass'>This</span> is a comment for para2", "<span class='javaclass'>Simple</span> <span class='javaclass'>ODF</span> <span class='javaclass'>Commenter</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+	    From version 0.6.5, we support heading feature. You can test whether a paragraph is heading, 		apply a plain text paragraph as heading, and get heading level.
+</div>
+<br/><pre class='code' id="code10">
+<span class='comments'>		// isHeading() and getHeadingLevel();</span>
+		<span class='control'>if</span> (para2.isHeading()) {<br/>
+			<span class='basic'>int</span> headingLevel = para2.getHeadingLevel();<br/>
+			<span class='javaclass'>System</span>.out.println("para2 is a heading, its level is " + headingLevel + ".");<br/>
+		}<br/>
+<span class='comments'>		// applyHeading(), default level is 1.</span>
+		para1.applyHeading();<br/>
+<span class='comments'>		// applyHeading(), heading level is 3.</span>
+		para1.applyHeading(<span class='basic'>true</span>, 3);<br/>
+</pre>
+<br/><div class="contenttitle" id="Section">
+<br/>
+<a href="#Section" >Section</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.4, we support high level APIs for section. 	    You can use the following code to get a section by name:
+</div>
+<br/><pre class='code' id="code11">
+		<span class='javaclass'>Section</span> aSection = document1.getSectionByName("<span class='javaclass'>ImageSection</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+		or use the following code to get an iterator of sections. 		All sections in the document would be returned, including sections in footer and header.
+</div>
+<br/><pre class='code' id="code12">
+		<span class='javaclass'>Iterator</span>&lt;<span class='javaclass'>Section</span>&gt; sections = document1.getSectionIterator();<br/>
+		<span class='control'>while</span> (sections.hasNext()) {<br/>
+			<span class='javaclass'>Section</span> theSection = sections.next();<br/>
+		}<br/>
+</pre>
+<br/><div class="bodytext">
+		After you get the object of section, 		you can use the following codes to set and get the name of the section.
+</div>
+<br/><pre class='code' id="code13">
+		<span class='javaclass'>String</span> name = aSection.getName();<br/>
+		aSection.setName("<span class='javaclass'>NewName</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+		You can use the following code to copy and append a section at the end of a document.		Copying from a foreign document is supported. 		You don't need to care whether or not the document is the owner of the source section.
+</div>
+<br/><pre class='code' id="code14">
+		document1.appendSection(aSection, <span class='basic'>true</span>);<br/>
+</pre>
+<br/><div class="bodytext">
+		If you want to copy and append a section within a same document,		you can specify with the second parameter of "copyAppendSection(Section section, boolean isResourceCopied)"		whether the linked resources to this section are copied or not.		The following code means to copy a section and append it at the end, but the linked resources are shared between the source section and the copied section.
+</div>
+<br/><pre class='code' id="code15">
+		document1.appendSection(aSection, <span class='basic'>false</span>);<br/>
+</pre>
+<br/><div class="bodytext">
+		You can remove this Section from the document content, 		all the resources that are only linked with this section would be removed too.
+</div>
+<br/><pre class='code' id="code16">
+		aSection.remove();<br/>
+</pre>
+<br/><div class="contenttitle" id="List">
+<br/>
+<a href="#List" >List</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.4, we support high level APIs for list.		You can use the following code to create a list. The two methods are same.
+</div>
+<br/><pre class='code' id="code17">
+		<span class='javaclass'>List</span> newList1 = document1.addList();<br/>
+		<span class='javaclass'>List</span> newList2 = <span class='modifier'>new</span> <span class='javaclass'>List</span>(document1);<br/>
+</pre>
+<br/><div class="bodytext">
+	    Actually, you can append list to table cell, list item, presentation slide and notes. They all have the same ability with text document for list.		We call them ListContainer, which can append, remove and get the iterator of list.
+</div>
+<br/><pre class='code' id="code18">
+		<span class='javaclass'>Iterator</span>&lt;<span class='javaclass'>List</span>&gt; lists = document1.getListIterator();<br/>
+		<span class='javaclass'>List</span> list =<span class='basic'>null</span>;<br/>
+		<span class='control'>while</span> (lists.hasNext()) {<br/>
+			list = lists.next();<br/>
+		}<br/>
+</pre>
+<br/><div class="bodytext">
+		After you get the object of list, 		you can use the following methods to set and get the header of the list.
+</div>
+<br/><pre class='code' id="code19">
+		<span class='javaclass'>String</span> header = list.getHeader();<br/>
+		list.setHeader("<span class='javaclass'>NewHeader</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+		You can get all of the existing items in this list. They are returned as java.util.List.
+</div>
+<br/><pre class='code' id="code20">
+		java.util.<span class='javaclass'>List</span>&lt;<span class='javaclass'>ListItem</span>&gt; items = list.getItems();<br/>
+</pre>
+<br/><div class="bodytext">
+		If you only want to get the item at a specific location, you can use the following code:
+</div>
+<br/><pre class='code' id="code21">
+		<span class='basic'>int</span> location = 2;<br/>
+		<span class='javaclass'>ListItem</span> item = list.getItem(location);<br/>
+</pre>
+<br/><div class="bodytext">
+		There are several ways to help you append item(s) to the list. Please reference the following code:
+</div>
+<br/><pre class='code' id="code22">
+<span class='comments'>		// add single item</span>
+		<span class='javaclass'>ListItem</span> newItem1 = list.addItem(item);<br/>
+		<span class='javaclass'>ListItem</span> newItem2 = list.addItem("itemContent");<br/>
+<span class='comments'>		// add clone items</span>
+		<span class='javaclass'>ListItem</span>[] newItems = <span class='modifier'>new</span> <span class='javaclass'>ListItem</span>[]{newItem1, newItem2};<br/>
+		list.addItems(newItems);<br/>
+<span class='comments'>		// add string items</span>
+		<span class='javaclass'>String</span>[] newItemContents = <span class='modifier'>new</span> <span class='javaclass'>String</span>[]{"itemContent1", "itemContent2"};<br/>
+		list.addItems(newItemContents);<br/>
+</pre>
+<br/><div class="bodytext">
+		You can specify a location to insert new item(s).
+</div>
+<br/><pre class='code' id="code23">
+		newItem1 = list.addItem(location, item);<br/>
+		newItem2 = list.addItem(location, "itemContent");<br/>
+		list.addItems(location, newItems);<br/>
+		list.addItems(location, newItemContents);<br/>
+</pre>
+<br/><div class="bodytext">
+		If you want to replace a list item with a new one, you can use the following code.
+</div>
+<br/><pre class='code' id="code24">
+		item = list.set(location, newItem1);<br/>
+		item = list.set(location, "itemContent");<br/>
+</pre>
+<br/><div class="bodytext">
+		You can use the following methods to remove item(s).
+</div>
+<br/><pre class='code' id="code25">
+		list.removeItem(item);<br/>
+<span class='comments'>		//item in specific location.</span>
+		list.removeItem(location);<br/>
+<span class='comments'>		//item in specific collection.</span>
+		list.removeItems(items);<br/>
+</pre>
+<br/><div class="bodytext">
+		You can specify with the following methods whether the numbering of the previous list is continued by this list:
+</div>
+<br/><pre class='code' id="code26">
+<span class='comments'>		// the numbering of the proximate list is continued</span>
+		newList1.setContinueNumbering(<span class='basic'>true</span>);<br/>
+<span class='comments'>		// the numbering of the specified list is continued by this list</span>
+		newList2.setContinueList(list);<br/>
+</pre>
+<br/><div class="bodytext">
+		You can use the following method to know whether the list is a number list.
+</div>
+<br/><pre class='code' id="code27">
+		<span class='javaclass'>ListType</span> type = list.getType();<br/>
+</pre>
+<br/><div class="bodytext">
+		Now, List API support 3 types of lists, ListType.BULLET, ListType.NUMBER and ListType.IMAGE. The default created 		list is ListType.BULLET, bullet list.		How to create a number list or a image list then?		ListDecorator has powerful functions that can help you. ListDecorator is an interface 		which decides how to decorate a list and its list items. We supply 4 implementations of this interface, 		BulletDecorator, NumberDecorator, ImageDecorator and OutlineDecorator.
+</div>
+<br/><pre class='code' id="code28">
+<span class='comments'>		// create a number list.</span>
+		<span class='javaclass'>ListDecorator</span> numberDecorator = <span class='modifier'>new</span> <span class='javaclass'>NumberDecorator</span>(document1);<br/>
+		<span class='javaclass'>List</span> numberList1 = document1.addList(numberDecorator);<br/>
+		<span class='javaclass'>List</span> numberList2 = <span class='modifier'>new</span> <span class='javaclass'>List</span>(document1, numberDecorator);<br/>
+</pre>
+<br/><div class="bodytext">
+		You can implement your own ListDecorator as need, or extend the default four implementations.
+</div>
+<div class="bodytext">
+		You can remove a list from the document, the following two methods are same.
+</div>
+<br/><pre class='code' id="code29">
+		list.remove();<br/>
+		document1.removeList(list);<br/>
+</pre>
+<br/><div class="bodytext">
+		We also provide funtions to manipulate list items.		You can use the following methods to get and set the text content of a item.
+</div>
+<br/><pre class='code' id="code30">
+		<span class='javaclass'>String</span> itemContent = item.getTextContent();<br/>
+		item.setTextContent("new item content");<br/>
+</pre>
+<br/><div class="bodytext">
+		You can get the item index and its owner list.
+</div>
+<br/><pre class='code' id="code31">
+		<span class='basic'>int</span> index = item.getIndex();<br/>
+		<span class='javaclass'>List</span> ownerList = item.getOwnerList();<br/>
+</pre>
+<br/><div class="bodytext">
+		When you want to remove an item, besides List.removeItem(ListItem), you can use the following method directly.
+</div>
+<br/><pre class='code' id="code32">
+		item.remove();<br/>
+</pre>
+<br/><div class="bodytext">
+		With the help of the following code, the start number of list item can be set.
+</div>
+<br/><pre class='code' id="code33">
+		item.setStartNumber(3);<br/>
+</pre>
+<br/><div class="bodytext">
+		Since list item is also a ListContainer, you can add sub list to an item.
+</div>
+<br/><pre class='code' id="code34">
+		item.addList();<br/>
+</pre>
+<br/><div class="contenttitle" id="Header and Footer">
+<br/>
+<a href="#Header and Footer" >Header and Footer</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.4.5, we support high level APIs for footer and header.		You can use the following code to get the header and footer. 
+</div>
+<br/><pre class='code' id="code35">
+		<span class='javaclass'>Header</span> docHeader = doc.getHeader();<br/>
+		<span class='javaclass'>Footer</span> footer = doc.getFooter();<br/>
+</pre>
+<br/><div class="bodytext">
+	    In order to add contents to header and arrange these contents in a good layout,		I suggest you to use table.		It's easy to add a none-border table to header.		Below codes show how to add a table with 2 columns and 1 row to header, and then 		add some text content to the left cell, and add an image to the right cell.
+</div>
+<br/><pre class='code' id="code36">
+		<span class='javaclass'>Table</span> table = docHeader.addTable(1,2);<br/>
+		table.getCellByPosition(0, 0).setStringValue("header table cell");<br/>
+		<span class='javaclass'>Cell</span> cell = table.getCellByPosition(1, 0);<br/>
+		<span class='javaclass'>Image</span> image1 = cell.setImage(<span class='modifier'>new</span> <span class='javaclass'>URI</span>("file:/c:/image.jpg"));<br/>
+</pre>
+<br/><div class="bodytext">
+	    Below codes show how to add a table with 1 column and 1 row to footer, and then 		add some text content to the cell.		You can easily set the style of these text content. The codes describe how to put		the text content in the center, set the font of the text content, 		and set the background of the cell.
+</div>
+<br/><pre class='code' id="code37">
+		table = footer.addTable(1, 1);<br/>
+		<span class='javaclass'>Cell</span> cellByPosition = table.getCellByPosition(0, 0);<br/>
+		cellByPosition.setStringValue("footer table cell");<br/>
+		cellByPosition.setHorizontalAlignment(<span class='javaclass'>HorizontalAlignmentType</span>.<span class='javaclass'>CENTER</span>);<br/>
+		<span class='javaclass'>Font</span> myFont = <span class='modifier'>new</span> <span class='javaclass'>Font</span>("<span class='javaclass'>Arial</span>", <span class='javaclass'>StyleTypeDefinitions</span>.<span class='javaclass'>FontStyle</span>.<span class='javaclass'>ITALIC</span>, 12, <span class='javaclass'>Color</span>.<span class='javaclass'>BLUE</span>);<br/>
+		cellByPosition.setFont(myFont);<br/>
+		cellByPosition.setCellBackgroundColor(<span class='javaclass'>Color</span>.<span class='javaclass'>YELLOW</span>);<br/>
+</pre>
+<br/><div class="contenttitle" id="Text Box">
+<br/>
+<a href="#Text Box" >Text Box</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.5, we support high level APIs for text box.		Below codes will create a text box and add it to the text 		document with a paragraph as the anchor position.		The FrameRectangle specifies an area and the position of this text box.
+</div>
+<br/><pre class='code' id="code38">
+		<span class='javaclass'>Paragraph</span> paragraph = doc.getParagraphByIndex(0, <span class='basic'>false</span>);<br/>
+		<span class='javaclass'>Textbox</span> box = paragraph.addTextbox(<span class='modifier'>new</span> <span class='javaclass'>FrameRectangle</span>(1,1,2,1,<span class='javaclass'>SupportedLinearMeasure</span>.<span class='javaclass'>IN</span>));<br/>
+</pre>
+<br/><div class="bodytext">
+		Below codes is to set the text content and name of this text box; 
+</div>
+<br/><pre class='code' id="code39">
+		box.setTextContent("this is a text box");<br/>
+		box.setName("<span class='javaclass'>MyTextbox</span>");<br/>
+</pre>
+<br/><div class="bodytext">
+		Below codes is to get a text box by name or get an iterator of text box contained by a paragraph. 
+</div>
+<br/><pre class='code' id="code40">
+		<span class='javaclass'>Textbox</span> myBox=paragraph.getTextboxByName("<span class='javaclass'>MyTextbox</span>");<br/>
+		<span class='javaclass'>Iterator</span>&lt;<span class='javaclass'>Textbox</span>&gt; boxIter = paragraph.getTextboxIterator();<br/>
+</pre>
+<br/><div class="bodytext">
+		Below code is to set the background color of a text box. 
+</div>
+<br/><pre class='code' id="code41">
+		myBox.setBackgroundColor(<span class='javaclass'>Color</span>.<span class='javaclass'>BLUE</span>);<br/>
+</pre>
+<br/><div class="bodytext">
+		Below code is to remove a text box; 
+</div>
+<br/><pre class='code' id="code42">
+		paragraph.removeTextbox(myBox);<br/>
+</pre>
+<br/><div class="contenttitle" id="Image">
+<br/>
+<a href="#Image" >Image</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.5.5, we support high level APIs for images.		Below codes will create a image and add it to a document with a paragraph as the anchor position.
+</div>
+<br/><pre class='code' id="code43">
+		<span class='javaclass'>Paragraph</span> para = doc.getParagraphByIndex(1, <span class='basic'>false</span>);<br/>
+		<span class='javaclass'>Image</span> image = <span class='javaclass'>Image</span>.newImage(para, <span class='modifier'>new</span> <span class='javaclass'>URI</span>("file:/c:/image.jpg"));<br/>
+</pre>
+<br/><div class="bodytext">
+		Below codes can set the properties of image, and even the vertical (or horizontal) alignment.
+</div>
+<br/><pre class='code' id="code44">
+		image.setTitle("<span class='javaclass'>Image</span> title");<br/>
+		image.setDescription("<span class='javaclass'>This</span> is a sample image");<br/>
+		image.setVerticalPosition(<span class='javaclass'>FrameVerticalPosition</span>.<span class='javaclass'>TOP</span>);<br/>
+		image.setHorizontalPosition(<span class='javaclass'>FrameHorizontalPosition</span>.<span class='javaclass'>RIGHT</span>);<br/>
+</pre>
+<br/><div class="bodytext">
+		If you want to add a hyperlink to your image, you can use the following code:
+</div>
+<br/><pre class='code' id="code45">
+		image.setHyperlink(<span class='modifier'>new</span> <span class='javaclass'>URI</span>("http://odftoolkit.org"));<br/>
+</pre>
+<br/><div class="bodytext">
+		If you want to handle more style settings of image, you can try FrameStyleHandler.
+</div>
+<br/><pre class='code' id="code46">
+		<span class='javaclass'>FrameStyleHandler</span> handler = image.getStyleHandler();<br/>
+		handler.setAchorType(<span class='javaclass'>AnchorType</span>.AS_CHARACTER);<br/>
+		handler.setHorizontalRelative(<span class='javaclass'>HorizontalRelative</span>.<span class='javaclass'>PAGE</span>);<br/>
+		handler.setVerticalRelative(<span class='javaclass'>VerticalRelative</span>.<span class='javaclass'>PAGE</span>);<br/>
+</pre>
+<br/><div class="contenttitle" id="Span">
+<br/>
+<a href="#Span" >Span</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.5.5, we support high level APIs for span.		You can create a span based on a text selection.		With span, you can set a different style to this small unit.
+</div>
+<br/><pre class='code' id="code47">
+		<span class='javaclass'>TextNavigation</span> navigation = <span class='modifier'>new</span> <span class='javaclass'>TextNavigation</span>("test", doc);<br/>
+		<span class='javaclass'>TextSelection</span> sel = (<span class='javaclass'>TextSelection</span>) navigation.nextSelection();<br/>
+		<span class='javaclass'>Span</span> span = <span class='javaclass'>Span</span>.newSpan(sel);<br/>
+		<span class='javaclass'>DefaultStyleHandler</span> styleHandler = span.getStyleHandler();<br/>
+		<span class='javaclass'>Font</span> font1Base = <span class='modifier'>new</span> <span class='javaclass'>Font</span>("<span class='javaclass'>Arial</span>", <span class='javaclass'>FontStyle</span>.<span class='javaclass'>ITALIC</span>, 10, <span class='javaclass'>Color</span>.<span class='javaclass'>BLACK</span>, <span class='javaclass'>TextLinePosition</span>.<span class='javaclass'>THROUGH</span>);<br/>
+		styleHandler.getTextPropertiesForWrite().setFont(font1Base);<br/>
+</pre>
+<br/><div class="bodytext">
+The following code is to apply a hyperlink to this span.
+</div>
+<br/><pre class='code' id="code48">
+		span.applyHyperlink(<span class='modifier'>new</span> <span class='javaclass'>URI</span>("ftp://ftpserver"));<br/>
+</pre>
+<br/><div class="contenttitle" id="Page Break">
+<br/>
+<a href="#Page Break" >Page Break</a>
+<hr/>
+</div>
+<div class="bodytext">
+	    From version 0.6.5, we support page break feature.		You can add page break at the end of text document or after a reference paragraph.		It may help you well format your document.
+</div>
+<br/><pre class='code' id="code49">
+		<span class='javaclass'>TextDocument</span> newDoc = <span class='javaclass'>TextDocument</span>.newTextDocument();<br/>
+<span class='comments'>		//add a page break at the end of document.</span>
+		newDoc.addPageBreak();<br/>
+<span class='comments'>		//add a page break at the end of reference paragraph.</span>
+		<span class='javaclass'>Paragraph</span> refParagraph = newDoc.addParagraph("before page break");<br/>
+		newDoc.addPageBreak(refParagraph);<br/>
+</pre>
+<br/><br/> 
+<div class="navigation">
+ <ul>
+  <li><a href="Manipulate Metadata.html">previous</a></li>
+  <li><a href="Presentation Document.html">next</a></li>
+  <li><a href="#">top</a></li>
+ </ul>
+</div>
+<br/>
+</div>
+<div id="footer" class="smallgraytext"> <a href="../index.html">Home</a> | <a href="../index.html">About Us</a> | <a href="mailto:Daisy@odftoolkit.org">Contact Us</a> </div>
+</div>
+</div>
+</body>
+</html>

Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.html
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.html?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.html (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.html Tue Sep  6 02:09:27 2011
@@ -0,0 +1,84 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>TextExtractor</title>
+ <link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />
+<script type="text/javascript">
+
+var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22366020-1']);
+_gaq.push(['_trackPageview']);
+
+(function() {
+var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+})();
+
+</script>
+</head>
+<body>
+<div id="page" align="center">
+<div id="content" style="width:920px" class="contentpanel">
+<div id="topheader">
+<div class="topright"> </div>
+</div>
+<div id="menu">
+<div align="left" class="smallwhitetext"> <a href="../index.html" class="home"> </a> <a href="../downloads.html" class="download"></a> <a href="../documents.html" class="document"></a> <a href="../demo/index.html" class="sample"> </a> </div>
+</div>
+<div id="subcontent" align ="left">
+<div align="left" class="titletext"> <span >
+<a href="../documents.html">Documents</a> > 
+<a href="index.html">Cookbook</a> ><a href="TextExtractor.html">TextExtractor</a>
+</span>
+</div>
+<div class="navigation">
+ <ul>
+  <li><a href="Manipulate TextSearch.html">previous</a></li>
+  <li><a href="Fields.html">next</a></li>
+ </ul>
+</div>
+<br/>
+<div class="contenttitle" id="Get Text">
+<br/>
+<a href="#Get Text" >Get Text</a>
+<hr/>
+</div>
+<div class="bodytext">
+		TextExtractor provides a method to get the display text of a single element. EditableTextExtractor is a sub class of TextExtractor. 		It provides a method to return all the text that the user can typically edit in a document, including text in cotent.xml, 		header and footer in styles.xml, meta data in meta.xml. 
+</div>
+<div class="bodytext">
+		The following codes use EditableTextExtractor as an example, the text of the document "textExtractor.odt" is extracted for user.		For TextExtractor, it can't extract the text from a TextDocument.
+</div>
+<br/><pre class='code' id="code0">
+		<span class='javaclass'>TextDocument</span> textdoc=(<span class='javaclass'>TextDocument</span>)<span class='javaclass'>TextDocument</span>.loadDocument("textExtractor.odt");<br/>
+		<span class='javaclass'>EditableTextExtractor</span> extractorD = <span class='javaclass'>EditableTextExtractor</span>.newOdfEditableTextExtractor(textdoc);<br/>
+		<span class='javaclass'>String</span> output = extractorD.getText();<br/>
+		<span class='javaclass'>System</span>.out.println(output);<br/>
+</pre>
+<br/><div class="bodytext">
+		In the following codes, the whole document content will be returned.		This operation is the same in TextExtractor.
+</div>
+<br/><pre class='code' id="code1">
+		<span class='javaclass'>OdfElement</span> elem=textdoc.getContentRoot();<br/>
+		<span class='javaclass'>EditableTextExtractor</span> extractorE = <span class='javaclass'>EditableTextExtractor</span>.newOdfEditableTextExtractor(elem);<br/>
+		<span class='javaclass'>System</span>.out.println(extractorE.getText());<br/>
+</pre>
+<br/><br/> 
+<div class="navigation">
+ <ul>
+  <li><a href="Manipulate TextSearch.html">previous</a></li>
+  <li><a href="Fields.html">next</a></li>
+  <li><a href="#">top</a></li>
+ </ul>
+</div>
+<br/>
+</div>
+<div id="footer" class="smallgraytext"> <a href="../index.html">Home</a> | <a href="../index.html">About Us</a> | <a href="mailto:Daisy@odftoolkit.org">Contact Us</a> </div>
+</div>
+</div>
+</body>
+</html>

Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/cookbook.css
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/cookbook.css?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/cookbook.css (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/cookbook.css Tue Sep  6 02:09:27 2011
@@ -0,0 +1,226 @@
+body {
+
+  font-family: "Verdana", sans-serif;
+
+  margin-left:20px;
+
+}
+
+hr   {height:2px;border-width:0;color:gray;background-color:black;}   
+
+
+
+.page{
+
+   font-weight: bold
+
+}
+
+
+
+.page a:hover{
+
+	color: #FFF;
+
+    background-color: #FF7F50;
+
+}
+
+.section{
+
+   font-weight: bold
+
+}
+
+.section a:hover{
+
+    color: #FFF;
+
+    background-color: #FF7F50;
+
+}
+
+.subsection{
+
+    font-style: italic; 
+
+}
+
+.subsection a:hover{
+
+  color: #FFF;
+
+  background-color: #FF7F50;
+
+}
+
+.paragraph{
+
+
+
+}
+
+
+
+
+
+div.navigation {
+
+    height: 30px;
+
+
+    border-top: solid #000 1px;
+
+    border-bottom: solid #000 1px;
+
+    background-color: #007CA6;
+
+}
+
+div.navigation ul {
+
+    margin: 0px;
+
+    padding: 0px;
+
+    font-family: Tahoma,sans-serif;
+
+    font-size: 18px;;
+
+    color: #FFF;
+
+    line-height: 30px;
+
+    white-space: nowrap;
+
+	float:right;
+
+}
+
+div.navigation li {
+
+
+
+    list-style-type: none;
+
+    display: inline;
+
+}
+
+div.navigation li a {
+
+    padding: 7px 10px;
+
+    color: #FFF;
+
+}
+
+div.navigation li a:link {
+
+    color: #FFF:
+
+}
+
+
+
+div.navigation li a:hover {
+
+    font-weight: bold;
+
+    color: #FFF;
+
+    background-color: #43C7F4;
+
+}
+
+
+
+
+.pageli{
+
+
+
+}
+
+
+
+.sectionli{
+
+
+
+}
+
+
+
+.subsectionli{
+
+
+
+}
+
+
+
+/* styles for the code block */
+
+.code{
+
+
+
+	margin: 0 ;
+
+	padding: 0 ;
+
+	border: 0 ;
+
+
+
+	background-color: #F8F8FF ;
+
+	text-align: left ;
+
+	float: none ;
+
+	
+
+	vertical-align: baseline ;
+
+	position: static ;
+
+	left: auto ;
+
+	top: auto ;
+
+	right: auto ;
+
+	bottom: auto ;
+
+	height: auto ;
+
+	width: 920px;
+	word-break:break-all;
+white-space:pre-wrap;
+	font-family: "Consolas","Courier New","Verdana";
+
+	font-size:14px;
+
+	
+
+}
+
+.access{ color:blue;}
+
+.modifier{ color:darkred;}
+
+.control{ color:coral;}
+
+.error{ color:red;}
+
+.pkg{ color:deepskyblue; }
+
+.basic{ color:navy;}
+
+.ref{ color:gray;}
+
+.comments{ color:#AA7700;}
+
+.javaclass{ color:green;}

Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext Tue Sep  6 02:09:27 2011
@@ -0,0 +1,262 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />
+<script type="text/javascript">
+
+var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-22366020-1']);
+_gaq.push(['_trackPageview']);
+
+(function() {
+var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+})();
+
+</script>
+</head>
+<body scroll="no">
+<div id="page" align="center">
+<div id="content" style="width:920px" class="contentpanel">
+<div id="topheader">
+<div class="topright"> </div>
+</div>
+<div id="menu">
+<div align="left" class="smallwhitetext"> <a href="../index.html" class="home"> </a> <a href="../downloads.html" class="download"></a> <a href="../documents.html" class="document"></a> <a href="../demo/index.html" class="sample"> </a> </div>
+</div>
+<div id="subcontent" align ="left">
+<div align="left" class="titletext"> <span >
+<a href="../documents.html">Documents</a> > 
+<a href="index.html">Cookbook</a>
+</span>
+</div>
+<div class="contenttitle" id="Text">
+<br/>
+<a href="#Text" >Text</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Text Document.html">Text Document</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Overview">Overview</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Generate TextDocument">Generate TextDocument</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Get TextDocument">Get TextDocument</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Paragraph">Paragraph</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Section">Section</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#List">List</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Header and Footer">Header and Footer</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Text Box">Text Box</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Image">Image</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Span">Span</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Text Document.html#Page Break">Page Break</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Presentation">
+<br/>
+<a href="#Presentation" >Presentation</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Presentation Document.html">Presentation Document</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Presentation Document.html#Create Presentation Document">Create Presentation Document</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Presentation Document.html#Get Presentation Document">Get Presentation Document</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Presentation Document.html#Change Presentation Mode">Change Presentation Mode</a></li>
+  </ul>
+ </li>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Slide.html">Slide</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Add Slide">Add Slide</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Get Slide">Get Slide</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Set/Get Slide Name/Index">Set/Get Slide Name/Index</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Copy Slide">Copy Slide</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Move/Delete Slide">Move/Delete Slide</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Add Text to Slide">Add Text to Slide</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Slide.html#Add Image to Slide">Add Image to Slide</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Table">
+<br/>
+<a href="#Table" >Table</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Table.html">Table</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Table.html#Overview">Overview</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Table.html#Create Table">Create Table</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Table.html#Find Table">Find Table</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Table.html#Delete Table">Delete Table</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Table.html#Set Table">Set Table</a></li>
+  </ul>
+ </li>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Column and Row.html">Column and Row</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Column and Row.html#Get Column/Row">Get Column/Row</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Column and Row.html#Append or Insert Column/Row">Append or Insert Column/Row</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Column and Row.html#Remove Columns/Rows">Remove Columns/Rows</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Column and Row.html#Set Column/Row">Set Column/Row</a></li>
+  </ul>
+ </li>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Cell.html">Cell</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell.html#Get Cell">Get Cell</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell.html#Control Cell Attributes">Control Cell Attributes</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set Cell Value Type">Get&Set Cell Value Type</a></li>
+  <ul>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set boolean type Cell">Get&Set boolean type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set currency type Cell">Get&Set currency type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set date type Cell">Get&Set date type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set float type Cell">Get&Set float type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set percentage type Cell">Get&Set percentage type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Get&Set string type Cell">Get&Set string type Cell</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Deal with the Time Value">Deal with the Time Value</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Cell.html#Something about Display Text">Something about Display Text</a></li>
+  </ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell.html#Set image">Set image</a></li>
+  </ul>
+ </li>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Cell Range.html">Cell Range</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell Range.html#Get CellRange">Get CellRange</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell Range.html#Merge Text Table">Merge Text Table</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell Range.html#Merge Text Column">Merge Text Column</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell Range.html#Merge Text Row">Merge Text Row</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Cell Range.html#Merge SpreadSheet">Merge SpreadSheet</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Chart">
+<br/>
+<a href="#Chart" >Chart</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Charts.html">Charts</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Charts.html#Overview">Overview</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Charts.html#Create charts">Create charts</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Charts.html#Update charts">Update charts</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Charts.html#Get and delete charts">Get and delete charts</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Style">
+<br/>
+<a href="#Style" >Style</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Style Handling.html">Style Handling</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Style Handling.html#Overview">Overview</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Style Handling.html#Font handling">Font handling</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Style Handling.html#Advanced font handling">Advanced font handling</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Style Handling.html#Border handling">Border handling</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Navigation">
+<br/>
+<a href="#Navigation" >Navigation</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html">Manipulate TextSearch</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#TextNavigation">TextNavigation</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#TextSelection">TextSelection</a></li>
+  <ul>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Get Index/Text of TextSelection">Get Index/Text of TextSelection</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Cut String">Cut String</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Paste String">Paste String</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Replace String">Replace String</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Add Reference to String">Add Reference to String</a></li>
+ <li class="bodytext" style="text-indent:100px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#Add Comment">Add Comment</a></li>
+  </ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#FieldSelection">FieldSelection</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate TextSearch.html#TextStyleNavigation">TextStyleNavigation</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="TextExtractor">
+<br/>
+<a href="#TextExtractor" >TextExtractor</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="TextExtractor.html">TextExtractor</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="TextExtractor.html#Get Text">Get Text</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Field">
+<br/>
+<a href="#Field" >Field</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Fields.html">Fields</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Variable Field">Variable Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Condition Field">Condition Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Hidden Field">Hidden Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Cross Reference Field">Cross Reference Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Chapter Field">Chapter Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Title and Subject Field">Title and Subject Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Author Field">Author Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Page Number Field">Page Number Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Page Number Field">Page Number Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Date Field">Date Field</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Fields.html#Time Field">Time Field</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<div class="contenttitle" id="Metadata">
+<br/>
+<a href="#Metadata" >Metadata</a>
+<hr/>
+</div>
+<div class="bodytext">
+<ul>
+ <li class="bodytext" style="font-size:16px"><img src="../images/link.png"></img><a href="Manipulate Metadata.html">Manipulate Metadata</a>
+  <ul>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate Metadata.html#Overview">Overview</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate Metadata.html#Get Meta object">Get Meta object</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate Metadata.html#Access metadata">Access metadata</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate Metadata.html#Access the user defined element">Access the user defined element</a></li>
+ <li class="bodytext" style="text-indent:50px;"><img src="../images/link.png"></img><a href="Manipulate Metadata.html#Access the document statistics">Access the document statistics</a></li>
+  </ul>
+ </li>
+</ul>
+</div>
+<br/>
+</div>
+<div id="footer" class="smallgraytext"> <a href="../index.html">Home</a> | <a href="../index.html">About Us</a> | <a href="mailto:Daisy@odftoolkit.org">Contact Us</a> </div>
+</div>
+</div>
+</body>
+</html>

Added: incubator/odf/site/trunk/content/odftoolkit/simple/document/index.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/index.mdtext?rev=1165478&view=auto
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/index.mdtext (added)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/index.mdtext Tue Sep  6 02:09:27 2011
@@ -0,0 +1,58 @@
+<body>
+	<div id="page" align="center">
+		<div id="content" style="width:920px" class="contentpanel">
+			  <div id="topheader">
+				<div class="topright">
+				</div>	
+				
+		  </div>
+			<div id="menu">
+				<div align="left" class="smallwhitetext">
+					<a href="index.html" class="home"> </a> 
+					<a href="downloads.html" class="download"></a> 
+					<a href="documents.html" class="document"></a> 
+					<a href="demo/index.html" class="sample"> </a>
+			  </div>
+			</div>
+
+			
+			<div id="subcontent">
+				<div align="left" class="titletext">
+					<span>Documents</span>
+			  	</div><br/>
+				<div align="left" class="bodytext">
+				<strong>In this page, documents of Simple API are listed.
+				</strong>
+				</div>
+				<div align="justify">
+				  <p class="contenttitle" >Javadoc</p>
+					<p class="bodytext">
+						Javadoc is a documentation generator for generating API documentation in HTML format from Java source code.
+					</p>
+				  	<p class="bodytext">
+				  		<a href="javadoc/index.html" target="_blank"><img src="images/link.png"></img>Simple ODF API <span id="versionNo">0.6.6</span> Online Version</a><br/>
+						You can download the Javadoc of different versions on the <a href="downloads.html"><img src="images/link.png"></img>Downloads Page</a>.
+				  	</p>
+				  <p class="contenttitle" >Cook Book </p>
+					<p class="bodytext"><a href="cookbook/index.html"><img src="images/link.png"></img>Cookbook</a> provides simple codes to help developers know how to use Simple ODF API.</p>
+				  				
+					
+					<p class="contenttitle" >Article and Paper </p>
+						<p class="bodytext"><a href="http://www.ibm.com/developerworks/lotus/library/symphony-odfdom-pt1/index.html"><img src="images/link.png"></img>ODFDOM for Java: Simplifying programmatic control of documents and their data, Part 1</a></p>
+						<p class="bodytext"><a href="http://www.ibm.com/developerworks/lotus/library/symphony-odfdom-pt2/index.html"><img src="images/link.png"></img>ODFDOM for Java: Simplifying programmatic control of documents and their data, Part 2</a></p>
+						<p class="bodytext"><a href="http://www.ibm.com/developerworks/lotus/library/symphony-odfdom-pt3/index.html"><img src="images/link.png"></img>ODFDOM for Java: Simplifying programmatic control of documents and their data, Part 3</a></p>
+						<p class="bodytext"><a href="http://www.ooocon.org/index.php/ooocon/2010/paper/view/264/164"><img src="images/link.png"></img>Open Document Processing with ODFDOM in an insurance solution</a></p>
+						<p class="bodytext"><a href="http://conference.services.openoffice.org/index.php/ooocon/2009/paper/viewFile/82/44"><img src="images/link.png"></img>ODF Template Engine -- An easy document generation tool built with ODFDOM
+</a></p>
+
+			    </div>
+			</div>
+			<div id="footer" class="smallgraytext">
+				<a href="index.html">Home</a> | <a href="#">About Us</a> | <a href="mailto:Devin@odftoolkit.org">Contact Us</a>
+				
+			</div>
+			<div class="clear"></div>
+	  </div>
+	</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message