summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehrend Cornelius <bc@openoffice.org>2001-11-16 10:21:09 +0000
committerBehrend Cornelius <bc@openoffice.org>2001-11-16 10:21:09 +0000
commit851c270bc104fb3d1e551ec01e70ff95fcadedb4 (patch)
treeac7332783c26ad31315e56e90d1f35ad1ab3ab48
parenta420f83900e42f410e2a336323b43eb2aac7f618 (diff)
#94767# chinese(TW), japanese and american holidays added. Also HIDs
-rw-r--r--wizards/source/schedule/BankHoliday.xba21
-rw-r--r--wizards/source/schedule/CalendarMain.xba27
-rw-r--r--wizards/source/schedule/CreateTable.xba7
-rw-r--r--wizards/source/schedule/DlgCalendar.xdl57
-rw-r--r--wizards/source/schedule/DlgControl.xba25
-rw-r--r--wizards/source/schedule/GermanHolidays.xba38
-rw-r--r--wizards/source/schedule/Language.xba11
-rw-r--r--wizards/source/schedule/LocalHolidays.xba168
-rw-r--r--wizards/source/schedule/OwnEvents.xba3
9 files changed, 193 insertions, 164 deletions
diff --git a/wizards/source/schedule/BankHoliday.xba b/wizards/source/schedule/BankHoliday.xba
index a593809ee..f2eb78ec6 100644
--- a/wizards/source/schedule/BankHoliday.xba
+++ b/wizards/source/schedule/BankHoliday.xba
@@ -135,22 +135,19 @@ End Sub
&apos; Finds eg the first,second Monday in a month
&apos; Note: in This Function the week starts with the Sunday
-Function GetMonthDate(iWeekDay, iMonth, iCount as Integer)
+Function GetMonthDate(YearInt as Integer, iMonth as Integer, iWeekDay as Integer, iOffset as Integer)
Dim bFound as Boolean
-Dim i as Integer
-Dim lDate as Integer
+Dim lDate as Long
&apos; 1st Tue in Nov : Election Day, Half
bFound = False
- i = 0
- lDate = DateSerial(YearInt%, iMonth, 1)
- While Not bFound
- If (iWeekDay = WeekDay(lDate)) Then i = i + 1
- If (i &lt; iCount) Then
- lDate = lDate + 1
- Else
+ lDate = DateSerial(YearInt, iMonth, 1)
+ Do
+ If iWeekDay = WeekDay(lDate) Then
bFound = True
+ Else
+ lDate = lDate + 1
End If
- Wend
- GetMonthDate = lDate
+ Loop Until bFound
+ GetMonthDate = lDate + iOffset
End Function
</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/CalendarMain.xba b/wizards/source/schedule/CalendarMain.xba
index dbaeaf779..798d8cf4c 100644
--- a/wizards/source/schedule/CalendarMain.xba
+++ b/wizards/source/schedule/CalendarMain.xba
@@ -6,7 +6,7 @@ Const _DEBUG = 0
&apos; CalenderMain
Public sCurLangLocale as String
-
+Public sCurCountryLocale as String
&apos; Dieses Flag dient zur Abfrage ob die individuellen Daten abgespeichert werden sollen.
Public bCalOwnDataChanged as Boolean
@@ -66,14 +66,15 @@ Public DlgCalModel as Object
Sub CalAutopilotTable()
Dim BitmapDir as String
Dim iThisMonth as Integer
-&apos; On Error Goto ErrorHandler
+&apos;On Error Goto ErrorHandler
BasicLibraries.LoadLibrary(&quot;Tools&quot;)
bSelectByMouseMove = True
- &apos; HauptRoutine zur Erstellung des Kalenders
- oDocument = StarDesktop.ActiveFrame.Controller.Model
+ oDocument = ThisComponent
oStatusline = oDocument.GetCurrentController.GetFrame.CreateStatusIndicator
ToggleWindow(False)
sCurLangLocale = oDocument.CharLocale.Language
+ sCurCountryLocale = oDocument.CharLocale.Country
+
DlgCalendar = LoadDialog(&quot;Schedule&quot;, &quot;DlgCalendar&quot;)
DlgCalModel = DlgCalendar.Model
LoadLanguage(sCurLangLocale)
@@ -108,11 +109,11 @@ Dim iThisMonth as Integer
iThisMonth = Month(Now)
DlgCalendar.GetControl(&quot;lstMonth&quot;).SelectItemPos(iThisMonth-1, True)
DlgCalendar.GetControl(&quot;lstHolidays&quot;).SelectItemPos(0,True)
+ DlgCalModel.cmdGoOn.DefaultButton = True
ToggleWindow(True)
DlgCalendar.Execute()
DlgCalendar.Dispose()
Exit Sub
-
ErrorHandler:
MsgBox(sError$, 16, sWizardTitle$)
End Sub
@@ -146,6 +147,8 @@ Dim SelYear as String
UnprotectSheets(oSheets)
oSheets.RemovebyName(oSheets.GetbyIndex(0).Name)
iSelYear = DlgCalModel.txtYear.Value
+&apos; sCurLangLocale = &quot;zh&quot;
+&apos; sCurCountryLocale = &quot;TW&quot;
Select Case sCurLangLocale
Case cLANGUAGE_GERMAN
If Ubound(DlgCalModel.lstHolidays.SelectedItems()) &gt; -1 Then
@@ -174,6 +177,14 @@ Dim SelYear as String
Call FindWholeYearHolidays_PL(iSelYear)
Case cLANGUAGE_RUSSIAN
Call FindWholeYearHolidays_RU(iSelYear)
+ Case cLANGUAGE_JAPANESE
+ Call FindWholeYearHolidays_JP(iSelYear)
+ Case cLANGUAGE_CHINESE
+ If sCurCountryLocale = &quot;TW&quot; Then
+ Call FindWholeYearHolidays_TW(iSelYear)
+ Else
+
+ End If
End Select
Call CalInsertOwnDataInTables(iSelYear)
@@ -182,7 +193,7 @@ Dim SelYear as String
oSheets.RemovebyName(oSheets.GetbyIndex(0).Name)
oSheet = oSheets.GetbyIndex(0)
oSheet.Name = sCalendarTitle$ + &quot; &quot; + iSelYear
-&apos; oDocument.AddActionLock
+ oDocument.AddActionLock
Call CalCreateYearTable(iSelYear)
ElseIf DlgCalModel.optMonth.State = 1 Then
Dim iMonth
@@ -190,11 +201,11 @@ Dim SelYear as String
oSheets.RemovebyName(oSheets.GetbyIndex(1).Name)
oSheet = oSheets.GetbyIndex(0)
oSheet.Name = sMonthTitle$ + &quot; &quot; + cCalLongMonthNames(iMonth-1)
-&apos; oDocument.AddActionLock
+ oDocument.AddActionLock
Call CalCreateMonthTable(iSelYear, iMonth)
End If
-&apos; oDocument.RemoveActionLock
+ oDocument.RemoveActionLock
oSheet.protect(&quot;&quot;)
oStatusLine.End
DlgCalendar.EndExecute()
diff --git a/wizards/source/schedule/CreateTable.xba b/wizards/source/schedule/CreateTable.xba
index 4ea92f962..3be1ac44c 100644
--- a/wizards/source/schedule/CreateTable.xba
+++ b/wizards/source/schedule/CreateTable.xba
@@ -26,13 +26,10 @@ Dim oRangeBlank as Object
Dim sBlankStyle as String
&apos; On Error Goto ErrorHandling
oStatusLine.Start(&quot;&quot;,140) &apos;GetResText(sProgress)
-
iDate = DateSerial(iSelYear,1,1)
-
- &apos; Insert year
oYearCell = oSheet.GetCellRangeByName(&quot;Year&quot;)
oYearCell.Value = iSelYear
- &apos; Insert holidays
+
CalMonth = 1
CalDay = 0
s = 10
@@ -47,7 +44,7 @@ Dim sBlankStyle as String
End If
ColPos = NewYearColumn+(2*CalMonth)
RowPos = NewYearRow + CalDay
- FormatCalCells(ColPos,RowPos,i)
+ FormatCalCells(ColPos,RowPos,i)
Next
If NOT CalIsLeapYear(iSelYear) Then
&apos; Delete 29th February if necessary
diff --git a/wizards/source/schedule/DlgCalendar.xdl b/wizards/source/schedule/DlgCalendar.xdl
index 6ee490af8..fe40453f8 100644
--- a/wizards/source/schedule/DlgCalendar.xdl
+++ b/wizards/source/schedule/DlgCalendar.xdl
@@ -1,70 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
-<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="160" dlg:top="81" dlg:width="208" dlg:height="156" dlg:page="2">
+<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="Dialog1" dlg:left="160" dlg:top="81" dlg:width="208" dlg:height="156" dlg:page="2" dlg:help-url="HID:34700">
<dlg:styles>
- <dlg:style dlg:style-id="0" dlg:font-name="Cumberland" dlg:font-stylename="Standard" dlg:font-family="modern" dlg:font-charset="ansi"/>
+ <dlg:style dlg:style-id="0" dlg:background-color="0x8000"/>
<dlg:style dlg:style-id="1" dlg:font-name="Cumberland" dlg:font-stylename="Standard" dlg:font-family="modern" dlg:font-charset="ansi"/>
+ <dlg:style dlg:style-id="2" dlg:font-name="Cumberland" dlg:font-stylename="Standard" dlg:font-family="modern" dlg:font-charset="ansi"/>
</dlg:styles>
<dlg:bulletinboard>
- <dlg:menulist dlg:id="lstHolidays" dlg:tab-index="0" dlg:left="6" dlg:top="17" dlg:width="105" dlg:height="12" dlg:page="1" dlg:spin="true"/>
- <dlg:fixedline dlg:id="hlnCalendar" dlg:tab-index="1" dlg:left="6" dlg:top="36" dlg:width="105" dlg:height="8" dlg:page="1" dlg:value="hlnCalendar"/>
+ <dlg:menulist dlg:id="lstHolidays" dlg:tab-index="0" dlg:left="6" dlg:top="17" dlg:width="95" dlg:height="12" dlg:page="1" dlg:help-url="HID:34708" dlg:spin="true"/>
+ <dlg:fixedline dlg:id="hlnCalendar" dlg:tab-index="1" dlg:left="6" dlg:top="36" dlg:width="95" dlg:height="8" dlg:page="1" dlg:value="hlnCalendar"/>
<dlg:radiogroup>
- <dlg:radio dlg:id="optYear" dlg:tab-index="2" dlg:left="12" dlg:top="47" dlg:width="81" dlg:height="10" dlg:page="1" dlg:value="optYear">
+ <dlg:radio dlg:id="optYear" dlg:tab-index="2" dlg:left="12" dlg:top="47" dlg:width="81" dlg:height="10" dlg:page="1" dlg:help-url="HID:34702" dlg:value="optYear">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.CalendarMain.CalChooseCalendar" script:language="StarBasic"/>
</dlg:radio>
- <dlg:radio dlg:id="optMonth" dlg:tab-index="3" dlg:left="13" dlg:top="61" dlg:width="81" dlg:height="10" dlg:page="1" dlg:value="optMonth">
+ <dlg:radio dlg:id="optMonth" dlg:tab-index="3" dlg:left="13" dlg:top="61" dlg:width="81" dlg:height="10" dlg:page="1" dlg:help-url="HID:34703" dlg:value="optMonth">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.CalendarMain.CalChooseCalendar" script:language="StarBasic"/>
</dlg:radio>
</dlg:radiogroup>
<dlg:text dlg:id="lblHolidays" dlg:tab-index="4" dlg:left="6" dlg:top="6" dlg:width="87" dlg:height="8" dlg:page="1" dlg:value="lblHolidays"/>
- <dlg:img dlg:id="imgCountry" dlg:tab-index="5" dlg:left="119" dlg:top="10" dlg:width="83" dlg:height="103" dlg:page="1">
+ <dlg:img dlg:style-id="0" dlg:id="imgCountry" dlg:tab-index="5" dlg:left="106" dlg:top="6" dlg:width="95" dlg:height="113" dlg:page="1" dlg:help-url="HID:34701" dlg:scale-image="false">
<script:event script:event-name="on-mousedown" script:location="application" script:macro-name="Schedule.DlgControl.SelectState" script:language="StarBasic"/>
<script:event script:event-name="on-mouseout" script:location="application" script:macro-name="Schedule.DlgControl.MouseLeavesImage" script:language="StarBasic"/>
<script:event script:event-name="on-mousemove" script:location="application" script:macro-name="Schedule.DlgControl.CalMouseMoved" script:language="StarBasic"/>
</dlg:img>
- <dlg:fixedline dlg:id="hlnTime" dlg:tab-index="6" dlg:left="5" dlg:top="78" dlg:width="105" dlg:height="8" dlg:page="1" dlg:value="hlnTime"/>
- <dlg:menulist dlg:id="lstMonth" dlg:tab-index="7" dlg:left="65" dlg:top="106" dlg:width="40" dlg:height="12" dlg:page="1" dlg:spin="true"/>
+ <dlg:fixedline dlg:id="hlnTime" dlg:tab-index="6" dlg:left="5" dlg:top="78" dlg:width="95" dlg:height="8" dlg:page="1" dlg:value="hlnTime"/>
+ <dlg:menulist dlg:id="lstMonth" dlg:tab-index="7" dlg:left="62" dlg:top="106" dlg:width="38" dlg:height="12" dlg:page="1" dlg:help-url="HID:34705" dlg:spin="true"/>
<dlg:text dlg:id="lblYear" dlg:tab-index="8" dlg:left="12" dlg:top="91" dlg:width="46" dlg:height="8" dlg:page="1" dlg:value="lblYear"/>
<dlg:text dlg:id="lblMonth" dlg:tab-index="9" dlg:left="12" dlg:top="108" dlg:width="46" dlg:height="8" dlg:page="1" dlg:value="lblMonth"/>
<dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="10" dlg:left="6" dlg:top="125" dlg:width="196" dlg:height="4"/>
- <dlg:button dlg:id="cmdCancel" dlg:tab-index="11" dlg:left="6" dlg:top="136" dlg:width="50" dlg:height="14" dlg:value="cmdCancel">
+ <dlg:button dlg:id="cmdCancel" dlg:tab-index="11" dlg:left="6" dlg:top="136" dlg:width="50" dlg:height="14" dlg:help-url="HID:34721" dlg:value="cmdCancel">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.CalendarMain.CalcmdCancel" script:language="StarBasic"/>
</dlg:button>
- <dlg:button dlg:id="cmdOwnData" dlg:tab-index="12" dlg:left="99" dlg:top="136" dlg:width="50" dlg:height="14" dlg:value="cmdOwnData">
+ <dlg:button dlg:id="cmdOwnData" dlg:tab-index="12" dlg:left="99" dlg:top="136" dlg:width="50" dlg:height="14" dlg:help-url="HID:34720" dlg:value="cmdOwnData">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.DlgControl.CalmdSwitchOwnDataOrGeneral" script:language="StarBasic"/>
</dlg:button>
- <dlg:button dlg:id="cmdGoOn" dlg:tab-index="13" dlg:left="152" dlg:top="136" dlg:width="50" dlg:height="14" dlg:value="cmdGoOn">
+ <dlg:button dlg:id="cmdGoOn" dlg:tab-index="13" dlg:left="152" dlg:top="136" dlg:width="50" dlg:height="14" dlg:help-url="HID:34722" dlg:value="cmdGoOn">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.CalendarMain.CalcmdOk" script:language="StarBasic"/>
</dlg:button>
<dlg:text dlg:id="lblEvent" dlg:tab-index="14" dlg:left="12" dlg:top="17" dlg:width="67" dlg:height="8" dlg:page="2" dlg:value="lblEvent"/>
<dlg:fixedline dlg:id="hlnNewEvent" dlg:tab-index="15" dlg:left="6" dlg:top="6" dlg:width="196" dlg:height="8" dlg:page="2" dlg:value="hlnNewEvent"/>
- <dlg:textfield dlg:style-id="0" dlg:id="txtEvent" dlg:tab-index="16" dlg:left="12" dlg:top="28" dlg:width="107" dlg:height="12" dlg:page="2">
+ <dlg:textfield dlg:style-id="1" dlg:id="txtEvent" dlg:tab-index="16" dlg:left="12" dlg:top="28" dlg:width="107" dlg:height="12" dlg:page="2" dlg:help-url="HID:34712">
<script:event script:event-name="on-textchange" script:location="application" script:macro-name="Schedule.OwnEvents.CheckInsertedDates" script:language="StarBasic"/>
</dlg:textfield>
- <dlg:numericfield dlg:id="txtOwnEventDay" dlg:tab-index="17" dlg:left="13" dlg:top="55" dlg:width="30" dlg:height="12" dlg:page="2" dlg:decimal-accuracy="0" dlg:value-min="1.0">
+ <dlg:checkbox dlg:id="chkEventOnce" dlg:tab-index="17" dlg:left="140" dlg:top="29" dlg:width="62" dlg:height="10" dlg:page="2" dlg:help-url="HID:34713" dlg:value="chkEventOnce" dlg:checked="false">
+ <script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.DlgControl.ToggleYearBox" script:language="StarBasic"/>
+ </dlg:checkbox>
+ <dlg:numericfield dlg:id="txtOwnEventDay" dlg:tab-index="18" dlg:left="13" dlg:top="55" dlg:width="30" dlg:height="12" dlg:page="2" dlg:help-url="HID:34714" dlg:decimal-accuracy="0" dlg:value-min="1.0">
<script:event script:event-name="on-textchange" script:location="application" script:macro-name="Schedule.OwnEvents.CheckInsertedDates" script:language="StarBasic"/>
</dlg:numericfield>
- <dlg:checkbox dlg:id="chkEventOnce" dlg:tab-index="18" dlg:left="140" dlg:top="29" dlg:width="62" dlg:height="10" dlg:page="2" dlg:value="chkEventOnce">
- <script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="Schedule.DlgControl.ToggleYearBox" script:language="StarBasic"/>
- </dlg:checkbox>
- <dlg:menulist dlg:id="lstOwnEventMonth" dlg:tab-index="19" dlg:left="60" dlg:top="55" dlg:width="30" dlg:height="12" dlg:page="2" dlg:spin="true">
+ <dlg:menulist dlg:id="lstOwnEventMonth" dlg:tab-index="19" dlg:left="60" dlg:top="55" dlg:width="30" dlg:height="12" dlg:page="2" dlg:help-url="HID:34716" dlg:spin="true">
<script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="Schedule.OwnEvents.GetOwnMonth" script:language="StarBasic"/>
</dlg:menulist>
- <dlg:button dlg:id="cmdInsert" dlg:tab-index="20" dlg:left="99" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:value="cmdInsert">
+ <dlg:numericfield dlg:id="txtOwnEventYear" dlg:tab-index="20" dlg:left="110" dlg:top="55" dlg:width="40" dlg:height="12" dlg:page="2" dlg:help-url="HID:34718" dlg:decimal-accuracy="0" dlg:value-min="1582.0" dlg:value-max="9957.0" dlg:spin="true">
+ <script:event script:event-name="on-textchange" script:location="application" script:macro-name="Schedule.OwnEvents.CheckInsertedDates" script:language="StarBasic"/>
+ </dlg:numericfield>
+ <dlg:button dlg:id="cmdInsert" dlg:tab-index="21" dlg:left="99" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:help-url="HID:34710" dlg:value="cmdInsert">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.OwnEvents.CalcmdInsertData" script:language="StarBasic"/>
</dlg:button>
- <dlg:button dlg:id="cmdDelete" dlg:tab-index="21" dlg:left="152" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:value="cmdDelete">
+ <dlg:button dlg:id="cmdDelete" dlg:tab-index="22" dlg:left="152" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:help-url="HID:34711" dlg:value="cmdDelete">
<script:event script:event-name="on-performaction" script:location="application" script:macro-name="Schedule.DlgControl.CalcmdDeleteSelect" script:language="StarBasic"/>
</dlg:button>
- <dlg:menulist dlg:style-id="1" dlg:id="lstOwnData" dlg:tab-index="22" dlg:left="12" dlg:top="86" dlg:width="190" dlg:height="34" dlg:page="2">
+ <dlg:menulist dlg:style-id="2" dlg:id="lstOwnData" dlg:tab-index="23" dlg:left="12" dlg:top="86" dlg:width="190" dlg:height="34" dlg:page="2" dlg:help-url="HID:34709">
<script:event script:event-name="on-itemstatechange" script:location="application" script:macro-name="Schedule.DlgControl.CalUpdateNewEventFrame" script:language="StarBasic"/>
</dlg:menulist>
- <dlg:text dlg:id="lblEventDay" dlg:tab-index="23" dlg:left="12" dlg:top="44" dlg:width="44" dlg:height="8" dlg:page="2" dlg:value="lblEventDay"/>
- <dlg:text dlg:id="lblEventMonth" dlg:tab-index="24" dlg:left="60" dlg:top="44" dlg:width="44" dlg:height="8" dlg:page="2" dlg:value="lblEventMonth"/>
- <dlg:text dlg:id="lblEventYear" dlg:tab-index="25" dlg:left="110" dlg:top="44" dlg:width="59" dlg:height="8" dlg:page="2" dlg:value="lblEventYear"/>
- <dlg:numericfield dlg:id="txtOwnEventYear" dlg:tab-index="26" dlg:left="110" dlg:top="55" dlg:width="40" dlg:height="12" dlg:page="2" dlg:decimal-accuracy="0" dlg:value-min="1582.0" dlg:value-max="9957.0" dlg:spin="true">
- <script:event script:event-name="on-textchange" script:location="application" script:macro-name="Schedule.OwnEvents.CheckInsertedDates" script:language="StarBasic"/>
- </dlg:numericfield>
- <dlg:numericfield dlg:id="txtYear" dlg:tab-index="27" dlg:left="65" dlg:top="89" dlg:width="40" dlg:height="12" dlg:page="1" dlg:decimal-accuracy="0" dlg:value-min="1582.0" dlg:value-max="9957.0" dlg:spin="true"/>
+ <dlg:text dlg:id="lblEventDay" dlg:tab-index="24" dlg:left="12" dlg:top="44" dlg:width="44" dlg:height="8" dlg:page="2" dlg:value="lblEventDay"/>
+ <dlg:text dlg:id="lblEventMonth" dlg:tab-index="25" dlg:left="60" dlg:top="44" dlg:width="44" dlg:height="8" dlg:page="2" dlg:value="lblEventMonth"/>
+ <dlg:text dlg:id="lblEventYear" dlg:tab-index="26" dlg:left="110" dlg:top="44" dlg:width="59" dlg:height="8" dlg:page="2" dlg:value="lblEventYear"/>
+ <dlg:numericfield dlg:id="txtYear" dlg:tab-index="27" dlg:left="62" dlg:top="89" dlg:width="38" dlg:height="12" dlg:page="1" dlg:help-url="HID:34704" dlg:decimal-accuracy="0" dlg:value-min="1582.0" dlg:value-max="9957.0" dlg:spin="true"/>
</dlg:bulletinboard>
</dlg:window> \ No newline at end of file
diff --git a/wizards/source/schedule/DlgControl.xba b/wizards/source/schedule/DlgControl.xba
index 36683a875..1a63cb126 100644
--- a/wizards/source/schedule/DlgControl.xba
+++ b/wizards/source/schedule/DlgControl.xba
@@ -83,6 +83,7 @@ Dim ListIndex as Integer
Select Case sCurLangLocale
Case cLANGUAGE_GERMAN
If bSelectByMouseMove Then
+&apos; oStatusLine.SetText(aEvent.X &amp; &quot; ; &quot; &amp; aEvent.Y)
ListIndex = CalGetGermanLandAtMousePos(aEvent.X, aEvent.Y, Land$)
DlgCalendar.GetControl(&quot;lstHolidays&quot;).SelectItemPos(ListIndex, True)
End If
@@ -104,30 +105,6 @@ Sub MouseLeavesImage
End Sub
-&apos;Sub CalChangeGeneralMonth()
-&apos;
-&apos; Dim MonthToCheck$
-&apos; Dim ValMonthToCheck%
-&apos;
-&apos; MonthToCheck$ = DlgCalModel.txtMonth.Text
-&apos; ValMonthToCheck% = Val(MonthToCheck$)
-&apos;
-&apos; If (ValMonthToCheck% &gt;= 1) And (ValMonthToCheck% &lt;=12) Then
-&apos; DlgCalModel.txtMonth.Text = cCalShortMonthNames$(ValMonthToCheck%)
-&apos; Exit Sub
-&apos; End If
-&apos;
-&apos; If CalGetIntOfShortMonthName%(Trim(Left(MonthToCheck$, 3))) = 0 Then
-&apos; Beep
-&apos; DlgCalModel.txtMonth.Text = DlgCalModel.txtMonth.Tag
-&apos; Else
-&apos; DlgCalModel.txtMonth.Text = Trim(Left(MonthToCheck, 3))
-&apos; End If
-&apos;
-&apos;End Sub
-
-
-
Sub CalClearInputMask()
Dim NullList() as String
&apos; Löscht die Werte der Eingabe Controls für ein neues Ereignis.
diff --git a/wizards/source/schedule/GermanHolidays.xba b/wizards/source/schedule/GermanHolidays.xba
index f619144d1..6f01c4c99 100644
--- a/wizards/source/schedule/GermanHolidays.xba
+++ b/wizards/source/schedule/GermanHolidays.xba
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
-<script:module xmlns:script="http://openoffice.org/2000/script" script:name="HolidayGerman" script:language="StarBasic">Option Explicit
+<script:module xmlns:script="http://openoffice.org/2000/script" script:name="GermanHolidays" script:language="StarBasic">Option Explicit
Sub Main()
Call CalAutopilotTable()
@@ -8,58 +8,58 @@ End Sub
Function CalGetGermanLandAtMousePos(byval X as single, byval Y as single) as Integer
CalChoosenLand = 0
- If (X&gt;68)And(X&lt;125)And(Y&gt;116)And(Y&lt;176) Then
+ If (X&gt;73)And(X&lt;130)And(Y&gt;121)And(Y&lt;181) Then
CalChoosenLand = CalBLBayern
- ElseIf (X&gt;36)And(X&lt;84)And(Y&gt;131)And(Y&lt;178) Then
+ ElseIf (X&gt;41)And(X&lt;89)And(Y&gt;136)And(Y&lt;183) Then
CalChoosenLand = CalBLBadenWuert
- ElseIf (X&gt;9)And(X&lt;26)And(Y&gt;128)And(Y&lt;139) Then
+ ElseIf (X&gt;14)And(X&lt;31)And(Y&gt;133)And(Y&lt;144) Then
CalChoosenLand = CalBLSaarland
- ElseIf (X&gt;8)And(X&lt;37)And(Y&gt;107)And(Y&lt;141) Then
+ ElseIf (X&gt;13)And(X&lt;42)And(Y&gt;111)And(Y&lt;146) Then
CalChoosenLand = CalBLRheinlandPfalz
- ElseIf (X&gt;5)And(X&lt;53)And(Y&gt;65)And(Y&lt;107) Then
+ ElseIf (X&gt;10)And(X&lt;58)And(Y&gt;70)And(Y&lt;112) Then
CalChoosenLand = CalBLNordrheinWest
- ElseIf (X&gt;39)And(X&lt;70)And(Y&gt;87)And(Y&lt;131) Then
+ ElseIf (X&gt;44)And(X&lt;75)And(Y&gt;92)And(Y&lt;136) Then
CalChoosenLand = CalBLHessen
- ElseIf (X&gt;70)And(X&lt;105)And(Y&gt;83)And(Y&lt;116) Then
+ ElseIf (X&gt;75)And(X&lt;110)And(Y&gt;88)And(Y&lt;120) Then
CalChoosenLand = CalBLThueringen
- ElseIf (X&gt;105)And(X&lt;150)And(Y&gt;82)And(Y&lt;107) Then
+ ElseIf (X&gt;110)And(X&lt;155)And(Y&gt;87)And(Y&lt;112) Then
CalChoosenLand = CalBLSachsen
- ElseIf (X&gt;47)And(X&lt;85)And(Y&gt;6)And(Y&lt;37) Then
+ ElseIf (X&gt;52)And(X&lt;90)And(Y&gt;11)And(Y&lt;42) Then
CalChoosenLand = CalBLSchlHolstein
- ElseIf (X&gt;74)And(X&lt;85)And(Y&gt;37)And(Y&lt;43) Then
+ ElseIf (X&gt;79)And(X&lt;90)And(Y&gt;42)And(Y&lt;48) Then
CalChoosenLand = CalBLHamburg
- ElseIf (X&gt;85)And(X&lt;138)And(Y&gt;18)And(Y&lt;45) Then
+ ElseIf (X&gt;90)And(X&lt;143)And(Y&gt;23)And(Y&lt;50) Then
CalChoosenLand = CalBLMeckPomm
- ElseIf (X&gt;49)And(X&lt;55)And(Y&gt;41)And(Y&lt;47) Then
+ ElseIf (X&gt;54)And(X&lt;60)And(Y&gt;46)And(Y&lt;52) Then
CalChoosenLand = CalBLBremen
- ElseIf (X&gt;51)And(X&lt;65)And(Y&gt;53)And(Y&lt;60) Then
+ ElseIf (X&gt;53)And(X&lt;67)And(Y&gt;55)And(Y&lt;62) Then
CalChoosenLand = CalBLBremen
- ElseIf (X&gt;23)And(X&lt;85)And(Y&gt;38)And(Y&lt;67) Then
+ ElseIf (X&gt;25)And(X&lt;87)And(Y&gt;40)And(Y&lt;69) Then
CalChoosenLand = CalBLNiedersachsen
- ElseIf (X&gt;53)And(X&lt;85)And(Y&gt;67)And(Y&lt;83) Then
+ ElseIf (X&gt;55)And(X&lt;87)And(Y&gt;69)And(Y&lt;85) Then
CalChoosenLand = CalBLNiedersachsen
- ElseIf (X&gt;85)And(X&lt;105)And(Y&gt;45)And(Y&lt;83) Then
+ ElseIf (X&gt;87)And(X&lt;107)And(Y&gt;47)And(Y&lt;85) Then
CalChoosenLand = CalBLSachsenAnhalt
- ElseIf (X&gt;116)And(X&lt;130)And(Y&gt;58)And(Y&lt;68) Then
+ ElseIf (X&gt;122)And(X&lt;135)And(Y&gt;62)And(Y&lt;72) Then
CalChoosenLand = CalBLBerlin
- ElseIf (X&gt;105)And(X&lt;144)And(Y&gt;45)And(Y&lt;82) Then
+ ElseIf (X&gt;107)And(X&lt;146)And(Y&gt;47)And(Y&lt;84) Then
CalChoosenLand = CalBLBrandenburg
End If
&apos; If (CalChoosenLand &gt;= Lbound(BLNameList)) AND ((CalChoosenLand &lt;= Ubound(BLNameList))) Then
diff --git a/wizards/source/schedule/Language.xba b/wizards/source/schedule/Language.xba
index a7d6ee2ab..cc650dd87 100644
--- a/wizards/source/schedule/Language.xba
+++ b/wizards/source/schedule/Language.xba
@@ -49,17 +49,6 @@ Const dlgShortMonth = 1225
BLNameList(16) = &quot;Thüringen&quot;
DlgCalModel.lstHolidays.StringItemList() = BLNameList()
-&apos; Dim FirstItem as String
-&apos;
-&apos; FirstItem = GetResText(1100)
-&apos; DlgCalModel.lstSpecBankholidays.AddItem(FirstItem)
-&apos; For i = 1 To Ubound(BLNameList())
-&apos; DlgCalModel.cmbState.AddItem(BLNameList(i))
-&apos; Next i
- Else
-&apos; printdbgInfo DlgCalendar.GetControl(&quot;lblSpecBankholidays&quot;)
-&apos; DlgCalendar.GetControl(&quot;lblSpecBankholidays&quot;).Visible = False
-&apos; DlgCalendar.GetControl(&quot;lstSpecBankholidays&quot;).Visible = False
End If
sWizardTitle$ = GetResText(1300)
sError$ = GetResText(1301)
diff --git a/wizards/source/schedule/LocalHolidays.xba b/wizards/source/schedule/LocalHolidays.xba
index a94219466..84afd458c 100644
--- a/wizards/source/schedule/LocalHolidays.xba
+++ b/wizards/source/schedule/LocalHolidays.xba
@@ -258,72 +258,30 @@ End Sub
Sub FindWholeYearHolidays_US(ByVal YearInt as Integer)
-Dim lDate&amp;
-
-&apos; &quot;Administrative Professionals&apos; Day&quot; &quot;False&quot; 8 &quot;4,4&quot;
-&apos; &quot;Grandparents&apos; Day&quot; &quot;False&quot; 1 &quot;9,2,6&quot;
-
+Dim lDate as Long
+Dim lFirstNov as Long
+Dim lElectDate as Long
CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;New Year&apos;s Day&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 17), &quot;Martin Luther King&quot;, cHolidayType_Full)
-&apos; &quot;Birthday of Martin Luther King&quot; &quot;True&quot; 4 &quot;1,2,14&quot; Todo: Was ist richtig?
-
CalInsertBankholiday(DateSerial(YearInt, 2, 2), &quot;Groundhog Day&quot;, cHolidayType_Half)
-
- CalInsertBankholiday(DateSerial(YearInt, 2, 12), &quot;Lincoln&apos;s Birthday&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 2, 14), &quot;Valentine&apos;s Day&quot;, cHolidayType_Half)
-
- CalInsertBankholiday(DateSerial(YearInt, 2, 21), &quot;President&apos;s Day&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 2, 22), &quot;Washington&apos;s Birthday&quot;, cHolidayType_Half)
-&apos; &quot;Washington&apos;s Birthday&quot; &quot;True&quot; 4 &quot;2,2,14&quot; Todo: Was ist richtig?
-
CalInsertBankholiday(DateSerial(YearInt, 3, 17), &quot;St Patrick&apos;s Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 4, 1), &quot;April Fools&apos; Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 4, 22), &quot;Earth Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 5, 6), &quot;Nurses Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 6), &quot;Nurses&apos; Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 6, 14), &quot;Flag Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 6, 14), &quot;Army Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 6, 19), &quot;Juneteenth(Liberation of Slaves)&quot;, cHolidayType_Half)
-&apos; CalInsertBankholiday(DateSerial(YearInt, , ), &quot;Sweetest Day&quot;, cHolidayType_Half) &apos;Todo???
-&apos; &quot;Sweetest Day&quot; &quot;False&quot; 1 &quot;10,7,14&quot;
- &apos; Last Monday in May: Menorial Day, Full
- lDate = DateSerial(YearInt, 6, 1) - 1
- While WeekDay(lDate) &lt;&gt; 2
- lDate = lDate - 1
- Wend
- CalInsertBankholiday(lDate, &quot;Memorial Day&quot;, cHolidayType_Full)
-
- &apos; Mothers Day : 2nd Sunday in May, Full
- CalInsertBankholiday(GetMonthDate(5,1,2), &quot;Mother&apos;s Day&quot;, cHolidayType_Full)
-
- &apos; Fathers Day : 3rd Sunday in June
- CalInsertBankholiday(GetMonthDate(6,1,3), &quot;Father&apos;s Day&quot;, cHolidayType_Half)
-
- &apos; Easter, get it with look-up table
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate, &quot;Easter Sunday&quot;, cHolidayType_Full)
-
CalInsertBankholiday(DateSerial(YearInt, 7, 4), &quot;Independence Day&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 9, 17), &quot;Citizenship Day or Constitution Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 10, 9), &quot;Columbus Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 8, 1), &quot;Air Force Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 8, 4), &quot;Coast Guard Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 17), &quot;Citizenship Day or Constitution Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 10, 16), &quot;Bosses&apos; Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 10, 26 ), &quot;Mother-in-Law&apos;s Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 10, 27), &quot;Navy Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 10, 31), &quot;Halloween&quot;, cHolidayType_Half)
-
- &apos; 1st Monday in Sep : Labor Day, Full
- CalInsertBankholiday(GetMonthDate(9,2,1), &quot;Labor Day&quot;, cHolidayType_Full)
-
- &apos; First Thursday in November
- CalInsertBankholiday(GetMonthDate(11, 3, 1), &quot;Election Day&quot;, cHolidayType_Full)
-
- &apos; 3rd Thu in Nov : Thanksgiving, Full
- CalInsertBankholiday(GetMonthDate(11, 5, 21), &quot;Thanksgiving&quot;, cHolidayType_Full)
- CalInsertBankholiday(GetMonthDate(10, 2 1), &quot;Columbus Day&quot;, cHolidayType_Full)
- CalInsertBankholiday(GetMonthDate(5, 5, 1), &quot;National Day of Prayer&quot;, cHolidayType_Half)
- CalInsertBankholiday(GetMonthDate(7, 1, 21), &quot;Parents&apos; Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(GetMonthDate(8, 1, 1), &quot;Friendship Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(GetMonthDate(10, 1, 1), &quot;National Children&apos;s Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(GetMonthDate(7, 5, 21), &quot;Armed Forces Day&quot;, cHolidayType_Half)
-
- CalInsertBankholiday(DateSerial(YearInt, 11, 11), &quot;Veteran&apos;s Day&quot;, cHolidayType_Half) &apos; Todo: Oder ganzer Feiertag??
+ CalInsertBankholiday(DateSerial(YearInt, 11, 10), &quot;Marine Corps Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 11, 11), &quot;Veteran&apos;s Day&quot;, cHolidayType_Full)
CalInsertBankholiday(DateSerial(YearInt, 12, 7), &quot;Pearl Harbor Remembrance Day&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 12, 24), &quot;Christmas Eve&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Christmas Day&quot;, cHolidayType_Full)
@@ -332,7 +290,105 @@ Dim lDate&amp;
CalInsertBankholiday(DateSerial(YearInt, 12, 28), &quot;Kwanzaa&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 12, 29), &quot;Kwanzaa&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 12, 30), &quot;Kwanzaa&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;Kwanzaa&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;Kwanzaa&quot;, cHolidayType_Half)
CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;New Year&apos;s Eve&quot;, cHolidayType_Half)
+
+ CalInsertBankholiday(CalEasterTable(YearInt), &quot;Easter Sunday&quot;, cHolidayType_Half)
+
+ &apos; Inauguration Day occurs every 4 years (1997, 2001) in the year following the presidential election
+ &apos; always on the 20th of January unless this is a Sunday in which case on Monday 21st January
+ If YearInt Mod 4 = 1 Then
+ lDate = DateSerial(YearInt, 1, 20)
+ If WeekDay(lDate) = 1 Then
+ CalInsertBankholiday(lDate + 1, &quot;Inauguration Day&quot;, cHolidayType_Half)
+ Else
+ CalInsertBankholiday(lDate, &quot;Inauguration Day&quot;, cHolidayType_Half)
+ End If
+ End If
+ &apos; First Tuesday in November, but only after the 1st of November and only on evenly numbered years
+ If YearInt Mod 2 = 0 Then
+ lFirstNov = DateSerial(YearInt, 11, 1)
+ lElectDate = GetMonthDate(YearInt, 11, 3, 0)
+ If lElectDate &gt; lFirstNov Then
+ CalInsertBankholiday(lElectDate, &quot;Election Day&quot;, cHolidayType_Half)
+ Else
+ CalInsertBankholiday(lElectDate + 7, &quot;Election Day&quot;, cHolidayType_Half)
+ End If
+ End If
+ CalInsertBankholiday(GetMonthDate(YearInt, 1, 2, 14), &quot;Martin Luther King Jr Day&quot;, cHolidayType_Full)
+ CalInsertBankholiday(GetMonthDate(YearInt, 2, 2, 14), &quot;President&apos;s Day&quot;, cHolidayType_Full)
+ &apos; Mothers Day : 2nd Sunday in May, Full
+ CalInsertBankholiday(GetMonthDate(YearInt, 5,1,7), &quot;Mother&apos;s Day&quot;, cHolidayType_Full)
+
+ &apos; Wednesday of the last full week of April Administrative Professionals&apos; Day (formerly Secretaries&apos; Day)
+ CalInsertBankholiday(GetMonthDate(YearInt, 5, 7, -7)-3, &quot;Administrative Professionals&apos; Day&quot;, cHolidayType_Half)
+
+ CalInsertBankholiday(GetMonthDate(YearInt, 5, 5, 0), &quot;National Day of Prayer&quot;, cHolidayType_Half)
+ CalInsertBankholiday(GetMonthDate(YearInt, 5, 7, 14), &quot;Armed Forces Day&quot;, cHolidayType_Half)
+ &apos; Fathers Day : 3rd Sunday in June
+ CalInsertBankholiday(GetMonthDate(YearInt, 6,1,14), &quot;Father&apos;s Day&quot;, cHolidayType_Half)
+
+ &apos; Last Monday in May: Menorial Day, Full
+ CalInsertBankholiday(GetMonthDate(YearInt, 6, 2, 0)-7, &quot;Memorial Day&quot;, cHolidayType_Full)
+ CalInsertBankholiday(GetMonthDate(YearInt, 7, 1, 21), &quot;Parents&apos; Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(GetMonthDate(YearInt, 8, 1, 0), &quot;Friendship Day&quot;, cHolidayType_Half)
+
+ &apos; 1st Monday in Sep : Labor Day, Full
+ CalInsertBankholiday(GetMonthDate(YearInt, 9, 2, 0), &quot;Labor Day&quot;, cHolidayType_Full)
+ &apos; Sunday after Labor Day Grandparents&apos; Day
+ CalInsertBankholiday(GetMonthDate(YearInt, 9, 2, 0)+6, &quot;Grandparents&apos; Day&quot;, cHolidayType_Half)
+
+ CalInsertBankholiday(GetMonthDate(YearInt, 10, 1, 0), &quot;National Children&apos;s Day&quot;, cHolidayType_Half)
+ CalInsertBankholiday(GetMonthDate(YearInt, 10, 2, 7), &quot;Columbus Day&quot;, cHolidayType_Full)
+ &apos; Sweetest Day: Third Saturday in October
+ CalInsertBankholiday(GetMonthDate(YearInt, 10, 7, 14), &quot;Sweetest Day&quot;, cHolidayType_Half)
+ &apos; 4th Thu in Nov : Thanksgiving, Full
+ CalInsertBankholiday(GetMonthDate(YearInt, 11, 5, 21), &quot;Thanksgiving&quot;, cHolidayType_Full)
End Sub
-</script:module> \ No newline at end of file
+
+
+Sub FindWholeYearHolidays_JP(ByVal YearInt as Integer)
+Dim lDate&amp;
+ CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;元日&quot;, cHolidayType_Full)
+
+ &apos; 2nd Monday in January
+ CalInsertBankholiday(GetMonthDate(YearInt, 1, 2, 7), &quot;成人の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 2, 11), &quot;建国記念の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 3, 21), &quot;春分の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 4, 29), &quot;みどりの日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 3), &quot;憲法記念日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 4), &quot;国民の休日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 5), &quot;こどもの日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 23), &quot;秋分の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 10, 2), &quot;体育の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 11, 3), &quot;文化の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 11, 23), &quot;勤労感謝の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 12, 23), &quot;天皇誕生日&quot;, cHolidayType_Full)
+ If YearInt &gt; 2002 Then
+ CalInsertBankholiday(GetMonthDate(YearInt, 7, 2, 14), &quot;海の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(GetMonthDate(YearInt, 9, 2, 14), &quot;敬老の日&quot;, cHolidayType_Full)
+ Else
+ CalInsertBankholiday(DateSerial(YearInt, 7, 20), &quot;海の日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 15), &quot;敬老の日&quot;, cHolidayType_Full)
+ End If
+End Sub
+
+
+Sub FindWholeYearHolidays_TW(YearInt as Integer)
+ CalInsertBankholiday(DateSerial(YearInt, 2, 28), &quot;和平紀念日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 3, 8), &quot;婦女節&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 3, 29), &quot;革命先烈紀念日(青年節)&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 4, 4), &quot;兒童節&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 4, 5), &quot;民族掃墓節&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;勞動節&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 5, 19), &quot;佛陀誕辰紀念日&quot;, cHolidayType_Full) &apos; Todo: Wie Columbus Day
+ CalInsertBankholiday(DateSerial(YearInt, 6, 15), &quot;端午節&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 3), &quot;軍人節&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 21), &quot;中秋節&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 9, 28), &quot;孔子誕辰紀念日(教師節)&quot;, cHolidayType_Full) &apos; Todo: wie Columnbusday
+ CalInsertBankholiday(DateSerial(YearInt, 10, 10), &quot;國慶日&quot;, cHolidayType_Full)
+ CalInsertBankholiday(DateSerial(YearInt, 10, 25), &quot;臺灣光復節&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 10, 31), &quot;先總統 蔣公誕辰紀念日&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 12, 11), &quot;國父誕辰紀念日(中華文化復興節)&quot;, cHolidayType_Half)
+ CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;行憲紀念日&quot;, cHolidayType_Half)
+End Sub</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/OwnEvents.xba b/wizards/source/schedule/OwnEvents.xba
index af50b66bc..0de19ec28 100644
--- a/wizards/source/schedule/OwnEvents.xba
+++ b/wizards/source/schedule/OwnEvents.xba
@@ -242,9 +242,10 @@ Dim bDoEnable as Boolean
End Sub
-Sub GetOwnMonth
+Sub GetOwnMonth()
Dim EvYear as Integer
EvYear = GetOwnYear()
CurOwnMonth = DlgCalModel.lstOwnEventMonth.SelectedItems(0) + 1
DlgCalModel.txtOwnEventDay.ValueMax = CalMaxDayInMonth(EvYear, CurOwnMonth)
+ CheckInsertedDates()
End Sub</script:module> \ No newline at end of file