--- /dev/null
+/* ====================================================================
+ 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.ss.formula.udf;
+
+import org.apache.poi.ss.formula.functions.FreeRefFunction;
+import org.apache.poi.util.Internal;
+
+import java.util.HashMap;
+
+/**
+ * A UDFFinder that can retrieve functions both by name and by fake index.
+ *
+ * @author Yegor Kozlov
+ */
+@Internal
+public class IndexedUDFFinder extends AggregatingUDFFinder {
+ private final HashMap<Integer, String> _funcMap;
+
+ public IndexedUDFFinder(UDFFinder... usedToolPacks) {
+ super(usedToolPacks);
+ _funcMap = new HashMap<Integer, String>();
+ }
+
+ public FreeRefFunction findFunction(String name) {
+ FreeRefFunction func = super.findFunction(name);
+ if (func != null) {
+ int idx = getFunctionIndex(name);
+ _funcMap.put(idx, name);
+ }
+ return func;
+ }
+
+ public String getFunctionName(int idx) {
+ return _funcMap.get(idx);
+ }
+
+ public int getFunctionIndex(String name) {
+ return name.hashCode();
+ }
+}
-/* ====================================================================
- 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.xssf.model;
-
-import org.apache.poi.ss.formula.functions.FreeRefFunction;
-import org.apache.poi.ss.formula.udf.AggregatingUDFFinder;
-import org.apache.poi.ss.formula.udf.UDFFinder;
-import org.apache.poi.util.Internal;
-
-import java.util.HashMap;
-
-/**
- * A UDFFinder that can retrieve functions both by name and by fake index.
- *
- * @author Yegor Kozlov
- */
-@Internal
-public final class IndexedUDFFinder extends AggregatingUDFFinder {
- private final HashMap<Integer, String> _funcMap;
-
- public IndexedUDFFinder(UDFFinder... usedToolPacks) {
- super(usedToolPacks);
- _funcMap = new HashMap<Integer, String>();
- }
-
- public FreeRefFunction findFunction(String name) {
- FreeRefFunction func = super.findFunction(name);
- if (func != null) {
- int idx = getFunctionIndex(name);
- _funcMap.put(idx, name);
- }
- return func;
- }
-
- public String getFunctionName(int idx) {
- return _funcMap.get(idx);
- }
-
- public int getFunctionIndex(String name) {
- return name.hashCode();
- }
-}
+/*\r
+ * ====================================================================\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ====================================================================\r
+ */\r
+\r
+package org.apache.poi.xssf.model;\r
+\r
+import org.apache.poi.ss.formula.udf.UDFFinder;\r
+\r
+\r
+/**\r
+ * IndexedUDFFinder was moved to the org.apache.poi.ss.formula.udf package.\r
+ * This class is left ONLY for backwards compatibity with existing code.\r
+ *\r
+ * @author Yegor Kozlov\r
+ * @deprecated\r
+ */\r
+@Deprecated\r
+public final class IndexedUDFFinder extends org.apache.poi.ss.formula.udf.IndexedUDFFinder{\r
+ public IndexedUDFFinder(UDFFinder... usedToolPacks) {\r
+ super(usedToolPacks);\r
+ }\r
+}\r
import org.apache.poi.openxml4j.opc.PackageRelationshipTypes;
import org.apache.poi.openxml4j.opc.PackagingURIHelper;
import org.apache.poi.openxml4j.opc.TargetMode;
+import org.apache.poi.ss.formula.udf.IndexedUDFFinder;
import org.apache.poi.ss.formula.udf.UDFFinder;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.ss.util.WorkbookUtil;
import org.apache.poi.util.*;
-import org.apache.poi.xslf.usermodel.XSLFPictureData;
import org.apache.poi.xssf.model.*;
import org.apache.poi.xssf.usermodel.helpers.XSSFFormulaUtils;
import org.apache.xmlbeans.XmlException;