]> source.dussan.org Git - poi.git/commitdiff
Put the anchors where forrest wants them
authorNick Burch <nick@apache.org>
Wed, 9 Jan 2008 20:50:00 +0000 (20:50 +0000)
committerNick Burch <nick@apache.org>
Wed, 9 Jan 2008 20:50:00 +0000 (20:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@610560 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/hssf/eval.xml

index 197391b381e785153dde0247eef33116b557ece5..1416ad7c29c5a03b41a4c485f5301625a6bb2059 100644 (file)
@@ -39,8 +39,9 @@
                                being supported fairly frequently.
                        </note>
                </section>
+
+               <anchor id="Status"/>
                <section><title>Status</title>
-                       <anchor id="Status"/>
                        <p>     The code currently provides implementations for all the arithmatic operators.
                                It also provides implementations for approx. 100 built in 
                                functions in Excel. The framework however makes is easy to add 
@@ -55,8 +56,9 @@
                                in the context of other POI excel reading code.
                        </p>
                        <p>There are two ways in which you can use the HSSFFormulaEvalutator API.</p>
+
+                       <anchor id="Evaluate"/>
                        <section><title>Using HSSFFormulaEvaluator.<strong>evaluate</strong>(HSSFCell cell)</title>
-                               <anchor id="Evaluate"/>
                                <source>
 FileInputStream fis = new FileInputStream("c:/temp/test.xls");
 HSSFWorkbook wb = new HSSFWorkbook(fis);
@@ -98,10 +100,10 @@ switch (cellValue.getCellType()) {
                                        a simple value object and does not maintain reference 
                                        to the original cell.
                                </p>
-                               
                        </section>
+
+                       <anchor id="EvaluateInCell"/>
                        <section><title>Using HSSFFormulaEvaluator.<strong>evaluateInCell</strong>(HSSFCell cell)</title>
-                               <anchor id="EvaluateInCell"/>
                                <p><strong>evaluateInCell</strong>(HSSFCell cell) will check to
                                see if the supplied cell is a formula cell. If it isn't,
                                then no changes will be made to it. If it is, then the
@@ -142,8 +144,9 @@ if (cell!=null) {
 }
                                </source>
                        </section>
+
+                       <anchor id="EvaluateAll"/>
                        <section><title>Re-calculating all formulas in a Workbook</title>
-                               <anchor id="EvaluateAll"/>
                                <source>
 FileInputStream fis = new FileInputStream("/somepath/test.xls");
 HSSFWorkbook wb = new HSSFWorkbook(fis);
@@ -168,8 +171,8 @@ wb.write(new FileOutputStream("/somepath/changed.xls"));
                        </section>
                </section>
                
+               <anchor id="Performance"/>
                <section><title>Performance Notes</title>
-                       <anchor id="Performance"/>
                        <ul>
                                <li>Generally you should have to create only one HSSFFormulaEvaluator 
                                        instance per sheet, but there really is no overhead in creating