aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/macros/Module.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-10-07 06:11:12 +0000
committerDominik Stadler <centic@apache.org>2017-10-07 06:11:12 +0000
commit2587ed1849aad93fa54ba44319c98947af39e5d4 (patch)
tree3c1536d02148bcdea4785e40ced998d36b03506e /src/java/org/apache/poi/poifs/macros/Module.java
parentfbdf4dca6827fbb2ee60452048aa13c852927a41 (diff)
downloadpoi-2587ed1849aad93fa54ba44319c98947af39e5d4.tar.gz
poi-2587ed1849aad93fa54ba44319c98947af39e5d4.zip
Apply patch from bug 61096: Add support for modules in VBAMacroReader
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1811383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs/macros/Module.java')
-rw-r--r--src/java/org/apache/poi/poifs/macros/Module.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/poifs/macros/Module.java b/src/java/org/apache/poi/poifs/macros/Module.java
new file mode 100644
index 0000000000..29924d9d89
--- /dev/null
+++ b/src/java/org/apache/poi/poifs/macros/Module.java
@@ -0,0 +1,46 @@
+/* ====================================================================
+ 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.poifs.macros;
+
+/**
+ * Representation of Macro module in office file.
+ */
+public interface Module {
+ /**
+ * Type of macro module
+ */
+ public enum ModuleType {
+ Document,
+ Module,
+ Class
+ }
+
+ /**
+ * Get the module content.
+ *
+ * @return the module content
+ */
+ public String getContent();
+
+ /**
+ * Get the module type.
+ *
+ * @return the module type
+ */
+ public ModuleType geModuleType();
+}