LibreOffice Module sw (master) 1
|
#include <gloslst.hxx>
Public Member Functions | |
SwGlossaryList () | |
virtual | ~SwGlossaryList () override |
void | HasLongName (const std::vector< OUString > &rBeginCandidates, std::vector< std::pair< OUString, sal_uInt16 > > &rLongNames) |
bool | GetShortName (std::u16string_view rLongName, OUString &rShortName, OUString &rGroupName) |
size_t | GetGroupCount () |
OUString | GetGroupName (size_t nPos) |
OUString | GetGroupTitle (size_t nPos) |
sal_uInt16 | GetBlockCount (size_t nGroup) |
OUString | GetBlockLongName (size_t nGroup, sal_uInt16 nBlock) |
OUString | GetBlockShortName (size_t nGroup, sal_uInt16 nBlock) |
void | Update () |
virtual void | Invoke () override |
void | ClearGroups () |
Public Member Functions inherited from AutoTimer | |
AutoTimer (const char *pDebugName) | |
Public Member Functions inherited from Timer | |
Timer (const char *pDebugName) | |
Timer (const Timer &rTimer) | |
virtual | ~Timer () override |
Timer & | operator= (const Timer &rTimer) |
virtual void | Invoke () override |
void | Invoke (Timer *arg) |
void | SetInvokeHandler (const Link< Timer *, void > &rLink) |
void | ClearInvokeHandler () |
void | SetTimeout (sal_uInt64 nTimeoutMs) |
sal_uInt64 | GetTimeout () const |
virtual void | Start (bool bStartTimer=true) override |
Public Member Functions inherited from Task | |
Task (const char *pDebugName) | |
Task (const Task &rTask) | |
virtual | ~Task () COVERITY_NOEXCEPT_FALSE |
Task & | operator= (const Task &rTask) |
void | SetPriority (TaskPriority ePriority) |
TaskPriority | GetPriority () const |
const char * | GetDebugName () const |
virtual void | Invoke ()=0 |
virtual void | Start (bool bStartTimer=true) |
void | Stop () |
bool | IsActive () const |
void | SetStatic () |
bool | IsStatic () const |
Private Member Functions | |
AutoTextGroup * | FindGroup (std::u16string_view rGroupName) |
Static Private Member Functions | |
static void | FillGroup (AutoTextGroup *pGroup, SwGlossaries *pGloss) |
Private Attributes | |
std::vector< std::unique_ptr< AutoTextGroup > > | m_aGroupArr |
OUString | m_sPath |
bool | m_bFilled |
Additional Inherited Members | |
Protected Member Functions inherited from Timer | |
virtual void | SetDeletionFlags () override |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Timer (bool bAuto, const char *pDebugName) | |
Protected Member Functions inherited from Task | |
const ImplSchedulerData * | GetSchedulerData () const |
virtual void | SetDeletionFlags () |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const=0 |
Static Protected Member Functions inherited from Task | |
static void | StartTimer (sal_uInt64 nMS) |
Definition at line 47 of file gloslst.hxx.
SwGlossaryList::SwGlossaryList | ( | ) |
Definition at line 88 of file gloslst.cxx.
References SvtPathOptions::GetAutoTextPath(), GLOS_TIMEOUT, m_sPath, and Timer::SetTimeout().
|
overridevirtual |
Definition at line 96 of file gloslst.cxx.
References ClearGroups().
void SwGlossaryList::ClearGroups | ( | ) |
Definition at line 439 of file gloslst.cxx.
References m_aGroupArr, and m_bFilled.
Referenced by SwGlossaryHdl::GlossaryDlg(), SwXAutoTextGroup::setPropertyValue(), Update(), and ~SwGlossaryList().
|
staticprivate |
Definition at line 353 of file gloslst.cxx.
References AutoTextGroup::nCount, pGlossaries, AutoTextGroup::sLongNames, AutoTextGroup::sName, AutoTextGroup::sShortNames, AutoTextGroup::sTitle, and STRING_DELIM.
Referenced by Update().
|
private |
sal_uInt16 SwGlossaryList::GetBlockCount | ( | size_t | nGroup | ) |
Definition at line 201 of file gloslst.cxx.
References m_aGroupArr, and AutoTextGroup::nCount.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
OUString SwGlossaryList::GetBlockLongName | ( | size_t | nGroup, |
sal_uInt16 | nBlock | ||
) |
Definition at line 212 of file gloslst.cxx.
References m_aGroupArr, AutoTextGroup::sLongNames, and STRING_DELIM.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
OUString SwGlossaryList::GetBlockShortName | ( | size_t | nGroup, |
sal_uInt16 | nBlock | ||
) |
Definition at line 223 of file gloslst.cxx.
References m_aGroupArr, AutoTextGroup::sShortNames, and STRING_DELIM.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), SwGlossaryHdl::Expand(), and IMPL_STATIC_LINK().
size_t SwGlossaryList::GetGroupCount | ( | ) |
Definition at line 171 of file gloslst.cxx.
References m_aGroupArr, m_bFilled, and Update().
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
OUString SwGlossaryList::GetGroupName | ( | size_t | nPos | ) |
Definition at line 178 of file gloslst.cxx.
References m_aGroupArr, nPos, and AutoTextGroup::sName.
Referenced by SwGlossaryHdl::Expand(), and IMPL_STATIC_LINK().
OUString SwGlossaryList::GetGroupTitle | ( | size_t | nPos | ) |
Definition at line 190 of file gloslst.cxx.
References m_aGroupArr, nPos, and AutoTextGroup::sTitle.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
bool SwGlossaryList::GetShortName | ( | std::u16string_view | rLongName, |
OUString & | rShortName, | ||
OUString & | rGroupName | ||
) |
Definition at line 105 of file gloslst.cxx.
References weld::TreeView::append_text(), weld::TreeView::get_selected_index(), GetActiveView(), SfxViewShell::GetFrameWeld(), GLOS_DELIM, i, m_aGroupArr, m_bFilled, nCount, AutoTextGroup::nCount, RET_OK, weld::TreeView::select(), AutoTextGroup::sLongNames, AutoTextGroup::sName, AutoTextGroup::sShortNames, STRING_DELIM, and Update().
Referenced by SwEditWin::KeyInput().
void SwGlossaryList::HasLongName | ( | const std::vector< OUString > & | rBeginCandidates, |
std::vector< std::pair< OUString, sal_uInt16 > > & | rLongNames | ||
) |
Definition at line 374 of file gloslst.cxx.
References begin, end, FIND_MAX_GLOS, GetAppCmpStrIgnore(), getLength(), i, m_aGroupArr, m_bFilled, nCount, STRING_DELIM, and Update().
Referenced by SwEditWin::ShowAutoText().
|
overridevirtual |
Reimplemented from Timer.
Definition at line 336 of file gloslst.cxx.
References GetActiveView(), and Update().
void SwGlossaryList::Update | ( | ) |
Definition at line 234 of file gloslst.cxx.
References AutoTextGroup::aDateModified, ClearGroups(), FillGroup(), FindGroup(), SvtPathOptions::GetAutoTextPath(), SwGlossaries::GetExtension(), GetGlossaries(), FStatHelper::GetModifiedDateTimeOfFile(), o3tl::getToken(), GLOS_DELIM, i, Task::IsActive(), m_aGroupArr, m_bFilled, m_sPath, pGlossaries, sName, AutoTextGroup::sName, Timer::Start(), o3tl::toInt32(), and SWUnoHelper::UCB_GetFileListOfFolder().
Referenced by SwTextShell::ExecGlossary(), GetGroupCount(), GetShortName(), HasLongName(), and Invoke().
|
private |
Definition at line 49 of file gloslst.hxx.
Referenced by ClearGroups(), FindGroup(), GetBlockCount(), GetBlockLongName(), GetBlockShortName(), GetGroupCount(), GetGroupName(), GetGroupTitle(), GetShortName(), HasLongName(), and Update().
|
private |
Definition at line 51 of file gloslst.hxx.
Referenced by ClearGroups(), GetGroupCount(), GetShortName(), HasLongName(), and Update().
|
private |
Definition at line 50 of file gloslst.hxx.
Referenced by SwGlossaryList(), and Update().