]> source.dussan.org Git - poi.git/commitdiff
Fixed some really nasty bugs.
authorGlen Stampoultzis <glens@apache.org>
Sun, 3 Mar 2002 00:47:54 +0000 (00:47 +0000)
committerGlen Stampoultzis <glens@apache.org>
Sun, 3 Mar 2002 00:47:54 +0000 (00:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352130 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/FontRecord.java
src/java/org/apache/poi/hssf/record/PrintSetupRecord.java
src/java/org/apache/poi/hssf/record/WindowOneRecord.java
src/java/org/apache/poi/hssf/record/WindowTwoRecord.java

index e07222913ff578dc9de8bd75f94c8d218aee2b5f..a9fed5441066f1b7c3caf087e8149c12da8cd26d 100644 (file)
@@ -208,7 +208,7 @@ public class FontRecord
 
     public void setItalic(boolean italics)
     {
-        italic.setShortBoolean(field_2_attributes, italics);
+        field_2_attributes = italic.setShortBoolean(field_2_attributes, italics);
     }
 
     /**
@@ -220,7 +220,7 @@ public class FontRecord
 
     public void setStrikeout(boolean strike)
     {
-        strikeout.setShortBoolean(field_2_attributes, strike);
+        field_2_attributes = strikeout.setShortBoolean(field_2_attributes, strike);
     }
 
     /**
@@ -233,7 +233,7 @@ public class FontRecord
 
     public void setMacoutline(boolean mac)
     {
-        macoutline.setShortBoolean(field_2_attributes, mac);
+        field_2_attributes = macoutline.setShortBoolean(field_2_attributes, mac);
     }
 
     /**
@@ -246,7 +246,7 @@ public class FontRecord
 
     public void setMacshadow(boolean mac)
     {
-        macshadow.setShortBoolean(field_2_attributes, mac);
+        field_2_attributes = macshadow.setShortBoolean(field_2_attributes, mac);
     }
 
     /**
index 4391f4ae740cda5169a37a634c3cc6bd832db5e7..8bbe1986ee0d7e3c4e8bbff0860bc466c09f1b1d 100644 (file)
@@ -188,42 +188,42 @@ public class PrintSetupRecord
     // option bitfields
     public void setLeftToRight(boolean ltor)
     {
-        lefttoright.setShortBoolean(field_6_options, ltor);
+        field_6_options = lefttoright.setShortBoolean(field_6_options, ltor);
     }
 
     public void setLandscape(boolean ls)
     {
-        landscape.setShortBoolean(field_6_options, ls);
+        field_6_options = landscape.setShortBoolean(field_6_options, ls);
     }
 
     public void setValidSettings(boolean valid)
     {
-        validsettings.setShortBoolean(field_6_options, valid);
+        field_6_options = validsettings.setShortBoolean(field_6_options, valid);
     }
 
     public void setNoColor(boolean mono)
     {
-        nocolor.setShortBoolean(field_6_options, mono);
+        field_6_options = nocolor.setShortBoolean(field_6_options, mono);
     }
 
     public void setDraft(boolean d)
     {
-        draft.setShortBoolean(field_6_options, d);
+        field_6_options = draft.setShortBoolean(field_6_options, d);
     }
 
     public void setNotes(boolean printnotes)
     {
-        notes.setShortBoolean(field_6_options, printnotes);
+        field_6_options = notes.setShortBoolean(field_6_options, printnotes);
     }
 
     public void setNoOrientation(boolean orientation)
     {
-        noOrientation.setShortBoolean(field_6_options, orientation);
+        field_6_options = noOrientation.setShortBoolean(field_6_options, orientation);
     }
 
     public void setUsePage(boolean page)
     {
-        usepage.setShortBoolean(field_6_options, page);
+        field_6_options = usepage.setShortBoolean(field_6_options, page);
     }
 
     // end option bitfields
index 0bea614c5ba21bf54c863cfb1a307244bcb89c58..efecca51211c775855195009d382ac79ee327a30 100644 (file)
@@ -208,7 +208,7 @@ public class WindowOneRecord
 
     public void setHidden(boolean ishidden)
     {
-        hidden.setShortBoolean(field_5_options, ishidden);
+        field_5_options = hidden.setShortBoolean(field_5_options, ishidden);
     }
 
     /**
@@ -218,7 +218,7 @@ public class WindowOneRecord
 
     public void setIconic(boolean isiconic)
     {
-        iconic.setShortBoolean(field_5_options, isiconic);
+        field_5_options = iconic.setShortBoolean(field_5_options, isiconic);
     }
 
     /**
@@ -228,7 +228,7 @@ public class WindowOneRecord
 
     public void setDisplayHorizonalScrollbar(boolean scroll)
     {
-        hscroll.setShortBoolean(field_5_options, scroll);
+        field_5_options = hscroll.setShortBoolean(field_5_options, scroll);
     }
 
     /**
@@ -238,7 +238,7 @@ public class WindowOneRecord
 
     public void setDisplayVerticalScrollbar(boolean scroll)
     {
-        vscroll.setShortBoolean(field_5_options, scroll);
+        field_5_options = vscroll.setShortBoolean(field_5_options, scroll);
     }
 
     /**
@@ -248,7 +248,7 @@ public class WindowOneRecord
 
     public void setDisplayTabs(boolean disptabs)
     {
-        tabs.setShortBoolean(field_5_options, disptabs);
+        field_5_options = tabs.setShortBoolean(field_5_options, disptabs);
     }
 
     // end bitfields
index 62afcc5b4f3d6438254656efd6dc36447d6a00f4..57fe5d615742aa0f06f1855e5f7c331564c53e09 100644 (file)
@@ -177,7 +177,7 @@ public class WindowTwoRecord
 
     public void setDisplayFormulas(boolean formulas)
     {
-        displayFormulas.setBoolean(field_1_options, formulas);
+        field_1_options = displayFormulas.setShortBoolean(field_1_options, formulas);
     }
 
     /**
@@ -187,7 +187,7 @@ public class WindowTwoRecord
 
     public void setDisplayGridlines(boolean gridlines)
     {
-        displayGridlines.setBoolean(field_1_options, gridlines);
+        field_1_options = displayGridlines.setShortBoolean(field_1_options, gridlines);
     }
 
     /**
@@ -197,7 +197,7 @@ public class WindowTwoRecord
 
     public void setDisplayRowColHeadings(boolean headings)
     {
-        displayRowColHeadings.setBoolean(field_1_options, headings);
+        field_1_options = displayRowColHeadings.setShortBoolean(field_1_options, headings);
     }
 
     /**
@@ -207,7 +207,7 @@ public class WindowTwoRecord
 
     public void setFreezePanes(boolean freezepanes)
     {
-        freezePanes.setBoolean(field_1_options, freezepanes);
+        field_1_options = freezePanes.setShortBoolean(field_1_options, freezepanes);
     }
 
     /**
@@ -217,7 +217,7 @@ public class WindowTwoRecord
 
     public void setDisplayZeros(boolean zeros)
     {
-        displayZeros.setBoolean(field_1_options, zeros);
+        field_1_options = displayZeros.setShortBoolean(field_1_options, zeros);
     }
 
     /**
@@ -227,7 +227,7 @@ public class WindowTwoRecord
 
     public void setDefaultHeader(boolean header)
     {
-        defaultHeader.setBoolean(field_1_options, header);
+        field_1_options = defaultHeader.setShortBoolean(field_1_options, header);
     }
 
     /**
@@ -237,7 +237,7 @@ public class WindowTwoRecord
 
     public void setArabic(boolean isarabic)
     {
-        arabic.setBoolean(field_1_options, isarabic);
+        field_1_options = arabic.setShortBoolean(field_1_options, isarabic);
     }
 
     /**
@@ -247,7 +247,7 @@ public class WindowTwoRecord
 
     public void setDisplayGuts(boolean guts)
     {
-        displayGuts.setBoolean(field_1_options, guts);
+        field_1_options = displayGuts.setShortBoolean(field_1_options, guts);
     }
 
     /**
@@ -257,7 +257,7 @@ public class WindowTwoRecord
 
     public void setFreezePanesNoSplit(boolean freeze)
     {
-        freezePanesNoSplit.setBoolean(field_1_options, freeze);
+        field_1_options = freezePanesNoSplit.setShortBoolean(field_1_options, freeze);
     }
 
     /**
@@ -267,7 +267,7 @@ public class WindowTwoRecord
 
     public void setSelected(boolean sel)
     {
-        selected.setBoolean(field_1_options, sel);
+        field_1_options = selected.setShortBoolean(field_1_options, sel);
     }
 
     /**
@@ -277,7 +277,7 @@ public class WindowTwoRecord
 
     public void setPaged(boolean p)
     {
-        paged.setBoolean(field_1_options, p);
+        field_1_options = paged.setShortBoolean(field_1_options, p);
     }
 
     /**
@@ -287,7 +287,7 @@ public class WindowTwoRecord
 
     public void setSavedInPageBreakPreview(boolean p)
     {
-        savedInPageBreakPreview.setBoolean(field_1_options, p);
+        field_1_options = savedInPageBreakPreview.setShortBoolean(field_1_options, p);
     }
 
     // end of bitfields.