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:
Collaboration diagram for SwDropPortion:

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 FormatEOL (SwTextFormatInfo &rInf) 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 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 ()
void CalcTextSize (const SwTextSizeInfo &rInfo)
void PrePaint (const SwTextPaintInfo &rInf, const SwLinePortion *pLast) const
void Move (SwTextPaintInfo &rInf)
virtual sal_uInt16 GetViewWidth (const SwTextSizeInfo &rInf) 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


class SwDropCapCache

Additional Inherited Members

- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
- Protected Attributes inherited from SwLinePortion
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 ( const sal_uInt16  nLineCnt,
const sal_uInt16  nDropHeight,
const sal_uInt16  nDropDescent,
const sal_uInt16  nDistance 

SwDropPortion CTor, DTor.

Definition at line 104 of file txtdrop.cxx.

References Drop, and SwLinePortion::SetWhichPor().

SwDropPortion::~SwDropPortion ( )

Definition at line 118 of file txtdrop.cxx.

References m_pPart.

Member Function Documentation

void SwDropPortion::DeleteDropCapCache ( )

Definition at line 710 of file txtdrop.cxx.

References pDropCapCache.

Referenced by TextFinit().

bool SwDropPortion::Format ( SwTextFormatInfo rInf)
bool SwDropPortion::FormatText ( SwTextFormatInfo rInf)
sal_uInt16 SwDropPortion::GetDistance ( ) const

Definition at line 92 of file pordrop.hxx.

References m_nDistance.

Referenced by Format().

sal_uInt16 SwDropPortion::GetDropDescent ( ) const

Definition at line 94 of file pordrop.hxx.

References m_nDropDescent.

Referenced by SwTextMargin::DropInit(), and SwTextNode::GetDropSize().

sal_uInt16 SwDropPortion::GetDropHeight ( ) const
sal_uInt16 SwDropPortion::GetDropLeft ( ) const

Definition at line 95 of file pordrop.hxx.

References m_nFix, and SwPosSize::Width().

Referenced by SwTextMargin::DropInit().

SwFont* SwDropPortion::GetFnt ( ) const

Definition at line 102 of file pordrop.hxx.

Referenced by SwTextNode::GetDropSize().

sal_uInt16 SwDropPortion::GetLines ( ) const

Definition at line 91 of file pordrop.hxx.

References m_nLines.

Referenced by SwTextMargin::DropInit(), and SwTextFormatter::MergeCharacterBorder().

TextFrameIndex SwDropPortion::GetModelPositionForViewPoint ( sal_uInt16  nOfst) const

the parameter is actually SwTwips apparently?

Reimplemented from SwTextPortion.

Definition at line 478 of file txtdrop.cxx.

SwDropPortionPart* SwDropPortion::GetPart ( ) const
SwPosSize SwDropPortion::GetTextSize ( const SwTextSizeInfo rInfo) const
void SwDropPortion::Paint ( const SwTextPaintInfo rInf) const
void SwDropPortion::PaintDrop ( const SwTextPaintInfo rInf) const
void SwDropPortion::PaintText ( const SwTextPaintInfo rInf) const
void SwDropPortion::SetPart ( std::unique_ptr< SwDropPortionPart pNew)

Definition at line 98 of file pordrop.hxx.

Referenced by SwTextFormatter::NewDropPortion().

void SwDropPortion::SetY ( short  nNew)

Definition at line 100 of file pordrop.hxx.

Referenced by SwDropCapCache::CalcFontSize().

Friends And Related Function Documentation

friend class SwDropCapCache

Definition at line 66 of file pordrop.hxx.

Referenced by Format().

Member Data Documentation

sal_uInt16 SwDropPortion::m_nDistance

Definition at line 71 of file pordrop.hxx.

Referenced by Format(), and GetDistance().

sal_uInt16 SwDropPortion::m_nDropDescent

Definition at line 70 of file pordrop.hxx.

Referenced by GetDropDescent(), and PaintDrop().

sal_uInt16 SwDropPortion::m_nDropHeight

Definition at line 69 of file pordrop.hxx.

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

sal_uInt16 SwDropPortion::m_nFix

Definition at line 72 of file pordrop.hxx.

Referenced by Format(), and GetDropLeft().

sal_uInt16 SwDropPortion::m_nLines

Definition at line 68 of file pordrop.hxx.

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

short SwDropPortion::m_nY

Definition at line 73 of file pordrop.hxx.

Referenced by PaintText().

std::unique_ptr<SwDropPortionPart> SwDropPortion::m_pPart

Definition at line 67 of file pordrop.hxx.

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

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