xref: /AOO41X/main/sc/addin/datefunc/dfa.src (revision 82177cdbfc5fbca7e9a45fdfffbbaeb8a0d1d1a3)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#include "sc.hrc" // Definition RID_XXX in StarCalc
24#include "dfa.hrc"
25
26/* #i54546# The code belonging to this resource file is sample code for the
27 * legacy AddIn interface. The interface is still supported, but deprecated.
28 * The strings here were displayed in the function wizard. To prevent
29 * duplicated and useless translation effort (functions and strings are also
30 * part of the new scaddin module), the strings here are now layed out as fixed
31 * untranslatable strings. The entire mechanism with the ../util/cl2c.pl perl
32 * script merging the raw .cl and the .src during build time didn't work
33 * anymore anyway, since we switched from MS-LCIDs / telephone area codes to
34 * ISO codes for resources, and introduced localize.sdf files. Returned was
35 * always an empty string. Now at least the fixed English string is returned.
36 * */
37
38Resource RID_SC_ADDIN_DFA
39{
40    String DFA_PAR_DATE1_NAME // Name of Date1 Parameter
41    {
42        Text = "Date 1";
43    };
44    String DFA_PAR_DATE2_NAME // Name of Date2 Parameter
45    {
46        Text = "Date 2";
47    };
48    String DFA_PAR_MODE_NAME // Name of Mode Parameter
49    {
50        Text = "Mode";
51    };
52
53    String DFA_PAR_DATE_NAME // Name of Date Parameter
54    {
55        Text = "Date";
56    };
57
58    String DFA_PAR_DATE_DESC // Description of Date Parameter
59    {
60        Text = "Internal number of the date";
61    };
62
63/*-=======================================================================*/
64    String DFA_WEEK_NAME // Name
65    {
66        Text = "Weeks";
67    };
68    String DFA_WEEK_DESC // Description
69    {
70        Text = "Returns the difference in weeks between two dates";
71    };
72    String DFA_WEEK_PAR1_DESC // Description of Parameter 1
73    {
74        Text = "The end date for calculating the difference in weeks";
75    };
76    String DFA_WEEK_PAR2_DESC // Description of Parameter 2
77    {
78        Text = "The start date for calculating the difference weeks";
79    };
80    String DFA_WEEK_PAR3_DESC // Description of Parameter 3
81    {
82        Text = "Type of difference calculation: mode=0 means the interval, mode=1 means calendar weeks";
83    };
84
85/*-=======================================================================*/
86
87    String DFA_MONTHS_NAME // Name
88    {
89        Text = "Months";
90    };
91    String DFA_MONTHS_DESC // Description
92    {
93        Text = "Determines the number of months between two dates";
94    };
95    String DFA_MONTHS_PAR1_DESC // Description of Parameter 1
96    {
97        Text = "The end date for calculating the difference in months";
98    };
99    String DFA_MONTHS_PAR2_DESC // Description of Parameter 2
100    {
101        Text = "The start date for calculating the difference in months";
102    };
103    String DFA_MONTHS_PAR3_DESC // Description of Parameter 2
104    {
105        Text = "Type of difference calculation: Mode = 0 means interval, mode = 1 means in calendar months";
106    };
107
108/*-=======================================================================*/
109
110    String DFA_YEARS_NAME // Name
111    {
112        Text = "Years";
113    };
114    String DFA_YEARS_DESC // Description
115    {
116        Text = "Returns the difference in years between two dates";
117    };
118    String DFA_YEARS_PAR1_DESC // Description of Parameter 1
119    {
120        Text = "The end date for calculating the difference in years";
121    };
122    String DFA_YEARS_PAR2_DESC // Description of Parameter 2
123    {
124        Text = "The start date for calculating the difference in years";
125    };
126    String DFA_YEARS_PAR3_DESC // Description of Parameter 2
127    {
128        Text = "Type of difference calculation: Mode=0 means interval, mode=1 means in calendar years.";
129    };
130
131/*-=======================================================================*/
132
133    String DFA_ISLEAPYEAR_NAME // Name
134    {
135        Text = "IsLeapYear";
136    };
137    String DFA_ISLEAPYEAR_DESC // Description
138    {
139        Text = "Returns 1 (TRUE) if a leap year is used, otherwise 0 (FALSE) is returned";
140    };
141
142/*-=======================================================================*/
143
144    String DFA_DAYSINMONTH_NAME // Name
145    {
146        Text = "DaysInMonth";
147    };
148    String DFA_DAYSINMONTH_DESC // Description
149    {
150        Text = "Returns the number of days in the month in relation to the date entered";
151    };
152
153/*-=======================================================================*/
154
155    String DFA_DAYSINYEAR_NAME // Name
156    {
157        Text = "DaysInYear";
158    };
159    String DFA_DAYSINYEAR_DESC // Description
160    {
161        Text = "Returns the number of days in a year in relation to the date entered";
162    };
163
164/*-=======================================================================*/
165
166    String DFA_WEEKSINYEAR_NAME // Name
167    {
168        Text = "WeeksInYear";
169    };
170    String DFA_WEEKSINYEAR_DESC // Description
171    {
172        Text = "Returns the number of weeks in the year in relation to a date";
173    };
174};
175