incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1165954 - /incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/
Date Wed, 07 Sep 2011 01:49:36 GMT
Author: devinhan
Date: Wed Sep  7 01:49:35 2011
New Revision: 1165954

URL: http://svn.apache.org/viewvc?rev=1165954&view=rev
Log:
update cookbook

Modified:
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell Range.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Charts.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Column and Row.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Fields.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate Metadata.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate TextSearch.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Presentation Document.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Slide.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Style Handling.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.mdtext
    incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell Range.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell%20Range.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell Range.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell Range.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Get CellRange" >Get CellRange</a></strong>
-<hr/>
 <div class="bodytext">
 You can get cell range by providing start and end index of the column and row,or just provide start and end address of the cell(if you are using the spreadsheet.)
 </div>
@@ -16,7 +15,6 @@ You can get cell range by providing star
 	    <span class='javaclass'>CellRange</span> cellRangeAdd = table.getCellRangeByPosition("$E1","$E6");<br/>
 </pre>
 <br/><strong><a href="#Merge Text Table" >Merge Text Table</a></strong>
-<hr/>
 <div class="bodytext">
 The code below merges all of the selected cells into one:
 </div>
@@ -26,7 +24,6 @@ The code below merges all of the selecte
 	    cellRange.merge();<br/>
 </pre>
 <br/><strong><a href="#Merge Text Column" >Merge Text Column</a></strong>
-<hr/>
 <div class="bodytext">
 The code below shows how to merge the cells of the first column into one :
 </div>
@@ -36,7 +33,6 @@ The code below shows how to merge the ce
 	    	firstColumn.merge();<br/>
 </pre>
 <br/><strong><a href="#Merge Text Row" >Merge Text Row</a></strong>
-<hr/>
 <div class="bodytext">
 The code below shows how to merge the cells of the first 2 rows into one :
 </div>
@@ -47,7 +43,6 @@ The code below shows how to merge the ce
     	        firstTwoRow.merge();<br/>
 </pre>
 <br/><strong><a href="#Merge SpreadSheet" >Merge SpreadSheet</a></strong>
-<hr/>
 <div class="bodytext">
 Merge a spreadsheet's cell is the same as text document.Especially,when getting the cell range of spreadsheet,you can use special address instead of index.
 </div>
@@ -65,3 +60,5 @@ Merge a spreadsheet's cell is the same a
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Cell.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Get Cell" >Get Cell</a></strong>
-<hr/>
 <div class="bodytext">
 If you want to get the specified cell in a table,you can use the getCellByPosition method of Table.
 </div>
@@ -45,7 +44,6 @@ The code below shows how you can do that
 	 <span class='javaclass'>Column</span> column1=cell.getTableColumn();<br/>
 </pre>
 <br/><strong><a href="#Control Cell Attributes" >Control Cell Attributes</a></strong>
-<hr/>
 <div class="bodytext">
 Use the getStyleName() method you can get the style name of the cell.
 </div>
@@ -141,7 +139,6 @@ RemoveContent remove all of the cell whi
 	   cell.removeTextContent();<br/>
 </pre>
 <br/><strong><a href="#Get&Set Cell Value Type" >Get&Set Cell Value Type</a></strong>
-<hr/>
 <div class="bodytext">
 	 The cell value can have different types,for the setValueType method:	 the parameter can be 	 <ul><li>"boolean"</li>	 <li>"currency"</li>	 <li>"date"</li>	 <li>"float"</li>         <li>"percentage"</li>	 <li>"string"</li>	 <li>"time"</li>	 <li>"void"</li>	 </ul>	 If the parameter type is not a valid cell type, an IllegalArgumentException will be thrown.
 </div>
@@ -153,7 +150,6 @@ RemoveContent remove all of the cell whi
 For the following getXXXValue() method:it gets the cell value as xxx type.An IllegalArgumentException will be thrown if the cell type is not xxx.
 </div>
 <a href="#Get&Set boolean type Cell" >Get&Set boolean type Cell</a>
-<hr/>
 <div class="bodytext">
 	For setBooleanValue method:it sets the cell value as a boolean and sets the value type to be boolean.
 </div>
@@ -162,7 +158,6 @@ For the following getXXXValue() method:i
 	   cell.setBooleanValue(booleanValue);<br/>
 </pre>
 <br/><a href="#Get&Set currency type Cell" >Get&Set currency type Cell</a>
-<hr/>
 <div class="bodytext">
 For the following getting methods,if the value type is not "currency", an IllegalArgumentException will be thrown.
 </div>
@@ -181,25 +176,21 @@ You can also set currency value and curr
 	   cell.setCurrencyFormat("$", "$#,##0.00");<br/>
 </pre>
 <br/><a href="#Get&Set date type Cell" >Get&Set date type Cell</a>
-<hr/>
 <br/><pre class='code' id="code18">
 	   <span class='javaclass'>Calendar</span> dateValue=cell.getDateValue(); <br/>
 	   cell.setDateValue(<span class='modifier'>new</span> <span class='javaclass'>GregorianCalendar</span>(2010,5,1));<br/>
 </pre>
 <br/><a href="#Get&Set float type Cell" >Get&Set float type Cell</a>
-<hr/>
 <br/><pre class='code' id="code19">
 	  <span class='basic'>double</span> floatValue=cell.getDoubleValue();  <br/>
 	  cell.setDoubleValue(<span class='modifier'>new</span> <span class='javaclass'>Double</span>(22.99f));<br/>
 </pre>
 <br/><a href="#Get&Set percentage type Cell" >Get&Set percentage type Cell</a>
-<hr/>
 <br/><pre class='code' id="code20">
 	  <span class='basic'>double</span> percentageValue=cell.getPercentageValue();<br/>
 	  cell.setPercentageValue(0.89);<br/>
 </pre>
 <br/><a href="#Get&Set string type Cell" >Get&Set string type Cell</a>
-<hr/>
 <div class="bodytext">
 If the cell type is not string, the display text will be returned.
 </div>
@@ -208,7 +199,6 @@ If the cell type is not string, the disp
 	  cell.setStringValue("simple");<br/>
 </pre>
 <br/><a href="#Deal with the Time Value" >Deal with the Time Value</a>
-<hr/>
 <div class="bodytext">
 If you want to get the string type of time value,you can format it:
 </div>
@@ -218,7 +208,6 @@ If you want to get the string type of ti
           <span class='javaclass'>String</span>  timeString= simpleFormat.format(cell.getTimeValue().getTime());<br/>
 </pre>
 <br/><a href="#Something about Display Text" >Something about Display Text</a>
-<hr/>
 <div class="bodytext">
           Please note the display text in ODF viewer might be different from the value set by this method,	  because the displayed text in ODF viewer is calculated and set by editor. 
 </div>
@@ -227,7 +216,6 @@ If you want to get the string type of ti
 	  cell.setDisplayText(displayText);<br/>
 </pre>
 <br/><strong><a href="#Set image" >Set image</a></strong>
-<hr/>
 <div class="bodytext">
 		From version 0.5.5, we support high level APIs for images.	    You can use following codes to set an image to a cell.
 </div>
@@ -253,3 +241,5 @@ If you want to get the string type of ti
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Charts.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Charts.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Charts.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Charts.mdtext Wed Sep  7 01:49:35 2011
@@ -7,12 +7,10 @@
 </div>
 <br/>
 <strong><a href="#Overview" >Overview</a></strong>
-<hr/>
 <div class="bodytext">
 	    Since 0.6, Simple ODF provides methods to manipulate charts in text document, spreadsheet document and presentation document.		You can create, update and delete charts with these methods.
 </div>
 <strong><a href="#Create charts" >Create charts</a></strong>
-<hr/>
 <div class="bodytext">
 		We all know, a chart is associated with a table. In order to create a chart, you must determine the data set of this chart.		The data set can be a cell range of a table, for example:
 </div>
@@ -73,7 +71,6 @@
 				cellRange, <span class='basic'>true</span>, <span class='basic'>true</span>, <span class='basic'>false</span>, <span class='basic'>null</span>);<br/>
 </pre>
 <br/><strong><a href="#Update charts" >Update charts</a></strong>
-<hr/>
 <div class="bodytext">
 		You can update charts properties, for example, the title, axis title, chart type, whether to apply 3D effect, whether to use legend with API.		For example:
 </div>
@@ -91,7 +88,6 @@
 		chart.setChartData(<span class='modifier'>new</span> <span class='javaclass'>DataSet</span>(<span class='javaclass'>CellRangeAddressList</span>.valueOf("A.A1:A.C4"), spreadsheetDoc, true, true, true));<br/>
 </pre>
 <br/><strong><a href="#Get and delete charts" >Get and delete charts</a></strong>
-<hr/>
 <div class="bodytext">
 		You can get charts by title e.g.
 </div>
@@ -126,3 +122,5 @@
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Column and Row.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Column%20and%20Row.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Column and Row.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Column and Row.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Get Column/Row" >Get Column/Row</a></strong>
-<hr/>
 <div class="bodytext">
 The class Column/Row represents the column/row of table.To get all the columns or rows you can use the getColumnList or getRowList of the table instance.
 </div>
@@ -53,7 +52,6 @@ Yes,you can ask the column/row instance 
 	<span class='javaclass'>Row</span> nextRow=row.getNextRow();<br/>
 </pre>
 <br/><strong><a href="#Append or Insert Column/Row" >Append or Insert Column/Row</a></strong>
-<hr/>
 <div class="bodytext">
 You can add a column to the end or insert many columns before the specified index
 </div>
@@ -75,7 +73,6 @@ What can I do if I want to insert a colu
 	<span class='javaclass'>List</span>&lt;<span class='javaclass'>Row</span>&gt; newRows = table.insertRowsBefore(0, 2);<br/>
 </pre>
 <br/><strong><a href="#Remove Columns/Rows" >Remove Columns/Rows</a></strong>
-<hr/>
 <div class="bodytext">
 You can delete a number of columns/rows by index
 </div>
@@ -90,7 +87,6 @@ The code below remove 1 column whose ind
 	table.removeRowsByIndex(1, 2);<br/>
 </pre>
 <br/><strong><a href="#Set Column/Row" >Set Column/Row</a></strong>
-<hr/>
 <div class="bodytext">
 If you want to change the width of the column or the height of the row,you can use it like this:
 </div>
@@ -109,3 +105,5 @@ If the second parameter of row's setHeig
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Fields.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Fields.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Fields.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Fields.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Variable Field" >Variable Field</a></strong>
-<hr/>
 <div class="bodytext">
 			You can use the following code to create a variable field, and set the value.
 </div>
@@ -25,7 +24,6 @@
 			simpleVariableField.displayField(paragraph.getOdfElement());<br/>
 </pre>
 <br/><strong><a href="#Condition Field" >Condition Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a condition field.
 </div>
@@ -35,7 +33,6 @@
 					"trueText", "falseText");<br/>
 </pre>
 <br/><strong><a href="#Hidden Field" >Hidden Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a hidden field.
 </div>
@@ -44,7 +41,6 @@
 			conditionField = <span class='javaclass'>Fields</span>.createHiddenTextField(newParagraph.getOdfElement(), "test_con_variable == \"true\"", "hiddenText");<br/>
 </pre>
 <br/><strong><a href="#Cross Reference Field" >Cross Reference Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a reference field.
 </div>
@@ -60,7 +56,6 @@
 			referenceField.appendReferenceTo(doc.addParagraph("<span class='javaclass'>User</span> <span class='javaclass'>Reference</span> <span class='javaclass'>Field</span>:").getOdfElement(), <span class='javaclass'>ReferenceField</span>.<span class='javaclass'>DisplayType</span>.<span class='javaclass'>TEXT</span>);<br/>
 </pre>
 <br/><strong><a href="#Chapter Field" >Chapter Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a chapter field.
 </div>
@@ -68,7 +63,6 @@
 			<span class='javaclass'>ChapterField</span> chapterField = <span class='javaclass'>Fields</span>.createChapterField(doc.addParagraph("<span class='javaclass'>Chapter</span>:").getOdfElement());<br/>
 </pre>
 <br/><strong><a href="#Title and Subject Field" >Title and Subject Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a title field.
 </div>
@@ -82,7 +76,6 @@
 			<span class='javaclass'>SubjectField</span> subjectField = <span class='javaclass'>Fields</span>.createSubjectField(doc.addParagraph("<span class='javaclass'>The</span> <span class='javaclass'>Subject</span>:").getOdfElement());<br/>
 </pre>
 <br/><strong><a href="#Author Field" >Author Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a author initial field and a author name field.
 </div>
@@ -91,7 +84,6 @@
 			authorField = <span class='javaclass'>Fields</span>.createAuthorNameField(doc.addParagraph("<span class='javaclass'>Author</span>:").getOdfElement());<br/>
 </pre>
 <br/><strong><a href="#Page Number Field" >Page Number Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a current page number field.
 </div>
@@ -108,7 +100,6 @@
 			numberField = <span class='javaclass'>Fields</span>.createNextPageNumberField(doc.addParagraph("<span class='javaclass'>Next</span> <span class='javaclass'>Page</span> <span class='javaclass'>Number</span>:").getOdfElement());<br/>
 </pre>
 <br/><strong><a href="#Page Number Field" >Page Number Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a page count field, and set the number format.
 </div>
@@ -117,7 +108,6 @@
 			countField.setNumberFormat(<span class='javaclass'>NumberFormat</span>.UPPERCASE_LATIN_ALPHABET);<br/>
 </pre>
 <br/><strong><a href="#Date Field" >Date Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a date field, and set the format.
 </div>
@@ -126,7 +116,6 @@
 			dateField.formatDate("yy-<span class='javaclass'>MM</span>-dd");<br/>
 </pre>
 <br/><strong><a href="#Time Field" >Time Field</a></strong>
-<hr/>
 <div class="bodytext">
 			Following code can be used to create a time field, and set the format.
 </div>
@@ -142,3 +131,5 @@
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate Metadata.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate%20Metadata.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate Metadata.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate Metadata.mdtext Wed Sep  7 01:49:35 2011
@@ -7,12 +7,10 @@
 </div>
 <br/>
 <strong><a href="#Overview" >Overview</a></strong>
-<hr/>
 <div class="bodytext">
      This <a href="">Meta</a> API supports to access and set document metadata. It covers the metadata definitions in <a href="http:docs.oasis-open.org/office/v1.2/cd05/OpenDocument-v1.2-cd05-part1.html#a_4_Metadata">ODF Specification 1.2 Committee Draft05</a>
 </div>
 <strong><a href="#Get Meta object" >Get Meta object</a></strong>
-<hr/>
 <div class="bodytext">
      First you load an ODF text document(for example),then get the meta file DOM and then use the meta DOM to create an instance of     the Meta. Use Meta you can access all the supported elements.
 </div>
@@ -22,7 +20,6 @@
 	<span class='javaclass'>Meta</span> metadata = <span class='modifier'>new</span> <span class='javaclass'>Meta</span>(metadom);<br/>
 </pre>
 <br/><strong><a href="#Access metadata" >Access metadata</a></strong>
-<hr/>
 <div class="bodytext">
      After creating the Meta instance,you can use it to manipulate the metadata:     for example, you can set a value for the &lt;meta:generator&gt; like this:
 </div>
@@ -39,7 +36,6 @@
       metadata.setKeywords(keywords);<br/>
 </pre>
 <br/><strong><a href="#Access the user defined element" >Access the user defined element</a></strong>
-<hr/>
 <div class="bodytext">
     To manipulate the user defined data,you should get the list of their names,and then use the names to     update the data or its datatype or delete the whole user defined data.    you can use the setUserDefinedData(String name, String type, String value) method to update data,if the    name not exists in the document,the method will add the new user defined data.
 </div>
@@ -62,7 +58,6 @@
       <span class='javaclass'>String</span> dataValue=metadata.getUserDefinedDataValue(key);    <br/>
 </pre>
 <br/><strong><a href="#Access the document statistics" >Access the document statistics</a></strong>
-<hr/>
 <div class="bodytext">
     if you want to access the document statistics,you should get a DocumentStatistic instance,    if the return is null,it means that this ODF document doesn't have any document statistic information,you should    create a document statistics object.
 </div>
@@ -83,3 +78,5 @@
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate TextSearch.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate%20TextSearch.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate TextSearch.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Manipulate TextSearch.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#TextNavigation" >TextNavigation</a></strong>
-<hr/>
 <div class="bodytext">
 		First an ODF text document is needed to test the navigation operation. The following codes shows two main functions of TextNavigation		:hasNext() and getCurrentItem(). The first parameter of the TextNavigation constructor is the matched pattern String, and the second is		the navigation scope.
 </div>
@@ -24,9 +23,7 @@
 		}		<br/>
 </pre>
 <br/><strong><a href="#TextSelection" >TextSelection</a></strong>
-<hr/>
 <a href="#Get Index/Text of TextSelection" >Get Index/Text of TextSelection</a>
-<hr/>
 <div class="bodytext">
 		Run the following codes will get the text content of the searched String "good" and the corresponding index in 		the text document.
 </div>
@@ -41,7 +38,6 @@
 		}		<br/>
 </pre>
 <br/><a href="#Cut String" >Cut String</a>
-<hr/>
 <div class="bodytext">
 		To cut some specified string in a text document, you can do like the following codes which		cut off all the String "day" in the document.
 </div>
@@ -53,7 +49,6 @@
 		}		<br/>
 </pre>
 <br/><a href="#Paste String" >Paste String</a>
-<hr/>
 <div class="bodytext">
 		The following codes paste the string "change" both at the front and at the end of the string "good",		by using the function pasteAtFrontOf() and pasteAtEndOf().
 </div>
@@ -74,7 +69,6 @@
 		}<br/>
 </pre>
 <br/><a href="#Replace String" >Replace String</a>
-<hr/>
 <div class="bodytext">
 The following codes replace all the string "replacesource" with the string "replacedest" in the text document.
 </div>
@@ -87,7 +81,6 @@ The following codes replace all the stri
 		}		<br/>
 </pre>
 <br/><a href="#Add Reference to String" >Add Reference to String</a>
-<hr/>
 <div class="bodytext">
 		To add reference for a string, you can do like the following codes. Here 		function addHref is used, the parameter of it is an URL object. The codes add network address		"http:www.ibm.com" to the string "network".
 </div>
@@ -100,7 +93,6 @@ The following codes replace all the stri
 		}<br/>
 </pre>
 <br/><a href="#Add Comment" >Add Comment</a>
-<hr/>
 <div class="bodytext">
 		Adding comment is a useful function when review document, such as spell check and security check. 		You can do it like the following codes. Here, function addComment is used, the first parameter is 		the comment content, the second parameter is the comment author. The codes add a spell suggestion 		before the string "natwork".
 </div>
@@ -112,7 +104,6 @@ The following codes replace all the stri
 		}<br/>
 </pre>
 <br/><strong><a href="#FieldSelection" >FieldSelection</a></strong>
-<hr/>
 <div class="bodytext">
 		Field Selection is a decorator class of TextSelection, which help user replace a text content with field.		Following code can be used to search the document content, and replace with a simple field.
 </div>
@@ -154,7 +145,6 @@ The following codes replace all the stri
 		fieldSelection.replaceWithVariableField(userVariableField);<br/>
 </pre>
 <br/><strong><a href="#TextStyleNavigation" >TextStyleNavigation</a></strong>
-<hr/>
 <div class="bodytext">
 		Similar with TextNavigation, TextStyleNavigation has two main functions: getCurrentItem() and		hasNext() which is shown in the following codes. The input parameter of TextStyleNavigation constructor		is a map of OdfStyleProperty, so here a TreeMap "searchProps" which contains the Style properties is used		to construct the TextStyleNavigation object.
 </div>
@@ -177,3 +167,5 @@ The following codes replace all the stri
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Presentation Document.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Presentation%20Document.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Presentation Document.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Presentation Document.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Create Presentation Document" >Create Presentation Document</a></strong>
-<hr/>
 <div class="bodytext">
 Let's create an empty presentation document first. The following codes generates an empty presentation document with one slide:
 </div>
@@ -22,7 +21,6 @@ We can also create a presentation templa
                     <span class='javaclass'>PresentationDocument</span> documentTmp=<span class='javaclass'>PresentationDocument</span>.newPresentationTemplateDocument();			    <br/>
 </pre>
 <br/><strong><a href="#Get Presentation Document" >Get Presentation Document</a></strong>
-<hr/>
 <div class="bodytext">
 We can get the existing presentation Document by using the loadDocument function like follows: 
 </div>
@@ -41,7 +39,6 @@ Here the slides of the documents "presen
 	            document.appendPresentation(presentationmodel);	       <br/>
 </pre>
 <br/><strong><a href="#Change Presentation Mode" >Change Presentation Mode</a></strong>
-<hr/>
 <div class="bodytext">
 We can switch the mode presentation documents by using the following codes. Here the first one convert the presentation document to a template, and the second one convert the template to a normal presentation document.
 </div>
@@ -57,3 +54,5 @@ We can switch the mode presentation docu
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Slide.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Slide.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Slide.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Slide.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Add Slide" >Add Slide</a></strong>
-<hr/>
 <div class="bodytext">
 If you want to add new slide to the presentation document, you can use the following codes:
 </div>
@@ -19,7 +18,6 @@ Here the SlideLayout is the layout model
 		document.newSlide(1, "new slide", <span class='javaclass'>SlideLayout</span>.TITLE_ONLY);<br/>
 </pre>
 <br/><strong><a href="#Get Slide" >Get Slide</a></strong>
-<hr/>
 <div class="bodytext">
 You can get the slide through the index in the presentation document, like follows:
 </div>
@@ -46,7 +44,6 @@ Also you can get the number of the slide
 		<span class='basic'>int</span> numSlide=document.getSlideCount();<br/>
 </pre>
 <br/><strong><a href="#Set/Get Slide Name/Index" >Set/Get Slide Name/Index</a></strong>
-<hr/>
 <div class="bodytext">
 If you want to set a new name for a slide, you can use the following two methods:
 </div>
@@ -62,7 +59,6 @@ If you want to know the index and the na
 		<span class='javaclass'>String</span> slideName=slide.getSlideName();<br/>
 </pre>
 <br/><strong><a href="#Copy Slide" >Copy Slide</a></strong>
-<hr/>
 <div class="bodytext">
 You can copy a slide in the presentation document from one position to another by using the following codes:
 </div>
@@ -84,7 +80,6 @@ Here the first parameter of copyForeignS
 		 document.copyForeignSlide(1, documentmodel, 2);<br/>
 </pre>
 <br/><strong><a href="#Move/Delete Slide" >Move/Delete Slide</a></strong>
-<hr/>
 <div class="bodytext">
 To move one slide to another position of this presentation position, you can use the following codes:
 </div>
@@ -102,7 +97,6 @@ You can delete the slide either by throu
 		document.deleteSlideByName("third slide");<br/>
 </pre>
 <br/><strong><a href="#Add Text to Slide" >Add Text to Slide</a></strong>
-<hr/>
 <div class="bodytext">
 	  You can set the text content of a slide with text box API since version 0.5.	  Below codes will get the title text box of a slide, set the text content,	  and then get the outline text box, set the list content.
 </div>
@@ -122,7 +116,6 @@ To add some text, you can first get the 
 		note.addText("text notes");<br/>
 </pre>
 <br/><strong><a href="#Add Image to Slide" >Add Image to Slide</a></strong>
-<hr/>
 <div class="bodytext">
 To add an image to slide, you can use below codes to simply add the image to the last slide of the presentation document.
 </div>
@@ -149,3 +142,5 @@ Or you can use following code to add an 
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Style Handling.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Style%20Handling.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Style Handling.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Style Handling.mdtext Wed Sep  7 01:49:35 2011
@@ -7,12 +7,10 @@
 </div>
 <br/>
 <strong><a href="#Overview" >Overview</a></strong>
-<hr/>
 <div class="bodytext">
 Style handling methods provide convenient methods to set font and borders.
 </div>
 <strong><a href="#Font handling" >Font handling</a></strong>
-<hr/>
 <div class="bodytext">
 		The most simple method to define font settings is to create a font		object, and set it to a cell object.		The below code snippet defines a font object to describe "Arial"		italic font with size "12pt" and black color,		and then set it to a cell. The font will work for western characters		by default.
 </div>
@@ -34,7 +32,6 @@ Style handling methods provide convenien
 		<span class='javaclass'>Color</span> fontColor = theFont.getColor();<br/>
 </pre>
 <br/><strong><a href="#Advanced font handling" >Advanced font handling</a></strong>
-<hr/>
 <div class="bodytext">
 		<i>CellStyleHandler</i> can help you to achieve advanced functions.		In Open Document Format, there can be different font settings for		different script types. 		For example, a font setting for English characters and another font		setting for Chinese characters.		If you want to define the font setting for other script types, you		can reference to below codes.		The below code snippet defines a font for Chinese characters.
 </div>
@@ -51,7 +48,6 @@ Style handling methods provide convenien
 		<span class='javaclass'>Font</span> complexFont = styleHandler.getFont(<span class='javaclass'>Document</span>.<span class='javaclass'>ScriptType</span>.<span class='javaclass'>CTL</span>);<br/>
 </pre>
 <br/><strong><a href="#Border handling" >Border handling</a></strong>
-<hr/>
 <div class="bodytext">
 		The most simple way to set border is to create a border object and		then set it to a cell object.		Below code snippet illustrates how to set a cell object with four		borders.
 </div>
@@ -93,3 +89,5 @@ Style handling methods provide convenien
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Table.mdtext Wed Sep  7 01:49:35 2011
@@ -7,12 +7,10 @@
 </div>
 <br/>
 <strong><a href="#Overview" >Overview</a></strong>
-<hr/>
 <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>
 <strong><a href="#Create Table" >Create Table</a></strong>
-<hr/>
 <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>
@@ -51,7 +49,6 @@ You can also fill table with string valu
      	table4.setTableName("stringTable");<br/>
 </pre>
 <br/><strong><a href="#Find Table" >Find Table</a></strong>
-<hr/>
 <div class="bodytext">
 To get all the tables in the document,you can do like this:
 </div>
@@ -65,7 +62,6 @@ If you want to get a single table,you ca
         <span class='javaclass'>Table</span> emptyTable=document.getTableByName("table1");<br/>
 </pre>
 <br/><strong><a href="#Delete Table" >Delete Table</a></strong>
-<hr/>
 <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/>
@@ -73,7 +69,6 @@ If you want to get a single table,you ca
         }<br/>
 </pre>
 <br/><strong><a href="#Set Table" >Set Table</a></strong>
-<hr/>
 <div class="bodytext">
 You can set or update table name,which can be regarded as table identifier in a document.
 </div>
@@ -107,3 +102,5 @@ Each table in the document has a protect
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text%20Document.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/Text Document.mdtext Wed Sep  7 01:49:35 2011
@@ -7,12 +7,10 @@
 </div>
 <br/>
 <strong><a href="#Overview" >Overview</a></strong>
-<hr/>
 <div class="bodytext">
 Till now, we support high level APIs to manipulate text document, paragraph, section, list, footer, header, textbox and span.
 </div>
 <strong><a href="#Generate TextDocument" >Generate TextDocument</a></strong>
-<hr/>
 <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>
@@ -34,7 +32,6 @@ The following codes generates an empty t
 	    <span class='javaclass'>TextDocument</span> documentMedia2=<span class='javaclass'>TextDocument</span>.newTextMasterDocument();<br/>
 </pre>
 <br/><strong><a href="#Get TextDocument" >Get TextDocument</a></strong>
-<hr/>
 <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>
@@ -48,7 +45,6 @@ Also we can change the mode of one text 
 	    document2.changeMode(<span class='javaclass'>OdfMediaType</span>.TEXT_WEB);<br/>
 </pre>
 <br/><strong><a href="#Paragraph" >Paragraph</a></strong>
-<hr/>
 <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>
@@ -108,7 +104,6 @@ The following code is to add a comment a
 		para1.applyHeading(<span class='basic'>true</span>, 3);<br/>
 </pre>
 <br/><strong><a href="#Section" >Section</a></strong>
-<hr/>
 <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>
@@ -150,7 +145,6 @@ The following code is to add a comment a
 		aSection.remove();<br/>
 </pre>
 <br/><strong><a href="#List" >List</a></strong>
-<hr/>
 <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>
@@ -295,7 +289,6 @@ The following code is to add a comment a
 		item.addList();<br/>
 </pre>
 <br/><strong><a href="#Header and Footer" >Header and Footer</a></strong>
-<hr/>
 <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>
@@ -325,7 +318,6 @@ The following code is to add a comment a
 		cellByPosition.setCellBackgroundColor(<span class='javaclass'>Color</span>.<span class='javaclass'>YELLOW</span>);<br/>
 </pre>
 <br/><strong><a href="#Text Box" >Text Box</a></strong>
-<hr/>
 <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>
@@ -360,7 +352,6 @@ The following code is to add a comment a
 		paragraph.removeTextbox(myBox);<br/>
 </pre>
 <br/><strong><a href="#Image" >Image</a></strong>
-<hr/>
 <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>
@@ -393,7 +384,6 @@ The following code is to add a comment a
 		handler.setVerticalRelative(<span class='javaclass'>VerticalRelative</span>.<span class='javaclass'>PAGE</span>);<br/>
 </pre>
 <br/><strong><a href="#Span" >Span</a></strong>
-<hr/>
 <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>
@@ -412,7 +402,6 @@ The following code is to apply a hyperli
 		span.applyHyperlink(<span class='modifier'>new</span> <span class='javaclass'>URI</span>("ftp://ftpserver"));<br/>
 </pre>
 <br/><strong><a href="#Page Break" >Page Break</a></strong>
-<hr/>
 <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>
@@ -432,3 +421,5 @@ The following code is to apply a hyperli
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.mdtext?rev=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/TextExtractor.mdtext Wed Sep  7 01:49:35 2011
@@ -7,7 +7,6 @@
 </div>
 <br/>
 <strong><a href="#Get Text" >Get Text</a></strong>
-<hr/>
 <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>
@@ -36,3 +35,5 @@
   <li><a href="#">top</a></li>
  </ul>
 </div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/>
+<link rel="stylesheet" href="../images/style.css" type="text/css" />

Modified: 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=1165954&r1=1165953&r2=1165954&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/simple/document/cookbook/index.mdtext Wed Sep  7 01:49:35 2011
@@ -1,8 +1,6 @@
 <strong><a href="../index.html">Documents</a></strong> > 
-<strong><a href="index.html">Cookbook</a></strong><strong>    
-
-<a href="#Text" >Text</a></strong>
-<hr/>
+<strong><a href="index.html">Cookbook</a></strong>   
+<strong><a href="#Text" >Text</a></strong>
 <ul>
  <li><a href="Text Document.html">Text Document</a>
   <ul>
@@ -21,7 +19,6 @@
  </li>
 </ul>
 <strong><a href="#Presentation" >Presentation</a></strong>
-<hr/>
 <ul>
  <li><a href="Presentation Document.html">Presentation Document</a>
   <ul>
@@ -43,7 +40,6 @@
  </li>
 </ul>
 <strong><a href="#Table" >Table</a></strong>
-<hr/>
 <ul>
  <li><a href="Table.html">Table</a>
   <ul>
@@ -91,7 +87,6 @@
  </li>
 </ul>
 <strong><a href="#Chart" >Chart</a></strong>
-<hr/>
 <ul>
  <li><a href="Charts.html">Charts</a>
   <ul>
@@ -103,7 +98,6 @@
  </li>
 </ul>
 <strong><a href="#Style" >Style</a></strong>
-<hr/>
 <ul>
  <li><a href="Style Handling.html">Style Handling</a>
   <ul>
@@ -115,7 +109,6 @@
  </li>
 </ul>
 <strong><a href="#Navigation" >Navigation</a></strong>
-<hr/>
 <ul>
  <li><a href="Manipulate TextSearch.html">Manipulate TextSearch</a>
   <ul>
@@ -135,7 +128,6 @@
  </li>
 </ul>
 <strong><a href="#TextExtractor" >TextExtractor</a></strong>
-<hr/>
 <ul>
  <li><a href="TextExtractor.html">TextExtractor</a>
   <ul>
@@ -144,7 +136,6 @@
  </li>
 </ul>
 <strong><a href="#Field" >Field</a></strong>
-<hr/>
 <ul>
  <li><a href="Fields.html">Fields</a>
   <ul>
@@ -163,7 +154,6 @@
  </li>
 </ul>
 <strong><a href="#Metadata" >Metadata</a></strong>
-<hr/>
 <ul>
  <li><a href="Manipulate Metadata.html">Manipulate Metadata</a>
   <ul>



Mime
View raw message