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 (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 

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::unique_ptr< css::i18n::ForbiddenCharacters > m_xForbidden
 
LanguageType m_aForbiddenLang
 language of the current forbiddenChar struct More...
 

Detailed Description

Definition at line 33 of file breakit.hxx.

Constructor & Destructor Documentation

SwBreakIt::SwBreakIt ( SwBreakIt const &  )
privatedelete
SwBreakIt::SwBreakIt ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
explicitprivate

Member Function Documentation

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

Definition at line 35 of file breakit.cxx.

References g_pBreakIt.

Referenced by InitCore().

void SwBreakIt::Delete_ ( )
static

Definition at line 41 of file breakit.cxx.

References g_pBreakIt.

Referenced by FinitCore().

SwBreakIt * SwBreakIt::Get ( )
static
SvtScriptType SwBreakIt::GetAllScriptsOfText ( const OUString &  rText) const
css::uno::Reference< css::i18n::XBreakIterator > const& SwBreakIt::GetBreakIter ( ) const
inline

Definition at line 62 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(), SwFntObj::GetCursorOfst(), SwTextFrame::GetCurWord(), SwTextFrame::GetDropLen(), SwTextNode::GetDropLen(), SwAccessibleParagraph::GetGlyphBoundary(), 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(), HTMLEndPosLst::HTMLEndPosLst(), SwTextFormatter::Hyphenate(), SwTextFrame::Hyphenate(), 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(), WW8Ruby::WW8Ruby(), and SwCallLink::~SwCallLink().

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

Definition at line 103 of file breakit.hxx.

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

void SwBreakIt::GetForbidden_ ( const LanguageType  aLang)
private
sal_Int32 SwBreakIt::getGraphemeCount ( const OUString &  rStr,
sal_Int32  nStart,
sal_Int32  nEnd 
) const

Definition at line 157 of file breakit.cxx.

References m_xBreak.

Referenced by SwTextNode::CountWords().

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

Definition at line 115 of file breakit.hxx.

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

Definition at line 85 of file breakit.hxx.

Referenced by GetForbidden_().

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

Definition at line 92 of file breakit.hxx.

References LanguageTag::getLanguageType().

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

Definition at line 74 of file breakit.hxx.

References LanguageTag::getLanguageType().

void SwBreakIt::GetLocale_ ( const LanguageType  aLang)
private

Definition at line 59 of file breakit.cxx.

References m_xLanguageTag.

void SwBreakIt::GetLocale_ ( const LanguageTag rLanguageTag)
private

Definition at line 67 of file breakit.cxx.

References m_xLanguageTag.

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

Member Data Documentation

LanguageType SwBreakIt::m_aForbiddenLang
private

language of the current forbiddenChar struct

Definition at line 41 of file breakit.hxx.

Referenced by GetForbidden_().

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

Definition at line 36 of file breakit.hxx.

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

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

Definition at line 35 of file breakit.hxx.

Referenced by GetForbidden_().

std::unique_ptr<css::i18n::ForbiddenCharacters> SwBreakIt::m_xForbidden
private

Definition at line 39 of file breakit.hxx.

Referenced by GetForbidden_().

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

language tag of the current locale

Definition at line 38 of file breakit.hxx.

Referenced by GetLocale_().


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