summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/xsd
diff options
context:
space:
mode:
Diffstat (limited to 'offapi/com/sun/star/xsd')
-rw-r--r--offapi/com/sun/star/xsd/Boolean.idl53
-rw-r--r--offapi/com/sun/star/xsd/DataTypeClass.idl125
-rw-r--r--offapi/com/sun/star/xsd/Date.idl75
-rw-r--r--offapi/com/sun/star/xsd/DateTime.idl75
-rw-r--r--offapi/com/sun/star/xsd/Day.idl73
-rw-r--r--offapi/com/sun/star/xsd/Decimal.idl90
-rw-r--r--offapi/com/sun/star/xsd/Month.idl73
-rw-r--r--offapi/com/sun/star/xsd/String.idl73
-rw-r--r--offapi/com/sun/star/xsd/Time.idl75
-rw-r--r--offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl59
-rw-r--r--offapi/com/sun/star/xsd/XDataType.idl102
-rw-r--r--offapi/com/sun/star/xsd/Year.idl73
-rw-r--r--offapi/com/sun/star/xsd/makefile.mk58
13 files changed, 1004 insertions, 0 deletions
diff --git a/offapi/com/sun/star/xsd/Boolean.idl b/offapi/com/sun/star/xsd/Boolean.idl
new file mode 100644
index 000000000000..da715bc6ee22
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Boolean.idl
@@ -0,0 +1,53 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Boolean_idl__
+#define __com_sun_star_xsd_Boolean_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#boolean">XSD compliant boolean type</a>
+*/
+service Boolean
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/DataTypeClass.idl b/offapi/com/sun/star/xsd/DataTypeClass.idl
new file mode 100644
index 000000000000..81b5e16de489
--- /dev/null
+++ b/offapi/com/sun/star/xsd/DataTypeClass.idl
@@ -0,0 +1,125 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+#ifndef __com_sun_star_xsd_DataTypeClass_idl__
+#define __com_sun_star_xsd_DataTypeClass_idl__
+
+//=============================================================================
+
+module com { module sun { module star { module xsd {
+
+//=============================================================================
+
+/** These constants specify the class used of an <type>XDataType</type>
+*/
+constants DataTypeClass
+{
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#string">XSD compliant string type</a>
+ */
+ const short STRING = 1;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#boolean">XSD compliant boolean type</a>
+ */
+ const short BOOLEAN = 2;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#decimal">XSD compliant decimal type</a>
+ */
+ const short DECIMAL = 3;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#float">XSD compliant float type</a>
+ */
+ const short FLOAT = 4;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#double">XSD compliant double type</a>
+ */
+ const short DOUBLE = 5;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#duration">XSD compliant duration type</a>
+ */
+ const short DURATION = 6;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#datetime">XSD compliant datetime type</a>
+ */
+ const short DATETIME = 7;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#time">XSD compliant time type</a>
+ */
+ const short TIME = 8;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#date">XSD compliant date type</a>
+ */
+ const short DATE = 9;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gYearMonth">XSD compliant gYearMonth type</a>
+ */
+ const short gYearMonth = 10;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gYear">XSD compliant gYear type</a>
+ */
+ const short gYear = 11;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gMonthDay">XSD compliant gMonthDay type</a>
+ */
+ const short gMonthDay = 12;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gDay">XSD compliant gDay type</a>
+ */
+ const short gDay = 13;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gMonth">XSD compliant gMonth type</a>
+ */
+ const short gMonth = 14;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#hexBinary">XSD compliant hexBinary type</a>
+ */
+ const short hexBinary = 15;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#base64Binary">XSD compliant base64Binary type</a>
+ */
+ const short base64Binary = 16;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#anyURI">XSD compliant anyURI type</a>
+ */
+ const short anyURI = 17;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#QName">XSD compliant QName type</a>
+ */
+ const short QName = 18;
+
+ /** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#NOTATION">XSD compliant NOTATION type</a>
+ */
+ const short NOTATION = 19;
+
+};
+
+//=============================================================================
+
+}; }; }; };
+
+/*=============================================================================
+
+=============================================================================*/
+#endif
diff --git a/offapi/com/sun/star/xsd/Date.idl b/offapi/com/sun/star/xsd/Date.idl
new file mode 100644
index 000000000000..624f6af4ca2d
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Date.idl
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Date_idl__
+#define __com_sun_star_xsd_Date_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+#ifndef __com_sun_star_util_Date_idl__
+#include <com/sun/star/util/Date.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#date">XSD compliant date type</a>
+*/
+service Date
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] com::sun::star::util::Date MaxInclusiveDate;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] com::sun::star::util::Date MaxExclusiveDate;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] com::sun::star::util::Date MinInclusiveDate;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] com::sun::star::util::Date MinExclusiveDate;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/DateTime.idl b/offapi/com/sun/star/xsd/DateTime.idl
new file mode 100644
index 000000000000..06b7c945baf8
--- /dev/null
+++ b/offapi/com/sun/star/xsd/DateTime.idl
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_DateTime_idl__
+#define __com_sun_star_xsd_DateTime_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+#ifndef __com_sun_star_util_DateTime_idl__
+#include <com/sun/star/util/DateTime.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#dateTime">XSD compliant dateTime type</a>
+*/
+service DateTime
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] com::sun::star::util::DateTime MaxInclusiveDateTime;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] com::sun::star::util::DateTime MaxExclusiveDateTime;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] com::sun::star::util::DateTime MinInclusiveDateTime;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] com::sun::star::util::DateTime MinExclusiveDateTime;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/Day.idl b/offapi/com/sun/star/xsd/Day.idl
new file mode 100644
index 000000000000..c683ad3ebb4a
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Day.idl
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Day_idl__
+#define __com_sun_star_xsd_Day_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gDay">XSD compliant gDay type</a>
+*/
+service Day
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] short MaxInclusiveInt;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] short MaxExclusiveInt;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] short MinInclusiveInt;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] short MinExclusiveInt;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
+
diff --git a/offapi/com/sun/star/xsd/Decimal.idl b/offapi/com/sun/star/xsd/Decimal.idl
new file mode 100644
index 000000000000..008fb9340b82
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Decimal.idl
@@ -0,0 +1,90 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Decimal_idl__
+#define __com_sun_star_xsd_Decimal_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#decimal">XSD compliant decimal type</a>
+*/
+service Decimal
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** totalDigits is the maximum number of digits in values of decimal data
+ types.
+
+ <p>The value of totalDigits must be a positive integer.</p>
+
+ <p>See <a href="http://www.w3.org/TR/xmlschema-2/#rf-totalDigits">http://www.w3.org/TR/xmlschema-2/#rf-totalDigits</a></p>
+ */
+ [property, maybevoid] long TotalDigits;
+
+ /** fractionDigits is the maximum number of digits in the fractional part of values of
+ decimal data
+
+ <p>The value of fractionDigits must be a non negative integer.</p>
+
+ <p>See <a href="http://www.w3.org/TR/xmlschema-2/#rf-fractionDigits">http://www.w3.org/TR/xmlschema-2/#rf-fractionDigits</a></p>
+ */
+ [property, maybevoid] long FractionDigits;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] double MaxInclusiveDouble;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] double MaxExclusiveDouble;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] double MinInclusiveDouble;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] double MinExclusiveDouble;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/Month.idl b/offapi/com/sun/star/xsd/Month.idl
new file mode 100644
index 000000000000..bc57ed265bfb
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Month.idl
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Month_idl__
+#define __com_sun_star_xsd_Month_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gMonth">XSD compliant gMonth type</a>
+*/
+service Month
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] short MaxInclusiveInt;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] short MaxExclusiveInt;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] short MinInclusiveInt;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] short MinExclusiveInt;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
+
diff --git a/offapi/com/sun/star/xsd/String.idl b/offapi/com/sun/star/xsd/String.idl
new file mode 100644
index 000000000000..f86cc0c3fa2f
--- /dev/null
+++ b/offapi/com/sun/star/xsd/String.idl
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_String_idl__
+#define __com_sun_star_xsd_String_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#string">XSD compliant string type</a>
+*/
+service String
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the length of the string
+
+ <p>Note that you cannot specifiy <member>Length</member> together
+ with <member>MinLength</member> or <member>MaxLength</member>.</p>
+ */
+ [property, maybevoid] long Length;
+
+ /** specifies the minimum length of the string
+
+ <p>Note that you cannot specifiy <member>MinLength</member> together
+ with <member>Length</member>.</p>
+ */
+ [property, maybevoid] long MinLength;
+
+ /** specifies the maximum length of the string
+
+ <p>Note that you cannot specifiy <member>MaxLength</member> together
+ with <member>Length</member>.</p>
+ */
+ [property, maybevoid] long MaxLength;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/Time.idl b/offapi/com/sun/star/xsd/Time.idl
new file mode 100644
index 000000000000..bca39677b8cd
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Time.idl
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Time_idl__
+#define __com_sun_star_xsd_Time_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+#ifndef __com_sun_star_util_Time_idl__
+#include <com/sun/star/util/Time.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#time">XSD compliant time type</a>
+*/
+service Time
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] com::sun::star::util::Time MaxInclusiveTime;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] com::sun::star::util::Time MaxExclusiveTime;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] com::sun::star::util::Time MinInclusiveTime;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] com::sun::star::util::Time MinExclusiveTime;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl b/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl
new file mode 100644
index 000000000000..05294e3a3217
--- /dev/null
+++ b/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl
@@ -0,0 +1,59 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#define __com_sun_star_xsd_XDataType_idl__
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies possibilities how to treat whitespaces in strings
+
+ @see XDataType
+*/
+constants WhiteSpaceTreatment
+{
+ /** White spaces should be preserved when processing the string
+ */
+ const short Preserve = 0;
+
+ /** White spaces should be replaced with TODO when processing the string
+ */
+ const short Replace = 1;
+
+ /** Multiple successive white spaces should be collapsed to a single white
+ space when processing the string
+ */
+ const short Collapse = 2;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/XDataType.idl b/offapi/com/sun/star/xsd/XDataType.idl
new file mode 100644
index 000000000000..b3009756e92c
--- /dev/null
+++ b/offapi/com/sun/star/xsd/XDataType.idl
@@ -0,0 +1,102 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#define __com_sun_star_xsd_XDataType_idl__
+
+#ifndef __com_sun_star_container_XNamed_idl__
+#include <com/sun/star/container/XNamed.idl>
+#endif
+#ifndef __com_sun_star_util_VetoException_idl__
+#include <com/sun/star/util/VetoException.idl>
+#endif
+#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
+#include <com/sun/star/lang/IllegalArgumentException.idl>
+#endif
+#ifndef __com_sun_star_beans_XPropertySet_idl__
+#include <com/sun/star/beans/XPropertySet.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#built-in-datatypes">XSD compliant simple data type</a>
+*/
+interface XDataType
+{
+ /** provides generic access to the instance properties
+ */
+ interface com::sun::star::beans::XPropertySet;
+
+ /** provides access to the name of the type
+ */
+ [attribute] string Name
+ {
+ set raises ( com::sun::star::util::VetoException );
+ };
+
+ /** specifies the pattern which strings conforming to this type comply to
+
+ <p>See <a href="http://www.w3.org/TR/xmlschema-2/#rf-pattern">http://www.w3.org/TR/xmlschema-2/#rf-pattern</a></p>
+ */
+ [attribute] string Pattern;
+
+ /** specifies how strings of this data type are to be processed, with respect to
+ white spaces
+
+ <p>See <a href="http://www.w3.org/TR/xmlschema-2/#rf-whiteSpace">http://www.w3.org/TR/xmlschema-2/#rf-whiteSpace</a></p>
+ */
+ [attribute] short WhiteSpaceTreatment
+ {
+ set raises ( com::sun::star::lang::IllegalArgumentException );
+ };
+
+ /** specifies whether the type is a basic type
+
+ <p>Basic types are built into the type system, and cannot be changed by the user.</p>
+ */
+ [attribute, readonly] boolean IsBasic;
+
+ /** class of the type
+
+ @see DataTypeClass
+ */
+ [attribute, readonly] short TypeClass;
+
+ /// TODO
+ boolean validate( [in] string value );
+
+ /// TODO
+ string explainInvalid( [in] string value );
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
diff --git a/offapi/com/sun/star/xsd/Year.idl b/offapi/com/sun/star/xsd/Year.idl
new file mode 100644
index 000000000000..3e4a3438acec
--- /dev/null
+++ b/offapi/com/sun/star/xsd/Year.idl
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * Copyright 2000, 2010 Oracle and/or its affiliates.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org. If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
+#ifndef __com_sun_star_xsd_Year_idl__
+#define __com_sun_star_xsd_Year_idl__
+
+#ifndef __com_sun_star_xsd_XDataType_idl__
+#include <com/sun/star/xsd/XDataType.idl>
+#endif
+
+//=============================================================================
+module com { module sun { module star { module xsd {
+
+//-----------------------------------------------------------------------------
+/** specifies an <a href="http://www.w3.org/TR/xmlschema-2/#gYear">XSD compliant gYear type</a>
+*/
+service Year
+{
+ /** provides access to common data type functionality
+ */
+ interface XDataType;
+
+ /** specifies the inclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxInclusive
+ */
+ [property, maybevoid] short MaxInclusiveInt;
+
+ /** specifies the exclusive upper bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-maxExclusive
+ */
+ [property, maybevoid] short MaxExclusiveInt;
+
+ /** specifies the inclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minInclusive
+ */
+ [property, maybevoid] short MinInclusiveInt;
+
+ /** specifies the exclusive lower bound for the value
+ @see http://www.w3.org/TR/xmlschema-2/#rf-minExclusive
+ */
+ [property, maybevoid] short MinExclusiveInt;
+};
+
+//=============================================================================
+
+}; }; }; };
+
+#endif
+
diff --git a/offapi/com/sun/star/xsd/makefile.mk b/offapi/com/sun/star/xsd/makefile.mk
new file mode 100644
index 000000000000..56f791bd1038
--- /dev/null
+++ b/offapi/com/sun/star/xsd/makefile.mk
@@ -0,0 +1,58 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+PRJ=..$/..$/..$/..
+
+PRJNAME=offapi
+
+TARGET=cssxsd
+PACKAGE=com$/sun$/star$/xsd
+
+# --- Settings -----------------------------------------------------
+.INCLUDE : $(PRJ)$/util$/makefile.pmk
+
+# ------------------------------------------------------------------------
+
+IDLFILES=\
+ WhiteSpaceTreatment.idl\
+ Boolean.idl\
+ DataTypeClass.idl\
+ Date.idl\
+ DateTime.idl\
+ Day.idl\
+ Decimal.idl\
+ Month.idl\
+ String.idl\
+ Time.idl\
+ XDataType.idl\
+ Year.idl\
+
+
+# ------------------------------------------------------------------
+
+.INCLUDE : target.mk
+.INCLUDE : $(PRJ)$/util$/target.pmk