From 753397e9f5c09d78a98f16c6f956863d1bf1fdc7 Mon Sep 17 00:00:00 2001 From: dlaren Date: Wed, 10 Sep 2025 15:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E5=89=94=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../judgement/utils/wps_pptx/pptx4j/ShapePage.java | 4 ---- .../judgement/utils/wps_pptx/pptx4j/SlideMaster.java | 10 ---------- .../utils/wps_pptx/pptx4j/SlideMasterUtils.java | 2 -- .../judgement/utils/wps_pptx/pptx4j/SlideSetting.java | 5 ----- .../judgement/utils/wps_pptx/pptx4j/SlideUtils.java | 1 - 5 files changed, 22 deletions(-) diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/ShapePage.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/ShapePage.java index 9b690615..8c8994ab 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/ShapePage.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/ShapePage.java @@ -1,9 +1,6 @@ package pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j; -import jakarta.xml.bind.JAXBElement; -import jakarta.xml.bind.JAXBException; import org.docx4j.dml.*; -import org.docx4j.jaxb.XPathBinderAssociationIsPartialException; import org.pptx4j.pml.*; import pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j.utils.HexColorUtils; import pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j.utils.PtToCmConverter; @@ -12,7 +9,6 @@ import pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j.utils.Transition; import java.math.BigInteger; import java.util.List; -import java.util.regex.Pattern; public class ShapePage { diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMaster.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMaster.java index 58c274c5..6e2539a3 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMaster.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMaster.java @@ -1,20 +1,11 @@ package pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j; -import org.docx4j.XmlUtils; -import org.docx4j.dml.CTBlipFillProperties; import org.docx4j.openpackaging.exceptions.Docx4JException; import org.docx4j.openpackaging.packages.OpcPackage; import org.docx4j.openpackaging.packages.PresentationMLPackage; -import org.docx4j.openpackaging.parts.JaxbXmlPart; -import org.docx4j.openpackaging.parts.Part; -import org.docx4j.openpackaging.parts.Parts; import org.docx4j.openpackaging.parts.PresentationML.MainPresentationPart; -import org.docx4j.openpackaging.parts.PresentationML.NotesMasterPart; import org.docx4j.openpackaging.parts.PresentationML.SlideMasterPart; import org.docx4j.openpackaging.parts.PresentationML.SlidePart; -import org.docx4j.openpackaging.parts.relationships.RelationshipsPart; -import org.docx4j.relationships.Relationship; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMaster; import org.pptx4j.pml.*; import org.springframework.web.multipart.MultipartFile; import pc.exam.pp.module.judgement.controller.admin.AutoWps.vo.WpsSlideInfoVo; @@ -25,7 +16,6 @@ import java.io.InputStream; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; -import java.util.Map; public class SlideMaster { diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMasterUtils.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMasterUtils.java index 58880ac1..bf81837e 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMasterUtils.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideMasterUtils.java @@ -1,7 +1,6 @@ package pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j; import org.docx4j.XmlUtils; -import org.docx4j.dml.CTBlipFillProperties; import org.docx4j.openpackaging.packages.PresentationMLPackage; import org.docx4j.openpackaging.parts.JaxbXmlPart; import org.docx4j.openpackaging.parts.Part; @@ -13,7 +12,6 @@ import org.docx4j.relationships.Relationship; import org.pptx4j.jaxb.Context; import org.pptx4j.pml.*; -import java.util.Map; public class SlideMasterUtils { diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideSetting.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideSetting.java index 5bfa63eb..8218f9eb 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideSetting.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideSetting.java @@ -1,7 +1,5 @@ package pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j; -import org.docx4j.dml.CTPositiveSize2D; -import org.docx4j.dml.CTTransform2D; import org.docx4j.openpackaging.exceptions.Docx4JException; import org.docx4j.openpackaging.packages.PresentationMLPackage; import org.docx4j.openpackaging.parts.PresentationML.SlideLayoutPart; @@ -9,12 +7,9 @@ import org.docx4j.openpackaging.parts.PresentationML.SlideMasterPart; import org.docx4j.openpackaging.parts.PresentationML.SlidePart; import org.pptx4j.pml.CTBackground; import org.pptx4j.pml.CTBackgroundProperties; -import org.pptx4j.pml.CTSlideTiming; import org.pptx4j.pml.*; -import org.docx4j.dml.*; import pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j.utils.Transition; -import java.lang.reflect.Method; import java.util.List; // 单个幻灯片设置 diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideUtils.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideUtils.java index 6713150a..3a9571ba 100644 --- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideUtils.java +++ b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/utils/wps_pptx/pptx4j/SlideUtils.java @@ -1,7 +1,6 @@ package pc.exam.pp.module.judgement.utils.wps_pptx.pptx4j; import org.docx4j.dml.*; -import org.docx4j.openpackaging.parts.PresentationML.SlidePart; import java.math.BigInteger; import java.text.DecimalFormat;