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.

Slide.java 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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.sl.usermodel;
  16. import java.util.List;
  17. public interface Slide<
  18. S extends Shape<S,P>,
  19. P extends TextParagraph<S,P,? extends TextRun>
  20. > extends Sheet<S,P> {
  21. Notes<S,P> getNotes();
  22. void setNotes(Notes<S,P> notes);
  23. boolean getFollowMasterBackground();
  24. void setFollowMasterBackground(boolean follow);
  25. boolean getFollowMasterColourScheme();
  26. void setFollowMasterColourScheme(boolean follow);
  27. boolean getFollowMasterObjects();
  28. void setFollowMasterObjects(boolean follow);
  29. /**
  30. * @return the 1-based slide no.
  31. */
  32. int getSlideNumber();
  33. /**
  34. * @return title of this slide or null if title is not set
  35. */
  36. String getTitle();
  37. /**
  38. * In XSLF, slidenumber and date shapes aren't marked as placeholders
  39. * whereas in HSLF they are activated via a HeadersFooter configuration.
  40. * This method is used to generalize that handling.
  41. *
  42. * @param placeholder the placeholder type
  43. * @return {@code true} if the placeholder should be displayed/rendered
  44. * @since POI 3.16-beta2
  45. */
  46. boolean getDisplayPlaceholder(Placeholder placeholder);
  47. /**
  48. * Sets the slide visibility
  49. *
  50. * @param hidden slide visibility, if {@code true} the slide is hidden, {@code false} shows the slide
  51. *
  52. * @since POI 4.0.0
  53. */
  54. void setHidden(boolean hidden);
  55. /**
  56. * @return the slide visibility, the slide is hidden when {@code true} - or shown when {@code false}
  57. *
  58. * @since POI 4.0.0
  59. */
  60. boolean isHidden();
  61. /**
  62. * @return the comment(s) for this slide
  63. */
  64. List<? extends Comment> getComments();
  65. /**
  66. * @return the assigned slide layout
  67. *
  68. * @since POI 4.0.0
  69. */
  70. MasterSheet getSlideLayout();
  71. /**
  72. * @return the slide name, defaults to "Slide[slideNumber]"
  73. *
  74. * @since POI 4.0.0
  75. */
  76. String getSlideName();
  77. }