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

#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 GetCursorOfst (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 long CalcSpacing (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)
sal_uInt16 & GetAscent ()
sal_uInt16 GetAscent () const
void SetAscent (const sal_uInt16 nNewAsc)
void PrtWidth (sal_uInt16 nNewWidth)
sal_uInt16 PrtWidth () const
void AddPrtWidth (const sal_uInt16 nNew)
void SubPrtWidth (const sal_uInt16 nNew)
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 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)
- Public Member Functions inherited from SwPosSize
 SwPosSize (const sal_uInt16 nW=0, const sal_uInt16 nH=0)
 SwPosSize (const Size &rSize)
sal_uInt16 Height () const
void Height (const sal_uInt16 nNew)
sal_uInt16 Width () const
void Width (const sal_uInt16 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< SwDropPortionPartpPart
sal_uInt16 nLines
sal_uInt16 nDropHeight
sal_uInt16 const nDropDescent
sal_uInt16 nDistance
sal_uInt16 nFix
short nY


class SwDropCapCache

Additional Inherited Members

- Protected Member Functions inherited from SwLinePortion
 SwLinePortion ()
- Protected Attributes inherited from SwLinePortion
TextFrameIndex nLineLength
sal_uInt16 nAscent

Detailed Description

Definition at line 61 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 102 of file txtdrop.cxx.

References Drop, and SwLinePortion::SetWhichPor().

SwDropPortion::~SwDropPortion ( )

Definition at line 116 of file txtdrop.cxx.

References SwBlink::Delete(), pBlink, and pPart.

Member Function Documentation

void SwDropPortion::DeleteDropCapCache ( )

Definition at line 717 of file txtdrop.cxx.

References pDropCapCache.

Referenced by TextFinit().

bool SwDropPortion::Format ( SwTextFormatInfo rInf)
bool SwDropPortion::FormatText ( SwTextFormatInfo rInf)
TextFrameIndex SwDropPortion::GetCursorOfst ( sal_uInt16  nOfst) const

the parameter is actually SwTwips apparently?

Reimplemented from SwTextPortion.

Definition at line 478 of file txtdrop.cxx.

sal_uInt16 SwDropPortion::GetDistance ( ) const

Definition at line 89 of file pordrop.hxx.

References nDistance.

Referenced by Format().

sal_uInt16 SwDropPortion::GetDropDescent ( ) const

Definition at line 91 of file pordrop.hxx.

References nDropDescent.

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

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

Definition at line 92 of file pordrop.hxx.

References nFix, and SwPosSize::Width().

Referenced by SwTextMargin::DropInit().

SwFont* SwDropPortion::GetFnt ( ) const

Definition at line 99 of file pordrop.hxx.

Referenced by SwTextNode::GetDropSize().

sal_uInt16 SwDropPortion::GetLines ( ) const

Definition at line 88 of file pordrop.hxx.

References nLines.

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

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 95 of file pordrop.hxx.

Referenced by SwTextFormatter::NewDropPortion().

void SwDropPortion::SetY ( short  nNew)

Definition at line 97 of file pordrop.hxx.

Referenced by SwDropCapCache::CalcFontSize().

Friends And Related Function Documentation

friend class SwDropCapCache

Definition at line 63 of file pordrop.hxx.

Referenced by Format().

Member Data Documentation

sal_uInt16 SwDropPortion::nDistance

Definition at line 68 of file pordrop.hxx.

Referenced by Format(), and GetDistance().

sal_uInt16 const SwDropPortion::nDropDescent

Definition at line 67 of file pordrop.hxx.

Referenced by GetDropDescent(), and PaintDrop().

sal_uInt16 SwDropPortion::nDropHeight

Definition at line 66 of file pordrop.hxx.

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

sal_uInt16 SwDropPortion::nFix

Definition at line 69 of file pordrop.hxx.

Referenced by Format(), and GetDropLeft().

sal_uInt16 SwDropPortion::nLines

Definition at line 65 of file pordrop.hxx.

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

short SwDropPortion::nY

Definition at line 70 of file pordrop.hxx.

Referenced by PaintText().

std::unique_ptr<SwDropPortionPart> SwDropPortion::pPart

Definition at line 64 of file pordrop.hxx.

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

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