LibreOffice Module sw (master) 1
|
#include <guess.hxx>
Public Member Functions | |
SwTextGuess () | |
bool | Guess (const SwTextPortion &rPor, SwTextFormatInfo &rInf, const sal_uInt16 nHeight) |
bool | AlternativeSpelling (const SwTextFormatInfo &rInf, const TextFrameIndex nPos) |
SwHangingPortion * | GetHangingPortion () const |
SwHangingPortion * | ReleaseHangingPortion () |
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< SwHangingPortion > | m_pHanging |
TextFrameIndex | m_nCutPos |
TextFrameIndex | m_nBreakStart |
TextFrameIndex | m_nBreakPos |
TextFrameIndex | m_nFieldDiff |
sal_uInt16 | m_nBreakWidth |
sal_uInt16 | m_nExtraBlankWidth |
bool SwTextGuess::AlternativeSpelling | ( | const SwTextFormatInfo & | rInf, |
const TextFrameIndex | nPos | ||
) |
subtract 1 since the UNO-interface is 0 based
Definition at line 672 of file guess.cxx.
References g_pBreakIt, SwBreakIt::GetBreakIter(), SwTextSizeInfo::GetFont(), GetHyphenator(), SwTextFormatInfo::GetHyphValues(), SwFont::GetLanguage(), SwBreakIt::GetLocale(), SwTextSizeInfo::GetText(), m_nBreakStart, m_nCutPos, m_xHyphWord, and nPos.
Referenced by SwSoftHyphPortion::Format(), and SwTextPortion::Format_().
|
inline |
Definition at line 58 of file guess.hxx.
References m_nBreakPos.
Referenced by SwTextPortion::Format_().
|
inline |
Definition at line 57 of file guess.hxx.
References m_nBreakStart.
Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().
|
inline |
Definition at line 54 of file guess.hxx.
References m_nBreakWidth.
Referenced by SwTextPortion::BreakCut(), and SwTextPortion::Format_().
|
inline |
Definition at line 56 of file guess.hxx.
References m_nCutPos.
Referenced by SwTextPortion::BreakCut().
|
inline |
Definition at line 55 of file guess.hxx.
References m_nExtraBlankWidth.
Referenced by SwTextPortion::Format_().
|
inline |
Definition at line 59 of file guess.hxx.
References m_nFieldDiff.
Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().
|
inline |
Definition at line 52 of file guess.hxx.
References m_pHanging.
Referenced by SwTextPortion::Format_().
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_().
|
inline |
Definition at line 60 of file guess.hxx.
References m_xHyphWord.
Referenced by SwTextPortion::CreateHyphen(), and SwTextPortion::Format_().
|
inline |
Definition at line 53 of file guess.hxx.
References m_pHanging.
Referenced by SwTextPortion::Format_().
|
private |
Definition at line 37 of file guess.hxx.
Referenced by BreakPos(), and Guess().
|
private |
Definition at line 36 of file guess.hxx.
Referenced by AlternativeSpelling(), BreakStart(), and Guess().
|
private |
Definition at line 40 of file guess.hxx.
Referenced by BreakWidth(), and Guess().
|
private |
Definition at line 35 of file guess.hxx.
Referenced by AlternativeSpelling(), CutPos(), and Guess().
|
private |
Definition at line 41 of file guess.hxx.
Referenced by ExtraBlankWidth(), and Guess().
|
private |
Definition at line 38 of file guess.hxx.
Referenced by FieldDiff(), and Guess().
|
private |
Definition at line 34 of file guess.hxx.
Referenced by GetHangingPortion(), Guess(), and ReleaseHangingPortion().
|
private |
Definition at line 33 of file guess.hxx.
Referenced by AlternativeSpelling(), Guess(), and HyphWord().