LibreOffice Module basic (master) 1
|
#include <config_features.h>
#include <tools/date.hxx>
#include <basic/sbxvar.hxx>
#include <basic/sbuno.hxx>
#include <osl/process.h>
#include <vcl/dibtools.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <vcl/sound.hxx>
#include <vcl/wintypes.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/weld.hxx>
#include <basic/sbx.hxx>
#include <svl/zforlist.hxx>
#include <rtl/character.hxx>
#include <rtl/math.hxx>
#include <tools/urlobj.hxx>
#include <osl/time.h>
#include <unotools/charclass.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/wincodepage.hxx>
#include <tools/wldcrd.hxx>
#include <i18nlangtag/lang.h>
#include <rtl/string.hxx>
#include <sal/log.hxx>
#include <comphelper/DirectoryHelper.hxx>
#include <runtime.hxx>
#include <sbunoobj.hxx>
#include <osl/file.hxx>
#include <errobject.hxx>
#include <comphelper/string.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include <com/sun/star/script/XErrorQuery.hpp>
#include <ooo/vba/VbStrConv.hpp>
#include <ooo/vba/VbTriState.hpp>
#include <com/sun/star/bridge/oleautomation/XAutomationObject.hpp>
#include <memory>
#include <random>
#include <string_view>
#include <o3tl/char16_t2wchar_t.hxx>
#include <com/sun/star/i18n/Transliteration.hpp>
#include <com/sun/star/util/SearchAlgorithms2.hpp>
#include <i18nutil/searchopt.hxx>
#include <unotools/textsearch.hxx>
#include <svl/numformat.hxx>
#include <date.hxx>
#include <sbstdobj.hxx>
#include <rtlproto.hxx>
#include <image.hxx>
#include <iosys.hxx>
#include "ddectrl.hxx"
#include <sbintern.hxx>
#include <basic/vbahelper.hxx>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sbobjmod.hxx>
#include <sbxmod.hxx>
#include <unistd.h>
#include <vcl/TypeSerializer.hxx>
Go to the source code of this file.
Functions | |
static sal_Int32 | GetDayDiff (const Date &rDate) |
sal_Int16 | implGetDateYear (double aDate) |
bool | implDateSerial (sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bUseTwoDigitYear, SbDateCorrection eCorr, double &rdRet) |
double | implTimeSerial (sal_Int16 nHours, sal_Int16 nMinutes, sal_Int16 nSeconds) |
bool | implDateTimeSerial (sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, sal_Int16 nHour, sal_Int16 nMinute, sal_Int16 nSecond, double &rdRet) |
sal_Int16 | implGetMinute (double dDate) |
|
static |
Definition at line 114 of file methods.cxx.
Referenced by implDateSerial().
bool implDateSerial | ( | sal_Int16 | nYear, |
sal_Int16 | nMonth, | ||
sal_Int16 | nDay, | ||
bool | bUseTwoDigitYear, | ||
SbDateCorrection | eCorr, | ||
double & | rdRet | ||
) |
Definition at line 4630 of file methods.cxx.
References Date::AddDays(), Date::AddMonths(), ERRCODE_BASIC_BAD_ARGUMENT, StarBASIC::Error(), GetDayDiff(), Date::GetMonth(), Date::GetYear(), Date::IsValidDate(), SbiRuntime::isVBAEnabled(), None, Date::Normalize(), RollOver, SAL_MAX_INT16, Date::SetDay(), Date::SetMonth(), and TruncateToMonth.
Referenced by SbxValue::Format(), and implDateTimeSerial().
bool implDateTimeSerial | ( | sal_Int16 | nYear, |
sal_Int16 | nMonth, | ||
sal_Int16 | nDay, | ||
sal_Int16 | nHour, | ||
sal_Int16 | nMinute, | ||
sal_Int16 | nSecond, | ||
double & | rdRet | ||
) |
Definition at line 4750 of file methods.cxx.
References implDateSerial(), implTimeSerial(), and None.
sal_Int16 implGetDateYear | ( | double | aDate | ) |
Definition at line 4621 of file methods.cxx.
References Date::AddDays(), and Date::GetYear().
Referenced by SbxValue::Format().
sal_Int16 implGetMinute | ( | double | dDate | ) |
Definition at line 4761 of file methods.cxx.
Referenced by SbxValue::Format().
double implTimeSerial | ( | sal_Int16 | nHours, |
sal_Int16 | nMinutes, | ||
sal_Int16 | nSeconds | ||
) |
Definition at line 4740 of file methods.cxx.
References tools::Time::secondPerDay, tools::Time::secondPerHour, and tools::Time::secondPerMinute.
Referenced by implDateTimeSerial().