LibreOffice Module editeng (master) 1
|
#include <svxacorr.hxx>
Public Member Functions | |
SvxAutoCorrectLanguageLists (SvxAutoCorrect &rParent, OUString aShareAutoCorrectFile, OUString aUserAutoCorrectFile) | |
~SvxAutoCorrectLanguageLists () | |
SvxAutocorrWordList * | LoadAutocorrWordList () |
const SvxAutocorrWordList * | GetAutocorrWordList () |
SvStringsISortDtor * | LoadCplSttExceptList () |
void | SaveCplSttExceptList () |
SvStringsISortDtor * | GetCplSttExceptList () |
bool | AddToCplSttExceptList (const OUString &rNew) |
SvStringsISortDtor * | LoadWordStartExceptList () |
void | SaveWordStartExceptList () |
SvStringsISortDtor * | GetWordStartExceptList () |
bool | AddToWordStartExceptList (const OUString &rNew) |
bool | PutText (const OUString &rShort, const OUString &rLong) |
void | PutText (const OUString &rShort, SfxObjectShell &) |
bool | MakeCombinedChanges (std::vector< SvxAutocorrWord > &aNewEntries, std::vector< SvxAutocorrWord > &aDeleteEntries) |
Private Member Functions | |
bool | IsFileChanged_Imp () |
void | LoadXMLExceptList_Imp (std::unique_ptr< SvStringsISortDtor > &rpLst, const OUString &sStrmName, tools::SvRef< SotStorage > &rStg) |
bool | MakeBlocklist_Imp (SotStorage &rStg) |
void | RemoveStream_Imp (const OUString &rName) |
void | MakeUserStorage_Impl () |
Static Private Member Functions | |
static void | SaveExceptList_Imp (const SvStringsISortDtor &rLst, const OUString &sStrmName, tools::SvRef< SotStorage > const &rStg, bool bConvert=false) |
Private Attributes | |
OUString | sShareAutoCorrFile |
OUString | sUserAutoCorrFile |
Date | aModifiedDate |
tools::Time | aModifiedTime |
tools::Time | aLastCheckTime |
std::unique_ptr< SvStringsISortDtor > | pCplStt_ExcptLst |
std::unique_ptr< SvStringsISortDtor > | pWordStart_ExcptLst |
std::unique_ptr< SvxAutocorrWordList > | pAutocorr_List |
SvxAutoCorrect & | rAutoCorrect |
ACFlags | nFlags |
Definition at line 186 of file svxacorr.hxx.
SvxAutoCorrectLanguageLists::SvxAutoCorrectLanguageLists | ( | SvxAutoCorrect & | rParent, |
OUString | aShareAutoCorrectFile, | ||
OUString | aUserAutoCorrectFile | ||
) |
Definition at line 2186 of file svxacorr.cxx.
SvxAutoCorrectLanguageLists::~SvxAutoCorrectLanguageLists | ( | ) |
Definition at line 2200 of file svxacorr.cxx.
bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList | ( | const OUString & | rNew | ) |
Definition at line 2442 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, GetCplSttExceptList(), FStatHelper::GetModifiedDateTimeOfFile(), MakeUserStorage_Impl(), pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, SaveExceptList_Imp(), sUserAutoCorrFile, and tools::Time::SYSTEM.
Referenced by SvxAutoCorrect::AddCplSttException().
bool SvxAutoCorrectLanguageLists::AddToWordStartExceptList | ( | const OUString & | rNew | ) |
Definition at line 2462 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, FStatHelper::GetModifiedDateTimeOfFile(), GetWordStartExceptList(), MakeUserStorage_Impl(), pWordStart_ExcptLst, pXMLImplWordStart_ExcptLstStr, SaveExceptList_Imp(), sUserAutoCorrFile, and tools::Time::SYSTEM.
Referenced by SvxAutoCorrect::AddWordStartException().
const SvxAutocorrWordList * SvxAutoCorrectLanguageLists::GetAutocorrWordList | ( | ) |
Definition at line 2412 of file svxacorr.cxx.
References ChgWordLstLoad, IsFileChanged_Imp(), LoadAutocorrWordList(), nFlags, and pAutocorr_List.
Referenced by lcl_SearchWordsInList(), MakeCombinedChanges(), MakeUserStorage_Impl(), and PutText().
SvStringsISortDtor * SvxAutoCorrectLanguageLists::GetCplSttExceptList | ( | ) |
Definition at line 2427 of file svxacorr.cxx.
References CplSttLstLoad, IsFileChanged_Imp(), LoadCplSttExceptList(), nFlags, and pCplStt_ExcptLst.
Referenced by AddToCplSttExceptList().
SvStringsISortDtor * SvxAutoCorrectLanguageLists::GetWordStartExceptList | ( | ) |
Definition at line 2540 of file svxacorr.cxx.
References IsFileChanged_Imp(), LoadWordStartExceptList(), nFlags, pWordStart_ExcptLst, and WordStartLstLoad.
Referenced by AddToWordStartExceptList().
|
private |
Definition at line 2204 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, ChgWordLstLoad, CplSttLstLoad, Date::EMPTY, tools::Time::EMPTY, FStatHelper::GetModifiedDateTimeOfFile(), nFlags, pAutocorr_List, pCplStt_ExcptLst, pWordStart_ExcptLst, sShareAutoCorrFile, tools::Time::SYSTEM, and WordStartLstLoad.
Referenced by GetAutocorrWordList(), GetCplSttExceptList(), and GetWordStartExceptList().
SvxAutocorrWordList * SvxAutoCorrectLanguageLists::LoadAutocorrWordList | ( | ) |
Definition at line 2368 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, FStatHelper::GetModifiedDateTimeOfFile(), comphelper::getProcessComponentContext(), comphelper::OStorageHelper::GetStorageFromURL(), NAMESPACE, pAutocorr_List, pXMLImplAutocorr_ListStr, rAutoCorrect, SAL_INFO, sShareAutoCorrFile, tools::Time::SYSTEM, and TOOLS_WARN_EXCEPTION.
Referenced by GetAutocorrWordList().
SvStringsISortDtor * SvxAutoCorrectLanguageLists::LoadCplSttExceptList | ( | ) |
Definition at line 2482 of file svxacorr.cxx.
References tools::SvRef< typename T >::is(), LoadXMLExceptList_Imp(), pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, and sShareAutoCorrFile.
Referenced by GetCplSttExceptList().
SvStringsISortDtor * SvxAutoCorrectLanguageLists::LoadWordStartExceptList | ( | ) |
Definition at line 2511 of file svxacorr.cxx.
References tools::SvRef< typename T >::is(), LoadXMLExceptList_Imp(), pWordStart_ExcptLst, pXMLImplWordStart_ExcptLstStr, sShareAutoCorrFile, and TOOLS_WARN_EXCEPTION.
Referenced by GetWordStartExceptList().
|
private |
Definition at line 2242 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, tools::SvRef< typename T >::clear(), ERRCODE_NONE, FStatHelper::GetModifiedDateTimeOfFile(), comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), NAMESPACE, RemoveStream_Imp(), sShareAutoCorrFile, and tools::Time::SYSTEM.
Referenced by LoadCplSttExceptList(), LoadWordStartExceptList(), and MakeUserStorage_Impl().
|
private |
Definition at line 2665 of file svxacorr.cxx.
References Any, tools::SvRef< typename T >::clear(), SotStorage::Commit(), ERRCODE_NONE, SotStorage::GetError(), comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), SotStorage::OpenSotStream(), pAutocorr_List, pXMLImplAutocorr_ListStr, SotStorage::Remove(), and XML_BLOCK_LIST.
Referenced by MakeCombinedChanges(), MakeUserStorage_Impl(), and PutText().
bool SvxAutoCorrectLanguageLists::MakeCombinedChanges | ( | std::vector< SvxAutocorrWord > & | aNewEntries, |
std::vector< SvxAutocorrWord > & | aDeleteEntries | ||
) |
Definition at line 2715 of file svxacorr.cxx.
References aName, EncryptBlockName_Imp(), ERRCODE_NONE, GeneratePackageName(), GetAutocorrWordList(), SvxAutocorrWord::GetShort(), tools::SvRef< typename T >::is(), MakeBlocklist_Imp(), MakeUserStorage_Impl(), pAutocorr_List, and sUserAutoCorrFile.
|
private |
Definition at line 2571 of file svxacorr.cxx.
References Any, ucbhelper::Content::executeCommand(), GetAutocorrWordList(), INetURLObject::GetLastName(), INetURLObject::GetMainURL(), comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), SotStorage::IsOLEStorage(), LoadXMLExceptList_Imp(), MakeBlocklist_Imp(), pXMLImplCplStt_ExcptLstStr, pXMLImplWordStart_ExcptLstStr, SaveExceptList_Imp(), INetURLObject::SetExtension(), sShareAutoCorrFile, sUserAutoCorrFile, INetURLObject::ToIUri, and u.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), MakeCombinedChanges(), PutText(), SaveCplSttExceptList(), and SaveWordStartExceptList().
bool SvxAutoCorrectLanguageLists::PutText | ( | const OUString & | rShort, |
const OUString & | rLong | ||
) |
Definition at line 2784 of file svxacorr.cxx.
References EncryptBlockName_Imp(), ERRCODE_NONE, GeneratePackageName(), GetAutocorrWordList(), tools::SvRef< typename T >::is(), MakeBlocklist_Imp(), MakeUserStorage_Impl(), pAutocorr_List, and sUserAutoCorrFile.
void SvxAutoCorrectLanguageLists::PutText | ( | const OUString & | rShort, |
SfxObjectShell & | rShell | ||
) |
Definition at line 2828 of file svxacorr.cxx.
References GetAutocorrWordList(), comphelper::OStorageHelper::GetStorageFromURL(), MakeBlocklist_Imp(), MakeUserStorage_Impl(), pAutocorr_List, SvxAutoCorrect::PutText(), rAutoCorrect, and sUserAutoCorrFile.
|
private |
Definition at line 2555 of file svxacorr.cxx.
References ERRCODE_NONE, tools::SvRef< typename T >::is(), sShareAutoCorrFile, and sUserAutoCorrFile.
Referenced by LoadXMLExceptList_Imp().
void SvxAutoCorrectLanguageLists::SaveCplSttExceptList | ( | ) |
Definition at line 2496 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, FStatHelper::GetModifiedDateTimeOfFile(), MakeUserStorage_Impl(), pCplStt_ExcptLst, pXMLImplCplStt_ExcptLstStr, SaveExceptList_Imp(), sUserAutoCorrFile, and tools::Time::SYSTEM.
|
staticprivate |
Definition at line 2313 of file svxacorr.cxx.
References Any, tools::SvRef< typename T >::clear(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), ERRCODE_NONE, comphelper::getProcessComponentContext(), tools::SvRef< typename T >::is(), and XML_BLOCK_LIST.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), MakeUserStorage_Impl(), SaveCplSttExceptList(), and SaveWordStartExceptList().
void SvxAutoCorrectLanguageLists::SaveWordStartExceptList | ( | ) |
Definition at line 2526 of file svxacorr.cxx.
References aLastCheckTime, aModifiedDate, aModifiedTime, FStatHelper::GetModifiedDateTimeOfFile(), MakeUserStorage_Impl(), pWordStart_ExcptLst, pXMLImplWordStart_ExcptLstStr, SaveExceptList_Imp(), sUserAutoCorrFile, and tools::Time::SYSTEM.
|
private |
Definition at line 191 of file svxacorr.hxx.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), IsFileChanged_Imp(), LoadAutocorrWordList(), LoadXMLExceptList_Imp(), SaveCplSttExceptList(), and SaveWordStartExceptList().
|
private |
Definition at line 190 of file svxacorr.hxx.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), IsFileChanged_Imp(), LoadAutocorrWordList(), LoadXMLExceptList_Imp(), SaveCplSttExceptList(), and SaveWordStartExceptList().
|
private |
Definition at line 191 of file svxacorr.hxx.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), IsFileChanged_Imp(), LoadAutocorrWordList(), LoadXMLExceptList_Imp(), SaveCplSttExceptList(), and SaveWordStartExceptList().
|
private |
Definition at line 198 of file svxacorr.hxx.
Referenced by GetAutocorrWordList(), GetCplSttExceptList(), SvxAutoCorrect::GetFlags(), GetWordStartExceptList(), SvxAutoCorrect::IsAutoCorrFlag(), and IsFileChanged_Imp().
|
private |
Definition at line 195 of file svxacorr.hxx.
Referenced by GetAutocorrWordList(), IsFileChanged_Imp(), LoadAutocorrWordList(), MakeBlocklist_Imp(), MakeCombinedChanges(), and PutText().
|
private |
Definition at line 193 of file svxacorr.hxx.
Referenced by AddToCplSttExceptList(), GetCplSttExceptList(), IsFileChanged_Imp(), LoadCplSttExceptList(), and SaveCplSttExceptList().
|
private |
Definition at line 194 of file svxacorr.hxx.
Referenced by AddToWordStartExceptList(), GetWordStartExceptList(), IsFileChanged_Imp(), LoadWordStartExceptList(), and SaveWordStartExceptList().
|
private |
Definition at line 196 of file svxacorr.hxx.
Referenced by LoadAutocorrWordList(), and PutText().
|
private |
Definition at line 188 of file svxacorr.hxx.
Referenced by IsFileChanged_Imp(), LoadAutocorrWordList(), LoadCplSttExceptList(), LoadWordStartExceptList(), LoadXMLExceptList_Imp(), MakeUserStorage_Impl(), and RemoveStream_Imp().
|
private |
Definition at line 188 of file svxacorr.hxx.
Referenced by AddToCplSttExceptList(), AddToWordStartExceptList(), MakeCombinedChanges(), MakeUserStorage_Impl(), PutText(), RemoveStream_Imp(), SaveCplSttExceptList(), and SaveWordStartExceptList().