This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new f73a9e0875 reformat
f73a9e0875 is described below
commit f73a9e0875a2e564fa7b29899dc5ad8ab3f15e77
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Jul 23 16:55:41 2025 +0100
reformat
---
.../org/apache/poi/xssf/model/ThemesTable.java | 54 +++++++++++-----------
1 file changed, 28 insertions(+), 26 deletions(-)
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/ThemesTable.java
b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/ThemesTable.java
index 7bd391a06b..4d6655d5fc 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/model/ThemesTable.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/model/ThemesTable.java
@@ -36,32 +36,34 @@ import
org.openxmlformats.schemas.drawingml.x2006.main.ThemeDocument;
* colors and fonts.
*/
public class ThemesTable extends POIXMLDocumentPart implements Themes {
- public enum ThemeElement {
- LT1(0, "Lt1"),
- DK1(1,"Dk1"),
- LT2(2,"Lt2"),
- DK2(3,"Dk2"),
- ACCENT1(4,"Accent1"),
- ACCENT2(5,"Accent2"),
- ACCENT3(6,"Accent3"),
- ACCENT4(7,"Accent4"),
- ACCENT5(8,"Accent5"),
- ACCENT6(9,"Accent6"),
- HLINK(10,"Hlink"),
- FOLHLINK(11,"FolHlink"),
- UNKNOWN(-1,null);
-
- public static ThemeElement byId(int idx) {
- if (idx >= values().length || idx < 0) return UNKNOWN;
- return values()[idx];
- }
- ThemeElement(int idx, String name) {
- this.idx = idx;
- this.name = name;
- }
- public final int idx;
- public final String name;
- }
+ public enum ThemeElement {
+ LT1(0, "Lt1"),
+ DK1(1, "Dk1"),
+ LT2(2, "Lt2"),
+ DK2(3, "Dk2"),
+ ACCENT1(4, "Accent1"),
+ ACCENT2(5, "Accent2"),
+ ACCENT3(6, "Accent3"),
+ ACCENT4(7, "Accent4"),
+ ACCENT5(8, "Accent5"),
+ ACCENT6(9, "Accent6"),
+ HLINK(10, "Hlink"),
+ FOLHLINK(11, "FolHlink"),
+ UNKNOWN(-1, null);
+
+ public static ThemeElement byId(int idx) {
+ if (idx >= values().length || idx < 0) return UNKNOWN;
+ return values()[idx];
+ }
+
+ ThemeElement(int idx, String name) {
+ this.idx = idx;
+ this.name = name;
+ }
+
+ public final int idx;
+ public final String name;
+ }
private IndexedColorMap colorMap;
private ThemeDocument theme;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]