summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalman Szalai - KAMI <kami911@gmail.com>2010-10-31 04:50:14 +0100
committerKalman Szalai - KAMI <kami911@gmail.com>2010-10-31 04:50:14 +0100
commit823cb6a74d9100b7a6d0a23722debbd329a8ec89 (patch)
treee0e2e89a44edc473248a9513ee92afaa7a3b13e2
parent87ec34b20ec01d1ae6724605ec4ab96681802cab (diff)
Adding Validator extension
-rw-r--r--configure.in17
-rw-r--r--scp2/source/extensions/directory_extensions.scp15
-rw-r--r--scp2/source/extensions/file_extensions.scp17
-rw-r--r--scp2/source/extensions/module_extensions.scp21
-rw-r--r--scp2/source/extensions/module_extensions.ulf10
5 files changed, 72 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index 29dd71da1598..aba6864041d1 100644
--- a/configure.in
+++ b/configure.in
@@ -902,6 +902,11 @@ AC_ARG_WITH(diagram,
--with-diagram Integrate Diagram extension],
,)
+AC_ARG_WITH(validator,
+[
+ --with-validator Integrate Validator extension],
+,)
+
AC_ARG_WITH(google-docs,
[
--with-google-docs Download and integrate Google Documents extension.],
@@ -6831,6 +6836,18 @@ fi
AC_SUBST(WITH_DIAGRAM_EXTENSION)
dnl ===================================================================
+dnl Test whether to include Validator extension
+dnl ===================================================================
+AC_MSG_CHECKING([for Validator extension integration])
+if test "z$with_validator" = "z" -o "z$with_validator" = "zno" ; then
+ AC_MSG_RESULT([no])
+else
+ AC_MSG_RESULT([yes])
+ SCPDEFS="$SCPDEFS -DWITH_EXTENSION_VALIDATOR"
+fi
+AC_SUBST(WITH_VALIDATOR_EXTENSION)
+
+dnl ===================================================================
dnl Test whether to include ConvertTextToNumber extension
dnl ===================================================================
AC_MSG_CHECKING([for ConvertTextToNumber extension integration])
diff --git a/scp2/source/extensions/directory_extensions.scp b/scp2/source/extensions/directory_extensions.scp
index 1dc50904868e..247872227b2c 100644
--- a/scp2/source/extensions/directory_extensions.scp
+++ b/scp2/source/extensions/directory_extensions.scp
@@ -4,9 +4,9 @@
*
* $RCSfile: directory_extensions.scp,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: KAMI $ $Date: 2010/10/30 19:40:10 $
+ * last change: $Author: KAMI $ $Date: 2010/10/31 04:40:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 3.
@@ -165,6 +165,17 @@ End
#endif
+/* ** Validator ** */
+
+#ifdef WITH_EXTENSION_VALIDATOR
+
+Directory gid_Brand_Dir_Share_Extensions_Validator
+ ParentID = gid_Brand_Dir_Share_Extensions;
+ DosName = "Validator";
+End
+
+#endif
+
/* ** Google Docs ** */
#ifdef WITH_EXTENSION_GOOGLE_DOCS
diff --git a/scp2/source/extensions/file_extensions.scp b/scp2/source/extensions/file_extensions.scp
index 8a8c61df8713..22acb498077a 100644
--- a/scp2/source/extensions/file_extensions.scp
+++ b/scp2/source/extensions/file_extensions.scp
@@ -4,9 +4,9 @@
*
* $RCSfile: file_extensions.scp,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: KAMI $ $Date: 2010/10/30 19:40:10 $
+ * last change: $Author: KAMI $ $Date: 2010/10/31 04:40:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 3.
@@ -194,6 +194,19 @@ End
#endif
+/* ** Validator ** */
+
+#ifdef WITH_EXTENSION_VALIDATOR
+
+File gid_File_Oxt_Validator
+ TXT_FILE_BODY;
+ Styles = (PACKED, ARCHIVE);
+ Dir = gid_Brand_Dir_Share_Extensions_Validator;
+ Name = "Validator.oxt";
+End
+
+#endif
+
/* ** Google Docs ** */
#ifdef WITH_EXTENSION_GOOGLE_DOCS
diff --git a/scp2/source/extensions/module_extensions.scp b/scp2/source/extensions/module_extensions.scp
index d8b68f5d7d84..50d78940d076 100644
--- a/scp2/source/extensions/module_extensions.scp
+++ b/scp2/source/extensions/module_extensions.scp
@@ -4,9 +4,9 @@
*
* $RCSfile: module_accessories.scp,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: KAMI $ $Date: 2010/10/30 19:40:10 $
+ * last change: $Author: KAMI $ $Date: 2010/10/31 04:40:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 3.
@@ -245,6 +245,23 @@ End
#endif
#endif
+/* ** Validator ** */
+
+#ifdef WITH_EXTENSION_VALIDATOR
+#ifdef WITH_EXTENSION_INTEGRATION
+Module gid_Module_Optional_Extensions_Validator
+ PackageInfo = "packinfo_extensions.txt";
+ MOD_NAME_DESC(MODULE_OPTIONAL_EXTENSIONS_VALIDATOR);
+ ParentID = gid_Module_Optional_Extensions;
+ Files = (
+ gid_File_Oxt_Validator );
+ Minimal = NO;
+ Default = YES;
+ Styles = ( );
+End
+#endif
+#endif
+
/* ** Google Docs ** */
#ifdef WITH_EXTENSION_GOOGLE_DOCS
diff --git a/scp2/source/extensions/module_extensions.ulf b/scp2/source/extensions/module_extensions.ulf
index b77751a514bd..f888a71cb796 100644
--- a/scp2/source/extensions/module_extensions.ulf
+++ b/scp2/source/extensions/module_extensions.ulf
@@ -4,9 +4,9 @@
*
* $RCSfile: module_accessories.ulf,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: KAMI $ $Date: 2010/10/30 19:40:10 $
+ * last change: $Author: KAMI $ $Date: 2010/10/31 04:40:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 3.
@@ -111,6 +111,12 @@ en-US = "Diagram"
[STR_DESC_MODULE_OPTIONAL_EXTENSIONS_DIAGRAM]
en-US = "Diagram"
+[STR_NAME_MODULE_OPTIONAL_EXTENSIONS_VALIDATOR]
+en-US = "Validator"
+
+[STR_DESC_MODULE_OPTIONAL_EXTENSIONS_VALIDATOR]
+en-US = "Validator"
+
[STR_NAME_MODULE_OPTIONAL_EXTENSIONS_GOOGLE_DOCS]
en-US = "Google Docs & Zoho"