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

#include <inftxt.hxx>

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

Public Member Functions

 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 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
 
void DrawViewOpt (const SwLinePortion &rPor, PortionType nWhich) 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 ()
 
long GetSpaceAdd () const
 
void SetpSpaceAdd (std::vector< long > *pNew)
 
std::vector< 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::unique_ptr< 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::TextLayoutCache const *=nullptr) const
 
SwPosSize GetTextSize (const SwScriptInfo *pSI, TextFrameIndex nIdx, TextFrameIndex nLen) const
 
SwPosSize GetTextSize (const OUString &rText) const
 
TextFrameIndex GetTextBreak (const long nLineWidth, const TextFrameIndex nMaxLen, const sal_uInt16 nComp, vcl::TextLayoutCache const *) const
 
TextFrameIndex GetTextBreak (const long nLineWidth, const TextFrameIndex nMaxLen, const sal_uInt16 nComp, TextFrameIndex &rExtraCharPos, vcl::TextLayoutCache const *) const
 
sal_uInt16 GetAscent () const
 
TextFrameIndex GetIdx () const
 
void SetIdx (const TextFrameIndex nNew)
 
TextFrameIndex GetLen () const
 
void SetLen (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< vcl::TextLayoutCache > & GetCachedVclData () const
 
void SetCachedVclData (std::shared_ptr< vcl::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
 

Protected Member Functions

 SwTextPaintInfo ()
 
- Protected Member Functions inherited from SwTextSizeInfo
void CtorInitTextSizeInfo (OutputDevice *pRenderContext, SwTextFrame *pFrame, TextFrameIndex nIdx)
 
 SwTextSizeInfo ()
 
- Protected Member Functions inherited from SwTextInfo
 SwTextInfo ()
 

Private Member Functions

void DrawText_ (const OUString &rText, const SwLinePortion &rPor, const TextFrameIndex nIdx, const TextFrameIndex nLen, const bool bKern, const bool bWrong=false, const bool bSmartTag=false, const bool bGrammarCheck=false)
 
SwTextPaintInfooperator= (const SwTextPaintInfo &)=delete
 

Private Attributes

sw::WrongListIteratorm_pWrongList
 
sw::WrongListIteratorm_pGrammarCheckList
 
sw::WrongListIteratorm_pSmartTags
 
std::vector< long > * pSpaceAdd
 
const SvxBrushItempBrushItem
 
SwTextFly aTextFly
 
Point aPos
 
SwRect aPaintRect
 
sal_uInt16 nSpaceIdx
 

Additional Inherited Members

- 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< vcl::TextLayoutCachem_pCachedVclData
 
SwFontm_pFnt
 
SwUnderlineFontm_pUnderFnt
 
SwTextFramem_pFrame
 
const SwViewOptionm_pOpt
 
const OUString * m_pText
 
TextFrameIndex m_nIdx
 
TextFrameIndex m_nLen
 
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 352 of file inftxt.hxx.

Constructor & Destructor Documentation

SwTextPaintInfo::SwTextPaintInfo ( )
inlineprotected

Definition at line 373 of file inftxt.hxx.

SwTextPaintInfo::SwTextPaintInfo ( const SwTextPaintInfo rInf)

Definition at line 511 of file inftxt.cxx.

SwTextPaintInfo::SwTextPaintInfo ( const SwTextPaintInfo rInf,
const OUString *  pText 
)

Definition at line 498 of file inftxt.cxx.

SwTextPaintInfo::SwTextPaintInfo ( SwTextFrame pFrame,
const SwRect rPaint 
)

Member Function Documentation

void SwTextPaintInfo::CalcRect ( const SwLinePortion rPor,
SwRect pRect,
SwRect pIntersect = nullptr,
const bool  bInsideBox = false 
) const
void SwTextPaintInfo::CtorInitTextPaintInfo ( OutputDevice pRenderContext,
SwTextFrame pFrame,
const SwRect rPaint 
)
void SwTextPaintInfo::DrawBackBrush ( const SwLinePortion rPor) const
void SwTextPaintInfo::DrawBackground ( const SwLinePortion rPor) const
void SwTextPaintInfo::DrawBorder ( const SwLinePortion rPor) const

Draw character border around a line portion.

Parameters
[in]rPorline portion around which border have to be drawn.

Definition at line 1271 of file inftxt.cxx.

References CalcRect(), SwLinePortion::GetJoinBorderWithNext(), SwLinePortion::GetJoinBorderWithPrev(), SwTextSizeInfo::GetTextFrame(), SwRect::HasArea(), SwTextSizeInfo::m_pFnt, and PaintCharacterBorder().

Referenced by SwExpandPortion::Paint(), SwTabPortion::Paint(), SwTextPortion::Paint(), and SwKernPortion::Paint().

void SwTextPaintInfo::DrawCheckBox ( const SwFieldFormCheckboxPortion rPor,
bool  bChecked 
) const
void SwTextPaintInfo::DrawLineBreak ( const SwLinePortion rPor) const
void SwTextPaintInfo::DrawMarkedText ( const SwLinePortion rPor,
TextFrameIndex  nLen,
const bool  bWrong,
const bool  bSmartTags,
const bool  bGrammarCheck 
) const
inline

Definition at line 767 of file inftxt.hxx.

References DrawText_().

Referenced by SwExpandPortion::Paint(), and SwTextPortion::Paint().

void SwTextPaintInfo::DrawPostIts ( bool  bScript) const
void SwTextPaintInfo::DrawRect ( const SwRect rRect,
bool  bRetouche 
) const
void SwTextPaintInfo::DrawRedArrow ( const SwLinePortion rPor) const
void SwTextPaintInfo::DrawTab ( const SwLinePortion rPor) const
void SwTextPaintInfo::DrawText ( const OUString &  rText,
const SwLinePortion rPor,
TextFrameIndex  nIdx = TextFrameIndex(0),
TextFrameIndex  nLen = TextFrameIndex(COMPLETE_STRING),
const bool  bKern = false 
) const
inline
void SwTextPaintInfo::DrawText ( const SwLinePortion rPor,
TextFrameIndex  nLen,
const bool  bKern = false 
) const
inline

Definition at line 761 of file inftxt.hxx.

References DrawText_().

void SwTextPaintInfo::DrawText_ ( const OUString &  rText,
const SwLinePortion rPor,
const TextFrameIndex  nIdx,
const TextFrameIndex  nLen,
const bool  bKern,
const bool  bWrong = false,
const bool  bSmartTag = false,
const bool  bGrammarCheck = false 
)
private

Definition at line 562 of file inftxt.cxx.

References Point::AdjustX(), Point::AdjustY(), aPos, SwFont::DrawStretchText_(), SwFont::DrawText_(), SwTextFly::DrawTextOpaque(), SwSmartTagMgr::Get(), SwViewShell::GetAccessibilityOptions(), SwLinePortion::GetAscent(), SwRootFrame::GetCurrShell(), SwTextSizeInfo::GetFont(), SwTextSizeInfo::GetKanaComp(), SwFont::GetLeftBorder(), SwFont::GetLeftBorderSpace(), SwLinePortion::GetNextPortion(), SwTextSizeInfo::GetOpt(), SwFont::GetOrientation(), SwTextSizeInfo::GetOut(), SwTextInfo::GetParaPortion(), SvtLinguConfig::GetProperty(), SwFrame::getRootFrame(), SwParaPortion::GetScriptInfo(), GetSpaceAdd(), GetTextFly(), SwTextSizeInfo::GetTextFrame(), SwPosSize::Height(), SwLinePortion::InFieldGrp(), SwLinePortion::InFixMargGrp(), SwLinePortion::InNumberGrp(), SwBlink::Insert(), SwLinePortion::InTextGrp(), SwViewOption::IsBlank(), SwLinePortion::IsBlankPortion(), SwLinePortion::IsDropPortion(), SwLinePortion::IsHolePortion(), SwTextSizeInfo::IsMulti(), SwTextSizeInfo::IsNoSymbol(), SwViewOption::IsOnlineSpell(), SwViewOption::IsPagePreview(), SwViewShell::IsPreview(), SmartTagMgr::IsSmartTagsEnabled(), SwAccessibilityOptions::IsStopAnimatedText(), SwFrame::IsVertical(), SwBlink::IsVisible(), SwTextSizeInfo::m_pFnt, SwTextSizeInfo::m_pFrame, m_pGrammarCheckList, SwTextSizeInfo::m_pOut, m_pSmartTags, SwTextSizeInfo::m_pUnderFnt, m_pWrongList, SwTextSizeInfo::OnWin(), pBlink, SwDrawTextInfo::SetUnderFnt(), Point::setX(), Point::setY(), SwTextSizeInfo::SnapToGrid(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), UPN_IS_GRAMMAR_AUTO, SwPosSize::Width(), Point::X(), and Point::Y().

Referenced by DrawMarkedText(), and DrawText().

void SwTextPaintInfo::DrawViewOpt ( const SwLinePortion rPor,
PortionType  nWhich 
) const
const SvxBrushItem* SwTextPaintInfo::GetBrushItem ( ) const
inline

Definition at line 388 of file inftxt.hxx.

References pBrushItem.

sw::WrongListIterator* SwTextPaintInfo::GetGrammarCheckList ( ) const
inline

Definition at line 465 of file inftxt.hxx.

References m_pGrammarCheckList.

Referenced by SwExpandPortion::Paint(), and SwTextPortion::Paint().

SwTwips SwTextPaintInfo::GetPaintOfst ( ) const
inline
const SwRect& SwTextPaintInfo::GetPaintRect ( ) const
inline
const Point& SwTextPaintInfo::GetPos ( ) const
inline
std::vector<long>* SwTextPaintInfo::GetpSpaceAdd ( ) const
inline

Definition at line 459 of file inftxt.hxx.

References pSpaceAdd.

Referenced by SwSpaceManipulator::SwSpaceManipulator().

sw::WrongListIterator* SwTextPaintInfo::GetpWrongList ( ) const
inline

Definition at line 462 of file inftxt.hxx.

References m_pWrongList.

Referenced by SwTextPortion::Paint().

sw::WrongListIterator* SwTextPaintInfo::GetSmartTags ( ) const
inline

Definition at line 468 of file inftxt.hxx.

References m_pSmartTags.

Referenced by SwExpandPortion::Paint(), and SwTextPortion::Paint().

long SwTextPaintInfo::GetSpaceAdd ( ) const
inline
sal_uInt16 SwTextPaintInfo::GetSpaceIdx ( ) const
inline

Definition at line 449 of file inftxt.hxx.

References nSpaceIdx.

Referenced by SwSpaceManipulator::SwSpaceManipulator().

SwTextFly& SwTextPaintInfo::GetTextFly ( )
inline
const SwTextFly& SwTextPaintInfo::GetTextFly ( ) const
inline

Definition at line 398 of file inftxt.hxx.

References aTextFly.

void SwTextPaintInfo::IncSpaceIdx ( )
inline

Definition at line 452 of file inftxt.hxx.

References nSpaceIdx.

Referenced by SwLinePortion::Move().

SwTextPaintInfo& SwTextPaintInfo::operator= ( const SwTextPaintInfo )
privatedelete
void SwTextPaintInfo::RemoveFirstSpaceAdd ( )
inline
void SwTextPaintInfo::ResetSpaceIdx ( )
inline
void SwTextPaintInfo::SetGrammarCheckList ( sw::WrongListIterator *const  pNew)
inline

Definition at line 464 of file inftxt.hxx.

Referenced by SwTextFrame::PaintSwFrame().

void SwTextPaintInfo::SetPaintOfst ( const SwTwips  nNew)
inline
void SwTextPaintInfo::SetPos ( const Point rNew)
inline
void SwTextPaintInfo::SetpSpaceAdd ( std::vector< long > *  pNew)
inline
void SwTextPaintInfo::SetSmartTags ( sw::WrongListIterator *const  pNew)
inline

Definition at line 467 of file inftxt.hxx.

Referenced by SwTextFrame::PaintSwFrame().

void SwTextPaintInfo::SetSpaceIdx ( sal_uInt16  nNew)
inline
void SwTextPaintInfo::SetWrongList ( sw::WrongListIterator *const  pNew)
inline

Definition at line 461 of file inftxt.hxx.

Referenced by SwTextFrame::PaintSwFrame().

SwTwips SwTextPaintInfo::X ( ) const
inline
void SwTextPaintInfo::X ( const long  nNew)
inline

Definition at line 393 of file inftxt.hxx.

References Point::setX().

SwTwips SwTextPaintInfo::Y ( ) const
inline
void SwTextPaintInfo::Y ( const SwTwips  nNew)
inline

Definition at line 395 of file inftxt.hxx.

References Point::setY().

Member Data Documentation

SwRect SwTextPaintInfo::aPaintRect
private

Definition at line 361 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), and GetPaintRect().

Point SwTextPaintInfo::aPos
private

Definition at line 360 of file inftxt.hxx.

Referenced by DrawPostIts(), DrawText_(), and GetPos().

SwTextFly SwTextPaintInfo::aTextFly
private

Definition at line 359 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), DrawRect(), and GetTextFly().

sw::WrongListIterator* SwTextPaintInfo::m_pGrammarCheckList
private

Definition at line 355 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), DrawText_(), and GetGrammarCheckList().

sw::WrongListIterator* SwTextPaintInfo::m_pSmartTags
private

Definition at line 356 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), DrawText_(), and GetSmartTags().

sw::WrongListIterator* SwTextPaintInfo::m_pWrongList
private

Definition at line 354 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), DrawText_(), and GetpWrongList().

sal_uInt16 SwTextPaintInfo::nSpaceIdx
private

Definition at line 363 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), GetSpaceAdd(), GetSpaceIdx(), and IncSpaceIdx().

const SvxBrushItem* SwTextPaintInfo::pBrushItem
private

Definition at line 358 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), and GetBrushItem().

std::vector<long>* SwTextPaintInfo::pSpaceAdd
private

Definition at line 357 of file inftxt.hxx.

Referenced by CtorInitTextPaintInfo(), and GetpSpaceAdd().


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