LibreOffice Module editeng (master) 1
|
#include <svxacorr.hxx>
Public Member Functions | |
sal_Unicode | GetQuote (sal_Unicode cInsChar, bool bSttQuote, LanguageType eLang) const |
virtual bool | GetLongText (const OUString &rShort, OUString &rLong) |
virtual void | refreshBlockList (const css::uno::Reference< css::embed::XStorage > &rStg) |
SvxAutoCorrect (OUString aShareAutocorrFile, OUString aUserAutocorrFile) | |
SvxAutoCorrect (const SvxAutoCorrect &) | |
virtual | ~SvxAutoCorrect () |
void | DoAutoCorrect (SvxAutoCorrDoc &rDoc, const OUString &rTxt, sal_Int32 nPos, sal_Unicode cInsChar, bool bInsert, bool &io_bNbspRunNext, vcl::Window const *pFrameWin=nullptr) |
Execute an AutoCorrect. More... | |
OUString | GetPrevAutoCorrWord (SvxAutoCorrDoc const &rDoc, const OUString &rTxt, sal_Int32 nPos) |
const SvxAutocorrWord * | SearchWordsInList (std::u16string_view rTxt, sal_Int32 &rStt, sal_Int32 nEndPos, SvxAutoCorrDoc &rDoc, LanguageTag &rLang) |
sal_Unicode | GetStartSingleQuote () const |
sal_Unicode | GetEndSingleQuote () const |
sal_Unicode | GetStartDoubleQuote () const |
sal_Unicode | GetEndDoubleQuote () const |
void | SetStartSingleQuote (const sal_Unicode cStart) |
void | SetEndSingleQuote (const sal_Unicode cEnd) |
void | SetStartDoubleQuote (const sal_Unicode cStart) |
void | SetEndDoubleQuote (const sal_Unicode cEnd) |
OUString | GetQuote (SvxAutoCorrDoc const &rDoc, sal_Int32 nInsPos, sal_Unicode cInsChar, bool bSttQuote) |
void | InsertQuote (SvxAutoCorrDoc &rDoc, sal_Int32 nInsPos, sal_Unicode cInsChar, bool bSttQuote, bool bIns, LanguageType eLang, ACQuotes eType) const |
OUString | GetAutoCorrFileName (const LanguageTag &rLanguageTag, bool bNewFile=false, bool bTstUserExist=false, bool bUnlocalized=false) const |
ACFlags | GetFlags () const |
SvxSwAutoFormatFlags & | GetSwFlags () |
const SvxSwAutoFormatFlags & | GetSwFlags () const |
bool | IsAutoCorrFlag (ACFlags nFlag) const |
void | SetAutoCorrFlag (ACFlags nFlag, bool bOn=true) |
SvxAutocorrWordList * | LoadAutocorrWordList (LanguageType eLang) |
bool | PutText (const OUString &rShort, const OUString &rLong, LanguageType eLang) |
void | PutText (const OUString &rShort, SfxObjectShell &rShell, LanguageType eLang) |
void | MakeCombinedChanges (std::vector< SvxAutocorrWord > &aNewEntries, std::vector< SvxAutocorrWord > &aDeleteEntries, LanguageType eLang) |
void | SaveCplSttExceptList (LanguageType eLang) |
SvStringsISortDtor * | LoadCplSttExceptList (LanguageType eLang) |
const SvStringsISortDtor * | GetCplSttExceptList (LanguageType eLang) |
bool | AddCplSttException (const OUString &rNew, LanguageType eLang) |
void | SaveWordStartExceptList (LanguageType eLang) |
SvStringsISortDtor * | LoadWordStartExceptList (LanguageType eLang) |
const SvStringsISortDtor * | GetWordStartExceptList (LanguageType eLang) |
bool | AddWordStartException (const OUString &rNew, LanguageType eLang) |
bool | FindInWordStartExceptList (LanguageType eLang, const OUString &sWord) |
bool | FindInCplSttExceptList (LanguageType eLang, const OUString &sWord, bool bAbbreviation=false) |
void | FnCapitalStartWord (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnChgOrdinalNumber (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnChgToEnEmDash (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnAddNonBrkSpace (SvxAutoCorrDoc &, std::u16string_view, sal_Int32 nEndPos, LanguageType eLang, bool &io_bNbspRunNext) |
bool | FnSetINetAttr (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnSetDOIAttr (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnChgWeightUnderl (SvxAutoCorrDoc &, const OUString &, sal_Int32 nEndPos) |
void | FnCapitalStartSentence (SvxAutoCorrDoc &, const OUString &, bool bNormalPos, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
bool | FnCorrectCapsLock (SvxAutoCorrDoc &, const OUString &, sal_Int32 nSttPos, sal_Int32 nEndPos, LanguageType eLang) |
CharClass & | GetCharClass (LanguageType eLang) |
Static Public Member Functions | |
static std::vector< OUString > | GetChunkForAutoText (std::u16string_view rTxt, sal_Int32 nPos) |
static ACFlags | GetDefaultFlags () |
static bool | IsAutoCorrectChar (sal_Unicode cChar) |
static bool | NeedsHardspaceAutocorr (sal_Unicode cChar) |
Protected Member Functions | |
virtual bool | PutText (const css::uno::Reference< css::embed::XStorage > &rStg, const OUString &rFileName, const OUString &rShort, SfxObjectShell &, OUString &) |
bool | CreateLanguageFile (const LanguageTag &rLanguageTag, bool bNewFile=true) |
Private Member Functions | |
SvxAutoCorrectLanguageLists & | GetLanguageList_ (LanguageType eLang) |
void | GetCharClass_ (LanguageType eLang) |
Private Attributes | |
OUString | sShareAutoCorrFile |
OUString | sUserAutoCorrFile |
SvxSwAutoFormatFlags | aSwFlags |
std::map< LanguageTag, SvxAutoCorrectLanguageLists > | m_aLangTable |
std::map< LanguageTag, sal_Int64 > | aLastFileTable |
std::optional< CharClass > | moCharClass |
LanguageType | eCharClassLang |
ACFlags | nFlags |
sal_Unicode | cStartDQuote |
sal_Unicode | cEndDQuote |
sal_Unicode | cStartSQuote |
sal_Unicode | cEndSQuote |
Friends | |
class | SvxAutoCorrectLanguageLists |
Definition at line 247 of file svxacorr.hxx.
SvxAutoCorrect::SvxAutoCorrect | ( | OUString | aShareAutocorrFile, |
OUString | aUserAutocorrFile | ||
) |
Definition at line 323 of file svxacorr.cxx.
References LANGUAGE_DONTKNOW.
SvxAutoCorrect::SvxAutoCorrect | ( | const SvxAutoCorrect & | rCpy | ) |
Definition at line 336 of file svxacorr.cxx.
References ChgWordLstLoad, CplSttLstLoad, and WordStartLstLoad.
|
virtual |
Definition at line 350 of file svxacorr.cxx.
bool SvxAutoCorrect::AddCplSttException | ( | const OUString & | rNew, |
LanguageType | eLang | ||
) |
Definition at line 1715 of file svxacorr.cxx.
References SvxAutoCorrectLanguageLists::AddToCplSttExceptList(), CreateLanguageFile(), LANGUAGE_UNDETERMINED, and m_aLangTable.
bool SvxAutoCorrect::AddWordStartException | ( | const OUString & | rNew, |
LanguageType | eLang | ||
) |
Definition at line 1737 of file svxacorr.cxx.
References SvxAutoCorrectLanguageLists::AddToWordStartExceptList(), CreateLanguageFile(), LANGUAGE_UNDETERMINED, and m_aLangTable.
|
protected |
Definition at line 1834 of file svxacorr.cxx.
References aLastFileTable, tools::Time::EMPTY, GetAutoCorrFileName(), FStatHelper::IsDocument(), m_aLangTable, tools::Time::SetTime(), and tools::Time::SYSTEM.
Referenced by AddCplSttException(), AddWordStartException(), FindInCplSttExceptList(), FindInWordStartExceptList(), GetLanguageList_(), MakeCombinedChanges(), PutText(), and SearchWordsInList().
void SvxAutoCorrect::DoAutoCorrect | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nPos, | ||
sal_Unicode | cInsChar, | ||
bool | bInsert, | ||
bool & | io_bNbspRunNext, | ||
vcl::Window const * | pFrameWin = nullptr |
||
) |
Execute an AutoCorrect.
Returns what has been executed, according to the above auto correct flags.
io_bNbspRunNext | Remembers if a NO-BREAK SPACE was added (eg. in "fr" language) (set to <TRUE>) at the last character input that may have to be removed again depending on what character is following. |
Definition at line 1334 of file svxacorr.cxx.
References AddNonBrkSpace, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), aStopDoubleAngleQuoteEnd, aStopDoubleAngleQuoteEndRo, aStopDoubleAngleQuoteStart, aStopSingleQuoteEnd, aStopSingleQuoteEndRuUa, Autocorrect, CapitalizeIAm, CapitalStartSentence, CapitalStartWord, cApostrophe, cEmDash, cEnDash, ChgAngleQuotes, SvxAutoCorrDoc::ChgAutoCorrWord(), ChgOrdinalNumber, ChgQuotes, ChgSglQuotes, ChgToEnEmDash, ChgWeightUnderl, cNonBreakingSpace, CorrectCapsLock, SvxAutoCorrDoc::Delete(), DoubleAngleQuote, eType, FnAddNonBrkSpace(), FnCapitalStartSentence(), FnCapitalStartWord(), FnChgOrdinalNumber(), FnChgToEnEmDash(), FnChgWeightUnderl(), FnCorrectCapsLock(), FnSetDOIAttr(), FnSetINetAttr(), GetCharClass(), GetDocLanguage(), LocaleDataWrapper::getDoubleQuotationMarkStart(), GetEndSingleQuote(), vcl::Window::GetIndicatorState(), GetLocaleDataWrapper(), LocaleDataWrapper::getQuotationMarkStart(), GetStartSingleQuote(), IgnoreDoubleSpace, SvxAutoCorrDoc::Insert(), InsertQuote(), IsAutoCorrectChar(), IsAutoCorrFlag(), CharClass::isLetter(), IsWordDelim(), KEY_CAPSLOCK, LANGUAGE_CATALAN, LANGUAGE_CATALAN_VALENCIAN, LANGUAGE_CZECH, LANGUAGE_ENGLISH, LANGUAGE_FINNISH, LANGUAGE_FRENCH, LANGUAGE_FRENCH_SWISS, LANGUAGE_GALICIAN, LANGUAGE_GERMAN, LANGUAGE_GERMAN_AUSTRIAN, LANGUAGE_GERMAN_LIECHTENSTEIN, LANGUAGE_GERMAN_LUXEMBOURG, LANGUAGE_GERMAN_SWISS, LANGUAGE_HUNGARIAN, LANGUAGE_ICELANDIC, LANGUAGE_POLISH, LANGUAGE_PORTUGUESE, LANGUAGE_PORTUGUESE_BRAZILIAN, LANGUAGE_ROMANIAN, LANGUAGE_ROMANIAN_MOLDOVA, LANGUAGE_RUSSIAN, LANGUAGE_SLOVAK, LANGUAGE_SLOVENIAN, LANGUAGE_SPANISH, LANGUAGE_SWEDISH, LANGUAGE_SWEDISH_FINLAND, LANGUAGE_UKRAINIAN, LANGUAGE_USER_ARAGONESE, LANGUAGE_USER_ASTURIAN, lcl_HasPrecedingChar(), lcl_IsInArr(), lcl_IsSymbolChar(), lcl_IsUnsupportedUnicodeChar(), NeedsHardspaceAutocorr(), NonBreakingSpace, NONE, NonFieldWordDelim(), nPos, primary(), SvxAutoCorrDoc::Replace(), SetDOIAttr, SetINetAttr, sImplEndSkipChars, sImplSttSkipChars, vcl::Window::SimulateKeyPress(), TransliterateRTL, SvxAutoCorrDoc::TransliterateRTLWord(), u, and UseApostrophe.
bool SvxAutoCorrect::FindInCplSttExceptList | ( | LanguageType | eLang, |
const OUString & | sWord, | ||
bool | bAbbreviation = false |
||
) |
Definition at line 2116 of file svxacorr.cxx.
References CreateLanguageFile(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), LanguageTag::getLanguage(), LanguageTag::getLanguageType(), LANGUAGE_UNDETERMINED, lcl_FindAbbreviation(), m_aLangTable, and LanguageTag::reset().
Referenced by FnCapitalStartSentence().
bool SvxAutoCorrect::FindInWordStartExceptList | ( | LanguageType | eLang, |
const OUString & | sWord | ||
) |
Definition at line 2040 of file svxacorr.cxx.
References CreateLanguageFile(), LanguageTag::getLanguage(), LanguageTag::getLanguageType(), LANGUAGE_UNDETERMINED, m_aLangTable, and LanguageTag::reset().
Referenced by FnCapitalStartSentence(), FnCapitalStartWord(), and FnCorrectCapsLock().
bool SvxAutoCorrect::FnAddNonBrkSpace | ( | SvxAutoCorrDoc & | rDoc, |
std::u16string_view | rTxt, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang, | ||
bool & | io_bNbspRunNext | ||
) |
Definition at line 670 of file svxacorr.cxx.
References cNonBreakingSpace, INetURLObject::CompareProtocolScheme(), SvxAutoCorrDoc::Delete(), GetCharClass(), LanguageTag::getCountry(), LanguageTag::getLanguage(), CharClass::getLanguageTag(), SvxAutoCorrDoc::Insert(), IsWordDelim(), nIndex, nPos, and u.
Referenced by DoAutoCorrect().
void SvxAutoCorrect::FnCapitalStartSentence | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
bool | bNormalPos, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 873 of file svxacorr.cxx.
References CapitalStartSentence, cApostrophe, INetURLObject::CompareProtocolScheme(), FindInCplSttExceptList(), FindInWordStartExceptList(), CharClass::getCharacterType(), GetCharClass(), SvxAutoCorrDoc::GetPrevPara(), CharClass::isDigit(), CharClass::isLetter(), CharClass::isLetterNumeric(), IsUpperLetter(), LANGUAGE_GREEK, lcl_IsInArr(), nFlags, nIndex, NonFieldWordDelim(), SvxAutoCorrDoc::ReplaceRange(), SvxAutoCorrDoc::SaveCpltSttWord(), SaveWordCplSttLst, CharClass::titlecase(), and u.
Referenced by DoAutoCorrect().
void SvxAutoCorrect::FnCapitalStartWord | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 379 of file svxacorr.cxx.
References CapitalStartWord, FindInWordStartExceptList(), CharClass::getCharacterType(), GetCharClass(), LinguMgr::GetSpellChecker(), CharClass::isLetterNumeric(), IsLowerLetter(), IsUpperLetter(), CharClass::lowercase(), n, nFlags, SvxAutoCorrDoc::ReplaceRange(), SvxAutoCorrDoc::SaveCpltSttWord(), and SaveWordWordStartLst.
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnChgOrdinalNumber | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 463 of file svxacorr.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), DFLT_ESC_AUTO_SUPER, DFLT_ESC_PROP, GetCharClass(), CharClass::getLanguageTag(), LanguageTag::getLocale(), comphelper::getProcessComponentContext(), i, CharClass::isDigit(), CharClass::isLetter(), LANGUAGE_SWEDISH, LANGUAGE_SWEDISH_FINLAND, lcl_IsInArr(), SvxAutoCorrDoc::SetAttr(), sImplEndSkipChars, sImplSttSkipChars, sSuffix, and o3tl::toInt32().
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnChgToEnEmDash | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 541 of file svxacorr.cxx.
References SvxAutoCorrDoc::Delete(), GetAppLang(), GetCharClass(), LanguageTag::getLanguageType(), SvxAutoCorrDoc::Insert(), CharClass::isDigit(), CharClass::isLetterNumeric(), LANGUAGE_FINNISH, LANGUAGE_HUNGARIAN, LANGUAGE_RUSSIAN, LANGUAGE_SYSTEM, LANGUAGE_UKRAINIAN, lcl_IsInArr(), n, sEmDash(), sEnDash(), sImplEndSkipChars, sImplSttSkipChars, and u.
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnChgWeightUnderl | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nEndPos | ||
) |
Definition at line 785 of file svxacorr.cxx.
References SvxAutoCorrDoc::Delete(), GetCharClass(), CharClass::isLetterNumeric(), IsWordDelim(), ITALIC_NORMAL, LANGUAGE_SYSTEM, LINESTYLE_SINGLE, nPos, SvxAutoCorrDoc::SetAttr(), STRIKEOUT_SINGLE, and WEIGHT_BOLD.
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnCorrectCapsLock | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 1160 of file svxacorr.cxx.
References SvxAutoCorrDoc::Delete(), FindInWordStartExceptList(), CharClass::getCharacterType(), GetCharClass(), i, SvxAutoCorrDoc::Insert(), IsLowerLetter(), IsUpperLetter(), CharClass::lowercase(), and CharClass::uppercase().
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnSetDOIAttr | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 773 of file svxacorr.cxx.
References URIHelper::FindFirstDOIInText(), GetCharClass(), and SvxAutoCorrDoc::SetINetAttr().
Referenced by DoAutoCorrect().
bool SvxAutoCorrect::FnSetINetAttr | ( | SvxAutoCorrDoc & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nSttPos, | ||
sal_Int32 | nEndPos, | ||
LanguageType | eLang | ||
) |
Definition at line 760 of file svxacorr.cxx.
References URIHelper::FindFirstURLInText(), GetCharClass(), and SvxAutoCorrDoc::SetINetAttr().
Referenced by DoAutoCorrect().
OUString SvxAutoCorrect::GetAutoCorrFileName | ( | const LanguageTag & | rLanguageTag, |
bool | bNewFile = false , |
||
bool | bTstUserExist = false , |
||
bool | bUnlocalized = false |
||
) | const |
Definition at line 2159 of file svxacorr.cxx.
References LanguageTag::getBcp47(), LanguageTag::getFallbackStrings(), FStatHelper::IsDocument(), sShareAutoCorrFile, and sUserAutoCorrFile.
Referenced by CreateLanguageFile().
|
inline |
Definition at line 441 of file svxacorr.hxx.
Referenced by DoAutoCorrect(), FnAddNonBrkSpace(), FnCapitalStartSentence(), FnCapitalStartWord(), FnChgOrdinalNumber(), FnChgToEnEmDash(), FnChgWeightUnderl(), FnCorrectCapsLock(), FnSetDOIAttr(), FnSetINetAttr(), and GetPrevAutoCorrWord().
|
private |
Definition at line 354 of file svxacorr.cxx.
References eCharClassLang, and moCharClass.
|
static |
Definition at line 1801 of file svxacorr.cxx.
References i, IsWordDelim(), and nPos.
|
inline |
Definition at line 384 of file svxacorr.hxx.
|
static |
Definition at line 272 of file svxacorr.cxx.
References AddNonBrkSpace, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), Autocorrect, CapitalStartSentence, CapitalStartWord, ChgAngleQuotes, ChgOrdinalNumber, ChgQuotes, ChgSglQuotes, ChgToEnEmDash, ChgWeightUnderl, CorrectCapsLock, GetAppLang(), LanguageTag::getLanguageType(), LANGUAGE_ENGLISH, LANGUAGE_ENGLISH_AUS, LANGUAGE_ENGLISH_CAN, LANGUAGE_ENGLISH_CARIBBEAN, LANGUAGE_ENGLISH_EIRE, LANGUAGE_ENGLISH_JAMAICA, LANGUAGE_ENGLISH_NZ, LANGUAGE_ENGLISH_SAFRICA, LANGUAGE_ENGLISH_UK, LANGUAGE_ENGLISH_US, SaveWordCplSttLst, SaveWordWordStartLst, SetDOIAttr, SetINetAttr, and TransliterateRTL.
|
inline |
Definition at line 334 of file svxacorr.hxx.
Referenced by GetQuote().
|
inline |
Definition at line 332 of file svxacorr.hxx.
Referenced by DoAutoCorrect(), and GetQuote().
|
inline |
Definition at line 355 of file svxacorr.hxx.
References SvxAutoCorrectLanguageLists::nFlags.
Referenced by SvxAutoCorrCfg::SetAutoCorrect().
|
private |
Definition at line 1683 of file svxacorr.cxx.
References CreateLanguageFile(), and m_aLangTable.
|
virtual |
Definition at line 1916 of file svxacorr.cxx.
Referenced by SvXMLWordContext::SvXMLWordContext().
OUString SvxAutoCorrect::GetPrevAutoCorrWord | ( | SvxAutoCorrDoc const & | rDoc, |
const OUString & | rTxt, | ||
sal_Int32 | nPos | ||
) |
Definition at line 1758 of file svxacorr.cxx.
References GetCharClass(), GetDocLanguage(), IsWordDelim(), lcl_IsInArr(), lcl_IsSymbolChar(), nPos, and sImplSttSkipChars.
sal_Unicode SvxAutoCorrect::GetQuote | ( | sal_Unicode | cInsChar, |
bool | bSttQuote, | ||
LanguageType | eLang | ||
) | const |
Definition at line 1207 of file svxacorr.cxx.
References LocaleDataWrapper::getDoubleQuotationMarkEnd(), LocaleDataWrapper::getDoubleQuotationMarkStart(), GetEndDoubleQuote(), GetEndSingleQuote(), GetLocaleDataWrapper(), LocaleDataWrapper::getQuotationMarkEnd(), LocaleDataWrapper::getQuotationMarkStart(), GetStartDoubleQuote(), GetStartSingleQuote(), and LANGUAGE_NONE.
Referenced by GetQuote(), and InsertQuote().
OUString SvxAutoCorrect::GetQuote | ( | SvxAutoCorrDoc const & | rDoc, |
sal_Int32 | nInsPos, | ||
sal_Unicode | cInsChar, | ||
bool | bSttQuote | ||
) |
Definition at line 1289 of file svxacorr.cxx.
References GetDocLanguage(), GetQuote(), LANGUAGE_FRENCH, LANGUAGE_FRENCH_SWISS, and primary().
|
inline |
Definition at line 333 of file svxacorr.hxx.
Referenced by GetQuote().
|
inline |
Definition at line 331 of file svxacorr.hxx.
Referenced by DoAutoCorrect(), and GetQuote().
|
inline |
Definition at line 356 of file svxacorr.hxx.
|
inline |
Definition at line 357 of file svxacorr.hxx.
|
inline |
Definition at line 394 of file svxacorr.hxx.
void SvxAutoCorrect::InsertQuote | ( | SvxAutoCorrDoc & | rDoc, |
sal_Int32 | nInsPos, | ||
sal_Unicode | cInsChar, | ||
bool | bSttQuote, | ||
bool | bIns, | ||
LanguageType | eLang, | ||
ACQuotes | eType | ||
) | const |
Definition at line 1237 of file svxacorr.cxx.
References CapitalizeIAm, cApostrophe, cLeftDoubleAngleQuote, cLeftSingleAngleQuote, cNonBreakingSpace, cRightDoubleAngleQuote, cRightSingleAngleQuote, SvxAutoCorrDoc::Delete(), DoubleAngleQuote, eType, GetQuote(), SvxAutoCorrDoc::Insert(), LANGUAGE_FRENCH_SWISS, LANGUAGE_HUNGARIAN, NonBreakingSpace, SvxAutoCorrDoc::Replace(), and UseApostrophe.
Referenced by DoAutoCorrect().
|
static |
Definition at line 247 of file svxacorr.cxx.
Referenced by ImpEditEngine::Command(), DoAutoCorrect(), and EditEngine::PostKeyEvent().
|
inline |
Definition at line 358 of file svxacorr.hxx.
References SvxAutoCorrectLanguageLists::nFlags.
Referenced by DoAutoCorrect().
|
inline |
Definition at line 363 of file svxacorr.hxx.
|
inline |
Definition at line 382 of file svxacorr.hxx.
|
inline |
Definition at line 392 of file svxacorr.hxx.
void SvxAutoCorrect::MakeCombinedChanges | ( | std::vector< SvxAutocorrWord > & | aNewEntries, |
std::vector< SvxAutocorrWord > & | aDeleteEntries, | ||
LanguageType | eLang | ||
) |
Definition at line 1898 of file svxacorr.cxx.
References CreateLanguageFile(), and m_aLangTable.
|
static |
Definition at line 266 of file svxacorr.cxx.
Referenced by DoAutoCorrect().
|
protectedvirtual |
Definition at line 1926 of file svxacorr.cxx.
Referenced by EditView::ExecuteSpellPopup(), and SvxAutoCorrectLanguageLists::PutText().
bool SvxAutoCorrect::PutText | ( | const OUString & | rShort, |
const OUString & | rLong, | ||
LanguageType | eLang | ||
) |
Definition at line 1886 of file svxacorr.cxx.
References CreateLanguageFile(), and m_aLangTable.
|
inline |
Definition at line 372 of file svxacorr.hxx.
|
virtual |
Definition at line 1921 of file svxacorr.cxx.
Referenced by SvXMLWordListContext::SvXMLWordListContext().
void SvxAutoCorrect::SaveCplSttExceptList | ( | LanguageType | eLang | ) |
Definition at line 1692 of file svxacorr.cxx.
References m_aLangTable, and SAL_WARN.
void SvxAutoCorrect::SaveWordStartExceptList | ( | LanguageType | eLang | ) |
Definition at line 1703 of file svxacorr.cxx.
References m_aLangTable, and SAL_WARN.
const SvxAutocorrWord * SvxAutoCorrect::SearchWordsInList | ( | std::u16string_view | rTxt, |
sal_Int32 & | rStt, | ||
sal_Int32 | nEndPos, | ||
SvxAutoCorrDoc & | rDoc, | ||
LanguageTag & | rLang | ||
) |
Definition at line 1978 of file svxacorr.cxx.
References CreateLanguageFile(), MsLangId::getConfiguredSystemLanguage(), LanguageTag::getLanguage(), LanguageTag::getLanguageType(), LanguageTag::isSystemLocale(), LANGUAGE_UNDETERMINED, lcl_SearchWordsInList(), m_aLangTable, and LanguageTag::reset().
Referenced by EdtAutoCorrDoc::ChgAutoCorrWord().
void SvxAutoCorrect::SetAutoCorrFlag | ( | ACFlags | nFlag, |
bool | bOn = true |
||
) |
Definition at line 360 of file svxacorr.cxx.
References Autocorrect, CapitalStartSentence, CapitalStartWord, ChgWordLstLoad, CplSttLstLoad, nFlags, and WordStartLstLoad.
|
inline |
Definition at line 339 of file svxacorr.hxx.
|
inline |
Definition at line 337 of file svxacorr.hxx.
|
inline |
Definition at line 338 of file svxacorr.hxx.
|
inline |
Definition at line 336 of file svxacorr.hxx.
|
friend |
Definition at line 249 of file svxacorr.hxx.
|
private |
Definition at line 257 of file svxacorr.hxx.
Referenced by CreateLanguageFile().
|
private |
Definition at line 253 of file svxacorr.hxx.
|
private |
Definition at line 263 of file svxacorr.hxx.
|
private |
Definition at line 263 of file svxacorr.hxx.
|
private |
Definition at line 263 of file svxacorr.hxx.
|
private |
Definition at line 263 of file svxacorr.hxx.
|
private |
Definition at line 260 of file svxacorr.hxx.
Referenced by GetCharClass_().
|
private |
Definition at line 256 of file svxacorr.hxx.
Referenced by AddCplSttException(), AddWordStartException(), CreateLanguageFile(), FindInCplSttExceptList(), FindInWordStartExceptList(), GetLanguageList_(), MakeCombinedChanges(), PutText(), SaveCplSttExceptList(), SaveWordStartExceptList(), and SearchWordsInList().
|
private |
Definition at line 258 of file svxacorr.hxx.
Referenced by GetCharClass_().
|
private |
Definition at line 262 of file svxacorr.hxx.
Referenced by FnCapitalStartSentence(), FnCapitalStartWord(), and SetAutoCorrFlag().
|
private |
Definition at line 251 of file svxacorr.hxx.
Referenced by GetAutoCorrFileName().
|
private |
Definition at line 251 of file svxacorr.hxx.
Referenced by GetAutoCorrFileName().