diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2017-11-02 23:15:19 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2017-11-02 23:15:19 +0000 |
commit | 37e4c32065ece50bf6830d84e8024989823db241 (patch) | |
tree | 296e41024d748db2e0d93149001444cf9f7f20a7 /src/scratchpad | |
parent | 00ac2545bb0e3f08a05a31ceb1c66f2e12dab213 (diff) | |
download | poi-37e4c32065ece50bf6830d84e8024989823db241.tar.gz poi-37e4c32065ece50bf6830d84e8024989823db241.zip |
#61671 - XSLFSlide does not contain isHidden and setHidden like HSLFSlide does
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1814122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java | 4 | ||||
-rw-r--r-- | src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java index 14867a5a46..9936630dfc 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFSlide.java @@ -460,6 +460,7 @@ public final class HSLFSlide extends HSLFSheet implements Slide<HSLFShape,HSLFTe return this.getPPDrawing().getTextboxWrappers(); } + @Override public void setHidden(boolean hidden) { org.apache.poi.hslf.record.Slide cont = getSlideRecord(); @@ -473,7 +474,8 @@ public final class HSLFSlide extends HSLFSheet implements Slide<HSLFShape,HSLFTe slideInfo.setEffectTransitionFlagByBit(SSSlideInfoAtom.HIDDEN_BIT, hidden); } - public boolean getHidden() { + @Override + public boolean isHidden() { SSSlideInfoAtom slideInfo = (SSSlideInfoAtom)getSlideRecord().findFirstOfType(RecordTypes.SSSlideInfoAtom.typeID); return (slideInfo == null) diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java index c32d37bd65..3e2fc49b14 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java @@ -89,8 +89,8 @@ public final class TestSlideAtom { HSLFSlideShow ss2 = HSLFTestDataSamples.writeOutAndReadBack(ss1); slide1 = ss2.getSlides().get(0); slide2 = ss2.getSlides().get(1); - assertFalse(slide1.getHidden()); - assertTrue(slide2.getHidden()); + assertFalse(slide1.isHidden()); + assertTrue(slide2.isHidden()); ss2.close(); ss1.close(); } |