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 () |
![]() | |
AutoTimer (const char *pDebugName=nullptr) | |
![]() | |
Timer (const char *pDebugName=nullptr) | |
Timer (const Timer &rTimer) | |
virtual | ~Timer () override |
Timer & | operator= (const Timer &rTimer) |
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 () override |
![]() | |
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 |
void | SetDebugName (const char *pDebugName) |
const char * | GetDebugName () const |
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 > > | aGroupArr |
OUString | sPath |
bool | bFilled |
Additional Inherited Members | |
![]() | |
virtual void | SetDeletionFlags () override |
virtual sal_uInt64 | UpdateMinPeriod (sal_uInt64 nTimeNow) const override |
Timer (bool bAuto, const char *pDebugName) | |
![]() | |
const ImplSchedulerData * | GetSchedulerData () const |
![]() | |
static void | StartTimer (sal_uInt64 nMS) |
Definition at line 47 of file gloslst.hxx.
SwGlossaryList::SwGlossaryList | ( | ) |
Definition at line 86 of file gloslst.cxx.
References SvtPathOptions::GetAutoTextPath(), GLOS_TIMEOUT, Timer::SetTimeout(), and sPath.
|
overridevirtual |
Definition at line 94 of file gloslst.cxx.
References ClearGroups().
void SwGlossaryList::ClearGroups | ( | ) |
Definition at line 435 of file gloslst.cxx.
References aGroupArr, and bFilled.
Referenced by SwGlossaryHdl::GlossaryDlg(), SwXAutoTextGroup::setPropertyValue(), Update(), and ~SwGlossaryList().
|
staticprivate |
Definition at line 349 of file gloslst.cxx.
References SwGlossaries::GetGroupDoc(), AutoTextGroup::nCount, 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 197 of file gloslst.cxx.
References aGroupArr, and AutoTextGroup::nCount.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
OUString SwGlossaryList::GetBlockLongName | ( | size_t | nGroup, |
sal_uInt16 | nBlock | ||
) |
Definition at line 208 of file gloslst.cxx.
References 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 219 of file gloslst.cxx.
References aGroupArr, AutoTextGroup::sShortNames, and STRING_DELIM.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), SwGlossaryHdl::Expand(), and IMPL_STATIC_LINK().
size_t SwGlossaryList::GetGroupCount | ( | ) |
Definition at line 167 of file gloslst.cxx.
References aGroupArr, bFilled, and Update().
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
OUString SwGlossaryList::GetGroupName | ( | size_t | nPos | ) |
Definition at line 174 of file gloslst.cxx.
References aGroupArr, and AutoTextGroup::sName.
Referenced by SwGlossaryHdl::Expand(), and IMPL_STATIC_LINK().
OUString SwGlossaryList::GetGroupTitle | ( | size_t | nPos | ) |
Definition at line 186 of file gloslst.cxx.
References aGroupArr, and AutoTextGroup::sTitle.
Referenced by SwTbxAutoTextCtrl::CreatePopupWindow(), and SwGlossaryHdl::Expand().
bool SwGlossaryList::GetShortName | ( | std::u16string_view | rLongName, |
OUString & | rShortName, | ||
OUString & | rGroupName | ||
) |
Definition at line 103 of file gloslst.cxx.
References aGroupArr, weld::TreeView::append_text(), bFilled, weld::TreeView::get_selected_index(), GetActiveView(), SfxViewShell::GetFrameWeld(), GLOS_DELIM, i, 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 370 of file gloslst.cxx.
References aGroupArr, begin, bFilled, end, FIND_MAX_GLOS, GetAppCmpStrIgnore(), getLength(), i, nCount, STRING_DELIM, and Update().
Referenced by SwEditWin::ShowAutoText().
|
overridevirtual |
Reimplemented from Timer.
Definition at line 332 of file gloslst.cxx.
References GetActiveView(), and Update().
void SwGlossaryList::Update | ( | ) |
Definition at line 230 of file gloslst.cxx.
References AutoTextGroup::aDateModified, aGroupArr, bFilled, ClearGroups(), FillGroup(), FindGroup(), SvtPathOptions::GetAutoTextPath(), SwGlossaries::GetExtension(), GetGlossaries(), SwGlossaries::GetGroupCnt(), SwGlossaries::GetGroupName(), FStatHelper::GetModifiedDateTimeOfFile(), SwGlossaries::GetPathArray(), GLOS_DELIM, i, Task::IsActive(), pGlossaries, sName, AutoTextGroup::sName, sPath, Timer::Start(), and SWUnoHelper::UCB_GetFileListOfFolder().
Referenced by SwTextShell::ExecGlossary(), GetGroupCount(), GetShortName(), HasLongName(), Invoke(), and SwModule::Notify().
|
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().