LibreOffice Module vcl (master) 1
|
#include <sal/config.h>
#include <algorithm>
#include <string_view>
#include <comphelper/diagnose_ex.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <o3tl/string_view.hxx>
#include <officecfg/Office/Common.hxx>
#include <vcl/svapp.hxx>
#include <vcl/event.hxx>
#include <vcl/toolkit/field.hxx>
#include <vcl/unohelp.hxx>
#include <vcl/settings.hxx>
#include <vcl/weldutils.hxx>
#include <svdata.hxx>
#include <com/sun/star/i18n/XCharacterClassification.hpp>
#include <com/sun/star/i18n/CalendarFieldIndex.hdl>
#include <unotools/localedatawrapper.hxx>
#include <unotools/calendarwrapper.hxx>
#include <unotools/charclass.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <tools/duration.hxx>
Go to the source code of this file.
Namespaces | |
namespace | weld |
Macros | |
#define | EDITMASK_LITERAL 'L' |
#define | EDITMASK_ALPHA 'a' |
#define | EDITMASK_UPPERALPHA 'A' |
#define | EDITMASK_ALPHANUM 'c' |
#define | EDITMASK_UPPERALPHANUM 'C' |
#define | EDITMASK_NUM 'N' |
#define | EDITMASK_NUMSPACE 'n' |
#define | EDITMASK_ALLCHAR 'x' |
#define | EDITMASK_UPPERALLCHAR 'X' |
Functions | |
uno::Reference< i18n::XCharacterClassification > const & | ImplGetCharClass () |
static sal_Unicode * | ImplAddString (sal_Unicode *pBuf, const OUString &rStr) |
static sal_Unicode * | ImplAddNum (sal_Unicode *pBuf, sal_uLong nNumber, int nMinLen) |
static sal_Unicode * | ImplAddSNum (sal_Unicode *pBuf, sal_Int32 nNumber, int nMinLen) |
static sal_uInt16 | ImplGetNum (const sal_Unicode *&rpBuf, bool &rbError) |
static void | ImplSkipDelimiters (const sal_Unicode *&rpBuf) |
static bool | ImplIsPatternChar (sal_Unicode cChar, char cEditMask) |
static sal_Unicode | ImplPatternChar (sal_Unicode cChar, char cEditMask) |
static bool | ImplCommaPointCharEqual (sal_Unicode c1, sal_Unicode c2) |
static OUString | ImplPatternReformat (const OUString &rStr, const OString &rEditMask, std::u16string_view rLiteralMask, sal_uInt16 nFormatFlags) |
static void | ImplPatternMaxPos (std::u16string_view rStr, const OString &rEditMask, sal_uInt16 nFormatFlags, bool bSameMask, sal_Int32 nCursorPos, sal_Int32 &rPos) |
static OUString | ImplPatternProcessStrictModify (const OUString &rText, const OString &rEditMask, std::u16string_view rLiteralMask, bool bSameMask) |
static void | ImplPatternProcessStrictModify (Edit *pEdit, const OString &rEditMask, std::u16string_view rLiteralMask, bool bSameMask) |
static void | ImplPatternProcessStrictModify (weld::Entry &rEntry, const OString &rEditMask, std::u16string_view rLiteralMask, bool bSameMask) |
static sal_Int32 | ImplPatternLeftPos (std::string_view rEditMask, sal_Int32 nCursorPos) |
static sal_Int32 | ImplPatternRightPos (std::u16string_view rStr, const OString &rEditMask, sal_uInt16 nFormatFlags, bool bSameMask, sal_Int32 nCursorPos) |
static bool | ImplPatternProcessKeyInput (IEditImplementation &rEdit, const KeyEvent &rKEvt, const OString &rEditMask, std::u16string_view rLiteralMask, bool bStrictFormat, bool bSameMask, bool &rbInKeyInput) |
weld::IMPL_LINK (PatternFormatter, KeyInputHdl, const KeyEvent &, rKEvt, bool) | |
static ExtDateFieldFormat | ImplGetExtFormat (LongDateOrder eOld) |
static sal_uInt16 | ImplCutNumberFromString (OUString &rStr) |
static bool | ImplCutMonthName (OUString &rStr, std::u16string_view _rLookupMonthName) |
static sal_uInt16 | ImplGetMonthFromCalendarItem (OUString &rStr, const uno::Sequence< i18n::CalendarItem2 > &rMonths) |
static sal_uInt16 | ImplCutMonthFromString (OUString &rStr, OUString &rCalendarName, const LocaleDataWrapper &rLocaleData, const CalendarWrapper &rCalendarWrapper) |
static OUString | ImplGetDateSep (const LocaleDataWrapper &rLocaleDataWrapper, ExtDateFieldFormat eFormat) |
static bool | ImplDateProcessKeyInput (const KeyEvent &rKEvt, ExtDateFieldFormat eFormat, const LocaleDataWrapper &rLocaleDataWrapper) |
static void | ImplDateIncrementDay (Date &rDate, bool bUp) |
static void | ImplDateIncrementMonth (Date &rDate, bool bUp) |
static void | ImplDateIncrementYear (Date &rDate, bool bUp) |
weld::IMPL_LINK_NOARG (DateFormatter, FormatOutputHdl, LinkParamNone *, bool) | |
weld::IMPL_LINK (DateFormatter, ParseInputHdl, sal_Int64 *, result, TriState) | |
static bool | ImplTimeProcessKeyInput (const KeyEvent &rKEvt, bool bStrictFormat, bool bDuration, TimeFieldFormat eFormat, const LocaleDataWrapper &rLocaleDataWrapper) |
static bool | ImplIsOnlyDigits (const OUString &_rStr) |
static bool | ImplIsValidTimePortion (bool _bSkipInvalidCharacters, const OUString &_rStr) |
static bool | ImplCutTimePortion (OUStringBuffer &_rStr, sal_Int32 _nSepPos, bool _bSkipInvalidCharacters, short *_pPortion) |
weld::IMPL_LINK_NOARG (TimeFormatter, FormatOutputHdl, LinkParamNone *, bool) | |
weld::IMPL_LINK (TimeFormatter, ParseInputHdl, sal_Int64 *, result, TriState) | |
weld::IMPL_LINK (TimeFormatter, CursorChangedHdl, weld::Entry &, rEntry, void) | |
#define EDITMASK_ALLCHAR 'x' |
Definition at line 59 of file field2.cxx.
#define EDITMASK_ALPHA 'a' |
Definition at line 53 of file field2.cxx.
#define EDITMASK_ALPHANUM 'c' |
Definition at line 55 of file field2.cxx.
#define EDITMASK_LITERAL 'L' |
Definition at line 52 of file field2.cxx.
#define EDITMASK_NUM 'N' |
Definition at line 57 of file field2.cxx.
#define EDITMASK_NUMSPACE 'n' |
Definition at line 58 of file field2.cxx.
#define EDITMASK_UPPERALLCHAR 'X' |
Definition at line 60 of file field2.cxx.
#define EDITMASK_UPPERALPHA 'A' |
Definition at line 54 of file field2.cxx.
#define EDITMASK_UPPERALPHANUM 'C' |
Definition at line 56 of file field2.cxx.
|
static |
Definition at line 82 of file field2.cxx.
Referenced by ImplAddSNum().
|
static |
Definition at line 117 of file field2.cxx.
References ImplAddNum().
|
static |
Definition at line 75 of file field2.cxx.
|
static |
Definition at line 219 of file field2.cxx.
Referenced by ImplPatternProcessKeyInput(), and ImplPatternReformat().
|
static |
|
static |
Definition at line 1205 of file field2.cxx.
References index.
Referenced by ImplGetMonthFromCalendarItem().
|
static |
Definition at line 1190 of file field2.cxx.
References nValue, and o3tl::toInt32().
Referenced by ImplCutMonthFromString().
|
static |
Definition at line 2320 of file field2.cxx.
References ImplIsValidTimePortion().
|
static |
Definition at line 1599 of file field2.cxx.
References Date::AddDays().
Referenced by DateField::ImplDateSpinArea().
|
static |
Definition at line 1605 of file field2.cxx.
References Date::AddMonths().
Referenced by DateField::ImplDateSpinArea().
|
static |
Definition at line 1611 of file field2.cxx.
References Date::AddYears().
Referenced by DateField::ImplDateSpinArea().
|
static |
Definition at line 1302 of file field2.cxx.
References KeyEvent::GetCharCode(), vcl::KeyCode::GetGroup(), KeyEvent::GetKeyCode(), ImplGetDateSep(), KEYGROUP_CURSOR, KEYGROUP_FKEYS, and KEYGROUP_MISC.
Referenced by DateField::PreNotify().
uno::Reference< i18n::XCharacterClassification > const & ImplGetCharClass | ( | ) |
Definition at line 62 of file field2.cxx.
References vcl::unohelper::CreateCharacterClassification(), ImplGetSVData(), and ImplSVData::m_xCharClass.
Referenced by ImplFindAccelWindow(), ImplIsPatternChar(), and ImplPatternChar().
|
static |
Definition at line 1294 of file field2.cxx.
References LocaleDataWrapper::getDateSep(), ShortYYMMDD_DIN5008, and ShortYYYYMMDD_DIN5008.
Referenced by ImplDateProcessKeyInput().
|
static |
Definition at line 1178 of file field2.cxx.
References ShortDDMMYY, ShortMMDDYY, and ShortYYMMDD.
|
static |
Definition at line 1212 of file field2.cxx.
References FullName, i, and ImplCutMonthName().
Referenced by ImplCutMonthFromString().
|
static |
Definition at line 127 of file field2.cxx.
|
static |
|
static |
Definition at line 155 of file field2.cxx.
References DBG_UNHANDLED_EXCEPTION, EDITMASK_ALLCHAR, EDITMASK_ALPHA, EDITMASK_ALPHANUM, EDITMASK_NUM, EDITMASK_NUMSPACE, EDITMASK_UPPERALLCHAR, EDITMASK_UPPERALPHA, EDITMASK_UPPERALPHANUM, getLocale(), Application::GetSettings(), ImplGetCharClass(), CharClass::isLetterNumericType(), CharClass::isLetterType(), CharClass::isNumericType(), and nType.
Referenced by ImplPatternChar(), and ImplPatternReformat().
|
static |
Definition at line 2310 of file field2.cxx.
References ImplIsOnlyDigits().
Referenced by ImplCutTimePortion().
|
static |
Definition at line 202 of file field2.cxx.
References EDITMASK_UPPERALLCHAR, EDITMASK_UPPERALPHA, EDITMASK_UPPERALPHANUM, getLocale(), Application::GetSettings(), ImplGetCharClass(), and ImplIsPatternChar().
Referenced by ImplPatternProcessKeyInput(), and ImplPatternReformat().
|
static |
Definition at line 469 of file field2.cxx.
References EDITMASK_LITERAL.
Referenced by ImplPatternProcessKeyInput().
|
static |
Definition at line 329 of file field2.cxx.
References EDITMASK_LITERAL, and PATTERN_FORMAT_EMPTYLITERALS.
Referenced by ImplPatternProcessKeyInput(), ImplPatternProcessStrictModify(), and ImplPatternRightPos().
|
static |
Definition at line 524 of file field2.cxx.
References aStr, EDITMASK_LITERAL, KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), ImplCommaPointCharEqual(), ImplPatternChar(), ImplPatternLeftPos(), ImplPatternMaxPos(), ImplPatternReformat(), ImplPatternRightPos(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_BACKSPACE, KEY_DELETE, KEY_END, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_RIGHT, Selection::Len(), Selection::Max(), Selection::Min(), n, and Selection::Normalize().
Referenced by weld::IMPL_LINK().
|
static |
Definition at line 369 of file field2.cxx.
References EDITMASK_LITERAL, i, and ImplPatternReformat().
Referenced by ImplPatternProcessStrictModify(), and weld::PatternFormatter::Modify().
|
static |
Definition at line 398 of file field2.cxx.
References Edit::GetSelection(), Edit::GetText(), ImplPatternMaxPos(), ImplPatternProcessStrictModify(), Selection::Max(), Selection::Min(), and Edit::SetText().
|
static |
Definition at line 432 of file field2.cxx.
References weld::Entry::get_selection_bounds(), weld::Entry::get_text(), ImplPatternMaxPos(), ImplPatternProcessStrictModify(), weld::Entry::select_region(), and weld::Entry::set_text().
|
static |
Definition at line 230 of file field2.cxx.
References EDITMASK_LITERAL, i, ImplCommaPointCharEqual(), ImplIsPatternChar(), ImplPatternChar(), n, and PATTERN_FORMAT_EMPTYLITERALS.
Referenced by ImplPatternProcessKeyInput(), ImplPatternProcessStrictModify(), and weld::PatternFormatter::ReformatAll().
|
static |
Definition at line 486 of file field2.cxx.
References EDITMASK_LITERAL, and ImplPatternMaxPos().
Referenced by ImplPatternProcessKeyInput().
|
static |
Definition at line 146 of file field2.cxx.
|
static |
Definition at line 2271 of file field2.cxx.
References F_SEC_CS, KeyEvent::GetCharCode(), vcl::KeyCode::GetGroup(), KeyEvent::GetKeyCode(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeAM(), LocaleDataWrapper::getTimePM(), LocaleDataWrapper::getTimeSep(), KEYGROUP_CURSOR, KEYGROUP_FKEYS, and KEYGROUP_MISC.