summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-25 16:02:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-25 16:24:58 +0100
commita77b96a8e8a426f2609531ec66dbdd219681a7de (patch)
treecbbeb5801661c98c085295f22375bc94c11290dc /wizards
parentd54830a9b608cbd1792d37ee51797b825ab644e5 (diff)
ditch wizards schedule module
a) it doesn't work b) isn't connected up to any menus c) is arbitrarily localized to big 12 nations d) out of date wrt public holidays in those anyway Change-Id: I4a16490b3ae84c6e5dbe0774ea8eb0000ed6dc3d
Diffstat (limited to 'wizards')
-rw-r--r--wizards/AllLangResTarget_cal.mk41
-rw-r--r--wizards/Module_wizards.mk2
-rw-r--r--wizards/Zip_schedule.mk45
-rw-r--r--wizards/source/configshare/dialog.xlc3
-rw-r--r--wizards/source/configshare/script.xlc3
-rw-r--r--wizards/source/schedule/BankHoliday.xba177
-rw-r--r--wizards/source/schedule/CalendarMain.xba302
-rw-r--r--wizards/source/schedule/CreateTable.xba133
-rw-r--r--wizards/source/schedule/DlgCalendar.xdl64
-rw-r--r--wizards/source/schedule/DlgControl.xba148
-rw-r--r--wizards/source/schedule/GermanHolidays.xba132
-rw-r--r--wizards/source/schedule/Language.xba95
-rw-r--r--wizards/source/schedule/LocalHolidays.xba642
-rw-r--r--wizards/source/schedule/OwnEvents.xba217
-rw-r--r--wizards/source/schedule/delzip0
-rw-r--r--wizards/source/schedule/dialog.xlb5
-rw-r--r--wizards/source/schedule/schedule.src348
-rw-r--r--wizards/source/schedule/script.xlb12
18 files changed, 2 insertions, 2367 deletions
diff --git a/wizards/AllLangResTarget_cal.mk b/wizards/AllLangResTarget_cal.mk
deleted file mode 100644
index c5215f510809..000000000000
--- a/wizards/AllLangResTarget_cal.mk
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2011 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.
-#
-#*************************************************************************
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,cal))
-
-$(eval $(call gb_AllLangResTarget_add_srs,cal,\
- cal/res \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,cal/res))
-
-$(eval $(call gb_SrsTarget_add_files,cal/res,\
- wizards/source/schedule/schedule.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/wizards/Module_wizards.mk b/wizards/Module_wizards.mk
index 14cd3600a504..ae2b35d91827 100644
--- a/wizards/Module_wizards.mk
+++ b/wizards/Module_wizards.mk
@@ -29,7 +29,6 @@
$(eval $(call gb_Module_Module,wizards))
$(eval $(call gb_Module_add_targets,wizards,\
- AllLangResTarget_cal \
AllLangResTarget_dbw \
AllLangResTarget_eur \
AllLangResTarget_imp \
@@ -44,7 +43,6 @@ $(eval $(call gb_Module_add_targets,wizards,\
Zip_gimmicks \
Zip_import \
Zip_launcher \
- Zip_schedule \
Zip_share \
Zip_standard \
Zip_template \
diff --git a/wizards/Zip_schedule.mk b/wizards/Zip_schedule.mk
deleted file mode 100644
index ec294746608e..000000000000
--- a/wizards/Zip_schedule.mk
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2011 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.
-#
-#*************************************************************************
-
-$(eval $(call gb_Zip_Zip,basicsrvschedule,$(SRCDIR)/wizards/source/schedule))
-
-$(eval $(call gb_Zip_add_files,basicsrvschedule,\
- BankHoliday.xba \
- CalendarMain.xba \
- CreateTable.xba \
- dialog.xlb \
- DlgCalendar.xdl \
- DlgControl.xba \
- GermanHolidays.xba \
- Language.xba \
- LocalHolidays.xba \
- OwnEvents.xba \
- script.xlb \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/wizards/source/configshare/dialog.xlc b/wizards/source/configshare/dialog.xlc
index b63ebd6d71d2..297b562dec80 100644
--- a/wizards/source/configshare/dialog.xlc
+++ b/wizards/source/configshare/dialog.xlc
@@ -4,10 +4,9 @@
<library:library library:name="FormWizard" xlink:href="$(INST)/share/basic/FormWizard/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Template" xlink:href="$(INST)/share/basic/Template/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Tools" xlink:href="$(INST)/share/basic/Tools/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
- <library:library library:name="Schedule" xlink:href="$(INST)/share/basic/Schedule/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Gimmicks" xlink:href="$(INST)/share/basic/Gimmicks/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="ImportWizard" xlink:href="$(INST)/share/basic/ImportWizard/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Euro" xlink:href="$(INST)/share/basic/Euro/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Depot" xlink:href="$(INST)/share/basic/Depot/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="ScriptBindingLibrary" xlink:href="$(INST)/share/basic/ScriptBindingLibrary/dialog.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
-</library:libraries> \ No newline at end of file
+</library:libraries>
diff --git a/wizards/source/configshare/script.xlc b/wizards/source/configshare/script.xlc
index aaf1b0d9303e..13330d288e20 100644
--- a/wizards/source/configshare/script.xlc
+++ b/wizards/source/configshare/script.xlc
@@ -4,10 +4,9 @@
<library:library library:name="FormWizard" xlink:href="$(INST)/share/basic/FormWizard/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Template" xlink:href="$(INST)/share/basic/Template/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Tools" xlink:href="$(INST)/share/basic/Tools/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
- <library:library library:name="Schedule" xlink:href="$(INST)/share/basic/Schedule/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Gimmicks" xlink:href="$(INST)/share/basic/Gimmicks/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="ImportWizard" xlink:href="$(INST)/share/basic/ImportWizard/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Euro" xlink:href="$(INST)/share/basic/Euro/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="Depot" xlink:href="$(INST)/share/basic/Depot/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
<library:library library:name="ScriptBindingLibrary" xlink:href="$(INST)/share/basic/ScriptBindingLibrary/script.xlb/" xlink:type="simple" library:link="true" library:readonly="false"/>
-</library:libraries> \ No newline at end of file
+</library:libraries>
diff --git a/wizards/source/schedule/BankHoliday.xba b/wizards/source/schedule/BankHoliday.xba
deleted file mode 100644
index e9af180aa32e..000000000000
--- a/wizards/source/schedule/BankHoliday.xba
+++ /dev/null
@@ -1,177 +0,0 @@
-<?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="BankHoliday" script:language="StarBasic">Option Explicit
-
-Sub Main()
- Call CalAutopilotTable()
-End Sub
-
-
-Function CalEasterTable&amp;(byval Year%)
-Dim B%,C%,D%,E%,F%,G%,H%,I%,K%,L%,M%,N%,O%, nMonth%, nDay%
- N = Year% mod 19
- B = int(Year% / 100)
- C = Year% mod 100
- D = int(B / 4)
- E = B mod 4
- F = int((B + 8) / 25)
- G = int((B - F + 1) / 3)
- H =(19 * N + B - D - G + 15) mod 30
- I = int(C / 4)
- K = C mod 4
- L =(32 + 2 * E + 2 * I - H - K) mod 7
- M = int((N + 11 * H + 22 * L) / 451)
- O = H + L - 7 * M + 114
- nDay = O mod 31 + 1
- nMonth = int(O / 31)
- CalEasterTable&amp; = DateSerial(Year, nMonth,nDay)
-End Function
-
-
-&apos; Note: the following algorithm is valid only till the Year 2100.
-&apos; but I have no Idea from which date in the paste it is valid
-Function CalOrthodoxEasterTable(ByVal iYear as Integer) as Long
-Dim R1%, R2%, R3%, RA%, R4%, RB%, R5%, RC%
-Dim lDate as Long
- R1 = iYear mod 19
- R2 = iYear mod 4
- R3 = iYear mod 7
- RA =19 * R1 + 16
- R4 = RA mod 30
- RB = 2 * R2 + 4 * R3 + 6 * R4
- R5 = RB mod 7
- RC = R4 + R5
- lDate = DateSerial(iYear, 4,4)
- CalOrthodoxEasterTable() = lDate + RC
-End Function
-
-
-Sub CalInitGlobalVariablesDate()
-Dim i as Integer
- For i = 1 To 374
- CalBankholidayName$(i) = &quot;&quot;
- CalTypeOfBankHoliday%(i) = cHolidayType_None
- Next
-End Sub
-
-
-Sub CalInsertBankholiday(byval CurDate as Long, byval EventName as String, ByVal iLevel as Integer)
-Dim iDay
- iDay =(Month(CurDate)-1)*31 +Day(CurDate)
-
- If 0 &lt;&gt; CalTypeOfBankHoliday(iDay) Then
- If iLevel &lt; CalTypeOfBankHoliday(iDay) Then
- CalTypeOfBankHoliday(iDay) = iLevel
- End If
- Else
- CalTypeOfBankHoliday(iDay) = iLevel
- End If
-
- If CalBankHolidayName(iDay) = &quot;&quot; Then
- CalBankHolidayName(iDay) = EventName
- Else
- CalBankHolidayName(iDay) = CalBankHolidayName(iDay) &amp; &quot; / &quot; &amp; EventName
- End If
-End Sub
-
-Function CalMaxDayInMonth(ByVal iYear as Integer, ByVal iMonth as Integer) as Integer
-&apos; delivers the maximum Day of a month in a certain year
- Dim TmpDate as Long
- Dim MaxDay as Long
-
- MaxDay = 28
- TmpDate = DateSerial(iYear, iMonth, MaxDay)
-
- While Month(TmpDate) = iMonth
- MaxDay = MaxDay + 1
- TmpDate = TmpDate + 1
- Wend
- Maxday = MaxDay - 1
- CalMaxDayInMonth() = MaxDay
-End Function
-
-
-Function CalGetIntOfShortMonthName(ByVal MonthName as String) as Integer
-Dim i as Integer
-Dim nMonth as Integer
-
- nMonth = Val(MonthName)
-
- If (1 &lt;= nMonth And 12 &gt;= nMonth) Then
- CalGetIntOfShortMonthName = nMonth
- Exit Function
- End If
-
- MonthName = UCase(Trim(Left(MonthName, 3)))
-
- For i = 0 To 11
- If (UCase(cCalShortMonthNames(i)) = MonthName) Then
- CalGetIntOfShortMonthName = i+1
- Exit Function
- End If
- Next
-
- &apos; Not Found
- CalGetIntOfShortMonthName = 0
-End Function
-
-
-Sub CalInsertOwnDataInTables(ByVal iSelYear as Integer)
- &apos; inserts the individual data from the table into the previously unsorted list
-Dim CurEventName as String
-Dim CurEvMonth as Integer
-Dim CurEvDay as Integer
-Dim LastIndex as Integer
-Dim i as Integer
-Dim DateStr as String
- LastIndex = Ubound(DlgCalModel.lstOwnData.StringItemList())
- For i = 0 To LastIndex
- If GetSelectedDateUnits(CurEvDay, CurEvMonth, i) &lt;&gt; SBDATEUNDEFINED Then
- CurEventName = CalGetNameOfEvent(i)
- CalInsertBankholiday(DateSerial(iSelYear, CurEvMonth, CurEvDay), CurEventName, cHolidayType_Own)
- End If
- Next
-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(YearInt as Integer, iMonth as Integer, iWeekDay as Integer, iOffset as Integer)
-Dim bFound as Boolean
-Dim lDate as Long
- &apos; 1st Tue in Nov : Election Day, Half
- bFound = False
- lDate = DateSerial(YearInt, iMonth, 1)
- Do
- If iWeekDay = WeekDay(lDate) Then
- bFound = True
- Else
- lDate = lDate + 1
- End If
- Loop Until bFound
- GetMonthDate = lDate + iOffset
-End Function
-
-
-&apos; Finds the next weekday after a fixed date
-&apos; e.g. Midsummerfeast in Sweden: next Saturday after 20th June
-Function GetNextWeekDay(iYear as Integer, iMonth as Integer, iDay as Integer, iWeekDay as Integer)
-Dim lDate as Long
-Dim iCurWeekDay as Integer
- lDate = DateSerial(iYear, iMonth, iDay)
- iCurWeekDay = WeekDay(lDate)
- While iCurWeekDay &lt;&gt; iWeekDay
- lDate = lDate + 1
- iCurWeekDay = WeekDay(lDate)
- Wend
- GetNextWeekDay() = lDate
-End Function
-
-
-Sub AddFollowUpHolidays(ByVal lStartDate as Long, iCount as Integer, HolidayName as String, iType as Integer)
-Dim lDate as Long
- For lDate = lStartDate + 1 To lStartDate + 4
- CalInsertBankholiday(lDate, HolidayName, iType)
- Next lDate
-End Sub
-</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/CalendarMain.xba b/wizards/source/schedule/CalendarMain.xba
deleted file mode 100644
index 2deb51cca84d..000000000000
--- a/wizards/source/schedule/CalendarMain.xba
+++ /dev/null
@@ -1,302 +0,0 @@
-<?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="CalendarMain" script:language="StarBasic">Option Explicit
-
-Const _DEBUG = 0
-
-&apos; CalenderMain
-Public sCurLangLocale as String
-Public sCurCountryLocale as String
-&apos; This flag serves as a query if the individual Data should be saved
-Public bCalOwnDataChanged as Boolean
-
-&apos;BankHoliday Functions
-Public CalBankholidayName$ (1 To 374)
-Public CalTypeOfBankHoliday% (1 To 374)
-
-Public Const cHolidayType_None = 0
-Public Const cHolidayType_Full = 1
-Public Const cHolidayType_Half = 2
-Public Const cHolidayType_Own = 4
-
-Public cCalSubcmdDeleteSelect_DeleteSelEntry$
-Public cCalSubcmdDeleteSelect_DeleteSelEntryTitle$
-Public cCalSubcmdSwitchOwnDataOrGeneral_Back$
-Public cCalSubcmdSwitchOwnDataOrGeneral_OwnData$
-
-&apos;Language
-Public cCalLongMonthNames(11) as String
-Public cCalShortMonthNames(11) as String
-
-Public sBitmapFilename$
-Public sCalendarTitle$, sMonthTitle$, sWizardTitle$, sError$
-Public cCalStyleWorkday$, cCalStyleWeekend$
-
-Public CalChoosenLand as Integer
-
-Public oDocument as Object
-Public oSheets as Object
-Public oSheet as Object
-Public oStatusLine as Object
-Public bCancelTask as Boolean
-Public oNumberFormatter as Object
-
-&apos; BL* means &quot;BundesLand&quot; (for german states only)
-Public CONST CalBLBayern = 1
-Public CONST CalBLBadenWuert = 2
-Public CONST CalBLBerlin = 3
-Public CONST CalBLBremen = 4
-Public CONST CalBLBrandenburg = 5
-Public CONST CalBLHamburg = 6
-Public CONST CalBLHessen = 7
-Public CONST CalBLMeckPomm = 8
-Public CONST CalBLNiedersachsen = 9
-Public CONST CalBLNordrheinWest = 10
-Public CONST CalBLRheinlandPfalz = 11
-Public CONST CalBLSaarland = 12
-Public CONST CalBLSachsen = 13
-Public CONST CalBLSachsenAnhalt = 14
-Public CONST CalBLSchlHolstein = 15
-Public CONST CalBLThueringen = 16
-
-Public DlgCalendar as Object
-Public DlgCalModel as Object
-Public lDateFormat as Long
-Public lDateStandardFormat as Long
-
-
-
-Sub CalAutopilotTable()
-Dim BitmapDir as String
-Dim iThisMonth as Integer
-
-&apos;On Error Goto ErrorHandler
- BasicLibraries.LoadLibrary(&quot;Tools&quot;)
- bSelectByMouseMove = True
- 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)
- CalInitGlobalVariablesDate()
- BitmapDir = GetOfficeSubPath(&quot;Template&quot;,&quot;../wizard/bitmap&quot;)
- DlgCalModel.imgCountry.ImageURL = BitmapDir &amp; sBitmapFilename
- CalChoosenLand = -2
- CalLoadOwnData()
-
- With DlgCalModel
- .cmdDelete.Enabled = False
- .lstMonth.StringItemList() = cCalShortMonthNames()
- Select Case sCurLangLocale
- Case cLANGUAGE_JAPANESE
- .lstOwnData.FontName = &quot;HG MinochoL&quot;
- .txtEvent.FontName = &quot;HG MinchoL&quot;
- Case cLANGUAGE_CHINESE
- If oDocument.CharLocale.Country = &quot;CN&quot; Then
- .lstOwnData.FontName = &quot;FZ Song Ti&quot;
- .txtEvent.FontName = &quot;FZ Song Ti&quot;
- Else
- .lstOwnData.FontName = &quot;FZ Ming Ti&quot;
- .txtEvent.FontName = &quot;FZ Ming Ti&quot;
- End If
- Case &quot;ko&quot;
- .lstOwnData.FontName = &quot;Sun Gulim&quot;
- .txtEvent.FontName = &quot;Sun Gulim&quot;
- End Select
- .lstOwnEventMonth.StringItemList() = cCalShortMonthNames()
- .optYear.State = 1
- .txtYear.Value = Year(Now())
- .txtYear.Tag = .txtYear.Value
- .Step = 1
- End With
- SetupNumberFormatter(sCurLangLocale, sCurCountryLocale)
- CalChooseCalendar() &apos; month
- 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.GetControl(&quot;lblHolidays&quot;).Visible = sCurLangLocale = cLANGUAGE_GERMAN
- DlgCalendar.GetControl(&quot;lstHolidays&quot;).Visible = sCurLangLocale = cLANGUAGE_GERMAN
- fHeightCorrFactor = DlgCalendar.GetControl(&quot;imgCountry&quot;).Size.Height/198
- fWidthCorrFactor = DlgCalendar.GetControl(&quot;imgCountry&quot;).Size.Width/166
- DlgCalendar.Execute()
- DlgCalendar.Dispose()
- Exit Sub
-ErrorHandler:
- MsgBox(sError$, 16, sWizardTitle$)
-End Sub
-
-
-Sub SetupNumberFormatter(sCurLangLocale as String, sCurCountryLocale as String)
-Dim oFormats as Object
-Dim DateFormatString as String
- oFormats = oDocument.getNumberFormats()
- Select Case sCurLangLocale
- Case cLANGUAGE_GERMAN
- DateFormatString = &quot;TT.MMM&quot;
- Case cLANGUAGE_ENGLISH
- DateFormatString = &quot;MMM DD&quot;
- Case cLANGUAGE_FRENCH
- DateFormatString = &quot;JJ/MMM&quot;
- Case cLANGUAGE_ITALIAN
- DateFormatString = &quot;GG/MMM&quot;
- Case cLANGUAGE_SPANISH
- DateFormatString = &quot;DD/MMM&quot;
- Case cLANGUAGE_PORTUGUESE
- If sCurCountryLocale = &quot;BR&quot; Then
- DateFormatString = &quot;DD/MMM&quot;
- Else
- DateFormatString = &quot;DD-MMM&quot;
- End If
- Case cLANGUAGE_DUTCH
- DateFormatString = &quot;DD/MMM&quot;
- Case cLANGUAGE_SWEDISH
- DateFormatString = &quot;MMM DD&quot;
- Case cLANGUAGE_DANISH
- DateFormatString = &quot;DD-MMM&quot;
- Case cLANGUAGE_POLISH
- DateFormatString = &quot;MMM DD&quot;
- Case cLANGUAGE_RUSSIAN
- DateFormatString = &quot;MMM DD&quot;
- Case cLANGUAGE_JAPANESE
- DateFormatString = &quot;M月D日&quot;
- Case cLANGUAGE_CHINESE
- If sCurCountryLocale = &quot;TW&quot; Then
- DateFormatString = &quot;MMMMD&quot; &amp;&quot;&quot;&quot;&quot; &amp; &quot;日&quot; &amp; &quot;&quot;&quot;&quot;
- Else
- DateFormatString = &quot;M&quot; &amp; &quot;&quot;&quot;&quot; &amp; &quot;月&quot; &amp; &quot;&quot;&quot;&quot; &amp; &quot;D&quot; &amp;&quot;&quot;&quot;&quot; &amp; &quot;日&quot; &amp; &quot;&quot;&quot;&quot;
- End If
- Case cLANGUAGE_GREEK
- DateFormatString = &quot;DD/MMM&quot;
- Case cLANGUAGE_TURKISH
- DateFormatString = &quot;DD/MMM&quot;
- Case cLANGUAGE_POLISH
- DateFormatString = &quot;MMM DD&quot;
- Case cLANGUAGE_FINNISH
- DateFormatString = &quot;PP.KKK&quot;
- End Select
-
- lDateFormat = AddNumberFormat(oFormats, DateFormatString, oDocument.CharLocale)
- lDateStandardFormat = oFormats.getStandardFormat(com.sun.star.util.NumberFormat.DATE, oDocument.CharLocale)
-
-&apos; lDateStandardFormat = AddNumberFormat(oFormats, StandardDateFormatString, oDocument.CharLocale)
- oNumberFormatter = createUNOService(&quot;com.sun.star.util.NumberFormatter&quot;)
- oNumberFormatter.attachNumberFormatsSupplier(oDocument)
-End Sub
-
-
-Function AddNumberFormat(oNumberFormats as Object, FormatString as String, oLocale as Object) as Long
-Dim lLocDateFormat as Long
- lLocDateFormat = oNumberFormats.QueryKey(FormatString, oLocale, True)
- If lLocDateFormat = -1 Then
- lLocDateFormat = oNumberFormats.addNew(FormatString, oLocale)
- End If
- AddNumberFormat() = lLocDateFormat
-End Function
-
-
-Sub CalChooseCalendar()
- With DlgCalModel
- .lstMonth.Enabled = .optMonth.State = 1
- .lblMonth.Enabled = .optMonth.State = 1
- End With
-End Sub
-
-
-Sub CalcmdCancel()
- Call CalSaveOwnData()
- DlgCalendar.EndExecute
-End Sub
-
-
-Sub CalcmdOk()
- &apos; cmdOk is called when the Button &apos;Read&apos; is clicked on
- &apos; It is either given out a month or a year
-Dim i, iSelYear as Integer
-Dim SelYear as String
-&apos; DlgCalendar.Visible = False
-
- oSheets = oDocument.sheets
- Call CalSaveOwnData()
- UnprotectSheets(oSheets)
- oSheets.RemovebyName(oSheets.GetbyIndex(0).Name)
- iSelYear = DlgCalModel.txtYear.Value
- Select Case sCurLangLocale
- Case cLANGUAGE_GERMAN
- If Ubound(DlgCalModel.lstHolidays.SelectedItems()) &gt; -1 Then
- CalChoosenLand = DlgCalModel.lstHolidays.SelectedItems(0)
- Else
- CalChoosenLand = 0
- End If
- Call CalFindWholeYearHolidays_GERMANY(iSelYear, CalChoosenLand)
- Case cLANGUAGE_ENGLISH
- Call FindWholeYearHolidays_US(iSelYear)
- Case cLANGUAGE_FRENCH
- Call FindWholeYearHolidays_FRANCE(iSelYear)
- Case cLANGUAGE_ITALIAN
- Call FindWholeYearHolidays_ITA(iSelYear)
- Case cLANGUAGE_SPANISH
- Call FindWholeYearHolidays_SPAIN(iSelYear)
- Case cLANGUAGE_PORTUGUESE
- Call FindWholeYearHolidays_PORT(iSelYear)
- Case cLANGUAGE_DUTCH
- Call FindWholeYearHolidays_NL(iSelYear)
- Case cLANGUAGE_SWEDISH
- Call FindWholeYearHolidays_SWED(iSelYear)
- Case cLANGUAGE_DANISH
- Call FindWholeYearHolidays_DK(iSelYear)
- Case cLANGUAGE_POLISH
- 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
- Call FindWholeYearHolidays_CN(iSelYear)
- End If
- Case cLANGUAGE_GREEK
- Call FindWholeYearHolidays_GREEK(iSelYear)
- Case cLANGUAGE_TURKISH
- Call FindWholeYearHolidays_TRK(iSelYear)
- Case cLANGUAGE_POLISH
- Call FindWholeYearHolidays_PL(iSelYear)
- Case cLANGUAGE_FINNISH
- Call FindWholeYearHolidays_FI(iSelYear)
- End Select
-
- Call CalInsertOwnDataInTables(iSelYear)
-
- If DlgCalModel.optYear.State = 1 Then
- oSheets.RemovebyName(oSheets.GetbyIndex(0).Name)
- oSheet = oSheets.GetbyIndex(0)
- oSheet.Name = sCalendarTitle$ + &quot; &quot; + iSelYear
- oDocument.AddActionLock
- Call CalCreateYearTable(iSelYear)
- ElseIf DlgCalModel.optMonth.State = 1 Then
- Dim iMonth
- iMonth = DlgCalModel.lstMonth.SelectedItems(0) + 1
- oSheets.RemovebyName(oSheets.GetbyIndex(1).Name)
- oSheet = oSheets.GetbyIndex(0)
- If sMonthTitle = &quot;&quot; Then
- oSheet.Name = cCalLongMonthNames(iMonth-1)
- Else
- oSheet.Name = sMonthTitle + &quot; &quot; + cCalLongMonthNames(iMonth-1)
- End If
- oDocument.AddActionLock
- Call CalCreateMonthTable(iSelYear, iMonth)
- End If
-
- oDocument.RemoveActionLock
- oSheet.protect(&quot;&quot;)
- oStatusLine.End
- DlgCalendar.EndExecute()
- bCancelTask = True
-End Sub
-</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/CreateTable.xba b/wizards/source/schedule/CreateTable.xba
deleted file mode 100644
index 6d472a84bca4..000000000000
--- a/wizards/source/schedule/CreateTable.xba
+++ /dev/null
@@ -1,133 +0,0 @@
-<?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="CreateTable" script:language="StarBasic">Option Explicit
-
-Public Const FirstDayRow = 5 &apos; Row on month sheet for first day of month
-Public Const DateColumn% = 3 &apos; Column on month sheet with days
-Public Const NewYearRow = 4 &apos; Row on year sheet for January 1st
-Public Const NewYearColumn = 2 &apos; Column on year sheet for January 1st
-
-
-Sub CalCreateYearTable(ByVal iSelYear as Integer)
-&apos; Completes the overview for whole year
-
-&apos; Needed by StarOffice Calc and StarOffice Schedule
-Dim CalDay as Integer
-Dim CalMonth as Integer
-Dim i as Integer
-Dim s as Integer
-Dim oYearCell as object
-Dim iDate
-Dim ColPos, RowPos as Integer
-Dim oNameCell, oDateCell as Object
-Dim iCellValue as Long
-Dim oRangeFebCell, oCellAddress, oFebcell as Object
-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)
- oYearCell = oSheet.GetCellRangeByName(&quot;Year&quot;)
- oYearCell.Value = iSelYear
-
- CalMonth = 1
- CalDay = 0
- s = 10
- oStatusLine.SetValue(s)
- For i = 1 To 374
- CalDay = CalDay+1
- If CalDay = 32 Then
- CalDay = 1
- CalMonth = CalMonth+1
- s = s + 10
- oStatusLine.SetValue(s)
- End If
- ColPos = NewYearColumn+(2*CalMonth)
- RowPos = NewYearRow + CalDay
- FormatCalCells(ColPos,RowPos,i)
- Next
- If NOT CalIsLeapYear(iSelYear) Then
- &apos; Delete 29th February if necessary
- oRangeFebCell = oSheet.GetCellRangeByName(&quot;Feb29&quot;)
- oCellAddress = oRangeFebCell.RangeAddress
- oFebCell = oSheet.GetCellByPosition(oCellAddress.StartColumn,oCellAddress.StartRow)
- oFebCell.String = &quot;&quot;
- &apos; Change the CellStyle according to the Range &quot;Blank&quot;
- oRangeBlank = oSheet.GetCellRangebyName(&quot;Blank&quot;)
- sBlankStyle = oRangeBlank.CellStyle
- oRangeFebCell.CellStyle = sBlankStyle
- End If
- oStatusLine.SetValue(150)
- ErrorHandling:
- If Err &lt;&gt; 0 Then
- MsgBox sError$, 16, sWizardTitle$
- End If
-End Sub
-
-
-
-Sub CalCreateMonthTable(ByVal iSelYear as Integer, iSelMonth as Integer)
-Dim oMonthCell, oDateCell as Object
-Dim iDate as Date
-Dim oAddress
-Dim i, s as Integer
-Dim iStartDay as Integer
-
-&apos; Completes the monthly calendar
-&apos;On Error Goto ErrorHandling
- oStatusLine.Start(&quot;&quot;,40) &apos;GetResText(sProgess)
- &apos; Set month
- oMonthCell = oSheet.GetCellRangeByName(&quot;Month&quot;)
-
- iDate = DateSerial(iSelYear,iSelMonth,1)
- oMonthCell.Value = iDate
- &apos; Inserting holidays
- iStartDay = (iSelMonth - 1) * 31 + 1
- s = 5
- For i = iStartDay To iStartDay + 30
- oStatusLine.SetValue(s)
- s = s + 1
- FormatCalCells(DateColumn+1,FirstDayRow + i - iStartDay,i)
- Next
- oDateCell = oSheet.GetCellbyPosition(DateColumn,FirstDayRow+i-iStartDay - 1)
- oAddress = oDateCell.RangeAddress
-
- Select Case iSelMonth
- Case 2,4,6,9,11
- oSheet.RemoveRange(oAddress, com.sun.star.sheet.CellDeleteMode.ROWS)
- If iSelMonth = 2 Then
- oAddress.StartRow = oAddress.StartRow - 1
- oAddress.EndRow = oAddress.StartRow
- oSheet.RemoveRange(oAddress, com.sun.star.sheet.CellDeleteMode.ROWS)
- If Not CalIsLeapYear(iSelYear) Then
- oAddress.StartRow = oAddress.StartRow - 1
- oAddress.EndRow = oAddress.StartRow
- oSheet.RemoveRange(oAddress, com.sun.star.sheet.CellDeleteMode.ROWS)
- End If
- End If
- End Select
- oStatusLine.SetValue(45)
-ErrorHandling:
- If Err &lt;&gt; 0 Then
- MsgBox sError$, 16, sWizardTitle$
- End If
-End Sub
-
-
-
-Sub FormatCalCells(ColPos,RowPos,i as Integer)
-Dim oNameCell, oDateCell as Object
-Dim iCellValue as Long
- oDateCell = oSheet.GetCellbyPosition(ColPos-1,RowPos)
- If oDateCell.Value &lt;&gt; 0 Then
- iCellValue = oDateCell.Value
- oDateCell.Value = iCellValue
- If CalBankHolidayName$(i) &lt;&gt; &quot;&quot; Then
- oNameCell = oSheet.GetCellbyPosition(ColPos,RowPos)
- oNameCell.String = CalBankHolidayName$(i)
- If CalTypeOfBankHoliday%(i) = cHolidayType_Full Then
- oDateCell.CellStyle = cCalStyleWeekend$
- End If
- End If
- End If
-End Sub</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/DlgCalendar.xdl b/wizards/source/schedule/DlgCalendar.xdl
deleted file mode 100644
index 2936a5ebe6da..000000000000
--- a/wizards/source/schedule/DlgCalendar.xdl
+++ /dev/null
@@ -1,64 +0,0 @@
-<?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="1" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_DIALOG" dlg:closeable="true" dlg:moveable="true">
- <dlg:styles>
- <dlg:style dlg:style-id="0" dlg:border="none"/>
- <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="95" dlg:height="12" dlg:page="1" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_1_CMBSTATE" 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:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_1_OPYEAR" dlg:value="optYear">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.CalendarMain.CalChooseCalendar?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:radio>
- <dlg:radio dlg:id="optMonth" dlg:tab-index="3" dlg:left="12" dlg:top="61" dlg:width="81" dlg:height="10" dlg:page="1" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_1_OPMONTH" dlg:value="optMonth">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.CalendarMain.CalChooseCalendar?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:radio>
- </dlg:radiogroup>
- <dlg:text dlg:id="lblHolidays" dlg:tab-index="4" dlg:left="6" dlg:top="6" dlg:width="96" dlg:height="8" dlg:page="1" dlg:value="lblHolidays"/>
- <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:WIZARDS_HID_DLGHOLIDAYCAL_1_PREVIEW">
- <script:event script:event-name="on-mousedown" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.SelectState?language=Basic&amp;location=application" script:language="Script"/>
- <script:event script:event-name="on-mouseout" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.MouseLeavesImage?language=Basic&amp;location=application" script:language="Script"/>
- <script:event script:event-name="on-mousemove" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.CalMouseMoved?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:img>
- <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:WIZARDS_HID_DLGHOLIDAYCAL_1_EDMONTH" 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:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_0_CMDCANCEL" dlg:value="cmdCancel">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.CalendarMain.CalcmdCancel?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:button>
- <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:WIZARDS_HID_DLGHOLIDAYCAL_0_CMDOWNDATA" dlg:value="cmdOwnData">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.CalmdSwitchOwnDataOrGeneral?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:button>
- <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:WIZARDS_HID_DLGHOLIDAYCAL_0_CMDOK" dlg:value="cmdGoOn">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.CalendarMain.CalcmdOk?language=Basic&amp;location=application" script:language="Script"/>
- </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="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:WIZARDS_HID_DLGHOLIDAYCAL_2_EDEVENT">
- <script:event script:event-name="on-textchange" script:macro-name="vnd.sun.star.script:Schedule.OwnEvents.CheckInsertedDates?language=Basic&amp;location=application" script:language="Script"/>
- </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:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_2_EDEVENTDAY" dlg:decimal-accuracy="0" dlg:value-min="1" dlg:spin="true">
- <script:event script:event-name="on-textchange" script:macro-name="vnd.sun.star.script:Schedule.OwnEvents.CheckInsertedDates?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:numericfield>
- <dlg:menulist dlg:id="lstOwnEventMonth" dlg:tab-index="18" dlg:left="60" dlg:top="55" dlg:width="30" dlg:height="12" dlg:page="2" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_2_EDEVENTMONTH" dlg:spin="true">
- <script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.script:Schedule.OwnEvents.GetOwnMonth?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:menulist>
- <dlg:button dlg:id="cmdInsert" dlg:tab-index="19" dlg:left="99" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_2_CMDINSERT" dlg:value="cmdInsert">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.OwnEvents.CalcmdInsertData?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:button>
- <dlg:button dlg:id="cmdDelete" dlg:tab-index="20" dlg:left="152" dlg:top="70" dlg:width="50" dlg:height="14" dlg:page="2" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_2_CMDDELETE" dlg:value="cmdDelete">
- <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.CalcmdDeleteSelect?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:button>
- <dlg:menulist dlg:style-id="2" dlg:id="lstOwnData" dlg:tab-index="21" dlg:left="12" dlg:top="86" dlg:width="190" dlg:height="34" dlg:page="2" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_2_LBOWNDATA">
- <script:event script:event-name="on-itemstatechange" script:macro-name="vnd.sun.star.script:Schedule.DlgControl.CalUpdateNewEventFrame?language=Basic&amp;location=application" script:language="Script"/>
- </dlg:menulist>
- <dlg:text dlg:id="lblEventDay" dlg:tab-index="22" 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="23" dlg:left="60" dlg:top="44" dlg:width="44" dlg:height="8" dlg:page="2" dlg:value="lblEventMonth"/>
- <dlg:numericfield dlg:id="txtYear" dlg:tab-index="24" dlg:left="62" dlg:top="89" dlg:width="38" dlg:height="12" dlg:page="1" dlg:help-url="HID:WIZARDS_HID_DLGHOLIDAYCAL_1_EDYEAR" dlg:decimal-accuracy="0" dlg:value-min="1582" dlg:value-max="9957" 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
deleted file mode 100644
index b7a7c4c957ae..000000000000
--- a/wizards/source/schedule/DlgControl.xba
+++ /dev/null
@@ -1,148 +0,0 @@
-<?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="DlgControl" script:language="StarBasic">Option Explicit
-
-Dim CalBitmap As Object
-Public bSelectByMouseMove as Boolean
-Public fHeightCorrFactor as Double
-Public fWidthCorrFactor as Double
-
-
-
-Sub Main()
- Call CalAutopilotTable()
-End Sub
-
-
-Sub CalcmdDeleteSelect()
-Dim MsgBoxResult as Integer
-Dim bDoEnable as Boolean
-Dim iSel as Integer
-Dim MaxIndex as Integer
- If Ubound(DlgCalModel.lstOwnData.SelectedItems()) &gt; -1 Then
- MsgBoxResult = MsgBox(cCalSubcmdDeleteSelect_DeleteSelEntry$, 4+32, cCalSubcmdDeleteSelect_DeleteSelEntryTitle$)
- If MsgBoxResult = 6 Then
- iSel = DlgCalModel.lstOwnData.SelectedItems(0)
- DlgCalModel.lstOwnData.StringItemList() = RemoveSelected(DlgCalModel.lstOwnData)
- &apos; Flag to store the new data
- bCalOwnDataChanged = True
- bDoEnable = Ubound(DlgCalModel.lstOwnData.StringItemList()) &gt; -1
- DlgCalModel.cmdDelete.Enabled = bDoEnable
- If bDoEnable Then
- MaxIndex = Ubound(DlgCalModel.lstOwnData.StringItemList())
- If iSel &gt; MaxIndex Then
- iSel = MaxIndex
- End If
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).SelectItemPos(iSel, True)
- CalUpdateNewEventFrame()
- Else
- Call CalClearInputMask()
- End If
- End If
- End If
-End Sub
-
-
-Sub CalSaveOwnEventControls()
- With DlgCalModel
- .txtOwnEventDay.Tag = .txtOwnEventDay.Value
- .txtOwnEventMonth.Tag = .txtOwnEventMonth.Text
- End With
-End Sub
-
-
-Sub CalMouseMoved(aEvent as object)
-Dim ListIndex as Integer
- Select Case sCurLangLocale
- Case cLANGUAGE_GERMAN
- If bSelectByMouseMove Then
-&apos; oStatusLine.SetText(&quot;Position: &quot; &amp; aEvent.X &amp; &quot; ; &quot; &amp; aEvent.Y)
- ListIndex = CalGetGermanLandAtMousePos(CInt(aEvent.X/fWidthCorrFactor), CInt(aEvent.Y/fHeightCorrFactor))
- DlgCalendar.GetControl(&quot;lstHolidays&quot;).SelectItemPos(ListIndex, True)
- End If
- End Select
-End Sub
-
-
-Sub SelectState(aEvent as Object)
-Dim ListIndex as Integer
- Select Case sCurLangLocale
- Case cLANGUAGE_GERMAN
- If aEvent.ClickCount &gt;= 1 Then
- ListIndex = CalGetGermanLandAtMousePos(CInt(aEvent.X/fWidthCorrFactor), CInt(aEvent.Y/fHeightCorrFactor))
- DlgCalendar.GetControl(&quot;lstHolidays&quot;).SelectItemPos(ListIndex, True)
- bSelectByMouseMove = False
- End If
- End Select
-End Sub
-
-
-Sub MouseLeavesImage
- bSelectbyMouseMove = True
-End Sub
-
-
-Sub CalClearInputMask()
-Dim NullList() as String
- With DlgCalModel
- .txtEvent.Text = &quot;&quot;
- .txtOwnEventDay.SetPropertyToDefault(&quot;Value&quot;)
- .cmdInsert.Enabled = False
- End With
- If Ubound(DlgCalModel.lstOwnData.StringItemList()) &gt; -1 Then
- If Ubound(DlgCalModel.lstOwnData.SelectedItems()) = -1 Then
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).SelectItemPos(0,True)
- CalUpdateNewEventFrame()
- End If
- End If
-End Sub
-
-
-Sub CalmdSwitchOwnDataOrGeneral()
- If DlgCalModel.Step = 1 Then
- DlgCalModel.Step = 2
- DlgCalModel.cmdOwnData.Label = cCalSubcmdSwitchOwnDataOrGeneral_Back$
- DlgCalModel.cmdInsert.Enabled = DlgCalModel.txtEvent.Text &lt;&gt; &quot;&quot;
-&apos; ToggleYearBox()
- Else
- dim bla as boolean
- DlgCalModel.Step = 1
- DlgCalendar.GetControl(&quot;lblHolidays&quot;).Visible = sCurLangLocale = cLANGUAGE_GERMAN
- DlgCalendar.GetControl(&quot;lstHolidays&quot;).Visible = sCurLangLocale = cLANGUAGE_GERMAN
- DlgCalModel.cmdOwnData.Label = cCalSubcmdSwitchOwnDataOrGeneral_OwnData$
- End If
-End Sub
-
-
-Sub ToggleInsertButton()
- DlgCalModel.cmdInsert.Enabled = LTrim(DlgCalModel.txtEvent.Text) &lt;&gt; &quot;&quot;
-End Sub
-
-
-Sub CalUpdateNewEventFrame()
-Dim bDoEnable as Boolean
-Dim sSelectedItem
-Dim ListIndex as Integer
-Dim MaxSelIndex as Integer
-Dim CurEvMonth as Integer
-Dim CurEvDay as Integer
-Dim DateStr as String
- bDoEnable = False
- With DlgCalModel
- MaxSelIndex = Ubound(DlgCalModel.lstOwnData.SelectedItems())
- If MaxSelIndex &gt; -1 Then
- ListIndex = .lstOwnData.SelectedItems(MaxSelIndex)
- .txtEvent.Text = CalGetNameofEvent(ListIndex)
- If GetSelectedDateUnits(CurEvDay, CurEvMonth, ListIndex) &lt;&gt; SBDATEUNDEFINED Then
- .txtOwnEventDay.Value = CurEvDay
- DlgCalendar.GetControl(&quot;lstOwnEventMonth&quot;).SelectItemPos(CurEvMonth-1, True)
- .cmdDelete.Enabled = True
- .cmdInsert.Enabled = True
- Else
- Call CalClearInputMask()
- .cmdDelete.Enabled = True
- End If
- End If
- End With
-End Sub
-</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/GermanHolidays.xba b/wizards/source/schedule/GermanHolidays.xba
deleted file mode 100644
index 7ce4357e9699..000000000000
--- a/wizards/source/schedule/GermanHolidays.xba
+++ /dev/null
@@ -1,132 +0,0 @@
-<?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="GermanHolidays" script:language="StarBasic">Option Explicit
-
-Sub Main()
- Call CalAutopilotTable()
-End Sub
-
-Function CalGetGermanLandAtMousePos(byval X as single, byval Y as single) as Integer
- CalChoosenLand = 0
- If (X&gt;73)And(X&lt;130)And(Y&gt;=117)And(Y&lt;181) Then
- CalChoosenLand = CalBLBayern
-
- ElseIf (X&gt;41)And(X&lt;89)And(Y&gt;=136)And(Y&lt;183) Then
- CalChoosenLand = CalBLBadenWuert
-
- ElseIf (X&gt;18)And(X&lt;35)And(Y&gt;136)And(Y&lt;147) Then
- CalChoosenLand = CalBLSaarland
-
- ElseIf (X&gt;13)And(X&lt;42)And(Y&gt;111)And(Y&lt;146) Then
- CalChoosenLand = CalBLRheinlandPfalz
-
- ElseIf (X&gt;15)And(X&lt;=60)And(Y&gt;=69)And(Y&lt;112) Then
- CalChoosenLand = CalBLNordrheinWest
-
- ElseIf (X&gt;=42)And(X&lt;78)And(Y&gt;=95)And(Y&lt;136) Then
- CalChoosenLand = CalBLHessen
-
- ElseIf (X&gt;=78)And(X&lt;112)And(Y&gt;=95)And(Y&lt;117) Then
- CalChoosenLand = CalBLThueringen
-
- ElseIf (X&gt;=112)And(X&lt;158)And(Y&gt;=88)And(Y&lt;114) Then
- CalChoosenLand = CalBLSachsen
-
- ElseIf (X&gt;77)And(X&lt;84)And(Y&gt;35)And(Y&lt;42) Then
- CalChoosenLand = CalBLHamburg
-
- ElseIf (X&gt;56)And(X&lt;60)And(Y&gt;36)And(Y&lt;41) Then
- CalChoosenLand = CalBLBremen
-
- ElseIf (X&gt;58)And(X&lt;63)And(Y&gt;44)And(Y&lt;52) Then
- CalChoosenLand = CalBLBremen
-
- ElseIf (X&gt;52)And(X&lt;95)And(Y&gt;8)And(Y&lt;40) Then
- CalChoosenLand = CalBLSchlHolstein
-
- ElseIf (X&gt;90)And(X&lt;149)And(Y&gt;23)And(Y&lt;48) Then
- CalChoosenLand = CalBLMeckPomm
-
- ElseIf (X&gt;28)And(X&lt;90)And(Y&gt;35)And(Y&lt;69) Then
- CalChoosenLand = CalBLNiedersachsen
-
- ElseIf (X&gt;60)And(X&lt;90)And(Y&gt;=69)And(Y&lt;95) Then
- CalChoosenLand = CalBLNiedersachsen
-
- ElseIf (X&gt;=90)And(X&lt;=115)And(Y&gt;47)And(Y&lt;95) Then
- CalChoosenLand = CalBLSachsenAnhalt
-
- ElseIf (X&gt;129)And(X&lt;139)And(Y&gt;60)And(Y&lt;66) Then
- CalChoosenLand = CalBLBerlin
-
- ElseIf (X&gt;115)And(X&lt;151)And(Y&gt;=48)And(Y&lt;88) Then
- CalChoosenLand = CalBLBrandenburg
- End If
- CalGetGermanLandAtMousePos = CalChoosenLand
-End Function
-
-
-
-Sub CalFindWholeYearHolidays_GERMANY(ByVal iSelYear as Integer, ByVal iCountry as Integer)
- Dim So as Integer
- Dim OsternDate&amp;, VierterAdvent&amp;
-
- If (iCountry &lt; 1) Or (iCountry &gt; 16) Then
- iCountry = CalBLHamburg
- End If
- OsternDate&amp; = CalEasterTable&amp;(iSelYear)
- So = 1
-
- CalInsertBankholiday(DateSerial(iSelYear, 1, 1), &quot;Neujahr&quot;, cHolidayType_Full)
-
- If (iCountry = CalBLBayern) Or (iCountry = CalBLBadenWuert) Or (iCountry = CalBLSachsenAnhalt) Then
- CalInsertBankholiday(DateSerial(iSelYear, 1, 6), &quot;Hl. 3 Könige&quot;, cHolidayType_Full)
- End If
-
- CalInsertBankholiday(OsternDate&amp;-2, &quot;Karfreitag&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate&amp;, &quot;Ostersonntag&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate&amp;+1, &quot;Ostermontag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(iSelYear, 5, 1), &quot;Maifeiertag&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate&amp;+39, &quot;Christi Himmelfahrt&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate&amp;+49, &quot;Pfingstsonntag&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate&amp;+50, &quot;Pfingstmontag&quot;, cHolidayType_Full)
-
- If (iCountry = CalBLBadenWuert) Or (iCountry = CalBLBayern) Or (iCountry = CalBLHessen) Or (iCountry = CalBLNordRheinWest) Or (iCountry = CalBLRheinlandPfalz) Or (iCountry = CalBLSaarland) Or (iCountry = CalBLSachsen) Or (iCountry = CalBLThueringen) Then
- CalInsertBankholiday(OsternDate&amp;+60, &quot;Fronleichnam&quot;, cHolidayType_Full)
- End If
-
- If (iCountry = CalBLBayern) Or (iCountry = CalBLSaarland) Then
- CalInsertBankholiday(DateSerial(iSelYear, 8, 15), &quot;Mariä Himmelfahrt&quot;, cHolidayType_Full)
- End If
-
- CalInsertBankholiday(DateSerial(iSelYear, 10, 3), &quot;Tag der dt. Einheit&quot;, cHolidayType_Full)
-
- If (iCountry=CalBLBrandenburg) Or (iCountry=CalBLMeckPomm) Or (iCountry=CalBLSachsenAnhalt) Or (iCountry=CalBLSachsen) Or (iCountry=CalBLThueringen) Then
- CalInsertBankholiday(DateSerial(iSelYear, 10, 31), &quot;Reformationstag&quot;, cHolidayType_Full)
- End If
-
- If (iCountry = CalBLBadenWuert) Or (iCountry = CalBLBayern) Or (iCountry = CalBLNordRheinWest) Or (iCountry = CalBLRheinlandPfalz) Or (iCountry = CalBLSaarland) Or (iCountry = CalBLSachsen) Or (iCountry = CalBLThueringen) Then
- CalInsertBankholiday(DateSerial(iSelYear, 11, 1), &quot;Allerheiligen&quot;, cHolidayType_Full)
- End If
-
- vierterAdvent = DateSerial(iSelYear, 12, 24)
- While WeekDay(vierterAdvent) &lt;&gt; So
- vierterAdvent = vierterAdvent - 1
- Wend
-
- If iCountry = CalBLSachsen Then
- CalInsertBankholiday(vierterAdvent-32, &quot;Buß- und Bettag&quot;, cHolidayType_Full)
- Else
- CalInsertBankholiday(vierterAdvent-32, &quot;Buß- und Bettag&quot;, cHolidayType_Half)
- End If
- CalInsertBankholiday(vierterAdvent-21, &quot;1. Advent&quot;, cHolidayType_Full)
- CalInsertBankholiday(vierterAdvent-14, &quot;2. Advent&quot;, cHolidayType_Full)
- CalInsertBankholiday(vierterAdvent-7, &quot;3. Advent&quot;, cHolidayType_Full)
- CalInsertBankholiday(vierterAdvent, &quot;4. Advent&quot;, cHolidayType_Full)
-
- CalInsertBankholiday(Dateserial(iSelYear, 12, 24), &quot;Heiligabend&quot;, cHolidayType_Half)
- CalInsertBankholiday(Dateserial(iSelYear, 12, 25), &quot;1. Weihnachtstag&quot;, cHolidayType_Full)
- CalInsertBankholiday(Dateserial(iSelYear, 12, 26), &quot;2. Weihnachtstag&quot;, cHolidayType_Full)
- CalInsertBankholiday(Dateserial(iSelYear, 12, 31), &quot;Sylvester&quot;, cHolidayType_Half)
-End Sub
-</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/Language.xba b/wizards/source/schedule/Language.xba
deleted file mode 100644
index 9fbf0942e94f..000000000000
--- a/wizards/source/schedule/Language.xba
+++ /dev/null
@@ -1,95 +0,0 @@
-<?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="Language" script:language="StarBasic">Option Explicit
-
-
-Public Const cLANGUAGE_SYSTEM = &quot;&quot;, cLANGUAGE_CHINESE = &quot;zh&quot;, cLANGUAGE_DANISH = &quot;da&quot;
-Public Const cLANGUAGE_DUTCH = &quot;nl&quot;, cLANGUAGE_ENGLISH = &quot;en&quot;, cLANGUAGE_FINNISH = &quot;fi&quot;
-Public Const cLANGUAGE_FRENCH = &quot;fr&quot;, cLANGUAGE_GERMAN = &quot;de&quot;, cLANGUAGE_GREEK = &quot;el&quot;
-Public Const cLANGUAGE_ITALIAN = &quot;it&quot;, cLANGUAGE_JAPANESE = &quot;ja&quot;, cLANGUAGE_NORWEGIAN = &quot;no&quot;
-Public Const cLANGUAGE_POLISH = &quot;pl&quot;, cLANGUAGE_PORTUGUESE = &quot;pt&quot;, cLANGUAGE_RUSSIAN = &quot;ru&quot;
-Public Const cLANGUAGE_SPANISH = &quot;es&quot;, cLANGUAGE_SWEDISH = &quot;sv&quot;, cLANGUAGE_TURKISH = &quot;tr&quot;
-
-Public BLNameList(0 To 16) as String
-
-
-&apos; R e s o u r c e s t r i n g c o n s t a n t s
-&apos; -------------------------------------------------
-&apos; Dialog labels start at 1000
-
-Sub LoadLanguage%(ByVal LangLocale)
-Dim Dummy$
-Dim i as Integer
-Const dlgMonth = 1200
-&apos; Abreviated months start 1225
-Const dlgShortMonth = 1225
- If InitResources(&quot;schedule&quot;, &quot;cal&quot;) Then
- If LangLocale = cLANGUAGE_GERMAN Then
-
- &apos; Load all states
- BLNameList(0) = GetResText(1100)
- BLNameList(1) = &quot;Bayern&quot;
- BLNameList(2) = &quot;Baden-Württemberg&quot;
- BLNameList(3) = &quot;Berlin&quot;
- BLNameList(4) = &quot;Bremen&quot;
- BLNameList(5) = &quot;Brandenburg&quot;
- BLNameList(6) = &quot;Hamburg&quot;
- BLNameList(7) = &quot;Hessen&quot;
- BLNameList(8) = &quot;Mecklenburg-Vorpommern&quot;
- BLNameList(9) = &quot;Niedersachsen&quot;
- BLNameList(10) = &quot;Nordrhein-Westfalen&quot;
- BLNameList(11) = &quot;Rheinland-Pfalz&quot;
- BLNameList(12) = &quot;Saarland&quot;
- BLNameList(13) = &quot;Sachsen&quot;
- BLNameList(14) = &quot;Sachsen-Anhalt&quot;
- BLNameList(15) = &quot;Schleswig Holstein&quot;
- BLNameList(16) = &quot;Thüringen&quot;
-
- DlgCalModel.lstHolidays.StringItemList() = BLNameList()
- End If
- sWizardTitle$ = GetResText(1300)
- sError = GetResText(1301)
- cCalSubcmdDeleteSelect_DeleteSelEntryTitle$ = GetResText(1302)
- cCalSubcmdDeleteSelect_DeleteSelEntry$ = GetResText(1303)
- DlgCalendar.Title = GetResText(1000)
-
- With DlgCalModel
- cCalSubcmdSwitchOwnDataOrGeneral_OwnData$ = GetResText(1002)
- cCalSubcmdSwitchOwnDataOrGeneral_Back$ = GetResText(1001)
- .hlnTime.Label = GetResText(1011)
- .lblYear.Label = GetResText(1012)
- .cmdCancel.Label = GetResText(1005)
- .cmdGoOn.Label = GetResText(1004)
- .lblHolidays.Label = GetResText(1014)
- sBitmapFilename = GetResText(1099)
- sBitmapFilename = ReplaceString(sBitmapFileName, &quot;.gif&quot;, &quot;.bmp&quot;)
- DlgCalModel.hlnCalendar.Label = GetResText(1006)
- .optYear.Label = GetResText(1007)
- .optMonth.Label = GetResText(1008)
- .lblMonth.Label = GetResText(1013)
- .cmdOwnData.Label = GetResText(1015)
- .hlnNewEvent.Label = GetResText(1019)
- .lblEvent.Label = GetResText(1019)
- .lblEventDay.Label = GetResText(1021)
- .lblEventMonth.Label = GetResText(1022)
-&apos; .lblEventYear.Label = GetResText(1023)
-&apos; .chkEventOnce.Label = GetResText(1020)
- .cmdInsert.Label = GetResText(1016)
- .cmdDelete.Label = GetResText(1017)
- &apos; Load long month names
- For i = 0 To 11
- cCalLongMonthNames(i) = GetResText(dlgMonth+i)
- cCalShortMonthNames(i)= cCalLongMonthNames(i)
- &apos;cCalShortMonthNames(i)= Left$(cCalLongMonthNames(i), 3)
- cCalShortMonthNames(i)= RTrim(cCalShortMonthNames(i))
- Next
- &apos; Load sheet names
- sCalendarTitle = GetResText(1410)
- sMonthTitle = GetResText(1411)
- &apos; Load names of styles
- cCalStyleWorkday$ = GetResText(1400)
- cCalStyleWeekend$ = GetResText(1401)
- End With
- End If
-End Sub
-</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/LocalHolidays.xba b/wizards/source/schedule/LocalHolidays.xba
deleted file mode 100644
index 0b347c03f031..000000000000
--- a/wizards/source/schedule/LocalHolidays.xba
+++ /dev/null
@@ -1,642 +0,0 @@
-<?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="LocalHolidays" script:language="StarBasic">Option Explicit
-
-Sub Main
- Call CalAutopilotTable()
-End Sub
-
-
-Sub FindWholeYearHolidays_FRANCE(ByVal YearInt as Integer)
-Dim lEasterDate&amp;
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Jour de l&apos;an&quot;, cHolidayType_Full)
- lEasterDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lEasterDate, &quot;Pâques&quot;, cHolidayType_Full)
- CalInsertBankholiday(lEasterDate + 1, &quot;Lundi de Pâques&quot;, cHolidayType_Full)
- CalInsertBankholiday(lEasterDate + 39, &quot;Ascension&quot;, cHolidayType_Full)
- CalInsertBankholiday(lEasterDate + 49, &quot;Pentecôte&quot;, cHolidayType_Full)
- CalInsertBankholiday(lEasterDate + 50, &quot;Lundi de Pentecôte&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Fête du travail&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 8), &quot;Victoire 1945&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 7, 14), &quot;Fête Nationale&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Assomption&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 11, 1), &quot;Toussaint&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 11, 11), &quot;Armistice ou Victoire 1918&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Noël&quot;, cHolidayType_Full)
-End Sub
-
-
-Sub FindWholeYearHolidays_SWED(ByVal YearInt as Integer)
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Nyårsdagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Trettondagen&quot;, cHolidayType_Full)
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate - 2, &quot;Långfredagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate, &quot;Påskdagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 1, &quot;Annandag påsk&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 39, &quot;Kristi himmelfärds dag&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 49, &quot;Pingstdagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 50, &quot;Annandag pingst&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;1:a maj&quot;, cHolidayType_Full)
- &apos; MidSummerfeast (next Sunday after 20th June)
- CalInsertBankholiday(GetNextWeekday(YearInt, 6, 20, 7), &quot;Midsommardagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(GetNextWeekDay(YearInt, 10, 31, 7), &quot;Alla helgons dag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Juldagen&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;Annandag jul&quot;, cHolidayType_Full)
-End Sub
-
-
-
-Sub FindWholeYearHolidays_FI(ByVal YearInt as Integer)
- Dim OsternDate&amp;
- &apos; New Year
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Uudenvuodenpäivä&quot;, cHolidayType_Full)
- &apos; &quot;the three Magi&quot;
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Loppiainen&quot;, cHolidayType_Half)
- OsternDate = CalEasterTable(YearInt)
- CalInsertBankholiday(OsternDate-2, &quot;Pitkäperjantai&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate, &quot;Pääsiäispäivä&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate+1, &quot;2. pääsiäispäivä&quot;, cHolidayType_Full)
- &apos; Ascension Day
- CalInsertBankholiday(OsternDate+39, &quot;Helatorstai&quot;, cHolidayType_Full)
- &apos; First of May
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Vappu, suomalaisen työn päivä&quot;, cHolidayType_Full)
- &apos; Mothers Day : 2nd Sunday in May, Full
- CalInsertBankholiday(GetMonthDate(YearInt, 5,1,7), &quot;Äitienpäivä&quot;, cHolidayType_Full)
- &apos; MidSummerfeast (next Sunday after 20th June)
- CalInsertBankholiday(GetNextWeekday(YearInt, 6, 20, 7), &quot;Juhannus, Suomen lipun päivä&quot;, cHolidayType_Full)
- &apos; Independance day
- CalInsertBankholiday(DateSerial(YearInt, 12, 6), &quot;Itsenäisyyspäivä&quot;, cHolidayType_Full)
- &apos; Christmas
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Joulupäivä&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;Tapaninpäivä&quot;, cHolidayType_Full)
-End Sub
-
-
-
-Sub FindWholeYearHolidays_DK (ByVal YearInt as Integer)
-Dim lDate&amp;, VierterAdvent&amp;
-
- &apos;New Year
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Nytårsdag&quot;, cHolidayType_Full)
- lDate = CalEasterTable (YearInt)
- &apos; carnival
- CalInsertBankholiday(lDate-49, &quot;Fastelavn&quot;, cHolidayType_Half)
- &apos;&quot;Maundy Tuesday
- CalInsertBankholiday(lDate-3, &quot;Skærtorsdag&quot;, cHolidayType_Full)
- &apos;&quot;Good Friday &quot;
- CalInsertBankholiday(lDate-2, &quot;Langfredag&quot;, cHolidayType_Full)
- &apos; Easter Sunday
- CalInsertBankholiday(lDate, &quot;Påskesøndag&quot;, cHolidayType_Full)
- &apos; Easter Monday
- CalInsertBankholiday(lDate+1, &quot;2. påskedag&quot;, cHolidayType_Full)
- &apos; 4th Friday after Easter
- CalInsertBankholiday(lDate+26, &quot;Store bededag&quot;, cHolidayType_Full)
- &apos; &quot;Ascension Day
- CalInsertBankholiday(lDate+39, &quot;Kristi himmelfahrt&quot;, cHolidayType_Full)
- &apos; &quot;Whitsunday&quot;
- CalInsertBankholiday(lDate+49, &quot;Pinsesøndag&quot;, cHolidayType_Full)
- &apos; &quot;Whitmonday&quot;
- CalInsertBankholiday(lDate+50, &quot;2. pinsedag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 6, 5), &quot;Grundlovsdag&quot;, cHolidayType_Full)
- &apos;Christmas Days
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;1. juledag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;2. juledag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Hellig 3 konger&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 3, 28), &quot;Dr. Ingrid&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 4, 16), &quot;Dr. Margrete&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 4, 16), &quot;Palmesøndag&quot;, cHolidayType_Half)
- &apos; &quot;Liberation day&quot;
- CalInsertBankholiday(DateSerial(YearInt, 5, 5), &quot;Befrielsesdag&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 5, 26), &quot;Krpr. Frederik&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 6, 7), &quot;Pr. Joachim&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 6, 11), &quot;Pr. Henrik&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 6, 15), &quot;Valdemarsdag&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 6, 24), &quot;Skt. Hans&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 6, 30), &quot;Prinsesse Alexandra&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 8, 28), &quot;Pr. Nikolai&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 10, 24), &quot;FN-dag&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 11, 11), &quot;Morten Bisp&quot;, cHolidayType_Half)
- &apos; all half (Memorial Days)
- &apos;&quot;adventdays
- VierterAdvent = DateSerial(YearInt, 12, 24)
- While (Weekday(VierterAdvent) &lt;&gt; 1)
- vierterAdvent = vierterAdvent - 1
- Wend
- CalInsertBankholiday(vierterAdvent-21, &quot;1. søndag i advent&quot;, cHolidayType_Half)
- CalInsertBankholiday(vierterAdvent-14, &quot;2. søndag i advent&quot;, cHolidayType_Half)
- CalInsertBankholiday(vierterAdvent-7, &quot;3. søndag i advent&quot;, cHolidayType_Half)
- CalInsertBankholiday(vierterAdvent, &quot;4. søndag i advent&quot;, cHolidayType_Half)
- &apos;Christmas eve
- CalInsertBankholiday(DateSerial(YearInt, 12, 24), &quot;Juleaften&quot;, cHolidayType_Half)
- &apos;&quot;New Year&apos;s eve&quot;
- CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;Nytårsaften&quot;, cHolidayType_Half)
-End Sub
-
-
-Sub FindWholeYearHolidays_ITA(ByVal YearInt as Integer)
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Capodanno&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Epifania&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 4, 25), &quot;Festa della liberazione&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Ferragusto&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 11, 1), &quot;Tutti i Santi&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 8), &quot;Immacolata concezione&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Natale&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;Santo Stefano&quot;, cHolidayType_Full)
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate, &quot;Pasqua&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+1, &quot;Lunedì dell&apos;Angelo&quot;, cHolidayType_Full)
-End Sub
-
-
-
-Sub FindWholeYearHolidays_TRK(ByVal YearInt as Integer)
-Dim lDate as Long
- &apos; New Years&apos; Day
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Yılbaşı&quot;, cHolidayType_Full)
- &apos; National Sovereignty and Children&apos;s Day
- CalInsertBankholiday(DateSerial(YearInt, 4, 23), &quot;Ulusal Egemenlik ve Çocuk Bayramı&quot;, cHolidayType_Full)
- &apos; Ataturk Commemoration and Youth &amp; Sports Day
- CalInsertBankholiday(DateSerial(YearInt, 5, 19), &quot;Atatürk&apos;ü Anma, Gençlik ve Spor Bayramı&quot;, cHolidayType_Full)
- &apos; Mothers Day : 2nd Sunday in May, Full
- CalInsertBankholiday(GetMonthDate(YearInt, 5,1,7), &quot;Anneler günü&quot;, cHolidayType_Full)
- &apos; Fathers Day: 3rd Sunday in May, Full
- CalInsertBankholiday(GetMonthDate(YearInt, 6,1,14), &quot;Babalar Günü&quot;, cHolidayType_Full)
- &apos; Victory Day
- CalInsertBankholiday(DateSerial(YearInt, 8, 30), &quot;Zafer Bayramı&quot;, cHolidayType_Full)
- &apos; Republic Day
- CalInsertBankholiday(DateSerial(YearInt, 10, 28), &quot;Cumhuriyet Bayramı&quot;, cHolidayType_Full)
- &apos; Republic Day
- CalInsertBankholiday(DateSerial(YearInt, 10, 29), &quot;Cumhuriyet Bayramı&quot;, cHolidayType_Full)
- &apos; Commemoration Of Ataturk-Anniversary of Ataturk&apos;s Death
- CalInsertBankholiday(DateSerial(YearInt, 11, 10), &quot;Atatürk&apos;ün Ölüm Günü&quot;, cHolidayType_Full)
- CalculateturkishReligousHolidays(YearInt)
-End Sub
-
-
-Sub CalculateturkishReligousHolidays(iSelYear as Integer)
-Dim lKurbanBayRamStartDate as Long
-Dim lRamazanBayRamStartDate as Long
-
- Select Case iSelYear
- Case 2002
- lKurbanBayRamStartDate = DateSerial(iSelYear, 2, 21)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 12, 4)
- Case 2003
- lKurbanBayRamStartDate = DateSerial(iSelYear, 2, 10)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 11, 24)
- Case 2004
- lKurbanBayRamStartDate = DateSerial(iSelYear, 1, 31)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 11, 13)
- Case 2005
- lKurbanBayRamStartDate = DateSerial(iSelYear, 1, 19)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 11, 2)
- Case 2006
- lKurbanBayRamStartDate = DateSerial(iSelYear, 12, 30)
- CalInsertBankholiday(lKurbanBayRamStartDate, &quot;Kurban Bayramı Arefesi&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(iSelYear, 12, 31), &quot;Kurban Bayram&quot;, cHolidayType_Full)
-
- lKurbanBayRamStartDate = DateSerial(iSelYear, 1, 9)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 10, 22)
- Case 2007
- lKurbanBayRamStartDate = DateSerial(iSelYear, 1, 1)
- &apos; Note: The first day has already been in 2006!!!
- AddFollowUpHolidays(lKurbanBayRamStartDate-1, 3, &quot;Kurban Bayram&quot;, cHolidayType_Full)
- lKurbanBayRamStartDate = DateSerial(iSelYear, 12, 19)
-
- lRamazanBayRamStartDate = DateSerial(iSelYear, 10, 11)
- Case 2008
- lKurbanBayRamStartDate = DateSerial(iSelYear, 12, 7)
- lRamazanBayRamStartDate = DateSerial(iSelYear, 9, 29)
- Case Else
- Exit Sub
- End Select
- &apos;Feast Of the Sacrifice Eve
- CalInsertBankholiday(lKurbanBayRamStartDate, &quot;Kurban Bayramı Arefesi&quot;, cHolidayType_Half)
- &apos;Feast Of the Sacrifice
- AddFollowUpHolidays(lKurbanBayRamStartDate, 4, &quot;Kurban Bayram&quot;, cHolidayType_Full)
- &apos; End of Ramadan Eve
- CalInsertBankholiday(lRamazanBayRamStartDate, &quot;Ramazan (Şeker) Bayramı Arefesi&quot;, cHolidayType_Half)
- &apos; End of Ramadan
- AddFollowUpHolidays(lRamazanBayRamStartDate, 3, &quot;Ramazan (Şeker) Bayramı&quot;, cHolidayType_Full)
-End Sub
-
-
-Sub FindWholeYearHolidays_GREEK(ByVal YearInt as Integer)
-Dim lDate as Long
- &apos; New Year
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Πρωτοχρονιά&quot;, cHolidayType_Full)
- &apos;Schol Holiday
- CalInsertBankholiday(DateSerial(YearInt, 12, 30), &quot;Τριών Ιεραρχών&quot;, cHolidayType_Full)
- &apos; This is both a National Holiday and a religious holiday
- CalInsertBankholiday(DateSerial(YearInt, 3, 25), &quot;Εθνική Εορτή Ευαγγελισμός Θεοτόκου&quot;, cHolidayType_Full)
- &apos; Labor Day
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Πρωτομαγιά&quot;, cHolidayType_Full)
- &apos; Assumption Day
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Κοίμηση της Θεοτόκου&quot;, cHolidayType_Full)
- &apos; National Resistance Day
- CalInsertBankholiday(DateSerial(YearInt, 10, 28), &quot;Εθνική Εορτή&quot;, cHolidayType_Full)
- &apos; School Holiday
- CalInsertBankholiday(DateSerial(YearInt, 11, 17), &quot;Επέτειος του Πολυτεχνείου&quot;, cHolidayType_Full)
- &apos; Christmas Eve
- CalInsertBankholiday(DateSerial(YearInt, 12, 24), &quot;Παραμονή Χριστουγέννων&quot;, cHolidayType_Full)
- &apos; Christmas Day
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Χριστούγεννα&quot;, cHolidayType_Full)
- &apos; Boxing Day
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;Δεύτερη μέρα Χριστουγέννων&quot;, cHolidayType_Full)
- lDate = CalOrthodoxEasterTable(YearInt)
- &apos; Triodon
- CalInsertBankholiday(lDate-70, &quot;Αρχή Τριωδίου&quot;, cHolidayType_Full)
- &apos; Meat Fare
- CalInsertBankholiday(lDate-56, &quot;Τσικνοπέμπτη&quot;, cHolidayType_Full)
- &apos; First Day of Lent
- CalInsertBankholiday(lDate-48, &quot;Καθαρή Δευτέρα&quot;, cHolidayType_Full)
- &apos; Saturday of Lazarus
- CalInsertBankholiday(lDate-8, &quot;Σάββατο του Λαζάρου&quot;, cHolidayType_Full)
- &apos; Palm Sunday
- CalInsertBankholiday(lDate-7, &quot;Κυριακή των Βαΐων&quot;, cHolidayType_Full)
- &apos; Monday before Easter
- CalInsertBankholiday(lDate-6, &quot;Μεγάλη Δευτέρα&quot;, cHolidayType_Full)
- &apos; Tuesday before Easter
- CalInsertBankholiday(lDate-5, &quot;Μεγάλη Τρίτη&quot;, cHolidayType_Full)
- &apos; Wednesday before Easter
- CalInsertBankholiday(lDate-4, &quot;Μεγάλη Τετάρτη&quot;, cHolidayType_Full)
- &apos; Thursday before Easter
- CalInsertBankholiday(lDate-3, &quot;Μεγάλη Πέμπτη&quot;, cHolidayType_Full)
- &apos; Good Friday
- CalInsertBankholiday(lDate-2, &quot;Μεγάλη Παρασκευή&quot;, cHolidayType_Full)
- &apos; Saturday before Easter
- CalInsertBankholiday(lDate-1, &quot;Μεγάλο Σάββατο&quot;, cHolidayType_Full)
- &apos; Easter Monday
- CalInsertBankholiday(lDate+1, &quot;Δευτέρα του Πάσχα&quot;, cHolidayType_Full)
- &apos; Pentecost
- CalInsertBankholiday(lDate+49, &quot;Κυριακή της Πεντηκοστής&quot;, cHolidayType_Full)
- &apos; Ascension Day
- CalInsertBankholiday(lDate+39, &quot;Του Αγίου Πνεύματος&quot;, cHolidayType_Full)
- &apos; All Saints Day
- CalInsertBankholiday(lDate+56, &quot;Των Αγίων Πάντων&quot;, cHolidayType_Full)
-End Sub
-
-
-
-Sub FindWholeYearHolidays_SPAIN(ByVal YearInt as Integer)
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Año Nuevo&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Reyes&quot;, cHolidayType_Full)
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate-2, &quot;Viernes Santo&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+1, &quot;Lunes de Pascua Florida&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+39, &quot;Día de la Ascensión&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Fiesta del Trabajo&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Día de la Asunción&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 10, 12), &quot;Fiesta de la Hispanidad&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 11, 1), &quot;Todos los Santos&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 6), &quot;Día de la Constitución&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 8), &quot;La Inmaculada&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Navidad&quot;, cHolidayType_Full)
-End Sub
-
-
-Sub FindWholeYearHolidays_PORT(ByVal YearInt as Integer)
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Ano Novo&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Reis Magos&quot;, cHolidayType_Half)
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate-47, &quot;Carnaval&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate-7, &quot;Domingo de Ramos&quot;, cHolidayType_Half)
- CalInsertBankholiday(lDate-2, &quot;Sexta-feira Santa&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate, &quot;Páscoa&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 4, 25), &quot;25 de Abril&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Dia do Trabalhador&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 29), &quot;Corpo de Deus&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 6, 10), &quot;Dia de Camões e das Comunidades Portuguesas&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 6, 24), &quot;S. João&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 6, 29), &quot;S. Pedro&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Assunção de Nossa Senhora&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 10, 5), &quot;Implantação da República&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 11, 1), &quot;Dia de Todos os Santos&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 8), &quot;Imaculada Conceição&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Natal&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 1), &quot;Restauração da Independência&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;Passagem de Ano&quot;, cHolidayType_Half)
-End Sub
-
-
-Sub FindWholeYearHolidays_NL(ByVal YearInt as Integer)
-Dim lDate&amp;
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Nieuwjaarsdag&quot;, cHolidayType_Full)
- lDate = CalEasterTable(YearInt)
- CalInsertBankholiday(lDate, &quot;1e Paasdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 1, &quot;2e Paasdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 39, &quot;Hemelvaartsdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 49, &quot;1e Pinksterdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate + 50, &quot;2e Pinksterdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 4, 30), &quot;Koninginnedag&quot;, cHolidayType_Full)
- &apos; Bevrijdingsdag is celebrated every 5th year
- If YearInt Mod 5 = 0 then
- CalInsertBankholiday(DateSerial(YearInt, 5, 5), &quot;Bevrijdingsdag&quot;, cHolidayType_Full)
- End if
- CalInsertBankholiday(DateSerial(YearInt, 12, 6), &quot;Sinterklaas&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;1e Kerstdag&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;2e Kerstdag&quot;, cHolidayType_Full)
-End Sub
-
-
-Sub FindWholeYearHolidays_PL (ByVal YearInt as Integer)
- Dim lDate&amp;, OsternDate&amp;
- &apos; New Year
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Nowy Rok&quot;, cHolidayType_Full)
- &apos; &quot;the three Magi&quot;
- CalInsertBankholiday(DateSerial(YearInt, 1, 6), &quot;Trzech Króli&quot;, cHolidayType_Half)
- &apos; &quot;Womens&apos; Day&quot;
- CalInsertBankholiday(DateSerial(YearInt, 3, 8), &quot;Dzień Kobiet&quot;, cHolidayType_Half)
- OsternDate = CalEasterTable(YearInt)
- CalInsertBankholiday(OsternDate-2, &quot;Wielki Piątek&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate, &quot;Wielka Niedziela&quot;, cHolidayType_Full)
- CalInsertBankholiday(OsternDate+1, &quot;Lany Poniedziałek&quot;, cHolidayType_Full)
- &apos; Ascension Day
- CalInsertBankholiday(OsternDate+39, &quot;Wniebowstąpienie&quot;, cHolidayType_Full)
- &apos; Pentecost
- CalInsertBankholiday(OsternDate+49, &quot;Zielone Świątki&quot;, cHolidayType_Full)
- &apos; Feast of Corpus Christi
- CalInsertBankholiday(OsternDate+60, &quot;Boże Ciało&quot;, cHolidayType_Full)
- &apos; First of May
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Święto pracy&quot;, cHolidayType_Full)
- &apos; Memorial day of constitution
- CalInsertBankholiday(DateSerial(YearInt, 5, 3), &quot;Dzień konstytucji 3-go maja&quot;, cHolidayType_Full)
- &apos; &quot;Childrens&apos; day&quot;
- CalInsertBankholiday(DateSerial(YearInt, 6, 1), &quot;Dzień Dziecka&quot;, cHolidayType_Half)
- &apos; &quot;Ascension Day&quot;
- CalInsertBankholiday(DateSerial(YearInt, 8, 15), &quot;Matki Boskiej Zielnej&quot;, cHolidayType_Half)
- &apos; &quot;All Saints&apos; Day &quot;
- CalInsertBankholiday(DateSerial(YearInt, 11, 1), &quot;Wszystkich Świętych&quot;, cHolidayType_Full)
- &apos; National day&quot;
- CalInsertBankholiday(DateSerial(YearInt, 11, 11), &quot;Dzień Niepodległości&quot;, cHolidayType_Full)
- &apos; Christmas Eve
- CalInsertBankholiday(DateSerial(YearInt, 12, 24), &quot;Wigilia&quot;, cHolidayType_Half)
- &apos; Christmas
- CalInsertBankholiday(DateSerial(YearInt, 12, 25), &quot;Boże Narodzenie&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 12, 26), &quot;Boże Narodzenie&quot;, cHolidayType_Full)
- &apos; &quot;New Year&apos;s eve&quot;
- CalInsertBankholiday(DateSerial(YearInt, 12, 31), &quot;Sylwester&quot;, cHolidayType_Half)
-End Sub
-
-
-Sub FindWholeYearHolidays_RU (ByVal YearInt as Integer)
-Dim lDate&amp;
- &apos; New Year
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;Новый Год&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 1, 2), &quot;Новый Год&quot;, cHolidayType_Full)
- &apos; Russian Christmas&quot;
- CalInsertBankholiday(DateSerial(YearInt, 1, 7), &quot;Рождество&quot;, cHolidayType_Full)
- &apos;Day of Defender of Motherland
- CalInsertBankholiday(DateSerial(YearInt, 2, 23), &quot;День Защитника Отечества&quot;, cHolidayType_Full)
- &apos; Woman Day
- CalInsertBankholiday(DateSerial(YearInt, 3, 8), &quot;Международный Женский День&quot;, cHolidayType_Full)
- &apos; Spring and labor holiday
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;Праздник Весны и Труда&quot;, cHolidayType_Full)
- CalInsertBankholiday(DateSerial(YearInt, 5, 2), &quot;Праздник Весны и Труда&quot;, cHolidayType_Full)
- &apos; Victory of the second World War
- CalInsertBankholiday(DateSerial(YearInt, 5, 9), &quot;День Победы&quot;, cHolidayType_Full)
- &apos; Independence Day
- CalInsertBankholiday(DateSerial(YearInt, 6, 12), &quot;День Независимости&quot;, cHolidayType_Full)
- &apos; Day of Accord and Conciliation
- CalInsertBankholiday(DateSerial(YearInt, 11, 7), &quot;День Согласия и Примирения&quot;, cHolidayType_Full)
- &apos; Constitution Day
- CalInsertBankholiday(DateSerial(YearInt, 12, 12), &quot;День Конституции&quot;, cHolidayType_Full)
-End Sub
-
-
-Sub FindWholeYearHolidays_US(ByVal YearInt as Integer)
-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, 2, 2), &quot;Groundhog Day&quot;, cHolidayType_Half)
- CalInsertBankholiday(DateSerial(YearInt, 2, 14), &quot;Valentine&apos;s Day&quot;, cHolidayType_Half)
- 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&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)
-
- CalInsertBankholiday(DateSerial(YearInt, 7, 4), &quot;Independence Day&quot;, cHolidayType_Full)
- 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)
- 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)
- 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
-
-
-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, 20), &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(GetMonthDate(YearInt, 10, 2, 7), &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)
- CalculateChineseNewYear(YearInt)
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;元旦&quot;, cHolidayType_Full)
- 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(GetNextWeekDay(YearInt, 5, 19, 2), &quot;佛陀誕辰紀念日&quot;, cHolidayType_Full) &apos; Just like 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(GetNextWeekDay(YearInt, 9, 28, 2), &quot;孔子誕辰紀念日(教師節)&quot;, cHolidayType_Full) &apos; Just like 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
-
-
-Sub FindWholeYearHolidays_CN(YearInt as Integer)
- CalculateChineseNewYear(YearInt)
- CalInsertBankholiday(DateSerial(YearInt, 1, 1), &quot;元旦&quot;, cHolidayType_Full) &apos; New Year
- CalInsertBankholiday(DateSerial(YearInt, 3, 8), &quot;妇女节&quot;, cHolidayType_Half) &apos; Women&apos;s Day
- CalInsertBankholiday(DateSerial(YearInt, 4, 5), &quot;清明节&quot;, cHolidayType_Half) &apos; Day of the deads
- CalInsertBankholiday(DateSerial(YearInt, 5, 1), &quot;劳动节&quot;, cHolidayType_Full) &apos; International Labour Day
- CalInsertBankholiday(DateSerial(YearInt, 6, 1), &quot;儿童节&quot;, cHolidayType_Half) &apos; Children&apos;s Day
- CalInsertBankholiday(DateSerial(YearInt, 8, 1), &quot;建军节&quot;, cHolidayType_Half) &apos; Foundation of military
- CalInsertBankholiday(DateSerial(YearInt, 10, 1), &quot;国庆节&quot;, cHolidayType_Full) &apos; National festival day
-End Sub
-
-
-&apos; Unfortunately I could not find a Routine to convert a &apos;Moon Date&apos; into a gregorian date
-Sub CalculateChineseNewYear(iSelYear as Integer)
-Dim lDate as Long
- Select Case iSelYear
- Case 1995
- lDate = DateSerial(iSelYear, 1, 31)
- Case 1996
- lDate = DateSerial(iSelYear, 2, 19)
- Case 1997
- lDate = DateSerial(iSelYear, 2, 7)
- Case 1998
- lDate = DateSerial(iSelYear, 1, 28)
- Case 1999
- lDate = DateSerial(iSelYear,2, 16)
- Case 2000
- lDate = DateSerial(iSelYear,2, 5)
- Case 2001
- lDate = DateSerial(iSelYear, 1, 24)
- Case 2002
- lDate = DateSerial(iSelYear,2, 12)
- Case 2003
- lDate = DateSerial(iSelYear,2, 1)
- Case 2004
- lDate = DateSerial(iSelYear, 1, 22)
- Case 2005
- lDate = DateSerial(iSelYear,2, 9)
- Case 2006
- lDate = DateSerial(iSelYear, 1, 29)
- Case 2007
- lDate = DateSerial(iSelYear,2, 18)
- Case 2008
- lDate = DateSerial(iSelYear,2, 7)
- Case 2009
- lDate = DateSerial(iSelYear, 1, 26)
- Case 2010
- lDate = DateSerial(iSelYear,2, 10)
- Case 2011
- lDate = DateSerial(iSelYear,2, 3)
- Case 2012
- lDate = DateSerial(iSelYear, 1, 23)
- Case 2013
- lDate = DateSerial(iSelYear,2, 10)
- Case 2014
- lDate = DateSerial(iSelYear, 1, 31)
- Case 2015
- lDate = DateSerial(iSelYear,2, 19)
- Case 2016
- lDate = DateSerial(iSelYear,2, 9)
- Case 2017
- lDate = DateSerial(iSelYear, 1, 28)
- Case 2018
- lDate = DateSerial(iSelYear,2, 16)
- Case 2019
- lDate = DateSerial(iSelYear,2, 5)
- Case 2020
- lDate = DateSerial(iSelYear, 1, 25)
- Case Else
- Exit Sub
- End Select
- Select Case sCurCountryLocale
- Case &quot;CN&quot;
- CalInsertBankholiday(lDate-1, &quot;农历除夕&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate, &quot;春节初一&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+1, &quot;春节初二&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+2, &quot;春节初三&quot;, cHolidayType_Full)
-
- Case Else
- CalInsertBankholiday(lDate-1, &quot;農曆除夕&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate, &quot;春節初一&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+1, &quot;春節初二&quot;, cHolidayType_Full)
- CalInsertBankholiday(lDate+2, &quot;春節初三&quot;, cHolidayType_Full)
- End Select
-End Sub
-
-
-Function CalculateJapaneseSpringDay(iSelYear as Integer)
- If (iSelYear &gt; 1979) And (iSelYear &lt; 2100) Then
- CalculateJapaneseSpringDay() = Int(20.8431 + 0.242194)* (iSelYear-1980) - (Int((iSelYear-1980)/4))
- End If
-End Function
-
-
-Function CalculateJapaneseAutumnDay(iSelYear as Integer)
- If (iSelYear &gt; 1979) And (iSelYear &lt; 2100) Then
- CalculateJapaneseAutumnDay() = Int(23.8431 + 0.242194)* (iSelYear-1980) - (Int((iSelYear-1980)/4))
- End If
-End Function</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/OwnEvents.xba b/wizards/source/schedule/OwnEvents.xba
deleted file mode 100644
index f141c2ab0efe..000000000000
--- a/wizards/source/schedule/OwnEvents.xba
+++ /dev/null
@@ -1,217 +0,0 @@
-<?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="OwnEvents" script:language="StarBasic">Option Explicit
-
-Public Const SBDATEUNDEFINED as Double = -98765432.1
-
-Sub Main
- Call CalAutopilotTable()
-End Sub
-
-
-Sub CalSaveOwnData()
-Dim FileName as String
-Dim FileChannel as Integer
-Dim i as Integer
- If bCalOwnDataChanged Then
- FileName = GetPathSettings(&quot;UserConfig&quot;, False) &amp; &quot;/&quot; &amp; &quot;DATE.DAT&quot;
- SaveDataToFile(FileName, DlgCalModel.lstOwnData.StringItemList())
- End If
-End Sub
-
-
-Sub CalLoadOwnData()
-Dim FileName as String
-Dim LocList() as String
- FileName = GetPathSettings(&quot;UserConfig&quot;, False) &amp; &quot;/DATE.DAT&quot;
- If LoadDataFromFile(FileName, LocList()) Then
- DlgCalModel.lstOwnData.StringItemList() = LocList()
- End If
-End Sub
-
-
-Function CalCreateDateStrOfInput() as String
-Dim DateStr as String
-Dim CurOwnMonth as Integer
-Dim CurOwnDay as Integer
-Dim FormatDateStr as String
-Dim dblDate as Double
-Dim iLen as Integer
-Dim iDiff as Integer
-Dim i as Integer
- CurOwnDay = DlgCalModel.txtOwnEventDay.Value
- CurOwnMonth = DlgCalendar.GetControl(&quot;lstOwnEventMonth&quot;).getselectedItemPos() + 1
- DateStr = DateSerial(0, CurOwnMonth, CurOwnDay)
- dblDate = CDbl(DateValue(DateStr))
- FormatDateStr = oNumberFormatter.convertNumberToString(lDateFormat, dblDate)
- iLen = Len(FormatDateStr)
- iDiff = 16 - iLen
- If iDiff &gt; 0 Then
- For i = 0 To iDiff
- FormatDateStr = FormatDateStr + &quot; &quot;
- Next i
- Else
- MsgBox(&quot;Invalid DateFormat: &apos;FormatDateStr&apos;&quot;, 16, sWizardTitle)
- CalCreateDateStrOfInput = &quot;&quot;
- Exit Function
- End If
- DateStr = FormatDateStr &amp; Trim(DlgCalModel.txtEvent.Text)
- CalCreateDateStrOfInput = DateStr
-End Function
-
-
-
-Sub CalcmdInsertData()
-Dim MaxIndex as Integer
-Dim UIDateStr as String
-Dim DateStr as String
-Dim NewDate as Double
-Dim bInserted as Boolean
-Dim i as Integer
-Dim CurOwnDay as Integer
-Dim CurOwnMonth as Integer
-Dim CurOwnYear as Integer
- CurOwnDay = DlgCalModel.txtOwnEventDay.Value
- CurOwnMonth = DlgCalendar.GetControl(&quot;lstOwnEventMonth&quot;).getSelectedItemPos() + 1
- UIDateStr = CalCreateDateStrOfInput()
- NewDate = GetDateUnits(CurOwnDay, CurOwnMonth, UIDateStr)
- If UIDateStr = &quot;&quot; Then Exit Sub
- MaxIndex = Ubound(DlgCalModel.lstOwnData.StringItemList())
- If MaxIndex = -1 Then
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).AddItem(UIDateStr, 0 + 1)
- bInserted = True
- Else
- Dim CurEvMonth(MaxIndex) as Integer
- Dim CurEvDay(MaxIndex) as Integer
- Dim CurDate(MaxIndex) as Double
- &apos; same Years(&quot;no years&quot; are treated like same years) -&gt; delete old entry and insert new one
- i = 0
- Do
- CurDate(i) = GetSelectedDateUnits(CurEvDay(i), CurEvMonth(i), i)
- If CurDate(i) = NewDate Then
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).RemoveItems(i,1)
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).AddItem(UIDateStr, i)
- bInserted = True
- End If
- i = i + 1
- Loop Until bInserted Or i &gt; MaxIndex
-
- &apos; There exists already a date
- If Not bInserted Then
- i = 0
- Do
- If (CurEvMonth(i) = CurOwnMonth) And (CurEvDay(i) = CurOwnDay) Then
- bInserted = True
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).RemoveItems(i,1)
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).AddItem(UIDateStr, i)
- End If
- i = i + 1
- Loop Until bInserted Or i &gt; MaxIndex
- End If
-
- &apos; The date is not yet existing and will will be sorted in accordingly
- If Not bInserted Then
- i = 0
- Do
- bInserted = NewDate &lt; CurDate(i)
- If bInserted Then
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).AddItem(UIDateStr, i)
- End If
- i = i + 1
- Loop Until bInserted Or i &gt; MaxIndex
- If Not bInserted Then
- DlgCalendar.GetControl(&quot;lstOwnData&quot;).AddItem(UIDateStr, MaxIndex+1)
- End If
- End If
- End If
- bCalOwnDataChanged = True
- Call CalClearInputMask()
-End Sub
-
-
-Function GetSelectedDateUnits(CurEvDay as Integer, CurEvMonth as Integer, i as Integer) as Double
-Dim dblDate as Double
-Dim DateStr as String
- dblDate = SBDATEUNDEFINED
- DateStr = DlgCalModel.lstOwnData.StringItemList(i)
- If DateStr &lt;&gt; &quot;&quot; Then
- dblDate = GetDateUnits(CurEvDay, CurEvMonth, DateStr)
- End If
- GetSelectedDateUnits() = dblDate
-End Function
-
-
-Function GetDateUnits(CurEvDay as Integer, CurEvMonth as Integer, DateStr) as Double
-Dim bEventOnce as String
-Dim LocDateStr as String
-Dim dblDate as Double
-Dim lDate as Long
- LocDateStr = Mid(DateStr, 1, 15)
- LocDateStr = Trim(LocDateStr)
-
- bEventOnce = True
- On Local Error Goto NODATEFORMAT
- dblDate = oNumberFormatter.convertStringToNumber(lDateFormat, LocDateStr)
- lDate = Clng(dblDate)
- CurEvMonth = Month(lDate)
- CurEvDay = Day(lDate)
- GetDateUnits() = dblDate
- Exit Function
- GetDateUnits() =SBDATEUNDEFINED
-NODATEFORMAT:
- If Err &lt;&gt; 0 Then
- MsgBox(&quot;Error: Date : &apos; &quot; &amp; LocDateStr &amp; &quot;&apos; is not a valid Format&quot;, 16, sWizardTitle)
- Resume GETRETURNVALUE
-GETRETURNVALUE:
- GetDateUnits() = SBDATEUNDEFINED
- End If
-End Function
-
-
-Function CalGetNameOfEvent(ByVal ListIndex as Integer) as String
-Dim NameStr as String
- NameStr = DlgCalModel.lstOwnData.StringItemList(ListIndex)
- NameStr = Trim (Mid(NameStr, 16))
- CalGetNameOfEvent = NameStr
-End Function
-
-
-
-Sub CheckInsertedDates(Optional ControlEnvironment, Optional CurOwnMonth as Integer)
-Dim EvYear as Long
-Dim EvDay as Long
-Dim sEvMonth as String
-Dim bDoEnable as Boolean
-Dim ListboxName as String
-Dim MaxValue as Integer
- If Not IsMissing(ControlEnvironment) Then
- CurOwnMonth = DlgCalendar.GetControl(&quot;lstOwnEventMonth&quot;).getSelectedItemPos()+1
- End If
- EvYear = Year(Now())
- bDoEnable = CurOwnMonth &lt;&gt; 0
- If bDoEnable Then
- MaxValue = CalMaxDayInMonth(EvYear, CurOwnMonth)
- DlgCalModel.txtOwnEventDay.ValueMax = MaxValue
- If DlgCalModel.txtOwnEventDay.Value &gt; MaxValue Then
- DlgCalModel.txtOwnEventDay.Value = MaxValue
- End If
- bDoEnable = DlgCalModel.txtOwnEventDay.Value &lt;&gt; 0
- If bDoEnable Then
- bDoEnable = Ubound(DlgCalModel.lstOwnEventMonth.SelectedItems()) &gt; -1
- If bDoEnable Then
- bDoEnable = LTrim(DlgCalModel.txtEvent.Text) &lt;&gt; &quot;&quot;
- End If
- End If
- End If
- DlgCalModel.cmdInsert.Enabled = bDoEnable
-End Sub
-
-
-Sub GetOwnMonth()
-Dim EvYear as Integer
-Dim CurOwnMonth as Integer
- EvYear = year(now())
- CurOwnMonth = DlgCalModel.lstOwnEventMonth.SelectedItems(0) + 1
- DlgCalModel.txtOwnEventDay.ValueMax = CalMaxDayInMonth(EvYear, CurOwnMonth)
- CheckInsertedDates(,CurOwnMonth)
-End Sub</script:module> \ No newline at end of file
diff --git a/wizards/source/schedule/delzip b/wizards/source/schedule/delzip
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/wizards/source/schedule/delzip
+++ /dev/null
diff --git a/wizards/source/schedule/dialog.xlb b/wizards/source/schedule/dialog.xlb
deleted file mode 100644
index b1afde681e7e..000000000000
--- a/wizards/source/schedule/dialog.xlb
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
-<library:library xmlns:library="http://openoffice.org/2000/library" library:name="Schedule" library:readonly="true" library:passwordprotected="false">
- <library:element library:name="DlgCalendar"/>
-</library:library>
diff --git a/wizards/source/schedule/schedule.src b/wizards/source/schedule/schedule.src
deleted file mode 100644
index ff57ffec8102..000000000000
--- a/wizards/source/schedule/schedule.src
+++ /dev/null
@@ -1,348 +0,0 @@
-/*
- * 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 .
- */
-#define dlgCalTitle 1000
-#define dlgCalTitleBack 1001
-#define dlgCalTitleOwnData 1002
-#define dlgSchdlTitle 1003
-#define dlgOK 1004
-#define dlgCancel 1005
-#define dlgCalFrameOption 1006
-#define dlgCalOptionYear 1007
-#define dlgCalOptionMonth 1008
-#define dlgSchdlDescription 1009
-#define dlgSchdlCountry 1010
-#define dlgTime 1011
-#define dlgYear 1012
-#define dlgCalMonth 1013
-#define dlgSpecificBankholidays 1014
-#define dlgCalOwnData 1015
-#define dlgCalInsert 1016
-#define dlgCalDelete 1017
-#define dlgCalNewEvent 1018
-#define dlgCalEvent 1019
-#define dlgCalEventOnce 1020
-#define dlgCalEventDay 1021
-#define dlgCalEventMonth 1022
-#define dlgCalEventYear 1023
-
-// Bitmap file is 1099
-#define dlgBitmapFile 1099
-
-// Names of states start at 1100
-#define dlgState 1100
-
-// Months start at 1200
-#define dlgMonth 1200
-
-// Messages start at 1300
-#define msgCalErrorTitle 1300
-#define msgCalError 1301
-#define msgCalRemoveTitle 1302
-#define msgCalRemove 1303
-
-// Styles start at 1400
-#define stlWorkday 1400
-#define stlWeekend 1401
-
-// Sheet names start at 1410
-#define nameCalYear 1410
-#define nameCalMonth 1411
-
-#define sProgress 1500
-
-// --------------------------------------------------------------------
-
-String dlgCalTitle
-{
-Text [ en-US ] = "%PRODUCTNAME Calendar";
-};
-
-String dlgCalTitleBack
-{
-Text [ en-US ] = "Back";
-};
-
-String dlgCalTitleOwnData
-{
-Text [ en-US ] = "Personal Data";
-};
-
-String dlgSchdlTitle
-{
-Text [ en-US ] = "Add Holidays to Calendar";
-};
-
-String dlgOK
-{
-Text [ en-US ] = "Create";
-};
-
-String dlgCancel
-{
-Text [ en-US ] = "Cancel";
-};
-
-String dlgCalFrameOption
-{
-Text [ en-US ] = "Calendar";
-};
-
-String dlgCalOptionYear
-{
-Text [ en-US ] = "~Year Overview";
-};
-
-String dlgCalOptionMonth
-{
-Text [ en-US ] = "~Month";
-};
-
-String dlgSchdlDescription
-{
-Text [ en-US ] = "Add holidays for";
-};
-
-String dlgSchdlCountry
-{
-Text [ en-US ] = "USA";
-};
-
-String dlgTime
-{
-Text [ en-US ] = "Time Frame";
-};
-
-String dlgYear
-{
-Text [ en-US ] = "Year";
-};
-
-String dlgCalMonth
-{
-Text [ en-US ] = "Month";
-};
-
-String dlgSpecificBankholidays
-{
-Text [ en-US ] = "-";
-};
-
-String dlgCalOwnData
-{
-Text [ en-US ] = "Personal Data";
-};
-
-String dlgCalInsert
-{
-Text [ en-US ] = "~Insert";
-};
-
-String dlgCalDelete
-{
-Text [ en-US ] = "~Delete";
-};
-
-String dlgCalNewEvent
-{
-Text [ en-US ] = "New Event";
-};
-
-String dlgCalEvent
-{
-Text [ en-US ] = "Event";
-};
-
-String dlgCalEventOnce
-{
-Text [ en-US ] = "One-Time";
-};
-
-String dlgCalEventDay
-{
-Text [ en-US ] = "Day";
-};
-
-String dlgCalEventMonth
-{
-Text [ en-US ] = "Month";
-};
-
-String dlgCalEventYear
-{
-Text [ en-US ] = "Year";
-};
-
-// --------------------------------------------------------------------
-
-String dlgBitmapFile
-{
-Text [ en-US ] = "usa.bmp";
-
-};
-
-// --------------------------------------------------------------------
-
-String dlgState
-{
-Text [ en-US ] = "Public holidays";
-};
-
-
-// --------------------------------------------------------------------
-
-String dlgMonth
-{
-Text [ en-US ] = "January";
-};
-
-String dlgMonth+1
-{
-Text [ en-US ] = "February";
-};
-
-String dlgMonth+2
-{
-Text [ en-US ] = "March";
-};
-
-String dlgMonth+3
-{
-Text [ en-US ] = "April";
-};
-
-String dlgMonth+4
-{
-Text [ en-US ] = "May";
-};
-
-String dlgMonth+5
-{
-Text [ en-US ] = "June";
-};
-
-String dlgMonth+6
-{
-Text [ en-US ] = "July";
-};
-
-String dlgMonth+7
-{
-Text [ en-US ] = "August";
-};
-
-String dlgMonth+8
-{
-Text [ en-US ] = "September";
-};
-
-String dlgMonth+9
-{
-Text [ en-US ] = "October";
-};
-
-String dlgMonth+10
-{
-Text [ en-US ] = "November";
-};
-
-String dlgMonth+11
-{
-Text [ en-US ] = "December";
-};
-
-// --------------------------------------------------------------------
-
-String msgCalErrorTitle
-{
-Text [ en-US ] = "Yearly / Monthly Calendar";
-};
-
-String msgCalError
-{
-Text [ en-US ] = "An error occurred while creating the calendar.";
-};
-
-String msgCalRemoveTitle
-{
-Text [ en-US ] = "Delete event entries";
-};
-
-String msgCalRemove
-{
-Text [ en-US ] = "Delete the selected entries?";
-};
-
-// --------------------------------------------------------------------
-
-String stlWorkday
-{
-Text [ en-US ] = "Workweek";
-};
-
-String stlWeekend
-{
-Text [ en-US ] = "Weekend";
-};
-
-// --------------------------------------------------------------------
-
-String nameCalYear
-{
-Text [ en-US ] = "Calendar";
-};
-
-String nameCalMonth
-{
-Text [ en-US ] = "Month";
-};
-
-
-
-String sProgress
-{
-Text [ en-US ] = "Progress:";
-};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/wizards/source/schedule/script.xlb b/wizards/source/schedule/script.xlb
deleted file mode 100644
index 96dd8da57fc1..000000000000
--- a/wizards/source/schedule/script.xlb
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd">
-<library:library xmlns:library="http://openoffice.org/2000/library" library:name="Schedule" library:readonly="true" library:passwordprotected="false">
- <library:element library:name="OwnEvents"/>
- <library:element library:name="CalendarMain"/>
- <library:element library:name="BankHoliday"/>
- <library:element library:name="DlgControl"/>
- <library:element library:name="Language"/>
- <library:element library:name="CreateTable"/>
- <library:element library:name="GermanHolidays"/>
- <library:element library:name="LocalHolidays"/>
-</library:library>