incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r803783 - /websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/index.html
Date Thu, 02 Feb 2012 08:44:33 GMT
Author: buildbot
Date: Thu Feb  2 08:44:33 2012
New Revision: 803783

Log:
Staging update by buildbot for odftoolkit

Modified:
    websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/index.html

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/index.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/index.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/index.html Thu Feb  2 08:44:33
2012
@@ -83,6 +83,18 @@
     <p>ODFDOM is a free OpenDocument Format (ODF) library. Its purpose is to provide
an easy common way to create, access and manipulate ODF files, without requiring detailed
knowledge of the ODF specification. It is designed to provide the ODF developer community
with an easy lightwork programming API portable to any object-oriented language. </p>
 <p>The current reference implementation is written in Java.</p>
 <p>To learn more about the project's architecture, refer to the <a href="ProjectOverview.html">project
overview</a> and the <a href="Layers.html">ODFDOM Layers</a> section.</p>
+<h2 id="quickstart">Quickstart</h2>
+<p>Put the odfdom.jar file in your classpath. You will need <a href="http://xml.apache.org/dist/xerces-j/">Apache
Xerces-J</a> as XML parser and DOM implementation as well. Start with the following
sample code to create a simple text document.  <br />
+</p>
+<div class="codehilite"><pre><span class="sr">//</span> <span
class="n">Create</span> <span class="n">a</span> <span class="n">text</span>
<span class="n">document</span> <span class="n">from</span> <span
class="n">a</span> <span class="n">standard</span> <span class="n">template</span>
<span class="p">(</span><span class="n">empty</span> <span class="n">documents</span>
<span class="n">within</span> <span class="n">the</span> <span
class="n">JAR</span><span class="p">)</span>  
+<span class="n">OdfTextDocument</span> <span class="n">odt</span>
<span class="o">=</span> <span class="n">OdfTextDocument</span><span
class="o">.</span><span class="n">newTextDocument</span><span class="p">();</span>
 
+<span class="sr">//</span> <span class="n">Append</span> <span
class="n">text</span> <span class="n">to</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">odt</span><span class="o">.</span><span class="n">addText</span><span
class="p">(</span><span class="s">&quot;This is my very first ODF test&quot;</span><span
class="p">);</span>  
+<span class="sr">//</span> <span class="n">Save</span> <span class="n">document</span>
 
+<span class="n">odt</span><span class="o">.</span><span class="n">save</span><span
class="p">(</span><span class="s">&quot;MyFilename.odt&quot;</span><span
class="p">);</span>
+</pre></div>
+
+
 <h2 id="the-earlier-release">The Earlier Release</h2>
 <p><strong>ODFDOM 0.8.7</strong></p>
 <p>ODFDOM 0.8.7 was on Feb 16th 2011. Major enhancements are coming with this version:
    <br />
@@ -109,24 +121,12 @@
 </li>
 </ul>
 <p>For information on working with the source code, please refer to <a href="Development.html">the
development section</a>. </p>
-<h2 id="quickstart">Quickstart</h2>
-<p>Put the odfdom.jar file in your classpath. You will need <a href="http://xml.apache.org/dist/xerces-j/">Apache
Xerces-J</a> as XML parser and DOM implementation as well. Start with the following
sample code to create a simple text document.  <br />
-</p>
-<div class="codehilite"><pre><span class="sr">//</span> <span
class="n">Create</span> <span class="n">a</span> <span class="n">text</span>
<span class="n">document</span> <span class="n">from</span> <span
class="n">a</span> <span class="n">standard</span> <span class="n">template</span>
<span class="p">(</span><span class="n">empty</span> <span class="n">documents</span>
<span class="n">within</span> <span class="n">the</span> <span
class="n">JAR</span><span class="p">)</span>  
-<span class="n">OdfTextDocument</span> <span class="n">odt</span>
<span class="o">=</span> <span class="n">OdfTextDocument</span><span
class="o">.</span><span class="n">newTextDocument</span><span class="p">();</span>
 
-<span class="sr">//</span> <span class="n">Append</span> <span
class="n">text</span> <span class="n">to</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">odt</span><span class="o">.</span><span class="n">addText</span><span
class="p">(</span><span class="s">&quot;This is my very first ODF test&quot;</span><span
class="p">);</span>  
-<span class="sr">//</span> <span class="n">Save</span> <span class="n">document</span>
 
-<span class="n">odt</span><span class="o">.</span><span class="n">save</span><span
class="p">(</span><span class="s">&quot;MyFilename.odt&quot;</span><span
class="p">);</span>
-</pre></div>
-
-
 <h2 id="documentation">Documentation</h2>
 <p>A good starting point is reading <a href="ProjectOverview.html">the project
overview</a> and <a href="Layers.html">the ODFDOM Layers</a> will help you
to get an overview over the ODFDOM package structure. </p>
 <p>Javadocs are <a href="http://odfdom.odftoolkit.org/0.8.7/odfdom/apidocs/">viewable
online</a> or <a href="https://oss.sonatype.org/content/groups/public/org/odftoolkit/odfdom-java/">downloadable
as bundle</a> from the official Maven repository.</p>
 <p>There are <a href="http://www.langintro.com/odfdom_tutorials/">David's ODFDOM
tutorials</a>. You'll find an introduction as well as sample code for creating text
and spreadsheet documents. (Note: The tutorials might not yet be adapted to the latest version).</p>
 <p>When meeting with questions, check if <a href="FrequentQuestions.html">FAQs</a>
can help you.</p>
-<p><strong>How to Participate</strong></p>
+<h2 id="how-to-participate">How to Participate</h2>
 <p>There are many ways to participate and we're always looking for contributors. Just
on the Apache ODF Toolkit Project and afterwards watch this project. Then you may want to
start with reading and posting on the <a href="mailto:odf-users@incubator.apache.org">mailing
lists</a> or report bugs or write documentation.</p>
 <p>If you're a developer, just dive into <a href="Development.html">the development
section</a>. Here you find information on where to access the source code and how to
set up a build environment.</p>
 <p>You can contact us by IRC "<a href="irc://irc.freenode.org/odfdom">irc://irc.freenode.org/odfdom</a>".</p>



Mime
View raw message