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 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. import org.apache.poi.util.Removal;
  18. @SuppressWarnings("unused")
  19. public interface Slide<
  20. S extends Shape<S,P>,
  21. P extends TextParagraph<S,P,? extends TextRun>
  22. > extends Sheet<S,P> {
  23. Notes<S,P> getNotes();
  24. void setNotes(Notes<S,P> notes);
  25. boolean getFollowMasterBackground();
  26. void setFollowMasterBackground(boolean follow);
  27. boolean getFollowMasterColourScheme();
  28. void setFollowMasterColourScheme(boolean follow);
  29. boolean getFollowMasterObjects();
  30. void setFollowMasterObjects(boolean follow);
  31. /**
  32. * @return the 1-based slide no.
  33. */
  34. int getSlideNumber();
  35. /**
  36. * @return title of this slide or null if title is not set
  37. */
  38. String getTitle();
  39. /**
  40. * In XSLF, slidenumber and date shapes aren't marked as placeholders
  41. * whereas in HSLF they are activated via a HeadersFooter configuration.
  42. * This method is used to generalize that handling.
  43. *
  44. * @param placeholder the placeholder type
  45. * @return {@code true} if the placeholder should be displayed/rendered
  46. * @since POI 3.16-beta2
  47. *
  48. * @deprecated in POI 5.2.0 - use {@link #getDisplayPlaceholder(SimpleShape)}
  49. *
  50. */
  51. @Deprecated
  52. @Removal(version = "6.0.0")
  53. default boolean getDisplayPlaceholder(Placeholder placeholder) {
  54. return false;
  55. }
  56. /**
  57. * In XSLF, slidenumber and date shapes aren't marked as placeholders
  58. * whereas in HSLF they are activated via a HeadersFooter configuration.
  59. * This method is used to generalize that handling.
  60. *
  61. * @param placeholderRefShape the shape which references to the placeholder
  62. * @return {@code true} if the placeholder should be displayed/rendered
  63. * @since POI 5.2.0
  64. */
  65. default boolean getDisplayPlaceholder(SimpleShape<?,?> placeholderRefShape) {
  66. return false;
  67. }
  68. /**
  69. * Sets the slide visibility
  70. *
  71. * @param hidden slide visibility, if {@code true} the slide is hidden, {@code false} shows the slide
  72. *
  73. * @since POI 4.0.0
  74. */
  75. void setHidden(boolean hidden);
  76. /**
  77. * @return the slide visibility, the slide is hidden when {@code true} - or shown when {@code false}
  78. *
  79. * @since POI 4.0.0
  80. */
  81. boolean isHidden();
  82. /**
  83. * @return the comment(s) for this slide
  84. */
  85. @SuppressWarnings("java:S1452")
  86. List<? extends Comment> getComments();
  87. /**
  88. * @return the assigned slide layout
  89. *
  90. * @since POI 4.0.0
  91. */
  92. MasterSheet<S,P> getSlideLayout();
  93. /**
  94. * @return the slide name, defaults to "Slide[slideNumber]"
  95. *
  96. * @since POI 4.0.0
  97. */
  98. String getSlideName();
  99. }