aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-09-18 12:27:36 +0000
committerPJ Fanning <fanningpj@apache.org>2017-09-18 12:27:36 +0000
commit2bb3fa290a351d59048f2d2ed1ebc7c945cd96a3 (patch)
tree15175ce0a19aa9f3c61cd96fe091214227d8de7b /src/ooxml/java/org
parentf3643e95f92377c9fbf6d7a68fa3b423d1302c28 (diff)
downloadpoi-2bb3fa290a351d59048f2d2ed1ebc7c945cd96a3.tar.gz
poi-2bb3fa290a351d59048f2d2ed1ebc7c945cd96a3.zip
remove some deprecated code slated for removal in 3.18
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808687 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org')
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingParagraph.java57
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableCell.java39
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableRow.java45
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextBody.java45
-rw-r--r--src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextPlaceholder.java62
5 files changed, 0 insertions, 248 deletions
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingParagraph.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingParagraph.java
deleted file mode 100644
index 6a6ee38074..0000000000
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingParagraph.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xslf.usermodel;
-
-import org.apache.poi.util.Removal;
-import org.apache.xmlbeans.XmlCursor;
-import org.apache.xmlbeans.XmlObject;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTRegularTextRun;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTextLineBreak;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph;
-
-/*
- * @deprecated POI 3.16 beta 1. Instead iterate over the shapes/notes of the slides
- */
-@Removal(version="3.18")
-public class DrawingParagraph {
- private final CTTextParagraph p;
-
- public DrawingParagraph(CTTextParagraph p) {
- this.p = p;
- }
-
- public CharSequence getText() {
- StringBuilder text = new StringBuilder();
-
- XmlCursor c = p.newCursor();
- c.selectPath("./*");
- while (c.toNextSelection()) {
- XmlObject o = c.getObject();
- if (o instanceof CTRegularTextRun) {
- CTRegularTextRun txrun = (CTRegularTextRun) o;
- text.append(txrun.getT());
- } else if (o instanceof CTTextLineBreak) {
- text.append('\n');
- }
- }
-
- c.dispose();
-
- return text;
- }
-}
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableCell.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableCell.java
deleted file mode 100644
index 2924fbc746..0000000000
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableCell.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xslf.usermodel;
-
-import org.apache.poi.util.Removal;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell;
-
-/*
- * @deprecated POI 3.16 beta 1. use {@link XSLFTable} instead
- */
-@Removal(version="3.18")
-public class DrawingTableCell {
- private final CTTableCell cell;
- private final DrawingTextBody drawingTextBody;
-
- public DrawingTableCell(CTTableCell cell) {
- this.cell = cell;
- drawingTextBody = new DrawingTextBody(this.cell.getTxBody());
- }
-
- public DrawingTextBody getTextBody() {
- return drawingTextBody;
- }
-}
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableRow.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableRow.java
deleted file mode 100644
index 08a693959d..0000000000
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTableRow.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xslf.usermodel;
-
-import org.apache.poi.util.Removal;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTableCell;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTableRow;
-
-/*
- * @deprecated POI 3.16 beta 1. use {@link XSLFTable} instead
- */
-@Removal(version="3.18")
-public class DrawingTableRow {
- private final CTTableRow row;
-
- public DrawingTableRow(CTTableRow row) {
- this.row = row;
- }
-
- public DrawingTableCell[] getCells() {
- CTTableCell[] ctTableCells = row.getTcArray();
- DrawingTableCell[] o = new DrawingTableCell[ctTableCells.length];
-
- for (int i=0; i<o.length; i++) {
- o[i] = new DrawingTableCell(ctTableCells[i]);
- }
-
- return o;
- }
-}
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextBody.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextBody.java
deleted file mode 100644
index d297e3b866..0000000000
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextBody.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xslf.usermodel;
-
-import org.apache.poi.util.Removal;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph;
-
-/*
- * @deprecated POI 3.16 beta 1. use {@link XSLFTextShape} instead
- */
-@Removal(version="3.18")
-public class DrawingTextBody {
- private final CTTextBody textBody;
-
- public DrawingTextBody(CTTextBody textBody) {
- this.textBody = textBody;
- }
-
- public DrawingParagraph[] getParagraphs() {
- CTTextParagraph[] paragraphs = textBody.getPArray();
- DrawingParagraph[] o = new DrawingParagraph[paragraphs.length];
-
- for (int i=0; i<o.length; i++) {
- o[i] = new DrawingParagraph(paragraphs[i]);
- }
-
- return o;
- }
-}
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextPlaceholder.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextPlaceholder.java
deleted file mode 100644
index e22aa52098..0000000000
--- a/src/ooxml/java/org/apache/poi/xslf/usermodel/DrawingTextPlaceholder.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/* ====================================================================
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-==================================================================== */
-
-package org.apache.poi.xslf.usermodel;
-
-import org.apache.poi.util.Removal;
-import org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody;
-import org.openxmlformats.schemas.presentationml.x2006.main.CTPlaceholder;
-import org.openxmlformats.schemas.presentationml.x2006.main.STPlaceholderType;
-
-/**
- * A {@link DrawingTextBody} which is a placeholder
- * @author nick
- *
- */
-/*
- * @deprecated POI 3.16 beta 1. use {@link XSLFSimpleShape#isPlaceholder} instead
- */
-@Removal(version="3.18")
-public class DrawingTextPlaceholder extends DrawingTextBody {
- private final CTPlaceholder placeholder;
-
- public DrawingTextPlaceholder(CTTextBody textBody, CTPlaceholder placeholder) {
- super(textBody);
- this.placeholder = placeholder;
- }
-
- /**
- * What kind of placeholder is this?
- */
- public String getPlaceholderType() {
- return placeholder.getType().toString();
- }
-
- /**
- * What kind of placeholder is this?
- */
- public STPlaceholderType.Enum getPlaceholderTypeEnum() {
- return placeholder.getType();
- }
-
- /**
- * Is the PlaceHolder text customised?
- */
- public boolean isPlaceholderCustom() {
- return placeholder.getHasCustomPrompt();
- }
-}