incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r795016 - /websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html
Date Tue, 30 Aug 2011 08:58:39 GMT
Author: buildbot
Date: Tue Aug 30 08:58:38 2011
New Revision: 795016

Log:
Staging update by buildbot

Modified:
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/gettingstartguide.html Tue
Aug 30 08:58:38 2011
@@ -78,25 +78,9 @@
   <div id="contenta">
   
     
-    <p>Title:Getting Start Guide
-Notice:    Licensed to the Apache Software Foundation (ASF) under one
-           or more contributor license agreements.  See the NOTICE file
-           distributed with this work for additional information
-           regarding copyright ownership.  The ASF licenses this file
-           to you under the Apache License, Version 2.0 (the
-           "License"); you may not use this file except in compliance
-           with the License.  You may obtain a copy of the License at
-           .
-             http://www.apache.org/licenses/LICENSE-2.0
-           .
-           Unless required by applicable law or agreed to in writing,
-           software distributed under the License is distributed on an
-           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-           KIND, either express or implied.  See the License for the
-           specific language governing permissions and limitations
-           under the License.</p>
+    <h2 id="getting-start-guide">Getting Start Guide</h2>
 <p>This start guide shows how to use the Simple ODF API to create a text document with
image, paragraph, list and table in OpenDocument format (ODF). In about 40 lines of code,
you will be able to produce an OpenDocument Format text document named HelloWorld.odt that
looks like this:</p>
-<p><img alt="demo file" src="images/helloworld.png" /></p>
+<p><img alt="demo file" src="helloworld.png" /></p>
 <p><strong>Prerequisites</strong></p>
 <p>Simple ODF is written in Java, so you will need to have Java 1.5 or above installed
on your system. Make sure you download the SDK (software development kit), not just the runtime
version of Java.</p>
 <p>In this tutorial, you can build and run the application from the command line or
IDE, such as Eclipse. Anyway, you need to download the following three jars, store them in
the "lib" directory and add them into the classpatch.</p>
@@ -106,11 +90,12 @@ Notice:    Licensed to the Apache Softwa
 <li>The Apache Xerces 2.9.1 or higher version (download from <a href="http://xerces.apache.org/mirrors.cgi">Apache
     Xerces</a> web site).</li>
 </ol>
-<p>In addition, you need to download <a href="http://simple.odftoolkit.org/helloworld.zip">the
resource file</a> of this demo.</p>
+<p>In addition, you need to download <a href="helloworld.zip">the resource file</a>
of this demo.</p>
 <p><strong>Code</strong></p>
 <p>We write all of the code needed to create the document in the HelloWorld class.
For simplicity, the code is wrapped in main method directly, package declaration is omitted
and hard code is also included in this program. </p>
-<p>import java.net.URI;</p>
-<div class="codehilite"><pre><span class="nb">import</span> <span
class="n">org</span><span class="o">.</span><span class="n">odftoolkit</span><span
class="o">.</span><span class="n">simple</span><span class="o">.</span><span
class="n">TextDocument</span><span class="p">;</span>
+<div class="codehilite"><pre><span class="nb">import</span> <span
class="n">java</span><span class="o">.</span><span class="n">net</span><span
class="o">.</span><span class="n">URI</span><span class="p">;</span>
+
+<span class="nb">import</span> <span class="n">org</span><span
class="o">.</span><span class="n">odftoolkit</span><span class="o">.</span><span
class="n">simple</span><span class="o">.</span><span class="n">TextDocument</span><span
class="p">;</span>
 <span class="nb">import</span> <span class="n">org</span><span
class="o">.</span><span class="n">odftoolkit</span><span class="o">.</span><span
class="n">simple</span><span class="o">.</span><span class="n">table</span><span
class="o">.</span><span class="n">Cell</span><span class="p">;</span>
 <span class="nb">import</span> <span class="n">org</span><span
class="o">.</span><span class="n">odftoolkit</span><span class="o">.</span><span
class="n">simple</span><span class="o">.</span><span class="n">table</span><span
class="o">.</span><span class="n">Table</span><span class="p">;</span>
 <span class="nb">import</span> <span class="n">org</span><span
class="o">.</span><span class="n">odftoolkit</span><span class="o">.</span><span
class="n">simple</span><span class="o">.</span><span class="n">text</span><span
class="o">.</span><span class="n">list</span><span class="o">.</span><span
class="n">List</span><span class="p">;</span>
@@ -148,7 +133,7 @@ Notice:    Licensed to the Apache Softwa
 
 
 <p>The TextDocument class has these convenient methods: </p>
-<div class="codehilite"><pre><span class="sr">//</span> <span
class="n">Creates</span> <span class="n">a</span> <span class="k">new</span>
<span class="n">text</span> <span class="n">document</span> <span
class="n">that</span> <span class="n">contains</span> <span class="n">an</span>
<span class="n">empty</span> <span class="n">paragraph</span><span
class="o">.</span>
+<div class="codehilite"><pre>    <span class="sr">//</span> <span
class="n">Creates</span> <span class="n">a</span> <span class="k">new</span>
<span class="n">text</span> <span class="n">document</span> <span
class="n">that</span> <span class="n">contains</span> <span class="n">an</span>
<span class="n">empty</span> <span class="n">paragraph</span><span
class="o">.</span>
     <span class="n">TextDocument</span><span class="o">.</span><span
class="n">newTextDocument</span><span class="p">();</span>
     <span class="sr">//</span> <span class="n">Puts</span> <span
class="n">the</span> <span class="n">image</span> <span class="n">at</span>
<span class="n">the</span> <span class="n">given</span> <span class="n">location</span>
<span class="n">at</span> <span class="n">the</span> <span class="n">end</span>
<span class="n">of</span> <span class="n">the</span> <span class="n">document</span><span
class="o">.</span>
     <span class="n">TextDocument</span><span class="o">.</span><span
class="n">newImage</span><span class="p">(</span><span class="n">URI</span>
<span class="n">location</span><span class="p">)</span>
@@ -171,7 +156,7 @@ Notice:    Licensed to the Apache Softwa
 
 
 <p><strong>Getting the Files</strong></p>
-<p>You can download the code and resources of this demo from <a href="http://simple.odftoolkit.org/helloworld.zip">here</a>.</p>
+<p>You can download the code and resources of this demo from <a href="helloworld.zip">here</a>.</p>
   </div>
 
   <div id="footera">



Mime
View raw message