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 253 of file edtwin.cxx.
|
inline |
Definition at line 273 of file edtwin.cxx.
void QuickHelpData::ClearContent | ( | ) |
Definition at line 6102 of file edtwin.cxx.
References m_aHelpStrings, m_bAppendSpace, m_bIsAutoText, m_bIsDisplayed, m_bIsTip, nCurArrPos, nNoPos, and nTipId.
Referenced by SwEditWin::ShowAutoCorrectQuickHelp(), SwEditWin::ShowAutoText(), and Stop().
|
inline |
Definition at line 282 of file edtwin.cxx.
Referenced by SwEditWin::KeyInput(), and Start().
|
inline |
Definition at line 281 of file edtwin.cxx.
Referenced by SwEditWin::KeyInput(), and Start().
void QuickHelpData::FillStrArr | ( | SwWrtShell const & | rSh, |
const OUString & | rWord | ||
) |
Definition at line 6168 of file edtwin.cxx.
References GetAppCharClass(), SwEditShell::GetAutoCompleteWords(), SwEditShell::GetCurLang(), SwAutoCompleteWord::GetWordsMatching(), CharClass::lowercase(), m_aHelpStrings, s_getCalendarWrapper(), Date::SYSTEM, utl::toISO8601(), and CharClass::uppercase().
Referenced by SwEditWin::ShowAutoCorrectQuickHelp().
|
inline |
Definition at line 280 of file edtwin.cxx.
Referenced by SwEditWin::KeyInput().
void QuickHelpData::Move | ( | QuickHelpData & | rCpy | ) |
Definition at line 6090 of file edtwin.cxx.
References m_aHelpStrings, m_bAppendSpace, m_bIsAutoText, m_bIsDisplayed, m_bIsTip, and nCurArrPos.
Referenced by SwEditWin::KeyInput().
|
inline |
|
inline |
Previous help string.
Definition at line 291 of file edtwin.cxx.
Referenced by SwEditWin::KeyInput().
void QuickHelpData::SortAndFilter | ( | const OUString & | rOrigWord | ) |
Definition at line 6321 of file edtwin.cxx.
References m_aHelpStrings, and nCurArrPos.
Referenced by SwEditWin::ShowAutoCorrectQuickHelp().
void QuickHelpData::Start | ( | SwWrtShell & | rSh, |
bool | bRestart | ||
) |
Definition at line 6112 of file edtwin.cxx.
References SwEditShell::CreateExtTextInput(), CurLen(), CurStr(), false, 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(), Point, SwRect::Pos(), SwEditShell::SetExtTextInputData(), and Help::ShowPopover().
Referenced by SwEditWin::ShowAutoCorrectQuickHelp(), and SwEditWin::ShowAutoText().
void QuickHelpData::Stop | ( | SwWrtShell & | rSh | ) |
Definition at line 6156 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::LoseFocus(), 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 256 of file edtwin.cxx.
Referenced by ClearContent(), FillStrArr(), Move(), SwEditWin::ShowAutoCorrectQuickHelp(), SwEditWin::ShowAutoText(), and SortAndFilter().
bool QuickHelpData::m_bAppendSpace |
Append a space character to the displayed help string (if appropriate).
Definition at line 268 of file edtwin.cxx.
Referenced by ClearContent(), and Move().
bool QuickHelpData::m_bIsAutoText |
Help data stores AutoText names rather than AutoComplete words.
Definition at line 262 of file edtwin.cxx.
Referenced by ClearContent(), SwEditWin::KeyInput(), Move(), and SwEditWin::ShowAutoCorrectQuickHelp().
bool QuickHelpData::m_bIsDisplayed |
Help string is currently displayed.
Definition at line 271 of file edtwin.cxx.
Referenced by ClearContent(), SwEditWin::Command(), SwEditWin::dispose(), SwEditWin::LoseFocus(), Move(), Start(), and SwEditWin::StopQuickHelp().
bool QuickHelpData::m_bIsTip |
Display help string as a tip rather than inline.
Definition at line 264 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 258 of file edtwin.cxx.
Referenced by ClearContent(), Move(), SortAndFilter(), and Start().
|
static |
Definition at line 259 of file edtwin.cxx.
Referenced by ClearContent().
void* QuickHelpData::nTipId |
Tip ID when a help string is displayed as a tip.
Definition at line 266 of file edtwin.cxx.
Referenced by ClearContent(), Start(), and Stop().