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

Text portion for the Format -> Paragraph -> Drop Caps functionality. More...

#include <pordrop.hxx>

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

Public Member Functions

 SwDropPortion (const sal_uInt16 nLineCnt, const sal_uInt16 nDropHeight, const sal_uInt16 nDropDescent, const sal_uInt16 nDistance)
 SwDropPortion CTor, DTor. More...
 
virtual ~SwDropPortion () override
 
virtual void Paint (const SwTextPaintInfo &rInf) const override
 
void PaintDrop (const SwTextPaintInfo &rInf) const
 
virtual bool Format (SwTextFormatInfo &rInf) override
 
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const override
 
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const override
 the parameter is actually SwTwips apparently? More...
 
sal_uInt16 GetLines () const
 
sal_uInt16 GetDistance () const
 
sal_uInt16 GetDropHeight () const
 
sal_uInt16 GetDropDescent () const
 
sal_uInt16 GetDropLeft () const
 
SwDropPortionPartGetPart () const
 
void SetPart (std::unique_ptr< SwDropPortionPart > pNew)
 
void SetY (short nNew)
 
SwFontGetFnt () const
 
- Public Member Functions inherited from SwTextPortion
 SwTextPortion ()
 
virtual void Paint (const SwTextPaintInfo &rInf) const override
 
virtual bool Format (SwTextFormatInfo &rInf) override
 
virtual void FormatEOL (SwTextFormatInfo &rInf) override
 
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const override
 the parameter is actually SwTwips apparently? More...
 
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const override
 
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const override
 
virtual tools::Long CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const override
 
TextFrameIndex GetSpaceCnt (const SwTextSizeInfo &rInf, TextFrameIndex &rCnt) const
 
bool CreateHyphen (SwTextFormatInfo &rInf, SwTextGuess const &rGuess)
 
virtual void HandlePortion (SwPortionHandler &rPH) const override
 
- Public Member Functions inherited from SwLinePortion
 SwLinePortion (const SwLinePortion &rPortion)
 
virtual ~SwLinePortion ()
 
SwLinePortionGetNextPortion () const
 
SwLinePortionoperator= (const SwLinePortion &rPortion)
 
TextFrameIndex GetLen () const
 
void SetLen (TextFrameIndex const nLen)
 
void SetNextPortion (SwLinePortion *pNew)
 
SwTwipsGetAscent ()
 
SwTwips GetAscent () const
 
void SetAscent (const SwTwips nNewAsc)
 
void PrtWidth (SwTwips nNewWidth)
 
SwTwips PrtWidth () const
 
void AddPrtWidth (const SwTwips nNew)
 
void SubPrtWidth (const SwTwips nNew)
 
SwTwips ExtraBlankWidth () const
 
void ExtraBlankWidth (const SwTwips nNew)
 
SwTwips GetHangingBaseline () const
 
void SetHangingBaseline (const SwTwips nNewBaseline)
 
virtual SwLinePortionInsert (SwLinePortion *pPortion)
 
virtual SwLinePortionAppend (SwLinePortion *pPortion)
 
SwLinePortionCut (SwLinePortion *pVictim)
 
void Truncate ()
 
virtual SwLinePortionCompress ()
 
void SetWhichPor (const PortionType nNew)
 
PortionType GetWhichPor () const
 
bool InTextGrp () const
 
bool InGlueGrp () const
 
bool InTabGrp () const
 
bool InHyphGrp () const
 
bool InNumberGrp () const
 
bool InFixGrp () const
 
bool InFieldGrp () const
 
bool InToxRefGrp () const
 
bool InToxRefOrFieldGrp () const
 
bool InExpGrp () const
 
bool InFixMargGrp () const
 
bool InSpaceGrp () const
 
bool IsGrfNumPortion () const
 
bool IsFlyCntPortion () const
 
bool IsBlankPortion () const
 
bool IsBreakPortion () const
 
bool IsErgoSumPortion () const
 
bool IsQuoVadisPortion () const
 
bool IsTabLeftPortion () const
 
bool IsTabRightPortion () const
 
bool IsTabCenterPortion () const
 
bool IsTabDecimalPortion () const
 
bool IsFootnoteNumPortion () const
 
bool IsFootnotePortion () const
 
bool IsDropPortion () const
 
bool IsLayPortion () const
 
bool IsParaPortion () const
 
bool IsMarginPortion () const
 
bool IsFlyPortion () const
 
bool IsHolePortion () const
 
bool IsSoftHyphPortion () const
 
bool IsPostItsPortion () const
 
bool IsCombinedPortion () const
 
bool IsTextPortion () const
 
bool IsHangingPortion () const
 
bool IsKernPortion () const
 
bool IsArrowPortion () const
 
bool IsMultiPortion () const
 
bool IsNumberPortion () const
 
bool IsControlCharPortion () const
 
SwLinePortionFindPrevPortion (const SwLinePortion *pRoot)
 
SwLinePortionFindLastPortion ()
 
virtual TextFrameIndex GetModelPositionForViewPoint (sal_uInt16 nOfst) const
 the parameter is actually SwTwips apparently? More...
 
virtual SwPosSize GetTextSize (const SwTextSizeInfo &rInfo) const
 
void CalcTextSize (const SwTextSizeInfo &rInfo)
 
virtual void Paint (const SwTextPaintInfo &rInf) const =0
 
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
 
virtual bool Format (SwTextFormatInfo &rInf)
 
virtual void FormatEOL (SwTextFormatInfo &rInf)
 
void Move (SwTextPaintInfo &rInf)
 
virtual bool GetExpText (const SwTextSizeInfo &rInf, OUString &rText) const
 
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) const
 
virtual tools::Long CalcSpacing (tools::Long nSpaceAdd, const SwTextSizeInfo &rInf) const
 
virtual void HandlePortion (SwPortionHandler &rPH) const
 
bool GetJoinBorderWithPrev () const
 
bool GetJoinBorderWithNext () const
 
void SetJoinBorderWithPrev (const bool bJoinPrev)
 
void SetJoinBorderWithNext (const bool bJoinNext)
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter, const OUString &rText, TextFrameIndex &rOffset) const
 
void dumpAsXmlAttributes (xmlTextWriterPtr writer, std::u16string_view rText, TextFrameIndex nOffset) const
 
- Public Member Functions inherited from SwPosSize
 SwPosSize (const SwTwips nW=0, const SwTwips nH=0)
 
 SwPosSize (const Size &rSize)
 
virtual ~SwPosSize ()
 
 SwPosSize (SwPosSize const &)=default
 
 SwPosSize (SwPosSize &&)=default
 
SwPosSizeoperator= (SwPosSize const &)=default
 
SwPosSizeoperator= (SwPosSize &&)=default
 
SwTwips Height () const
 
virtual void Height (const SwTwips nNew, const bool=true)
 
SwTwips Width () const
 
void Width (const SwTwips nNew)
 
Size SvLSize () const
 
void SvLSize (const Size &rSize)
 
void SvXSize (const Size &rSize)
 
SwPosSizeoperator= (const Size &rSize)
 

Static Public Member Functions

static void DeleteDropCapCache ()
 
- Static Public Member Functions inherited from SwTextPortion
static SwTextPortionCopyLinePortion (const SwLinePortion &rPortion)
 

Private Member Functions

bool FormatText (SwTextFormatInfo &rInf)
 
void PaintText (const SwTextPaintInfo &rInf) const
 Manipulate the width, otherwise the chars are being stretched. More...
 

Private Attributes

std::unique_ptr< SwDropPortionPartm_pPart
 
sal_uInt16 m_nLines
 
sal_uInt16 m_nDropHeight
 
sal_uInt16 m_nDropDescent
 
sal_uInt16 m_nDistance
 
sal_uInt16 m_nFix
 
short m_nY
 

Friends

class SwDropCapCache
 

Additional Inherited Members

- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
 
- Protected Attributes inherited from SwLinePortion
SwLinePortionmpNextPortion
 
TextFrameIndex mnLineLength
 
SwTwips mnAscent
 
SwTwips mnHangingBaseline
 

Detailed Description

Text portion for the Format -> Paragraph -> Drop Caps functionality.

Definition at line 64 of file pordrop.hxx.

Constructor & Destructor Documentation

◆ SwDropPortion()

SwDropPortion::SwDropPortion ( const sal_uInt16  nLineCnt,
const sal_uInt16  nDropHeight,
const sal_uInt16  nDropDescent,
const sal_uInt16  nDistance 
)

SwDropPortion CTor, DTor.

Definition at line 105 of file txtdrop.cxx.

References Drop, and SwLinePortion::SetWhichPor().

◆ ~SwDropPortion()

SwDropPortion::~SwDropPortion ( )
overridevirtual

Definition at line 119 of file txtdrop.cxx.

References m_pPart.

Member Function Documentation

◆ DeleteDropCapCache()

void SwDropPortion::DeleteDropCapCache ( )
static

Definition at line 711 of file txtdrop.cxx.

References pDropCapCache.

Referenced by TextFinit().

◆ Format()

bool SwDropPortion::Format ( SwTextFormatInfo rInf)
overridevirtual

◆ FormatText()

bool SwDropPortion::FormatText ( SwTextFormatInfo rInf)
private

◆ GetDistance()

sal_uInt16 SwDropPortion::GetDistance ( ) const
inline

Definition at line 92 of file pordrop.hxx.

References m_nDistance.

Referenced by Format().

◆ GetDropDescent()

sal_uInt16 SwDropPortion::GetDropDescent ( ) const
inline

◆ GetDropHeight()

sal_uInt16 SwDropPortion::GetDropHeight ( ) const
inline

◆ GetDropLeft()

sal_uInt16 SwDropPortion::GetDropLeft ( ) const
inline

Definition at line 95 of file pordrop.hxx.

References m_nFix, and SwPosSize::Width().

Referenced by SwTextMargin::DropInit().

◆ GetFnt()

SwFont * SwDropPortion::GetFnt ( ) const
inline

Definition at line 102 of file pordrop.hxx.

References m_pPart.

Referenced by SwTextNode::GetDropSize(), and SwTextCursor::GetModelPositionForViewPoint().

◆ GetLines()

sal_uInt16 SwDropPortion::GetLines ( ) const
inline

◆ GetModelPositionForViewPoint()

TextFrameIndex SwDropPortion::GetModelPositionForViewPoint ( sal_uInt16  nOfst) const
overridevirtual

the parameter is actually SwTwips apparently?

Reimplemented from SwTextPortion.

Definition at line 479 of file txtdrop.cxx.

◆ GetPart()

SwDropPortionPart * SwDropPortion::GetPart ( ) const
inline

◆ GetTextSize()

SwPosSize SwDropPortion::GetTextSize ( const SwTextSizeInfo rInfo) const
overridevirtual

◆ Paint()

void SwDropPortion::Paint ( const SwTextPaintInfo rInf) const
overridevirtual

◆ PaintDrop()

void SwDropPortion::PaintDrop ( const SwTextPaintInfo rInf) const

◆ PaintText()

void SwDropPortion::PaintText ( const SwTextPaintInfo rInf) const
private

◆ SetPart()

void SwDropPortion::SetPart ( std::unique_ptr< SwDropPortionPart pNew)
inline

Definition at line 98 of file pordrop.hxx.

References m_pPart.

Referenced by SwTextFormatter::NewDropPortion().

◆ SetY()

void SwDropPortion::SetY ( short  nNew)
inline

Definition at line 100 of file pordrop.hxx.

References m_nY.

Referenced by SwDropCapCache::CalcFontSize().

Friends And Related Function Documentation

◆ SwDropCapCache

friend class SwDropCapCache
friend

Definition at line 66 of file pordrop.hxx.

Referenced by Format().

Member Data Documentation

◆ m_nDistance

sal_uInt16 SwDropPortion::m_nDistance
private

Definition at line 71 of file pordrop.hxx.

Referenced by Format(), and GetDistance().

◆ m_nDropDescent

sal_uInt16 SwDropPortion::m_nDropDescent
private

Definition at line 70 of file pordrop.hxx.

Referenced by GetDropDescent(), and PaintDrop().

◆ m_nDropHeight

sal_uInt16 SwDropPortion::m_nDropHeight
private

Definition at line 69 of file pordrop.hxx.

Referenced by Format(), GetDropHeight(), Paint(), PaintDrop(), and PaintText().

◆ m_nFix

sal_uInt16 SwDropPortion::m_nFix
private

Definition at line 72 of file pordrop.hxx.

Referenced by Format(), and GetDropLeft().

◆ m_nLines

sal_uInt16 SwDropPortion::m_nLines
private

Definition at line 68 of file pordrop.hxx.

Referenced by Format(), GetLines(), Paint(), PaintDrop(), and PaintText().

◆ m_nY

short SwDropPortion::m_nY
private

Definition at line 73 of file pordrop.hxx.

Referenced by PaintText(), and SetY().

◆ m_pPart

std::unique_ptr<SwDropPortionPart> SwDropPortion::m_pPart
private

Definition at line 67 of file pordrop.hxx.

Referenced by Format(), GetFnt(), GetPart(), Paint(), PaintDrop(), PaintText(), SetPart(), and ~SwDropPortion().


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