LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwBreakIt Class Reference

#include <breakit.hxx>

Collaboration diagram for SwBreakIt:
[legend]

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 LanguageTagGetLanguageTag (const LanguageType aLang)
 
const LanguageTagGetLanguageTag (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 SwBreakItGet ()
 

Private Member Functions

void GetLocale_ (const LanguageType aLang)
 
void GetLocale_ (const LanguageTag &rLanguageTag)
 
void GetForbidden_ (const LanguageType aLang)
 
 SwBreakIt (SwBreakIt const &)=delete
 
SwBreakItoperator= (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< LanguageTagm_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...
 

Detailed Description

Definition at line 34 of file breakit.hxx.

Constructor & Destructor Documentation

◆ SwBreakIt() [1/2]

SwBreakIt::SwBreakIt ( SwBreakIt const &  )
privatedelete

Referenced by Create_().

◆ SwBreakIt() [2/2]

SwBreakIt::SwBreakIt ( css::uno::Reference< css::uno::XComponentContext >  xContext)
explicitprivate

References Get().

Member Function Documentation

◆ Create_()

void SwBreakIt::Create_ ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
static

Definition at line 36 of file breakit.cxx.

References g_pBreakIt, and SwBreakIt().

◆ Delete_()

void SwBreakIt::Delete_ ( )
static

Definition at line 42 of file breakit.cxx.

References g_pBreakIt.

◆ Get()

SwBreakIt * SwBreakIt::Get ( )
static

◆ GetAllScriptsOfText()

SvtScriptType SwBreakIt::GetAllScriptsOfText ( const OUString &  rText) const

◆ GetBreakIter()

css::uno::Reference< css::i18n::XBreakIterator > const & SwBreakIt::GetBreakIter ( ) const
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().

◆ GetForbidden()

const css::i18n::ForbiddenCharacters & SwBreakIt::GetForbidden ( const LanguageType  aLang)
inline

Definition at line 104 of file breakit.hxx.

Referenced by sw::DocumentSettingManager::getForbiddenCharacters().

◆ GetForbidden_()

void SwBreakIt::GetForbidden_ ( const LanguageType  aLang)
private

◆ getGraphemeCount() [1/2]

sal_Int32 SwBreakIt::getGraphemeCount ( const OUString &  rStr) const
inline

Definition at line 116 of file breakit.hxx.

◆ getGraphemeCount() [2/2]

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().

◆ GetLanguageTag() [1/2]

const LanguageTag & SwBreakIt::GetLanguageTag ( const LanguageTag rLanguageTag)
inline

Definition at line 93 of file breakit.hxx.

References LanguageTag::getLanguageType().

◆ GetLanguageTag() [2/2]

const LanguageTag & SwBreakIt::GetLanguageTag ( const LanguageType  aLang)
inline

Definition at line 86 of file breakit.hxx.

Referenced by GetForbidden_().

◆ GetLocale() [1/2]

const css::lang::Locale & SwBreakIt::GetLocale ( const LanguageTag rLanguageTag)
inline

Definition at line 75 of file breakit.hxx.

References LanguageTag::getLanguageType().

◆ GetLocale() [2/2]

const css::lang::Locale & SwBreakIt::GetLocale ( const LanguageType  aLang)
inline

◆ GetLocale_() [1/2]

void SwBreakIt::GetLocale_ ( const LanguageTag rLanguageTag)
private

Definition at line 68 of file breakit.cxx.

References m_xLanguageTag.

◆ GetLocale_() [2/2]

void SwBreakIt::GetLocale_ ( const LanguageType  aLang)
private

Definition at line 60 of file breakit.cxx.

References m_xLanguageTag.

◆ GetRealScriptOfText()

sal_uInt16 SwBreakIt::GetRealScriptOfText ( const OUString &  rText,
sal_Int32  nPos 
) const

◆ operator=()

SwBreakIt & SwBreakIt::operator= ( SwBreakIt const &  )
privatedelete

Member Data Documentation

◆ m_aForbiddenLang

LanguageType SwBreakIt::m_aForbiddenLang
private

language of the current forbiddenChar struct

Definition at line 42 of file breakit.hxx.

Referenced by GetForbidden_().

◆ m_oForbidden

std::optional<css::i18n::ForbiddenCharacters> SwBreakIt::m_oForbidden
private

Definition at line 40 of file breakit.hxx.

Referenced by GetForbidden_().

◆ m_xBreak

css::uno::Reference<css::i18n::XBreakIterator> SwBreakIt::m_xBreak
private

Definition at line 37 of file breakit.hxx.

Referenced by GetAllScriptsOfText(), getGraphemeCount(), and GetRealScriptOfText().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > SwBreakIt::m_xContext
private

Definition at line 36 of file breakit.hxx.

Referenced by GetForbidden_().

◆ m_xLanguageTag

std::unique_ptr<LanguageTag> SwBreakIt::m_xLanguageTag
private

language tag of the current locale

Definition at line 39 of file breakit.hxx.

Referenced by GetLocale_().


The documentation for this class was generated from the following files: