LibreOffice Module sw (master) 1
|
Assists with auto-completion of AutoComplete words and AutoText names. More...
Public Member Functions | |
QuickHelpData () | |
void | Move (QuickHelpData &rCpy) |
void | ClearContent () |
void | Start (SwWrtShell &rSh, bool bRestart) |
void | Stop (SwWrtShell &rSh) |
bool | HasContent () const |
const OUString & | CurStr () const |
sal_uInt16 | CurLen () const |
void | Next (bool bEndLess) |
Next help string. More... | |
void | Previous (bool bEndLess) |
Previous help string. More... | |
void | FillStrArr (SwWrtShell const &rSh, const OUString &rWord) |
void | SortAndFilter (const OUString &rOrigWord) |
Public Attributes | |
std::vector< std::pair< OUString, sal_uInt16 > > | m_aHelpStrings |
Strings that at least partially match an input word, and match length. More... | |
sal_uInt16 | nCurArrPos |
Index of the current help string. More... | |
bool | m_bIsAutoText |
Help data stores AutoText names rather than AutoComplete words. More... | |
bool | m_bIsTip |
Display help string as a tip rather than inline. More... | |
void * | nTipId |
Tip ID when a help string is displayed as a tip. More... | |
bool | m_bAppendSpace |
Append a space character to the displayed help string (if appropriate). More... | |
bool | m_bIsDisplayed |
Help string is currently displayed. More... | |
Static Public Attributes | |
static constexpr sal_uInt16 | nNoPos = std::numeric_limits<sal_uInt16>::max() |
Assists with auto-completion of AutoComplete words and AutoText names.
Definition at line 257 of file edtwin.cxx.
|
inline |
Definition at line 277 of file edtwin.cxx.
References ClearContent().
void QuickHelpData::ClearContent | ( | ) |
Definition at line 6248 of file edtwin.cxx.
References m_aHelpStrings, m_bAppendSpace, m_bIsAutoText, m_bIsDisplayed, m_bIsTip, nCurArrPos, nNoPos, and nTipId.
Referenced by QuickHelpData(), SwEditWin::ShowAutoCorrectQuickHelp(), SwEditWin::ShowAutoText(), and Stop().
|
inline |
Definition at line 286 of file edtwin.cxx.
References m_aHelpStrings, and nCurArrPos.
Referenced by SwEditWin::KeyInput(), and Start().
|
inline |
Definition at line 285 of file edtwin.cxx.
References m_aHelpStrings, and nCurArrPos.
Referenced by SwEditWin::KeyInput(), and Start().
void QuickHelpData::FillStrArr | ( | SwWrtShell const & | rSh, |
const OUString & | rWord | ||
) |
Definition at line 6314 of file edtwin.cxx.
References GetAppCharClass(), SwEditShell::GetAutoCompleteWords(), SwEditShell::GetCurLang(), CalendarWrapper::getDays(), CalendarWrapper::getMonths(), SwAutoCompleteWord::GetWordsMatching(), SwCalendarWrapper::LoadDefaultCalendar(), CharClass::lowercase(), m_aHelpStrings, s_getCalendarWrapper(), Date::SYSTEM, utl::toISO8601(), and CharClass::uppercase().
Referenced by SwEditWin::ShowAutoCorrectQuickHelp().
|
inline |
Definition at line 284 of file edtwin.cxx.
References m_aHelpStrings, nCurArrPos, and nNoPos.
Referenced by SwEditWin::KeyInput().
void QuickHelpData::Move | ( | QuickHelpData & | rCpy | ) |
Definition at line 6236 of file edtwin.cxx.
References m_aHelpStrings, m_bAppendSpace, m_bIsAutoText, m_bIsDisplayed, m_bIsTip, and nCurArrPos.
Referenced by SwEditWin::KeyInput().
|
inline |
Next help string.
Definition at line 289 of file edtwin.cxx.
References m_aHelpStrings, m_bIsAutoText, and nCurArrPos.
Referenced by SwEditWin::KeyInput().
|
inline |
Previous help string.
Definition at line 295 of file edtwin.cxx.
References m_aHelpStrings, m_bIsAutoText, and nCurArrPos.
Referenced by SwEditWin::KeyInput().
void QuickHelpData::SortAndFilter | ( | const OUString & | rOrigWord | ) |
Definition at line 6467 of file edtwin.cxx.
References m_aHelpStrings, and nCurArrPos.
Referenced by SwEditWin::ShowAutoCorrectQuickHelp().
void QuickHelpData::Start | ( | SwWrtShell & | rSh, |
bool | bRestart | ||
) |
Definition at line 6258 of file edtwin.cxx.
References Point::AdjustY(), SwEditShell::CreateExtTextInput(), CurLen(), CurStr(), SwCursorShell::GetCharRect(), SwView::GetEditWin(), vcl::Window::GetInputLanguage(), SwWrtShell::GetView(), INVALID_HINT(), LANGUAGE_DONTKNOW, lcl_isNonDefaultLanguage(), vcl::Window::LogicToPixel(), m_bIsDisplayed, m_bIsTip, nCurArrPos, nTipId, vcl::Window::OutputToScreenPixel(), SwRect::Pos(), SwEditShell::SetExtTextInputData(), and Help::ShowPopover().
Referenced by SwEditWin::KeyInput(), SwEditWin::ShowAutoCorrectQuickHelp(), and SwEditWin::ShowAutoText().
void QuickHelpData::Stop | ( | SwWrtShell & | rSh | ) |
Definition at line 6302 of file edtwin.cxx.
References ClearContent(), SwEditShell::DeleteExtTextInput(), SwView::GetEditWin(), SwWrtShell::GetView(), Help::HidePopover(), m_bIsTip, and nTipId.
Referenced by SwEditWin::Command(), SwEditWin::dispose(), SwEditWin::KeyInput(), SwEditWin::LoseFocus(), SwEditWin::MouseButtonDown(), and SwEditWin::StopQuickHelp().
std::vector<std::pair<OUString, sal_uInt16> > QuickHelpData::m_aHelpStrings |
Strings that at least partially match an input word, and match length.
Definition at line 260 of file edtwin.cxx.
Referenced by ClearContent(), CurLen(), CurStr(), FillStrArr(), HasContent(), Move(), Next(), Previous(), SwEditWin::ShowAutoCorrectQuickHelp(), SwEditWin::ShowAutoText(), and SortAndFilter().
bool QuickHelpData::m_bAppendSpace |
Append a space character to the displayed help string (if appropriate).
Definition at line 272 of file edtwin.cxx.
Referenced by ClearContent(), SwEditWin::KeyInput(), SwEditWin::MouseButtonDown(), and Move().
bool QuickHelpData::m_bIsAutoText |
Help data stores AutoText names rather than AutoComplete words.
Definition at line 266 of file edtwin.cxx.
Referenced by ClearContent(), SwEditWin::KeyInput(), Move(), Next(), Previous(), and SwEditWin::ShowAutoCorrectQuickHelp().
bool QuickHelpData::m_bIsDisplayed |
Help string is currently displayed.
Definition at line 275 of file edtwin.cxx.
Referenced by ClearContent(), SwEditWin::Command(), SwEditWin::dispose(), SwEditWin::KeyInput(), SwEditWin::LoseFocus(), SwEditWin::MouseButtonDown(), Move(), Start(), and SwEditWin::StopQuickHelp().
bool QuickHelpData::m_bIsTip |
Display help string as a tip rather than inline.
Definition at line 268 of file edtwin.cxx.
Referenced by ClearContent(), Move(), SwEditWin::ShowAutoCorrectQuickHelp(), Start(), and Stop().
sal_uInt16 QuickHelpData::nCurArrPos |
Index of the current help string.
Definition at line 262 of file edtwin.cxx.
Referenced by ClearContent(), CurLen(), CurStr(), HasContent(), Move(), Next(), Previous(), SortAndFilter(), and Start().
|
staticconstexpr |
Definition at line 263 of file edtwin.cxx.
Referenced by ClearContent(), and HasContent().
void* QuickHelpData::nTipId |
Tip ID when a help string is displayed as a tip.
Definition at line 270 of file edtwin.cxx.
Referenced by ClearContent(), Start(), and Stop().