aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorGlen Stampoultzis <glens@apache.org>2002-03-03 00:47:54 +0000
committerGlen Stampoultzis <glens@apache.org>2002-03-03 00:47:54 +0000
commit449540d6cef3b20a2687fe7373bdb1fe31c6cf58 (patch)
treec974f7b46edf327c40abed2cf4e925293123eb8c /src/java/org
parent45d6c2dfe7d4f7bbd3edf9f12ad6950c75aef81e (diff)
downloadpoi-449540d6cef3b20a2687fe7373bdb1fe31c6cf58.tar.gz
poi-449540d6cef3b20a2687fe7373bdb1fe31c6cf58.zip
Fixed some really nasty bugs.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/poi/hssf/record/FontRecord.java8
-rw-r--r--src/java/org/apache/poi/hssf/record/PrintSetupRecord.java16
-rw-r--r--src/java/org/apache/poi/hssf/record/WindowOneRecord.java10
-rw-r--r--src/java/org/apache/poi/hssf/record/WindowTwoRecord.java24
4 files changed, 29 insertions, 29 deletions
diff --git a/src/java/org/apache/poi/hssf/record/FontRecord.java b/src/java/org/apache/poi/hssf/record/FontRecord.java
index e07222913f..a9fed54410 100644
--- a/src/java/org/apache/poi/hssf/record/FontRecord.java
+++ b/src/java/org/apache/poi/hssf/record/FontRecord.java
@@ -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);
}
/**
diff --git a/src/java/org/apache/poi/hssf/record/PrintSetupRecord.java b/src/java/org/apache/poi/hssf/record/PrintSetupRecord.java
index 4391f4ae74..8bbe1986ee 100644
--- a/src/java/org/apache/poi/hssf/record/PrintSetupRecord.java
+++ b/src/java/org/apache/poi/hssf/record/PrintSetupRecord.java
@@ -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
diff --git a/src/java/org/apache/poi/hssf/record/WindowOneRecord.java b/src/java/org/apache/poi/hssf/record/WindowOneRecord.java
index 0bea614c5b..efecca5121 100644
--- a/src/java/org/apache/poi/hssf/record/WindowOneRecord.java
+++ b/src/java/org/apache/poi/hssf/record/WindowOneRecord.java
@@ -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
diff --git a/src/java/org/apache/poi/hssf/record/WindowTwoRecord.java b/src/java/org/apache/poi/hssf/record/WindowTwoRecord.java
index 62afcc5b4f..57fe5d6157 100644
--- a/src/java/org/apache/poi/hssf/record/WindowTwoRecord.java
+++ b/src/java/org/apache/poi/hssf/record/WindowTwoRecord.java
@@ -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.