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
 
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 > xHyphWord
 
std::unique_ptr< SwHangingPortionpHanging
 
TextFrameIndex nCutPos
 
TextFrameIndex nBreakStart
 
TextFrameIndex nBreakPos
 
TextFrameIndex nFieldDiff
 
sal_uInt16 nBreakWidth
 

Detailed Description

Definition at line 30 of file guess.hxx.

Constructor & Destructor Documentation

SwTextGuess::SwTextGuess ( )
inline

Definition at line 41 of file guess.hxx.

Member Function Documentation

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

Definition at line 55 of file guess.hxx.

References nBreakPos.

Referenced by SwTextPortion::Format_().

TextFrameIndex SwTextGuess::BreakStart ( ) const
inline

Definition at line 54 of file guess.hxx.

References nBreakStart.

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

sal_uInt16 SwTextGuess::BreakWidth ( ) const
inline

Definition at line 52 of file guess.hxx.

References nBreakWidth.

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

TextFrameIndex SwTextGuess::CutPos ( ) const
inline

Definition at line 53 of file guess.hxx.

References nCutPos.

Referenced by SwTextPortion::BreakCut().

TextFrameIndex SwTextGuess::FieldDiff ( ) const
inline

Definition at line 56 of file guess.hxx.

References nFieldDiff.

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

SwHangingPortion* SwTextGuess::GetHangingPortion ( ) const
inline

Definition at line 50 of file guess.hxx.

Referenced by SwTextPortion::Format_().

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

Definition at line 55 of file guess.cxx.

References CH_BLANK, CH_BREAK, CH_TXTATR_BREAKWORD, CHAR_SOFTHYPHEN, CJK, COMPLETE_STRING, SwScriptInfo::CountCompChg(), 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(), SwLinePortion::GetLen(), SwTextSizeInfo::GetLen(), 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(), 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, MS_WORD_COMP_TRAILING_BLANKS, nBreakPos, nBreakStart, nBreakWidth, nCutPos, nFieldDiff, SwTextSizeInfo::NotEOL(), pHanging, SwTextSizeInfo::SetIdx(), SwTextSizeInfo::SetMaxWidthDiff(), SwTextSizeInfo::SnapToGrid(), UNBREAKABLE_NUMBERINGS, SwPosSize::Width(), and xHyphWord.

Referenced by SwTextPortion::Format_().

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

Definition at line 57 of file guess.hxx.

References xHyphWord.

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

SwHangingPortion* SwTextGuess::ReleaseHangingPortion ( )
inline

Definition at line 51 of file guess.hxx.

Referenced by SwTextPortion::Format_().

Member Data Documentation

TextFrameIndex SwTextGuess::nBreakPos
private

Definition at line 36 of file guess.hxx.

Referenced by BreakPos(), and Guess().

TextFrameIndex SwTextGuess::nBreakStart
private

Definition at line 35 of file guess.hxx.

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

sal_uInt16 SwTextGuess::nBreakWidth
private

Definition at line 39 of file guess.hxx.

Referenced by BreakWidth(), and Guess().

TextFrameIndex SwTextGuess::nCutPos
private

Definition at line 34 of file guess.hxx.

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

TextFrameIndex SwTextGuess::nFieldDiff
private

Definition at line 37 of file guess.hxx.

Referenced by FieldDiff(), and Guess().

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

Definition at line 33 of file guess.hxx.

Referenced by Guess().

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

Definition at line 32 of file guess.hxx.

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


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