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

#include <inftxt.hxx>

Inheritance diagram for SwTextFormatInfo:
[legend]
Collaboration diagram for SwTextFormatInfo:
[legend]

Public Member Functions

void CtorInitTextFormatInfo (OutputDevice *pRenderContext, SwTextFrame *pFrame, const bool bInterHyph=false, const bool bQuick=false, const bool bTst=false)
 
 SwTextFormatInfo (OutputDevice *pRenderContext, SwTextFrame *pFrame, const bool bInterHyphL=false, const bool bQuickL=false, const bool bTst=false)
 
 SwTextFormatInfo (const SwTextFormatInfo &rInf, SwLineLayout &rLay, SwTwips nActWidth)
 There are a few differences between a copy constructor and the following constructor for multi-line formatting. More...
 
sal_uInt16 Width () const
 
void Width (const sal_uInt16 nNew)
 
void Init ()
 
SwTwips GetLineWidth ()
 Returns the distance between the current horizontal position and the end of the line. More...
 
TextFrameIndex GetReformatStart () const
 
SwTwips Left () const
 
void Left (const SwTwips nNew)
 
SwTwips Right () const
 
void Right (const SwTwips nNew)
 
SwTwips First () const
 
void First (const SwTwips nNew)
 
void LeftMargin (const SwTwips nNew)
 
sal_uInt16 RealWidth () const
 
void RealWidth (const sal_uInt16 nNew)
 
sal_uInt16 ForcedLeftMargin () const
 
void ForcedLeftMargin (const sal_uInt16 nN)
 
sal_uInt8MaxHyph ()
 
const sal_uInt8MaxHyph () const
 
SwLineLayoutGetRoot ()
 
const SwLineLayoutGetRoot () const
 
void SetRoot (SwLineLayout *pNew)
 
SwLinePortionGetLast ()
 
void SetLast (SwLinePortion *pNewLast)
 
bool IsFull () const
 
void SetFull (const bool bNew)
 
bool IsHyphForbud () const
 
void ChkNoHyph (const sal_uInt8 bEnd, const sal_uInt8 bMid)
 
bool IsIgnoreFly () const
 
void SetIgnoreFly (const bool bNew)
 
bool IsFakeLineStart () const
 
void SetFakeLineStart (const bool bNew)
 
bool IsStop () const
 
void SetStop (const bool bNew)
 
SwLinePortionGetRest ()
 
void SetRest (SwLinePortion *pNewRest)
 
bool IsNewLine () const
 
void SetNewLine (const bool bNew)
 
bool IsShift () const
 
void SetShift (const bool bNew)
 
bool IsInterHyph () const
 
bool IsUnderflow () const
 
void ClrUnderflow ()
 
bool IsDropInit () const
 
void SetDropInit (const bool bNew)
 
bool IsQuick () const
 
bool IsTest () const
 
TextFrameIndex GetLineStart () const
 
void SetLineStart (TextFrameIndex const nNew)
 
sal_uInt16 GetLineHeight () const
 
void SetLineHeight (const sal_uInt16 nNew)
 
sal_uInt16 GetLineNetHeight () const
 
void SetLineNetHeight (const sal_uInt16 nNew)
 
const SwLinePortionGetUnderflow () const
 
SwLinePortionGetUnderflow ()
 
void SetUnderflow (SwLinePortion *pNew)
 
TextFrameIndex GetSoftHyphPos () const
 
void SetSoftHyphPos (TextFrameIndex const nNew)
 
void SetParaFootnote ()
 
SwFlyPortionGetFly ()
 
void SetFly (SwFlyPortion *pNew)
 
const SwAttrSetGetCharAttr () const
 
SwTabPortionGetLastTab ()
 
void SetLastTab (SwTabPortion *pNew)
 
sal_Unicode GetTabDecimal () const
 
void SetTabDecimal (const sal_Unicode cNew)
 
void ClearHookChar ()
 
void SetHookChar (const sal_Unicode cNew)
 
sal_Unicode GetHookChar () const
 
bool IsFootnoteDone () const
 
void SetFootnoteDone (const bool bNew)
 
bool IsErgoDone () const
 
void SetErgoDone (const bool bNew)
 
bool IsNumDone () const
 
void SetNumDone (const bool bNew)
 
bool IsArrowDone () const
 
void SetArrowDone (const bool bNew)
 
bool CheckCurrentPosBookmark ()
 
bool ChgHyph (const bool bNew)
 
bool IsHyphenate () const
 If the Hyphenator returns ERROR or the language is set to NOLANGUAGE we do not hyphenate. More...
 
TextFrameIndex GetUnderScorePos () const
 
void SetUnderScorePos (TextFrameIndex const nNew)
 
css::uno::Reference< css::linguistic2::XHyphenatedWord > HyphWord (const OUString &rText, const sal_Int32 nMinTrail)
 
const css::beans::PropertyValuesGetHyphValues () const
 
bool CheckFootnotePortion (SwLineLayout const *pCurr)
 
const SwFormatDropGetDropFormat () const
 
bool LastKernPortion ()
 
TextFrameIndex ScanPortionEnd (TextFrameIndex nStart, TextFrameIndex nEnd)
 
void SetTabOverflow (bool bOverflow)
 
bool IsTabOverflow () const
 
- Public Member Functions inherited from SwTextPaintInfo
 SwTextPaintInfo (const SwTextPaintInfo &rInf)
 
 SwTextPaintInfo (const SwTextPaintInfo &rInf, const OUString *pText)
 
void CtorInitTextPaintInfo (OutputDevice *pRenderContext, SwTextFrame *pFrame, const SwRect &rPaint)
 
const SvxBrushItemGetBrushItem () const
 
 SwTextPaintInfo (SwTextFrame *pFrame, const SwRect &rPaint)
 
SwTwips X () const
 
void X (const tools::Long nNew)
 
SwTwips Y () const
 
void Y (const SwTwips nNew)
 
SwTextFlyGetTextFly ()
 
const SwTextFlyGetTextFly () const
 
void DrawText (const OUString &rText, const SwLinePortion &rPor, TextFrameIndex nIdx=TextFrameIndex(0), TextFrameIndex nLen=TextFrameIndex(COMPLETE_STRING), const bool bKern=false) const
 
void DrawText (const SwLinePortion &rPor, TextFrameIndex nLen, const bool bKern=false) const
 
void DrawMarkedText (const SwLinePortion &rPor, TextFrameIndex nLen, const bool bWrong, const bool bSmartTags, const bool bGrammarCheck) const
 
void DrawRect (const SwRect &rRect, bool bRetouche) const
 
void DrawTab (const SwLinePortion &rPor) const
 
void DrawLineBreak (const SwLinePortion &rPor) const
 
void DrawRedArrow (const SwLinePortion &rPor) const
 
void DrawPostIts (bool bScript) const
 
void DrawBackground (const SwLinePortion &rPor, const Color *pColor=nullptr) const
 
void DrawViewOpt (const SwLinePortion &rPor, PortionType nWhich, const Color *pColor=nullptr) const
 
void DrawBackBrush (const SwLinePortion &rPor) const
 
void DrawBorder (const SwLinePortion &rPor) const
 Draw character border around a line portion. More...
 
void DrawCheckBox (const SwFieldFormCheckboxPortion &rPor, bool bChecked) const
 
void CalcRect (const SwLinePortion &rPor, SwRect *pRect, SwRect *pIntersect=nullptr, const bool bInsideBox=false) const
 Calculate the rectangular area where the portion takes place. More...
 
SwTwips GetPaintOfst () const
 
void SetPaintOfst (const SwTwips nNew)
 
const PointGetPos () const
 
void SetPos (const Point &rNew)
 
const SwRectGetPaintRect () const
 
sal_uInt16 GetSpaceIdx () const
 
void ResetSpaceIdx ()
 
void SetSpaceIdx (sal_uInt16 nNew)
 
void IncSpaceIdx ()
 
void RemoveFirstSpaceAdd ()
 
tools::Long GetSpaceAdd () const
 
void SetpSpaceAdd (std::vector< tools::Long > *pNew)
 
std::vector< tools::Long > * GetpSpaceAdd () const
 
void SetWrongList (sw::WrongListIterator *const pNew)
 
sw::WrongListIteratorGetpWrongList () const
 
void SetGrammarCheckList (sw::WrongListIterator *const pNew)
 
sw::WrongListIteratorGetGrammarCheckList () const
 
void SetSmartTags (sw::WrongListIterator *const pNew)
 
sw::WrongListIteratorGetSmartTags () const
 
- Public Member Functions inherited from SwTextSizeInfo
 SwTextSizeInfo (const SwTextSizeInfo &rInf)
 
 SwTextSizeInfo (const SwTextSizeInfo &rInf, const OUString *pText, TextFrameIndex nIdx=TextFrameIndex(0))
 
 SwTextSizeInfo (SwTextFrame *pTextFrame, TextFrameIndex nIndex=TextFrameIndex(0))
 
std::optional< SwMultiCreatorGetMultiCreator (TextFrameIndex &rPos, SwMultiPortion const *pM) const
 
bool OnWin () const
 
void SetOnWin (const bool bNew)
 
bool NotEOL () const
 
void SetNotEOL (const bool bNew)
 
bool URLNotify () const
 
bool StopUnderflow () const
 
void SetStopUnderflow (const bool bNew)
 
bool IsFootnoteInside () const
 
void SetFootnoteInside (const bool bNew)
 
bool IsOtherThanFootnoteInside () const
 
void SetOtherThanFootnoteInside (const bool bNew)
 
bool IsMulti () const
 
void SetMulti (const bool bNew)
 
bool IsFirstMulti () const
 
void SetFirstMulti (const bool bNew)
 
bool IsRuby () const
 
void SetRuby (const bool bNew)
 
bool IsHanging () const
 
void SetHanging (const bool bNew)
 
bool HasScriptSpace () const
 
void SetScriptSpace (const bool bNew)
 
bool HasForbiddenChars () const
 
void SetForbiddenChars (const bool bN)
 
bool SnapToGrid () const
 
void SetSnapToGrid (const bool bN)
 
sal_uInt8 GetDirection () const
 
void SetDirection (const sal_uInt8 nNew)
 
bool IsRotated () const
 
SwViewShellGetVsh ()
 
const SwViewShellGetVsh () const
 
vcl::RenderContextGetOut ()
 
const vcl::RenderContextGetOut () const
 
void SetOut (OutputDevice *pNewOut)
 
vcl::RenderContextGetRefDev ()
 
const vcl::RenderContextGetRefDev () const
 
SwFontGetFont ()
 
const SwFontGetFont () const
 
void SetFont (SwFont *pNew)
 
void SelectFont ()
 
void SetUnderFnt (SwUnderlineFont *pNew)
 
SwUnderlineFontGetUnderFnt () const
 
const SwViewOptionGetOpt () const
 
const OUString & GetText () const
 
sal_Unicode GetChar (TextFrameIndex const nPos) const
 
sal_uInt16 GetTextHeight () const
 
SwPosSize GetTextSize (OutputDevice *pOut, const SwScriptInfo *pSI, const OUString &rText, TextFrameIndex nIdx, TextFrameIndex nLen) const
 
SwPosSize GetTextSize () const
 
void GetTextSize (const SwScriptInfo *pSI, TextFrameIndex nIdx, TextFrameIndex nLen, const sal_uInt16 nComp, sal_uInt16 &nMinSize, sal_uInt16 &nMaxSizeDiff, vcl::text::TextLayoutCache const *=nullptr) const
 
SwPosSize GetTextSize (const SwScriptInfo *pSI, TextFrameIndex nIdx, TextFrameIndex nLen) const
 
SwPosSize GetTextSize (const OUString &rText) const
 
TextFrameIndex GetTextBreak (const tools::Long nLineWidth, const TextFrameIndex nMaxLen, const sal_uInt16 nComp, vcl::text::TextLayoutCache const *) const
 
TextFrameIndex GetTextBreak (const tools::Long nLineWidth, const TextFrameIndex nMaxLen, const sal_uInt16 nComp, TextFrameIndex &rExtraCharPos, vcl::text::TextLayoutCache const *) const
 
sal_uInt16 GetAscent () const
 
sal_uInt16 GetHangingBaseline () const
 
TextFrameIndex GetIdx () const
 
void SetIdx (const TextFrameIndex nNew)
 
TextFrameIndex GetLen () const
 
void SetLen (const TextFrameIndex nNew)
 
TextFrameIndex GetMeasureLen () const
 
void SetMeasureLen (const TextFrameIndex nNew)
 
void SetText (const OUString &rNew)
 
bool IsNoSymbol () const
 
void NoteAnimation () const
 
SwTextFrameGetTextFrame ()
 
const SwTextFrameGetTextFrame () const
 
bool HasHint (TextFrameIndex nPos) const
 
void SetMaxWidthDiff (const SwLinePortion *nKey, sal_uInt16 nVal)
 
sal_uInt16 GetMaxWidthDiff (const SwLinePortion *nKey)
 
void ResetMaxWidthDiff ()
 
bool CompressLine ()
 
sal_uInt16 GetKanaIdx () const
 
void ResetKanaIdx ()
 
void SetKanaIdx (sal_uInt16 nNew)
 
void IncKanaIdx ()
 
void SetKanaComp (std::deque< sal_uInt16 > *pNew)
 
std::deque< sal_uInt16 > * GetpKanaComp () const
 
sal_uInt16 GetKanaComp () const
 
const std::shared_ptr< const vcl::text::TextLayoutCache > & GetCachedVclData () const
 
void SetCachedVclData (std::shared_ptr< const vcl::text::TextLayoutCache > const &pCachedVclData)
 
- Public Member Functions inherited from SwTextInfo
void CtorInitTextInfo (SwTextFrame *pFrame)
 
 SwTextInfo (const SwTextInfo &rInf)
 
 SwTextInfo (SwTextFrame *pFrame)
 
SwParaPortionGetParaPortion ()
 
const SwParaPortionGetParaPortion () const
 
TextFrameIndex GetTextStart () const
 

Private Member Functions

bool InitHyph (const bool bAuto=false)
 
bool CheckFootnotePortion_ (SwLineLayout const *pCurr)
 

Private Attributes

css::beans::PropertyValues m_aHyphVals
 
SwLineLayoutm_pRoot
 
SwLinePortionm_pLast
 
SwFlyPortionm_pFly
 
SwLinePortionm_pUnderflow
 
SwLinePortionm_pRest
 
SwTabPortionm_pLastTab
 
TextFrameIndex m_nSoftHyphPos
 SoftHyphPos for Hyphenation. More...
 
TextFrameIndex m_nLineStart
 Current line start in rText. More...
 
TextFrameIndex m_nUnderScorePos
 enlarge repaint if underscore has been found More...
 
TextFrameIndex m_nLastBookmarkPos
 need to check for bookmarks at every portion More...
 
SwTwips m_nLeft
 
SwTwips m_nRight
 
SwTwips m_nFirst
 
SwTwips m_nLeftMargin = 0
 First or left margin, depending on context. More...
 
sal_uInt16 m_nRealWidth
 
sal_uInt16 m_nWidth
 
sal_uInt16 m_nLineHeight
 
sal_uInt16 m_nLineNetHeight
 
sal_uInt16 m_nForcedLeftMargin
 
bool m_bFull: 1
 
bool m_bFootnoteDone: 1
 
bool m_bErgoDone: 1
 
bool m_bNumDone: 1
 
bool m_bArrowDone: 1
 
bool m_bStop: 1
 
bool m_bNewLine: 1
 
bool m_bShift: 1
 
bool m_bUnderflow: 1
 
bool m_bInterHyph: 1
 
bool m_bAutoHyph: 1
 
bool m_bDropInit: 1
 
bool m_bQuick: 1
 
bool m_bNoEndHyph: 1
 
bool m_bNoMidHyph: 1
 
bool m_bIgnoreFly: 1
 
bool m_bFakeLineStart: 1
 
bool m_bTabOverflow: 1
 
bool m_bTestFormat: 1
 
sal_Unicode m_cTabDecimal
 
sal_Unicode m_cHookChar
 
sal_uInt8 m_nMaxHyph
 

Additional Inherited Members

- Protected Member Functions inherited from SwTextPaintInfo
 SwTextPaintInfo ()
 
- Protected Member Functions inherited from SwTextSizeInfo
void CtorInitTextSizeInfo (OutputDevice *pRenderContext, SwTextFrame *pFrame, TextFrameIndex nIdx)
 
 SwTextSizeInfo ()
 
- Protected Member Functions inherited from SwTextInfo
 SwTextInfo ()
 
- Protected Attributes inherited from SwTextSizeInfo
SwTextPortionMap m_aMaxWidth
 
std::deque< sal_uInt16 > * m_pKanaComp
 
SwViewShellm_pVsh
 
VclPtr< OutputDevicem_pOut
 
VclPtr< OutputDevicem_pRef
 
std::shared_ptr< const vcl::text::TextLayoutCachem_pCachedVclData
 
SwFontm_pFnt
 
SwUnderlineFontm_pUnderFnt
 
SwTextFramem_pFrame
 
const SwViewOptionm_pOpt
 
const OUString * m_pText
 
TextFrameIndex m_nIdx
 
TextFrameIndex m_nLen
 
TextFrameIndex m_nMeasureLen
 
sal_uInt16 m_nKanaIdx
 
bool m_bOnWin: 1
 
bool m_bNotEOL: 1
 
bool m_bURLNotify: 1
 
bool m_bStopUnderflow: 1
 
bool m_bFootnoteInside: 1
 
bool m_bOtherThanFootnoteInside: 1
 
bool m_bMulti: 1
 
bool m_bFirstMulti: 1
 
bool m_bRuby: 1
 
bool m_bHanging: 1
 
bool m_bScriptSpace: 1
 
bool m_bForbiddenChars: 1
 
bool m_bSnapToGrid: 1
 
sal_uInt8 m_nDirection: 2
 

Detailed Description

Definition at line 461 of file inftxt.hxx.

Constructor & Destructor Documentation

◆ SwTextFormatInfo() [1/2]

SwTextFormatInfo::SwTextFormatInfo ( OutputDevice pRenderContext,
SwTextFrame pFrame,
const bool  bInterHyphL = false,
const bool  bQuickL = false,
const bool  bTst = false 
)

Definition at line 1576 of file inftxt.cxx.

References CtorInitTextFormatInfo().

◆ SwTextFormatInfo() [2/2]

SwTextFormatInfo::SwTextFormatInfo ( const SwTextFormatInfo rInf,
SwLineLayout rLay,
SwTwips  nActWidth 
)

There are a few differences between a copy constructor and the following constructor for multi-line formatting.

The root is the first line inside the multi-portion, the line start is the actual position in the text, the line width is the rest width from the surrounding line and the bMulti and bFirstMulti-flag has to be set correctly.

Definition at line 1590 of file inftxt.cxx.

References SwTextSizeInfo::IsFirstMulti(), SwTextSizeInfo::SetFirstMulti(), and SwTextSizeInfo::SetMulti().

Member Function Documentation

◆ CheckCurrentPosBookmark()

bool SwTextFormatInfo::CheckCurrentPosBookmark ( )

◆ CheckFootnotePortion()

bool SwTextFormatInfo::CheckFootnotePortion ( SwLineLayout const *  pCurr)
inline

Definition at line 652 of file inftxt.hxx.

References CheckFootnotePortion_(), and SwTextSizeInfo::IsFootnoteInside().

Referenced by SwTextFormatter::FormatLine().

◆ CheckFootnotePortion_()

bool SwTextFormatInfo::CheckFootnotePortion_ ( SwLineLayout const *  pCurr)
private

◆ ChgHyph()

bool SwTextFormatInfo::ChgHyph ( const bool  bNew)

◆ ChkNoHyph()

void SwTextFormatInfo::ChkNoHyph ( const sal_uInt8  bEnd,
const sal_uInt8  bMid 
)
inline

Definition at line 570 of file inftxt.hxx.

References m_bNoEndHyph, m_bNoMidHyph, and m_nMaxHyph.

Referenced by SwTextFormatter::BuildPortions(), and SwTextFormatter::FeedInf().

◆ ClearHookChar()

void SwTextFormatInfo::ClearHookChar ( )
inline

Definition at line 623 of file inftxt.hxx.

References m_cHookChar.

Referenced by SwTextFormatter::NewPortion().

◆ ClrUnderflow()

void SwTextFormatInfo::ClrUnderflow ( )
inline

Definition at line 587 of file inftxt.hxx.

References m_bUnderflow.

Referenced by SwTextFormatter::BuildPortions().

◆ CtorInitTextFormatInfo()

void SwTextFormatInfo::CtorInitTextFormatInfo ( OutputDevice pRenderContext,
SwTextFrame pFrame,
const bool  bInterHyph = false,
const bool  bQuick = false,
const bool  bTst = false 
)

◆ First() [1/2]

SwTwips SwTextFormatInfo::First ( ) const
inline

Definition at line 549 of file inftxt.hxx.

References m_nFirst.

Referenced by SwTextFormatter::FeedInf(), SwNumberPortion::Format(), and SwGrfNumPortion::Format().

◆ First() [2/2]

void SwTextFormatInfo::First ( const SwTwips  nNew)
inline

Definition at line 550 of file inftxt.hxx.

References m_nFirst.

◆ ForcedLeftMargin() [1/2]

sal_uInt16 SwTextFormatInfo::ForcedLeftMargin ( ) const
inline

◆ ForcedLeftMargin() [2/2]

void SwTextFormatInfo::ForcedLeftMargin ( const sal_uInt16  nN)
inline

Definition at line 555 of file inftxt.hxx.

References m_nForcedLeftMargin.

◆ GetCharAttr()

const SwAttrSet & SwTextFormatInfo::GetCharAttr ( ) const
inline

◆ GetDropFormat()

const SwFormatDrop * SwTextFormatInfo::GetDropFormat ( ) const

◆ GetFly()

SwFlyPortion * SwTextFormatInfo::GetFly ( )
inline

◆ GetHookChar()

sal_Unicode SwTextFormatInfo::GetHookChar ( ) const
inline

Definition at line 625 of file inftxt.hxx.

References m_cHookChar.

Referenced by SwTextFormatter::NewPortion(), and SwTextFormatter::WhichFirstPortion().

◆ GetHyphValues()

const PropertyValues & SwTextFormatInfo::GetHyphValues ( ) const

Definition at line 1417 of file inftxt.cxx.

References m_aHyphVals.

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

◆ GetLast()

SwLinePortion * SwTextFormatInfo::GetLast ( )
inline

◆ GetLastTab()

SwTabPortion * SwTextFormatInfo::GetLastTab ( )
inline

◆ GetLineHeight()

sal_uInt16 SwTextFormatInfo::GetLineHeight ( ) const
inline

Definition at line 597 of file inftxt.hxx.

References m_nLineHeight.

Referenced by SwTextFormatter::CalcFlyWidth().

◆ GetLineNetHeight()

sal_uInt16 SwTextFormatInfo::GetLineNetHeight ( ) const
inline

Definition at line 599 of file inftxt.hxx.

References m_nLineNetHeight.

Referenced by SwTextFormatter::CalcFlyWidth().

◆ GetLineStart()

TextFrameIndex SwTextFormatInfo::GetLineStart ( ) const
inline

◆ GetLineWidth()

SwTwips SwTextFormatInfo::GetLineWidth ( )

◆ GetReformatStart()

TextFrameIndex SwTextFormatInfo::GetReformatStart ( ) const
inline

◆ GetRest()

SwLinePortion * SwTextFormatInfo::GetRest ( )
inline

◆ GetRoot() [1/2]

SwLineLayout * SwTextFormatInfo::GetRoot ( )
inline

◆ GetRoot() [2/2]

const SwLineLayout * SwTextFormatInfo::GetRoot ( ) const
inline

Definition at line 561 of file inftxt.hxx.

References m_pRoot.

◆ GetSoftHyphPos()

TextFrameIndex SwTextFormatInfo::GetSoftHyphPos ( ) const
inline

◆ GetTabDecimal()

sal_Unicode SwTextFormatInfo::GetTabDecimal ( ) const
inline

Definition at line 620 of file inftxt.hxx.

References m_cTabDecimal.

Referenced by SwTextFormatter::NewPortion(), and ScanPortionEnd().

◆ GetUnderflow() [1/2]

SwLinePortion * SwTextFormatInfo::GetUnderflow ( )
inline

Definition at line 603 of file inftxt.hxx.

References m_pUnderflow.

◆ GetUnderflow() [2/2]

const SwLinePortion * SwTextFormatInfo::GetUnderflow ( ) const
inline

◆ GetUnderScorePos()

TextFrameIndex SwTextFormatInfo::GetUnderScorePos ( ) const
inline

◆ HyphWord()

Reference< XHyphenatedWord > SwTextFormatInfo::HyphWord ( const OUString &  rText,
const sal_Int32  nMinTrail 
)

◆ Init()

void SwTextFormatInfo::Init ( void  )

◆ InitHyph()

bool SwTextFormatInfo::InitHyph ( const bool  bAuto = false)
private

◆ IsArrowDone()

bool SwTextFormatInfo::IsArrowDone ( ) const
inline

Definition at line 634 of file inftxt.hxx.

References m_bArrowDone.

Referenced by SwTextFormatter::FormatLine(), and SwTextFormatter::WhichFirstPortion().

◆ IsDropInit()

bool SwTextFormatInfo::IsDropInit ( ) const
inline

Definition at line 588 of file inftxt.hxx.

References m_bDropInit.

◆ IsErgoDone()

bool SwTextFormatInfo::IsErgoDone ( ) const
inline

◆ IsFakeLineStart()

bool SwTextFormatInfo::IsFakeLineStart ( ) const
inline

Definition at line 575 of file inftxt.hxx.

References m_bFakeLineStart.

Referenced by SwTextPortion::Format_().

◆ IsFootnoteDone()

bool SwTextFormatInfo::IsFootnoteDone ( ) const
inline

◆ IsFull()

bool SwTextFormatInfo::IsFull ( ) const
inline

◆ IsHyphenate()

bool SwTextFormatInfo::IsHyphenate ( ) const

If the Hyphenator returns ERROR or the language is set to NOLANGUAGE we do not hyphenate.

Else, we always hyphenate if we do interactive hyphenation. If we do not do interactive hyphenation, we only hyphenate if ParaFormat is set to automatic hyphenation.

Definition at line 1496 of file inftxt.cxx.

References SfxObjectShell::AppendInfoBarWhenReady(), SvxSpellWrapper::CheckHyphLang(), LanguageTag::convertToBcp47(), g_pBreakIt, SwTextFrame::GetDoc(), SwDoc::GetDocShell(), SwTextSizeInfo::GetFont(), GetHyphenator(), SwFont::GetLanguage(), SwBreakIt::GetLocale(), LANGUAGE_DONTKNOW, LANGUAGE_NONE, m_bAutoHyph, m_bInterHyph, SwTextSizeInfo::m_pFrame, SwResId(), and MsLangId::usesHyphenation().

Referenced by SwSoftHyphPortion::Format(), SwTextPortion::Format_(), and SwTextGuess::Guess().

◆ IsHyphForbud()

bool SwTextFormatInfo::IsHyphForbud ( ) const
inline

◆ IsIgnoreFly()

bool SwTextFormatInfo::IsIgnoreFly ( ) const
inline

Definition at line 573 of file inftxt.hxx.

References m_bIgnoreFly.

Referenced by SwTextFormatter::CalcFlyWidth().

◆ IsInterHyph()

bool SwTextFormatInfo::IsInterHyph ( ) const
inline

Definition at line 585 of file inftxt.hxx.

References m_bInterHyph.

Referenced by SwTextPortion::CreateHyphen(), SwSoftHyphPortion::Format(), and SwTextGuess::Guess().

◆ IsNewLine()

bool SwTextFormatInfo::IsNewLine ( ) const
inline

◆ IsNumDone()

bool SwTextFormatInfo::IsNumDone ( ) const
inline

◆ IsQuick()

bool SwTextFormatInfo::IsQuick ( ) const
inline

Definition at line 590 of file inftxt.hxx.

References m_bQuick.

Referenced by SwTextFormatter::IsQuick(), and SwTextFormatter::NewFootnotePortion().

◆ IsShift()

bool SwTextFormatInfo::IsShift ( ) const
inline

Definition at line 583 of file inftxt.hxx.

References m_bShift.

Referenced by SwTextFrame::FormatLine().

◆ IsStop()

bool SwTextFormatInfo::IsStop ( ) const
inline

◆ IsTabOverflow()

bool SwTextFormatInfo::IsTabOverflow ( ) const
inline

Definition at line 666 of file inftxt.hxx.

References m_bTabOverflow.

Referenced by SwTabPortion::PreFormat().

◆ IsTest()

bool SwTextFormatInfo::IsTest ( ) const
inline

◆ IsUnderflow()

bool SwTextFormatInfo::IsUnderflow ( ) const
inline

◆ LastKernPortion()

bool SwTextFormatInfo::LastKernPortion ( )

◆ Left() [1/2]

SwTwips SwTextFormatInfo::Left ( ) const
inline

◆ Left() [2/2]

void SwTextFormatInfo::Left ( const SwTwips  nNew)
inline

Definition at line 546 of file inftxt.hxx.

References m_nLeft.

◆ LeftMargin()

void SwTextFormatInfo::LeftMargin ( const SwTwips  nNew)
inline

Definition at line 551 of file inftxt.hxx.

References m_nLeftMargin.

Referenced by SwTextFormatter::FeedInf().

◆ MaxHyph() [1/2]

sal_uInt8 & SwTextFormatInfo::MaxHyph ( )
inline

Definition at line 557 of file inftxt.hxx.

References m_nMaxHyph.

Referenced by SwTextFrame::Format_(), SwTextFrame::FormatQuick(), and InitHyph().

◆ MaxHyph() [2/2]

const sal_uInt8 & SwTextFormatInfo::MaxHyph ( ) const
inline

Definition at line 558 of file inftxt.hxx.

References m_nMaxHyph.

◆ RealWidth() [1/2]

sal_uInt16 SwTextFormatInfo::RealWidth ( ) const
inline

◆ RealWidth() [2/2]

void SwTextFormatInfo::RealWidth ( const sal_uInt16  nNew)
inline

Definition at line 553 of file inftxt.hxx.

References m_nRealWidth.

◆ Right() [1/2]

SwTwips SwTextFormatInfo::Right ( ) const
inline

Definition at line 547 of file inftxt.hxx.

References m_nRight.

Referenced by SwTextFormatter::FeedInf().

◆ Right() [2/2]

void SwTextFormatInfo::Right ( const SwTwips  nNew)
inline

Definition at line 548 of file inftxt.hxx.

References m_nRight.

◆ ScanPortionEnd()

TextFrameIndex SwTextFormatInfo::ScanPortionEnd ( TextFrameIndex  nStart,
TextFrameIndex  nEnd 
)

◆ SetArrowDone()

void SwTextFormatInfo::SetArrowDone ( const bool  bNew)
inline

Definition at line 635 of file inftxt.hxx.

References m_bArrowDone.

Referenced by SwTextFormatter::FormatLine(), and SwTextFormatter::WhichFirstPortion().

◆ SetDropInit()

void SwTextFormatInfo::SetDropInit ( const bool  bNew)
inline

Definition at line 589 of file inftxt.hxx.

References m_bDropInit.

Referenced by SwDropPortion::Format(), and SwTextFormatter::FormatLine().

◆ SetErgoDone()

void SwTextFormatInfo::SetErgoDone ( const bool  bNew)
inline

◆ SetFakeLineStart()

void SwTextFormatInfo::SetFakeLineStart ( const bool  bNew)
inline

Definition at line 576 of file inftxt.hxx.

References m_bFakeLineStart.

Referenced by SwFootnotePortion::Format().

◆ SetFly()

void SwTextFormatInfo::SetFly ( SwFlyPortion pNew)
inline

◆ SetFootnoteDone()

void SwTextFormatInfo::SetFootnoteDone ( const bool  bNew)
inline

◆ SetFull()

void SwTextFormatInfo::SetFull ( const bool  bNew)
inline

◆ SetHookChar()

void SwTextFormatInfo::SetHookChar ( const sal_Unicode  cNew)
inline

Definition at line 624 of file inftxt.hxx.

References m_cHookChar.

Referenced by SwFieldPortion::Format().

◆ SetIgnoreFly()

void SwTextFormatInfo::SetIgnoreFly ( const bool  bNew)
inline

◆ SetLast()

void SwTextFormatInfo::SetLast ( SwLinePortion pNewLast)
inline

◆ SetLastTab()

void SwTextFormatInfo::SetLastTab ( SwTabPortion pNew)
inline

Definition at line 619 of file inftxt.hxx.

References m_pLastTab.

Referenced by SwTabPortion::PostFormat(), and SwTabPortion::PreFormat().

◆ SetLineHeight()

void SwTextFormatInfo::SetLineHeight ( const sal_uInt16  nNew)
inline

◆ SetLineNetHeight()

void SwTextFormatInfo::SetLineNetHeight ( const sal_uInt16  nNew)
inline

◆ SetLineStart()

void SwTextFormatInfo::SetLineStart ( TextFrameIndex const  nNew)
inline

Definition at line 594 of file inftxt.hxx.

References m_nLineStart.

Referenced by CtorInitTextFormatInfo(), SwTextFormatter::FeedInf(), and SwFieldPortion::Format().

◆ SetNewLine()

void SwTextFormatInfo::SetNewLine ( const bool  bNew)
inline

◆ SetNumDone()

void SwTextFormatInfo::SetNumDone ( const bool  bNew)
inline

◆ SetParaFootnote()

void SwTextFormatInfo::SetParaFootnote ( )
inline

Definition at line 785 of file inftxt.hxx.

References SwTextSizeInfo::GetTextFrame(), and SwTextFrame::SetFootnote().

Referenced by SwFootnotePortion::Format().

◆ SetRest()

void SwTextFormatInfo::SetRest ( SwLinePortion pNewRest)
inline

◆ SetRoot()

void SwTextFormatInfo::SetRoot ( SwLineLayout pNew)
inline

Definition at line 563 of file inftxt.hxx.

References m_pRoot.

Referenced by SwTextFormatter::FeedInf().

◆ SetShift()

void SwTextFormatInfo::SetShift ( const bool  bNew)
inline

Definition at line 584 of file inftxt.hxx.

References m_bShift.

Referenced by SwTextFormatter::FormatLine().

◆ SetSoftHyphPos()

void SwTextFormatInfo::SetSoftHyphPos ( TextFrameIndex const  nNew)
inline

◆ SetStop()

void SwTextFormatInfo::SetStop ( const bool  bNew)
inline

◆ SetTabDecimal()

void SwTextFormatInfo::SetTabDecimal ( const sal_Unicode  cNew)
inline

◆ SetTabOverflow()

void SwTextFormatInfo::SetTabOverflow ( bool  bOverflow)
inline

Definition at line 665 of file inftxt.hxx.

References m_bTabOverflow.

Referenced by SwTextFormatter::BuildPortions(), and SwTabPortion::PreFormat().

◆ SetUnderflow()

void SwTextFormatInfo::SetUnderflow ( SwLinePortion pNew)
inline

◆ SetUnderScorePos()

void SwTextFormatInfo::SetUnderScorePos ( TextFrameIndex const  nNew)
inline

Definition at line 645 of file inftxt.hxx.

References m_nUnderScorePos.

Referenced by SwFieldPortion::Format(), and SwTextFormatter::Underflow().

◆ Width() [1/2]

sal_uInt16 SwTextFormatInfo::Width ( ) const
inline

◆ Width() [2/2]

void SwTextFormatInfo::Width ( const sal_uInt16  nNew)
inline

Definition at line 532 of file inftxt.hxx.

References m_nWidth.

Member Data Documentation

◆ m_aHyphVals

css::beans::PropertyValues SwTextFormatInfo::m_aHyphVals
private

Definition at line 464 of file inftxt.hxx.

Referenced by GetHyphValues(), and InitHyph().

◆ m_bArrowDone

bool SwTextFormatInfo::m_bArrowDone
private

Definition at line 494 of file inftxt.hxx.

Referenced by Init(), IsArrowDone(), and SetArrowDone().

◆ m_bAutoHyph

bool SwTextFormatInfo::m_bAutoHyph
private

Definition at line 500 of file inftxt.hxx.

Referenced by ChgHyph(), CtorInitTextFormatInfo(), and IsHyphenate().

◆ m_bDropInit

bool SwTextFormatInfo::m_bDropInit
private

Definition at line 501 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), IsDropInit(), and SetDropInit().

◆ m_bErgoDone

bool SwTextFormatInfo::m_bErgoDone
private

Definition at line 492 of file inftxt.hxx.

Referenced by Init(), IsErgoDone(), and SetErgoDone().

◆ m_bFakeLineStart

bool SwTextFormatInfo::m_bFakeLineStart
private

Definition at line 506 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), IsFakeLineStart(), and SetFakeLineStart().

◆ m_bFootnoteDone

bool SwTextFormatInfo::m_bFootnoteDone
private

Definition at line 491 of file inftxt.hxx.

Referenced by Init(), IsFootnoteDone(), and SetFootnoteDone().

◆ m_bFull

bool SwTextFormatInfo::m_bFull
private

Definition at line 490 of file inftxt.hxx.

Referenced by Init(), IsFull(), and SetFull().

◆ m_bIgnoreFly

bool SwTextFormatInfo::m_bIgnoreFly
private

Definition at line 505 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), IsIgnoreFly(), and SetIgnoreFly().

◆ m_bInterHyph

bool SwTextFormatInfo::m_bInterHyph
private

Definition at line 499 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), InitHyph(), IsHyphenate(), and IsInterHyph().

◆ m_bNewLine

bool SwTextFormatInfo::m_bNewLine
private

Definition at line 496 of file inftxt.hxx.

Referenced by Init(), IsNewLine(), and SetNewLine().

◆ m_bNoEndHyph

bool SwTextFormatInfo::m_bNoEndHyph
private

Definition at line 503 of file inftxt.hxx.

Referenced by ChkNoHyph(), Init(), and IsHyphForbud().

◆ m_bNoMidHyph

bool SwTextFormatInfo::m_bNoMidHyph
private

Definition at line 504 of file inftxt.hxx.

Referenced by ChkNoHyph(), Init(), and IsHyphForbud().

◆ m_bNumDone

bool SwTextFormatInfo::m_bNumDone
private

Definition at line 493 of file inftxt.hxx.

Referenced by Init(), IsNumDone(), and SetNumDone().

◆ m_bQuick

bool SwTextFormatInfo::m_bQuick
private

Definition at line 502 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), and IsQuick().

◆ m_bShift

bool SwTextFormatInfo::m_bShift
private

Definition at line 497 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), IsShift(), and SetShift().

◆ m_bStop

bool SwTextFormatInfo::m_bStop
private

Definition at line 495 of file inftxt.hxx.

Referenced by Init(), IsStop(), and SetStop().

◆ m_bTabOverflow

bool SwTextFormatInfo::m_bTabOverflow
private

Definition at line 509 of file inftxt.hxx.

Referenced by Init(), IsTabOverflow(), and SetTabOverflow().

◆ m_bTestFormat

bool SwTextFormatInfo::m_bTestFormat
private

Definition at line 510 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), and IsTest().

◆ m_bUnderflow

bool SwTextFormatInfo::m_bUnderflow
private

Definition at line 498 of file inftxt.hxx.

Referenced by ClrUnderflow(), Init(), IsUnderflow(), and SetUnderflow().

◆ m_cHookChar

sal_Unicode SwTextFormatInfo::m_cHookChar
private

Definition at line 513 of file inftxt.hxx.

Referenced by ClearHookChar(), GetHookChar(), Init(), ScanPortionEnd(), and SetHookChar().

◆ m_cTabDecimal

sal_Unicode SwTextFormatInfo::m_cTabDecimal
private

Definition at line 512 of file inftxt.hxx.

Referenced by GetTabDecimal(), Init(), and SetTabDecimal().

◆ m_nFirst

SwTwips SwTextFormatInfo::m_nFirst
private

Definition at line 481 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), and First().

◆ m_nForcedLeftMargin

sal_uInt16 SwTextFormatInfo::m_nForcedLeftMargin
private

Definition at line 488 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), ForcedLeftMargin(), and Init().

◆ m_nLastBookmarkPos

TextFrameIndex SwTextFormatInfo::m_nLastBookmarkPos
private

need to check for bookmarks at every portion

Definition at line 477 of file inftxt.hxx.

Referenced by CheckCurrentPosBookmark(), and Init().

◆ m_nLeft

SwTwips SwTextFormatInfo::m_nLeft
private

Definition at line 479 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), and Left().

◆ m_nLeftMargin

SwTwips SwTextFormatInfo::m_nLeftMargin = 0
private

First or left margin, depending on context.

Definition at line 483 of file inftxt.hxx.

Referenced by GetLineWidth(), and LeftMargin().

◆ m_nLineHeight

sal_uInt16 SwTextFormatInfo::m_nLineHeight
private

Definition at line 486 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), GetLineHeight(), and SetLineHeight().

◆ m_nLineNetHeight

sal_uInt16 SwTextFormatInfo::m_nLineNetHeight
private

Definition at line 487 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), GetLineNetHeight(), and SetLineNetHeight().

◆ m_nLineStart

TextFrameIndex SwTextFormatInfo::m_nLineStart
private

Current line start in rText.

Definition at line 475 of file inftxt.hxx.

Referenced by GetLineStart(), and SetLineStart().

◆ m_nMaxHyph

sal_uInt8 SwTextFormatInfo::m_nMaxHyph
private

Definition at line 514 of file inftxt.hxx.

Referenced by ChkNoHyph(), and MaxHyph().

◆ m_nRealWidth

sal_uInt16 SwTextFormatInfo::m_nRealWidth
private

Definition at line 484 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), Init(), and RealWidth().

◆ m_nRight

SwTwips SwTextFormatInfo::m_nRight
private

Definition at line 480 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), and Right().

◆ m_nSoftHyphPos

TextFrameIndex SwTextFormatInfo::m_nSoftHyphPos
private

SoftHyphPos for Hyphenation.

Definition at line 474 of file inftxt.hxx.

Referenced by GetSoftHyphPos(), Init(), and SetSoftHyphPos().

◆ m_nUnderScorePos

TextFrameIndex SwTextFormatInfo::m_nUnderScorePos
private

enlarge repaint if underscore has been found

Definition at line 476 of file inftxt.hxx.

Referenced by GetUnderScorePos(), Init(), ScanPortionEnd(), and SetUnderScorePos().

◆ m_nWidth

sal_uInt16 SwTextFormatInfo::m_nWidth
private

Definition at line 485 of file inftxt.hxx.

Referenced by Init(), and Width().

◆ m_pFly

SwFlyPortion* SwTextFormatInfo::m_pFly
private

Definition at line 468 of file inftxt.hxx.

Referenced by GetFly(), Init(), IsHyphForbud(), and SetFly().

◆ m_pLast

SwLinePortion* SwTextFormatInfo::m_pLast
private

Definition at line 467 of file inftxt.hxx.

Referenced by GetLast(), Init(), and SetLast().

◆ m_pLastTab

SwTabPortion* SwTextFormatInfo::m_pLastTab
private

Definition at line 472 of file inftxt.hxx.

Referenced by GetLastTab(), Init(), and SetLastTab().

◆ m_pRest

SwLinePortion* SwTextFormatInfo::m_pRest
private

Definition at line 470 of file inftxt.hxx.

Referenced by CtorInitTextFormatInfo(), GetRest(), and SetRest().

◆ m_pRoot

SwLineLayout* SwTextFormatInfo::m_pRoot
private

Definition at line 466 of file inftxt.hxx.

Referenced by GetRoot(), Init(), and SetRoot().

◆ m_pUnderflow

SwLinePortion* SwTextFormatInfo::m_pUnderflow
private

Definition at line 469 of file inftxt.hxx.

Referenced by GetUnderflow(), Init(), and SetUnderflow().


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