LibreOffice Module sw (master) 1
|
Functions | |
void | GetLanguageStatus (OutlinerView *pOLV, SfxItemSet &rSet) |
bool | SetLanguageStatus (OutlinerView *pOLV, SfxRequest &rReq, SwView const &rView, SwWrtShell &rSh) |
void | SetLanguage (SwWrtShell &rWrtSh, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet) |
void | SetLanguage (SwWrtShell &rWrtSh, OutlinerView const *pOLV, const ESelection &rSelection, std::u16string_view rLangText, bool bIsForSelection, SfxItemSet &rCoreSet) |
void | SetLanguage_None (SwWrtShell &rWrtSh, bool bIsForSelection, SfxItemSet &rCoreSet) |
void | SetLanguage_None (SwWrtShell &rWrtSh, OutlinerView const *pOLV, const ESelection &rSelection, bool bIsForSelection, SfxItemSet &rCoreSet) |
void | ResetLanguages (SwWrtShell &rWrtSh, OutlinerView const *pOLV=nullptr) |
void | SelectCurrentPara (SwWrtShell &rWrtSh) |
void | SelectPara (EditView &rEditView, const ESelection &rCurSel) |
OUString | GetTextForLanguageGuessing (EditEngine const *rEditEngine, const ESelection &rDocSelection) |
OUString | GetTextForLanguageGuessing (SwWrtShell const &rSh) |
LanguageType | GetLanguage (SfxItemSet const &aSet, sal_uInt16 nLangWhichId) |
LanguageType | GetLanguage (SwWrtShell &rSh, sal_uInt16 nLangWhichId) |
LanguageType | GetCurrentLanguage (SfxItemSet const &aSet, SvtScriptType nScriptType) |
LanguageType | GetCurrentLanguage (SwWrtShell &rSh) |
LanguageType SwLangHelper::GetCurrentLanguage | ( | SfxItemSet const & | aSet, |
SvtScriptType | nScriptType | ||
) |
Definition at line 444 of file langhelper.cxx.
References aScriptType, EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), GetLanguage(), LANGUAGE_DONTKNOW, LANGUAGE_NONE, and LANGUAGE_SYSTEM.
Referenced by GetLanguageStatus(), and SwTextShell::GetState().
LanguageType SwLangHelper::GetCurrentLanguage | ( | SwWrtShell & | rSh | ) |
Definition at line 396 of file langhelper.cxx.
References aScriptType, GetLanguage(), SwEditShell::GetScriptType(), LANGUAGE_DONTKNOW, LANGUAGE_NONE, LANGUAGE_SYSTEM, RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), and RES_CHRATR_LANGUAGE().
LanguageType SwLangHelper::GetLanguage | ( | SfxItemSet const & | aSet, |
sal_uInt16 | nLangWhichId | ||
) |
Definition at line 365 of file langhelper.cxx.
References SfxItemPool::GetDefaultItem(), SfxItemSet::GetItemState(), SvxLanguageItem::GetLanguage(), GetLanguage(), SfxItemSet::GetPool(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, nLang, and nState.
Referenced by SwView::BeginTextEdit(), SwSubFont::DoOnCapitals(), GetCurrentLanguage(), SwTextNode::GetLang(), GetLanguage(), SwAnnotationShell::GetLinguState(), SwWW8AttrIter::GetSnippet(), SwDrawTextShell::GetState(), sw::DocumentStylePoolManager::GetTextCollFromPool(), SwTextNode::Hyphenate(), IMPL_LINK_NOARG(), SwAutoFormat::IsFirstCharCapital(), lcl_isNonDefaultLanguage(), OutCSS1_SvxLanguage(), OutHTML_SvxLanguage(), OutHTML_SwFormat(), SwWW8ImplReader::Read_Emphasis(), SwWW8ImplReader::ReadPlainChars(), SwAsciiFilterDlg::SwAsciiFilterDlg(), SwEnhancedPDFExportHelper::SwEnhancedPDFExportHelper(), SwIndexMarkPane::UpdateLanguageDependenciesForPhoneticReading(), and SwHTMLWriter::WriteStream().
LanguageType SwLangHelper::GetLanguage | ( | SwWrtShell & | rSh, |
sal_uInt16 | nLangWhichId | ||
) |
nLangWhichId | : one of RES_CHRATR_LANGUAGE, RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, |
Definition at line 357 of file langhelper.cxx.
References SwViewShell::GetAttrPool(), SwEditShell::GetCurAttr(), and GetLanguage().
void SwLangHelper::GetLanguageStatus | ( | OutlinerView * | pOLV, |
SfxItemSet & | rSet | ||
) |
Definition at line 57 of file langhelper.cxx.
References aSeq, OutlinerView::GetAttribs(), GetCurrentLanguage(), EditView::GetEditEngine(), OutlinerView::GetEditView(), EditView::GetInputLanguage(), SvtLanguageTable::GetLanguageString(), OutlinerView::GetSelectedScriptType(), OutlinerView::GetSelection(), GetTextForLanguageGuessing(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, nLang, SfxItemSet::Put(), rSet, and SfxStringListItem::SetStringList().
Referenced by SwAnnotationShell::GetLinguState(), and SwDrawTextShell::GetState().
OUString SwLangHelper::GetTextForLanguageGuessing | ( | EditEngine const * | rEditEngine, |
const ESelection & | rDocSelection | ||
) |
Definition at line 510 of file langhelper.cxx.
References EditEngine::GetText(), and ESelection::nEndPos.
Referenced by GetLanguageStatus(), and SwTextShell::GetState().
OUString SwLangHelper::GetTextForLanguageGuessing | ( | SwWrtShell const & | rSh | ) |
Definition at line 488 of file langhelper.cxx.
References SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextNode::GetText(), and SwNode::GetTextNode().
void SwLangHelper::ResetLanguages | ( | SwWrtShell & | rWrtSh, |
OutlinerView const * | pOLV = nullptr |
||
) |
Definition at line 319 of file langhelper.cxx.
References EditEngine::CompleteOnlineSpelling(), EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), EditEngine::GetControlWord(), EditView::GetEditEngine(), OutlinerView::GetEditView(), EditView::Invalidate(), EditView::RemoveAttribs(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_LANGUAGE(), SwEditShell::ResetAttr(), and EditEngine::SetControlWord().
Referenced by SwTextShell::Execute(), and SetLanguageStatus().
void SwLangHelper::SelectCurrentPara | ( | SwWrtShell & | rWrtSh | ) |
Definition at line 536 of file langhelper.cxx.
References fnParaEnd, fnParaStart, GoCurrPara(), SwCursorShell::HasMark(), SwCursorShell::IsEndPara(), SwCursorShell::IsSttPara(), SwCursorShell::MovePara(), SwCursorShell::SetMark(), and SwCursorShell::SwapPam().
Referenced by SwTextShell::Execute(), and sw_CharDialogResult().
void SwLangHelper::SelectPara | ( | EditView & | rEditView, |
const ESelection & | rCurSel | ||
) |
Definition at line 530 of file langhelper.cxx.
References EE_TEXTPOS_ALL, ESelection::nStartPara, and EditView::SetSelection().
Referenced by SwDrawTextShell::Execute(), and SetLanguageStatus().
void SwLangHelper::SetLanguage | ( | SwWrtShell & | rWrtSh, |
OutlinerView const * | pOLV, | ||
const ESelection & | rSelection, | ||
std::u16string_view | rLangText, | ||
bool | bIsForSelection, | ||
SfxItemSet & | rCoreSet | ||
) |
Definition at line 197 of file langhelper.cxx.
References EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), SwEditShell::GetCurAttr(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), EditView::GetEditEngine(), OutlinerView::GetEditView(), SvtLanguageTable::GetLanguageType(), SvtLanguageOptions::GetScriptTypeOfLanguage(), LANGUAGE_DONTKNOW, nLang, SfxItemSet::Put(), EditEngine::QuickSetAttribs(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_LANGUAGE(), SwEditShell::SetAttrItem(), SwEditShell::SetAttrSet(), and SwEditShell::SetDefault().
void SwLangHelper::SetLanguage | ( | SwWrtShell & | rWrtSh, |
std::u16string_view | rLangText, | ||
bool | bIsForSelection, | ||
SfxItemSet & | rCoreSet | ||
) |
Definition at line 192 of file langhelper.cxx.
References SetLanguage().
Referenced by SwTextShell::Execute(), SwSubFont::SetLanguage(), SetLanguage(), and SetLanguageStatus().
void SwLangHelper::SetLanguage_None | ( | SwWrtShell & | rWrtSh, |
bool | bIsForSelection, | ||
SfxItemSet & | rCoreSet | ||
) |
Definition at line 258 of file langhelper.cxx.
References SetLanguage_None().
Referenced by SwTextShell::Execute(), SetLanguage_None(), and SetLanguageStatus().
void SwLangHelper::SetLanguage_None | ( | SwWrtShell & | rWrtSh, |
OutlinerView const * | pOLV, | ||
const ESelection & | rSelection, | ||
bool | bIsForSelection, | ||
SfxItemSet & | rCoreSet | ||
) |
Definition at line 263 of file langhelper.cxx.
References EE_CHAR_LANGUAGE(), EE_CHAR_LANGUAGE_CJK(), EE_CHAR_LANGUAGE_CTL(), SwEditShell::GetCurAttr(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), EditView::GetEditEngine(), OutlinerView::GetEditView(), i, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), LANGUAGE_NONE, SfxItemSet::Put(), EditEngine::QuickSetAttribs(), RES_CHRATR_CJK_LANGUAGE(), RES_CHRATR_CTL_LANGUAGE(), RES_CHRATR_LANGUAGE(), SwEditShell::ResetAttr(), SwEditShell::SetAttrSet(), and SwEditShell::SetDefault().
bool SwLangHelper::SetLanguageStatus | ( | OutlinerView * | pOLV, |
SfxRequest & | rReq, | ||
SwView const & | rView, | ||
SwWrtShell & | rSh | ||
) |
! Remember the view frame right now... ! (call to GetView().GetViewFrame() will break if the ! SwTextShell got destroyed meanwhile.)
! Remember the view frame right now... ! (call to GetView().GetViewFrame() will break if the ! SwTextShell got destroyed meanwhile.)
Definition at line 93 of file langhelper.cxx.
References SfxAbstractDialogFactory::Create(), SwCursorShell::DeleteCurrent, SfxRequest::Done(), SwCursorShell::EndAction(), SwCursorShell::ExtendedSelectAll(), SfxRequest::GetArg(), SfxViewFrame::GetBindings(), OutlinerView::GetEditView(), EditView::GetEmptyItemSet(), SfxViewShell::GetFrameWeld(), OutlinerView::GetSelection(), SfxRequest::GetSlot(), CntUnencodedStringItem::GetValue(), SfxViewShell::GetViewFrame(), SfxBindings::Invalidate(), SwViewShell::LockView(), nPos, SwWrtShell::Pop(), SwCursorShell::Push(), ResetLanguages(), SwWrtShell::SelAll(), SelectPara(), SetLanguage(), SetLanguage_None(), SwCursorShell::StartAction(), and u.
Referenced by SwAnnotationShell::ExecLingu(), and SwDrawTextShell::Execute().