You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

XSLFSlide.java 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.xslf.usermodel;
  16. import org.apache.poi.sl.usermodel.Notes;
  17. import org.apache.poi.sl.usermodel.Slide;
  18. import org.apache.poi.sl.usermodel.SlideShow;
  19. import org.apache.poi.util.Internal;
  20. import org.openxmlformats.schemas.presentationml.x2006.main.CTSlide;
  21. import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry;
  22. public class XSLFSlide extends XSLFSheet implements Slide {
  23. private CTSlide slide;
  24. private CTSlideIdListEntry slideId;
  25. private XSLFCommonSlideData data;
  26. public XSLFSlide(CTSlide slide, CTSlideIdListEntry slideId, SlideShow parent) {
  27. super(parent);
  28. this.slide = slide;
  29. this.slideId = slideId;
  30. this.data = new XSLFCommonSlideData(slide.getCSld());
  31. }
  32. /**
  33. * While developing only!
  34. */
  35. @Internal
  36. public CTSlide _getCTSlide() {
  37. return slide;
  38. }
  39. /**
  40. * While developing only!
  41. */
  42. @Internal
  43. public CTSlideIdListEntry _getCTSlideId() {
  44. return slideId;
  45. }
  46. public boolean getFollowMasterBackground() {
  47. // TODO Auto-generated method stub
  48. return false;
  49. }
  50. public boolean getFollowMasterColourScheme() {
  51. // TODO Auto-generated method stub
  52. return false;
  53. }
  54. public boolean getFollowMasterObjects() {
  55. // TODO Auto-generated method stub
  56. return false;
  57. }
  58. public Notes getNotes() {
  59. // TODO Auto-generated method stub
  60. return null;
  61. }
  62. public void setFollowMasterBackground(boolean follow) {
  63. // TODO Auto-generated method stub
  64. }
  65. public void setFollowMasterColourScheme(boolean follow) {
  66. // TODO Auto-generated method stub
  67. }
  68. public void setFollowMasterObjects(boolean follow) {
  69. // TODO Auto-generated method stub
  70. }
  71. public void setNotes(Notes notes) {
  72. // TODO Auto-generated method stub
  73. }
  74. public XSLFCommonSlideData getCommonSlideData() {
  75. return data;
  76. }
  77. }