diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
commit | 267c6f2ac71f92999e969232431ba04678e7437e (patch) | |
tree | 358c9467650e1d0a1d7227a21dac2e3d08b622b2 /offapi/com/sun/star/xsd | |
parent | Initial commit. (diff) | |
download | libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.tar.xz libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.zip |
Adding upstream version 4:24.2.0.upstream/4%24.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'offapi/com/sun/star/xsd')
-rw-r--r-- | offapi/com/sun/star/xsd/Boolean.idl | 35 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/DataTypeClass.idl | 109 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Date.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/DateTime.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Day.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Decimal.idl | 72 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Month.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/String.idl | 55 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Time.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl | 45 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/XDataType.idl | 75 | ||||
-rw-r--r-- | offapi/com/sun/star/xsd/Year.idl | 54 |
12 files changed, 715 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 0000000000..5131cd11a9 --- /dev/null +++ b/offapi/com/sun/star/xsd/Boolean.idl @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/DataTypeClass.idl b/offapi/com/sun/star/xsd/DataTypeClass.idl new file mode 100644 index 0000000000..07ec6e3ddb --- /dev/null +++ b/offapi/com/sun/star/xsd/DataTypeClass.idl @@ -0,0 +1,109 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + + +module com { module sun { module star { module xsd { + + +/** These constants specify the class used of an XDataType +*/ +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; + +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Date.idl b/offapi/com/sun/star/xsd/Date.idl new file mode 100644 index 0000000000..3d3d6edbdd --- /dev/null +++ b/offapi/com/sun/star/xsd/Date.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/DateTime.idl b/offapi/com/sun/star/xsd/DateTime.idl new file mode 100644 index 0000000000..e07b7ada8e --- /dev/null +++ b/offapi/com/sun/star/xsd/DateTime.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Day.idl b/offapi/com/sun/star/xsd/Day.idl new file mode 100644 index 0000000000..3697eded6a --- /dev/null +++ b/offapi/com/sun/star/xsd/Day.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Decimal.idl b/offapi/com/sun/star/xsd/Decimal.idl new file mode 100644 index 0000000000..8a16d6ba9c --- /dev/null +++ b/offapi/com/sun/star/xsd/Decimal.idl @@ -0,0 +1,72 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Month.idl b/offapi/com/sun/star/xsd/Month.idl new file mode 100644 index 0000000000..36658c2597 --- /dev/null +++ b/offapi/com/sun/star/xsd/Month.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/String.idl b/offapi/com/sun/star/xsd/String.idl new file mode 100644 index 0000000000..c61aad817b --- /dev/null +++ b/offapi/com/sun/star/xsd/String.idl @@ -0,0 +1,55 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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 specify #Length together + with #MinLength or #MaxLength.</p> + */ + [property, maybevoid] long Length; + + /** specifies the minimum length of the string + + <p>Note that you cannot specify #MinLength together + with #Length.</p> + */ + [property, maybevoid] long MinLength; + + /** specifies the maximum length of the string + + <p>Note that you cannot specify #MaxLength together + with #Length.</p> + */ + [property, maybevoid] long MaxLength; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Time.idl b/offapi/com/sun/star/xsd/Time.idl new file mode 100644 index 0000000000..4c85deba8f --- /dev/null +++ b/offapi/com/sun/star/xsd/Time.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl b/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl new file mode 100644 index 0000000000..28f6fba261 --- /dev/null +++ b/offapi/com/sun/star/xsd/WhiteSpaceTreatment.idl @@ -0,0 +1,45 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +module com { module sun { module star { module xsd { + +/** specifies possibilities how to treat whitespace 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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/XDataType.idl b/offapi/com/sun/star/xsd/XDataType.idl new file mode 100644 index 0000000000..7453d03d7e --- /dev/null +++ b/offapi/com/sun/star/xsd/XDataType.idl @@ -0,0 +1,75 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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 ); +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/xsd/Year.idl b/offapi/com/sun/star/xsd/Year.idl new file mode 100644 index 0000000000..2aa08d6db4 --- /dev/null +++ b/offapi/com/sun/star/xsd/Year.idl @@ -0,0 +1,54 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * 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 . + */ + +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; +}; + + +}; }; }; }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |