incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r851994 - in /websites/staging/odftoolkit/trunk/content: ./ odftoolkit/simple/document/cookbook/Forms.html odftoolkit/simple/document/cookbook/Text Document.html
Date Tue, 26 Feb 2013 07:15:23 GMT
Author: buildbot
Date: Tue Feb 26 07:15:22 2013
New Revision: 851994

Log:
Staging update by buildbot for odftoolkit

Modified:
    websites/staging/odftoolkit/trunk/content/   (props changed)
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Forms.html
    websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html

Propchange: websites/staging/odftoolkit/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Feb 26 07:15:22 2013
@@ -1 +1 @@
-1449451
+1450055

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Forms.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Forms.html
(original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Forms.html
Tue Feb 26 07:15:22 2013
@@ -372,7 +372,8 @@
   <li><a href="Manipulate Metadata.html">next</a></li>
   <li><a href="#">top</a></li>
  </ul>
-</div></p>
+</div>
+<link type="text/css" rel="stylesheet" href="cookbook.css"/></p>
   </div>
 
   <div id="footera">

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Text
Document.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html
(original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/simple/document/cookbook/Text Document.html
Tue Feb 26 07:15:22 2013
@@ -149,16 +149,12 @@ Also we can change the mode of one text 
 <br/><pre class='code' id="code54">
         <span class='javaclass'>TextDocument</span> src = <span class='javaclass'>TextDocument</span>.loadDocument("SourceDocument.odt");
         <span class='javaclass'>TextDocument</span> target = <span class='javaclass'>TextDocument</span>.loadDocument("TargetDocument.odt");
-        <span class='javaclass'>Paragraph</span> p1 = target.getParagraphByIndex(0,
<span class='basic'>true</span>);</p>
-<div class="codehilite"><pre>    <span class="nt">&lt;span</span>
<span class="na">class=</span><span class="s">&#39;comments&#39;</span><span
class="nt">&gt;</span> // insert contents before p1 and copy styles<span class="nt">&lt;/span&gt;</span>
-    target.insertContentFromDocumentBefore(src, p1, <span class="nt">&lt;span</span>
<span class="na">class=</span><span class="s">&#39;basic&#39;</span><span
class="nt">&gt;</span>true<span class="nt">&lt;/span&gt;</span>);
-
-   <span class="nt">&lt;span</span> <span class="na">class=</span><span
class="s">&#39;comments&#39;</span><span class="nt">&gt;</span>
 // insert contents after p1 and don&#39;t copy styles<span class="nt">&lt;/span&gt;</span>
-    target.insertContentFromDocumentAfter(src, p1, <span class="nt">&lt;span</span>
<span class="na">class=</span><span class="s">&#39;basic&#39;</span><span
class="nt">&gt;</span>false<span class="nt">&lt;/span&gt;</span>);
-</pre></div>
-
-
-<p></pre>
+        <span class='javaclass'>Paragraph</span> p1 = target.getParagraphByIndex(0,
<span class='basic'>true</span>);
+<span class='comments'>        // insert contents before p1 and copy styles</span>
+        target.insertContentFromDocumentBefore(src, p1, <span class='basic'>true</span>);
+<span class='comments'>        // insert contents after p1 and don't copy styles</span>
+        target.insertContentFromDocumentAfter(src, p1, <span class='basic'>false</span>);
+</pre>
 <br/><br/><strong><a href="#Paragraph" >Paragraph</a></strong>
 <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.



Mime
View raw message