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

#include <guess.hxx>

Collaboration diagram for SwTextGuess:
[legend]

Public Member Functions

 SwTextGuess ()
 
bool Guess (const SwTextPortion &rPor, SwTextFormatInfo &rInf, const sal_uInt16 nHeight)
 
bool AlternativeSpelling (const SwTextFormatInfo &rInf, const TextFrameIndex nPos)
 
SwHangingPortionGetHangingPortion () const
 
SwHangingPortionReleaseHangingPortion ()
 
sal_uInt16 BreakWidth () const
 
sal_uInt16 ExtraBlankWidth () const
 
TextFrameIndex CutPos () const
 
TextFrameIndex BreakStart () const
 
TextFrameIndex BreakPos () const
 
TextFrameIndex FieldDiff () const
 
const css::uno::Reference< css::linguistic2::XHyphenatedWord > & HyphWord () const
 

Private Attributes

css::uno::Reference< css::linguistic2::XHyphenatedWord > m_xHyphWord
 
std::unique_ptr< SwHangingPortionm_pHanging
 
TextFrameIndex m_nCutPos
 
TextFrameIndex m_nBreakStart
 
TextFrameIndex m_nBreakPos
 
TextFrameIndex m_nFieldDiff
 
sal_uInt16 m_nBreakWidth
 
sal_uInt16 m_nExtraBlankWidth
 

Detailed Description

Definition at line 31 of file guess.hxx.

Constructor & Destructor Documentation

◆ SwTextGuess()

SwTextGuess::SwTextGuess ( )
inline

Definition at line 43 of file guess.hxx.

Member Function Documentation

◆ AlternativeSpelling()

bool SwTextGuess::AlternativeSpelling ( const SwTextFormatInfo rInf,
const TextFrameIndex  nPos 
)

◆ BreakPos()

TextFrameIndex SwTextGuess::BreakPos ( ) const
inline

Definition at line 58 of file guess.hxx.

References m_nBreakPos.

Referenced by SwTextPortion::Format_().

◆ BreakStart()

TextFrameIndex SwTextGuess::BreakStart ( ) const
inline

Definition at line 57 of file guess.hxx.

References m_nBreakStart.

Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().

◆ BreakWidth()

sal_uInt16 SwTextGuess::BreakWidth ( ) const
inline

Definition at line 54 of file guess.hxx.

References m_nBreakWidth.

Referenced by SwTextPortion::BreakCut(), and SwTextPortion::Format_().

◆ CutPos()

TextFrameIndex SwTextGuess::CutPos ( ) const
inline

Definition at line 56 of file guess.hxx.

References m_nCutPos.

Referenced by SwTextPortion::BreakCut().

◆ ExtraBlankWidth()

sal_uInt16 SwTextGuess::ExtraBlankWidth ( ) const
inline

Definition at line 55 of file guess.hxx.

References m_nExtraBlankWidth.

Referenced by SwTextPortion::Format_().

◆ FieldDiff()

TextFrameIndex SwTextGuess::FieldDiff ( ) const
inline

Definition at line 59 of file guess.hxx.

References m_nFieldDiff.

Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().

◆ GetHangingPortion()

SwHangingPortion * SwTextGuess::GetHangingPortion ( ) const
inline

Definition at line 52 of file guess.hxx.

References m_pHanging.

Referenced by SwTextPortion::Format_().

◆ Guess()

bool SwTextGuess::Guess ( const SwTextPortion rPor,
SwTextFormatInfo rInf,
const sal_uInt16  nHeight 
)

Definition at line 52 of file guess.cxx.

References begin, CH_BLANK, CH_BREAK, CH_FULL_BLANK, CH_SIX_PER_EM, CH_TXTATR_BREAKWORD, CHAR_SOFTHYPHEN, CJK, COMPLETE_STRING, SwScriptInfo::CountCompChg(), end, URIHelper::FindFirstURLInText(), SwFrame::FindPageFrame(), g_pBreakIt, IDocumentSettingAccess::get(), SwFont::GetActual(), SvxAdjustItem::GetAdjust(), SwAttrSet::GetAdjust(), GetAppCharClass(), SwBreakIt::GetBreakIter(), SwTextSizeInfo::GetCachedVclData(), SwTextSizeInfo::GetChar(), SwTextFrame::GetDoc(), SwFieldPortion::GetExpText(), SwTextSizeInfo::GetFont(), IDocumentSettingAccess::getForbiddenCharacters(), GetGridItem(), SwTextGridItem::GetGridType(), GetHyphenator(), SwTextFormatInfo::GetHyphValues(), SwDoc::getIDocumentSettingAccess(), SwTextSizeInfo::GetIdx(), SwFont::GetItalic(), SwLinePortion::GetJoinBorderWithNext(), SwLinePortion::GetJoinBorderWithPrev(), SwTextFrame::GetLangOfChar(), SwFont::GetLanguage(), SwTextFormatInfo::GetLast(), SwFont::GetLeftBorderSpace(), SwTextSizeInfo::GetLen(), SwLinePortion::GetLen(), getLength(), SwTextFormatInfo::GetLineStart(), SwTextFormatInfo::GetLineWidth(), SwBreakIt::GetLocale(), SwTextInfo::GetParaPortion(), SwBreakIt::GetRealScriptOfText(), SwFont::GetRightBorderSpace(), SwParaPortion::GetScriptInfo(), SwContentNode::GetSwAttrSet(), SwTextSizeInfo::GetText(), SwTextSizeInfo::GetTextBreak(), SwTextSizeInfo::GetTextFrame(), SwTextFrame::GetTextNodeForParaProps(), SwTextSizeInfo::GetTextSize(), GRID_LINES_CHARS, SwTextSizeInfo::HasForbiddenChars(), HYPHENATE_URLS, i, SwLinePortion::InFieldGrp(), SwLinePortion::IsDropPortion(), SwTextSizeInfo::IsFirstMulti(), SwTextSizeInfo::IsFootnoteInside(), SwLinePortion::IsFootnotePortion(), SwTextSizeInfo::IsHanging(), SwTextFormatInfo::IsHyphenate(), SwTextFormatInfo::IsHyphForbud(), SwFrame::IsInTab(), SwTextFormatInfo::IsInterHyph(), CharClass::isLetterNumeric(), SwTextSizeInfo::IsMulti(), SwLinePortion::IsNumberPortion(), SwFrame::IsRightToLeft(), ITALIC_NONE, m_nBreakPos, m_nBreakStart, m_nBreakWidth, m_nCutPos, m_nExtraBlankWidth, m_nFieldDiff, m_pHanging, m_xHyphWord, MS_WORD_COMP_TRAILING_BLANKS, nLineWidth, SwTextSizeInfo::NotEOL(), SwTextSizeInfo::SetIdx(), SwTextSizeInfo::SetMaxWidthDiff(), SwTextSizeInfo::SnapToGrid(), TAB_OVER_MARGIN, UNBREAKABLE_NUMBERINGS, UPN_HYPH_NO_LAST_WORD, UPN_HYPH_ZONE, Value, and SwPosSize::Width().

Referenced by SwTextPortion::Format_().

◆ HyphWord()

const css::uno::Reference< css::linguistic2::XHyphenatedWord > & SwTextGuess::HyphWord ( ) const
inline

Definition at line 60 of file guess.hxx.

References m_xHyphWord.

Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().

◆ ReleaseHangingPortion()

SwHangingPortion * SwTextGuess::ReleaseHangingPortion ( )
inline

Definition at line 53 of file guess.hxx.

References m_pHanging.

Referenced by SwTextPortion::Format_().

Member Data Documentation

◆ m_nBreakPos

TextFrameIndex SwTextGuess::m_nBreakPos
private

Definition at line 37 of file guess.hxx.

Referenced by BreakPos(), and Guess().

◆ m_nBreakStart

TextFrameIndex SwTextGuess::m_nBreakStart
private

Definition at line 36 of file guess.hxx.

Referenced by AlternativeSpelling(), BreakStart(), and Guess().

◆ m_nBreakWidth

sal_uInt16 SwTextGuess::m_nBreakWidth
private

Definition at line 40 of file guess.hxx.

Referenced by BreakWidth(), and Guess().

◆ m_nCutPos

TextFrameIndex SwTextGuess::m_nCutPos
private

Definition at line 35 of file guess.hxx.

Referenced by AlternativeSpelling(), CutPos(), and Guess().

◆ m_nExtraBlankWidth

sal_uInt16 SwTextGuess::m_nExtraBlankWidth
private

Definition at line 41 of file guess.hxx.

Referenced by ExtraBlankWidth(), and Guess().

◆ m_nFieldDiff

TextFrameIndex SwTextGuess::m_nFieldDiff
private

Definition at line 38 of file guess.hxx.

Referenced by FieldDiff(), and Guess().

◆ m_pHanging

std::unique_ptr<SwHangingPortion> SwTextGuess::m_pHanging
private

Definition at line 34 of file guess.hxx.

Referenced by GetHangingPortion(), Guess(), and ReleaseHangingPortion().

◆ m_xHyphWord

css::uno::Reference< css::linguistic2::XHyphenatedWord > SwTextGuess::m_xHyphWord
private

Definition at line 33 of file guess.hxx.

Referenced by AlternativeSpelling(), Guess(), and HyphWord().


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