LibreOffice Module sw (master) 1
|
#include <breakit.hxx>
Public Member Functions | |
css::uno::Reference< css::i18n::XBreakIterator > const & | GetBreakIter () const |
const css::lang::Locale & | GetLocale (const LanguageType aLang) |
const css::lang::Locale & | GetLocale (const LanguageTag &rLanguageTag) |
const LanguageTag & | GetLanguageTag (const LanguageType aLang) |
const LanguageTag & | GetLanguageTag (const LanguageTag &rLanguageTag) |
const css::i18n::ForbiddenCharacters & | GetForbidden (const LanguageType aLang) |
sal_uInt16 | GetRealScriptOfText (const OUString &rText, sal_Int32 nPos) const |
SvtScriptType | GetAllScriptsOfText (const OUString &rText) const |
sal_Int32 | getGraphemeCount (const OUString &rStr, sal_Int32 nStart, sal_Int32 nEnd) const |
sal_Int32 | getGraphemeCount (const OUString &rStr) const |
Static Public Member Functions | |
static void | Create_ (const css::uno::Reference< css::uno::XComponentContext > &rxContext) |
static void | Delete_ () |
static SwBreakIt * | Get () |
Private Member Functions | |
void | GetLocale_ (const LanguageType aLang) |
void | GetLocale_ (const LanguageTag &rLanguageTag) |
void | GetForbidden_ (const LanguageType aLang) |
SwBreakIt (SwBreakIt const &)=delete | |
SwBreakIt & | operator= (SwBreakIt const &)=delete |
SwBreakIt (css::uno::Reference< css::uno::XComponentContext > xContext) | |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::i18n::XBreakIterator > | m_xBreak |
std::unique_ptr< LanguageTag > | m_xLanguageTag |
language tag of the current locale More... | |
std::optional< css::i18n::ForbiddenCharacters > | m_oForbidden |
LanguageType | m_aForbiddenLang |
language of the current forbiddenChar struct More... | |
Definition at line 34 of file breakit.hxx.
|
explicitprivate |
References Get().
|
static |
Definition at line 36 of file breakit.cxx.
References g_pBreakIt, and SwBreakIt().
|
static |
Definition at line 42 of file breakit.cxx.
References g_pBreakIt.
|
static |
Definition at line 48 of file breakit.cxx.
References g_pBreakIt.
Referenced by GetAppCharClass(), SwEditWin::IsInputSequenceCheckingRequired(), and DocxAttributeOutput::StartRuby().
SvtScriptType SwBreakIt::GetAllScriptsOfText | ( | const OUString & | rText | ) | const |
Definition at line 128 of file breakit.cxx.
Referenced by SwTextShell::InsertSymbol(), SwAnnotationShell::InsertSymbol(), and SwDrawTextShell::InsertSymbol().
|
inline |
Definition at line 63 of file breakit.hxx.
Referenced by SwTextGuess::AlternativeSpelling(), SwHTMLParser::AppendTextNode(), SwTextFrame::AutoSpell_(), SwFieldPortion::CheckScript(), SwScriptInfo::CJKJustify(), SwHHCWrapper::Convert(), SwScriptInfo::CountCJKCharacters(), SwTextNode::CountWords(), SwSubFont::DoOnCapitals(), SwWW8ImplReader::emulateMSWordAddTextToParagraph(), SwHTMLParser::EndAttr(), SwCursor::ExpandToSentenceBorders(), SwTextFrame::GetCurWord(), SwTextNode::GetDropLen(), SwTextFrame::GetDropLen(), SwAccessibleParagraph::GetGlyphBoundary(), SwFntObj::GetModelPositionForViewPoint(), sw::util::GetPseudoCharRuns(), SwTextFrame::GetScalingOfSelectedText(), SwEditShell::GetScriptType(), SwAccessiblePortionData::GetSentenceBoundary(), SwWW8AttrIter::GetSnippet(), SwFont::GetTextBreak(), SwAccessibleParagraph::GetWordBoundary(), SwCursor::GoEndWordWT(), SwContentNode::GoNext(), SwCursor::GoNextWordWT(), SwContentNode::GoPrevious(), SwCursor::GoPrevWordWT(), SwCursor::GoSentence(), SwCursor::GoStartWordWT(), SwTextGuess::Guess(), SwTextFrame::Hyphenate(), SwTextFormatter::Hyphenate(), SwCallLink::ImplDestroy(), SwAttrIter::InitFontAndAttrHandler(), SwScriptInfo::InitScriptInfo(), SwCursor::IsEndWordWT(), SwEditWin::IsInputSequenceCheckingRequired(), SwCursor::IsInWordWT(), SwCursor::IsStartWordWT(), lcl_AddSpace(), lcl_IsNoEndTextAttrAtPos(), lcl_MinMaxString(), SwScriptIterator::Next(), MSWord_SdrAttrIter::NextPara(), SwScanner::NextWord(), OutHTML_SwField(), AttributeOutputBase::ParaLineSpacing(), SwWW8ImplReader::Read_SubF_Ruby(), SwDoc::ResetAttrs(), SwDoc::SelectNextRubyChars(), SwCursor::SelectWordWT(), SwTextFrame::SmartTagScan(), DocxAttributeOutput::StartRuby(), sw_CalcCaseMap(), SwCombinedPortion::SwCombinedPortion(), SwScriptIterator::SwScriptIterator(), AttributeOutputBase::TextField(), sw::DocumentContentOperationsManager::TransliterateText(), SwTextNode::TransliterateText(), and WW8Ruby::WW8Ruby().
|
inline |
Definition at line 104 of file breakit.hxx.
Referenced by sw::DocumentSettingManager::getForbiddenCharacters().
|
private |
Definition at line 76 of file breakit.cxx.
References LocaleDataWrapper::getForbiddenCharacters(), GetLanguageTag(), m_aForbiddenLang, m_oForbidden, and m_xContext.
|
inline |
Definition at line 116 of file breakit.hxx.
sal_Int32 SwBreakIt::getGraphemeCount | ( | const OUString & | rStr, |
sal_Int32 | nStart, | ||
sal_Int32 | nEnd | ||
) | const |
Definition at line 158 of file breakit.cxx.
References m_xBreak.
Referenced by SwTextNode::CountWords().
|
inline |
Definition at line 93 of file breakit.hxx.
References LanguageTag::getLanguageType().
|
inline |
Definition at line 86 of file breakit.hxx.
Referenced by GetForbidden_().
|
inline |
Definition at line 75 of file breakit.hxx.
References LanguageTag::getLanguageType().
|
inline |
Definition at line 68 of file breakit.hxx.
Referenced by SwTextGuess::AlternativeSpelling(), SwTextFrame::AutoSpell_(), SwScriptInfo::CJKJustify(), SwHHCWrapper::Convert(), SwScriptInfo::CountCJKCharacters(), SwSubFont::DoOnCapitals(), DoSearch(), SwCursor::ExpandToSentenceBorders(), GetAppCaseCollator(), GetAppCollator(), SwTextFrame::GetCurWord(), SwTextNode::GetDropLen(), SwTextFrame::GetDropLen(), SwAccessibleParagraph::GetGlyphBoundary(), SwAccessibleParagraph::getLocale(), SwFntObj::GetModelPositionForViewPoint(), SwTextFrame::GetScalingOfSelectedText(), SwAccessiblePortionData::GetSentenceBoundary(), SwWW8AttrIter::GetSnippet(), SwFont::GetTextBreak(), SwAccessibleParagraph::GetWordBoundary(), SwCursor::GoEndWordWT(), SwContentNode::GoNext(), SwCursor::GoNextWordWT(), SwContentNode::GoPrevious(), SwCursor::GoPrevWordWT(), SwCursor::GoSentence(), SwCursor::GoStartWordWT(), SwTextGuess::Guess(), SwTextFormatter::Hyphenate(), SwTextFormatInfo::HyphWord(), SwCursor::IsEndWordWT(), SwTextFormatInfo::IsHyphenate(), SwCursor::IsInWordWT(), SwCursor::IsStartWordWT(), lcl_MinMaxString(), SwScanner::NextWord(), SwDoc::ResetAttrs(), SwDoc::SelectNextRubyChars(), SwCursor::SelectWordWT(), SwTextFrame::SmartTagScan(), sw_CalcCaseMap(), sw::DocumentContentOperationsManager::TransliterateText(), SwTextNode::TransliterateText(), and SwTOXBaseSection::UpdateMarks().
|
private |
Definition at line 68 of file breakit.cxx.
References m_xLanguageTag.
|
private |
Definition at line 60 of file breakit.cxx.
References m_xLanguageTag.
sal_uInt16 SwBreakIt::GetRealScriptOfText | ( | const OUString & | rText, |
sal_Int32 | nPos | ||
) | const |
Definition at line 84 of file breakit.cxx.
References GetAppLanguage(), SvtLanguageOptions::GetI18NScriptTypeOfLanguage(), m_xBreak, and nPos.
Referenced by DoSearch(), SwTextNode::GetDropLen(), SwTextFrame::GetDropLen(), SwTextNode::GetLang(), SwGetExpField::GetReferenceTextPos(), SwTextGuess::Guess(), and SwScriptInfo::WhichFont().
|
private |
language of the current forbiddenChar struct
Definition at line 42 of file breakit.hxx.
Referenced by GetForbidden_().
|
private |
Definition at line 40 of file breakit.hxx.
Referenced by GetForbidden_().
|
private |
Definition at line 37 of file breakit.hxx.
Referenced by GetAllScriptsOfText(), getGraphemeCount(), and GetRealScriptOfText().
|
private |
Definition at line 36 of file breakit.hxx.
Referenced by GetForbidden_().
|
private |
language tag of the current locale
Definition at line 39 of file breakit.hxx.
Referenced by GetLocale_().