1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dateadd.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
33 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
34 #include
<com
/sun
/star
/sheet
/LocalizedName.idl
>
46 interface XCompatibilityNames
: com
::sun
::star
::uno
::XInterface
48 /// @return a sequence with all localized names for a programmatic name
49 sequence
< com
::sun
::star
::sheet
::LocalizedName
> getCompatibilityNames
( [in] string aProgrammaticName
);
53 * Interface with date functions.
55 interface XDateFunctions
: com
::sun
::star
::uno
::XInterface
57 /// calculates the number of weeks between two dates.
59 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
60 [in] long nStartDate
, [in] long nEndDate
, [in] long nMode
)
61 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
63 /// calculates the number of months between two dates.
65 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
66 [in] long nStartDate
, [in] long nEndDate
, [in] long nMode
)
67 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
69 /// calculates the number of years between two dates.
71 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
72 [in] long nStartDate
, [in] long nEndDate
, [in] long nMode
)
73 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
75 /// checks if a date is in a leap year.
77 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
79 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
81 /// calculates the number of days in a month.
83 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
85 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
87 /// calculates the number of days in a year.
89 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
91 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
93 /// calculates the number of weeks in a year.
95 [in] com
::sun
::star
::beans
::XPropertySet xOptions
,
97 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
101 * Interface with miscellaneous functions.
103 interface XMiscFunctions
: com
::sun
::star
::uno
::XInterface
105 /// Encrypts or decrypts a string using the ROT13 algorithm.
106 string getRot13
( [in] string aSrcString
)
107 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
110 service DateFunctions
112 // exported interfaces:
113 interface XDateFunctions
;
114 interface XMiscFunctions
;