LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFormatDrop Class Referencefinal

If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps. More...

#include <paratr.hxx>

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

Public Member Functions

 SwFormatDrop ()
 
virtual ~SwFormatDrop () override
 
 SwFormatDrop (const SwFormatDrop &)
 
virtual bool operator== (const SfxPoolItem &) const override
 "pure virtual methods" of SfxPoolItem More...
 
virtual SwFormatDropClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
sal_uInt8 GetLines () const
 
sal_uInt8GetLines ()
 
sal_uInt8 GetChars () const
 
sal_uInt8GetChars ()
 
bool GetWholeWord () const
 
bool & GetWholeWord ()
 
sal_uInt16 GetDistance () const
 
sal_uInt16 & GetDistance ()
 
const SwCharFormatGetCharFormat () const
 
SwCharFormatGetCharFormat ()
 
void SetCharFormat (SwCharFormat *pNew)
 
virtual bool GetInfo (SfxPoolItem &) const override
 Get information from Client. More...
 
void ChgDefinedIn (const sw::FormatDropDefiner *pDefiner)
 Get and set Modify pointer. More...
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () const
 
virtual const SwTableDynCastTable () const
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Member Functions

SwFormatDropoperator= (const SwFormatDrop &)=delete
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 

Private Attributes

sw::FormatDropDefinerm_pDefinedIn
 TextNode or FormatColl that contains the CapDrops. More...
 
sal_uInt16 m_nDistance
 Distance to beginning of text. More...
 
sal_uInt8 m_nLines
 Line count. More...
 
sal_uInt8 m_nChars
 Character count. More...
 
bool m_bWholeWord
 First word with initials. More...
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 

Detailed Description

If SwFormatDrop is a Client, it is the CharFormat that describes the font for the DropCaps.

If it is not a Client, formatting uses the CharFormat of the paragraph. If the CharFormat is modified, this change is propagated to the paragraphs via the Modify of SwFormatDrop.

Definition at line 71 of file paratr.hxx.

Constructor & Destructor Documentation

◆ SwFormatDrop() [1/2]

SwFormatDrop::SwFormatDrop ( )

Definition at line 38 of file paratr.cxx.

Referenced by Clone(), and CreateDefault().

◆ ~SwFormatDrop()

SwFormatDrop::~SwFormatDrop ( )
overridevirtual

Definition at line 60 of file paratr.cxx.

◆ SwFormatDrop() [2/2]

SwFormatDrop::SwFormatDrop ( const SwFormatDrop rCpy)

Definition at line 49 of file paratr.cxx.

Member Function Documentation

◆ ChgDefinedIn()

void SwFormatDrop::ChgDefinedIn ( const sw::FormatDropDefiner pDefiner)
inline

Get and set Modify pointer.

Definition at line 129 of file paratr.hxx.

Referenced by SwHistorySetAttrSet::SwHistorySetAttrSet(), and SwHistorySetFormat::SwHistorySetFormat().

◆ Clone()

SwFormatDrop * SwFormatDrop::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 89 of file paratr.cxx.

References SwFormatDrop().

◆ CreateDefault()

SfxPoolItem * SwFormatDrop::CreateDefault ( )
static

Definition at line 34 of file paratr.cxx.

References SwFormatDrop().

◆ GetCharFormat() [1/2]

SwCharFormat * SwFormatDrop::GetCharFormat ( )
inline

Definition at line 123 of file paratr.hxx.

◆ GetCharFormat() [2/2]

const SwCharFormat * SwFormatDrop::GetCharFormat ( ) const
inline

◆ GetChars() [1/2]

sal_uInt8 & SwFormatDrop::GetChars ( )
inline

Definition at line 114 of file paratr.hxx.

◆ GetChars() [2/2]

sal_uInt8 SwFormatDrop::GetChars ( ) const
inline

◆ GetDistance() [1/2]

sal_uInt16 & SwFormatDrop::GetDistance ( )
inline

Definition at line 120 of file paratr.hxx.

◆ GetDistance() [2/2]

sal_uInt16 SwFormatDrop::GetDistance ( ) const
inline

◆ GetInfo()

bool SwFormatDrop::GetInfo ( SfxPoolItem ) const
overridevirtual

Get information from Client.

Reimplemented from SwClient.

Definition at line 73 of file paratr.cxx.

◆ GetLines() [1/2]

sal_uInt8 & SwFormatDrop::GetLines ( )
inline

Definition at line 111 of file paratr.hxx.

◆ GetLines() [2/2]

sal_uInt8 SwFormatDrop::GetLines ( ) const
inline

◆ GetPresentation()

bool SwFormatDrop::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 142 of file attrdesc.cxx.

References GetChars(), GetLines(), and SwResId().

◆ GetWholeWord() [1/2]

bool & SwFormatDrop::GetWholeWord ( )
inline

Definition at line 117 of file paratr.hxx.

◆ GetWholeWord() [2/2]

bool SwFormatDrop::GetWholeWord ( ) const
inline

◆ operator=()

SwFormatDrop & SwFormatDrop::operator= ( const SwFormatDrop )
privatedelete

◆ operator==()

bool SwFormatDrop::operator== ( const SfxPoolItem rAttr) const
overridevirtual

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 78 of file paratr.cxx.

References GetCharFormat(), GetChars(), GetDistance(), GetLines(), GetWholeWord(), m_bWholeWord, m_nChars, m_nDistance, m_nLines, and m_pDefinedIn.

◆ PutValue()

bool SwFormatDrop::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SwFormatDrop::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

◆ SetCharFormat()

void SwFormatDrop::SetCharFormat ( SwCharFormat pNew)

◆ SwClientNotify()

virtual void SwFormatDrop::SwClientNotify ( const SwModify ,
const SfxHint  
)
inlineoverrideprivatevirtual

Reimplemented from SwClient.

Definition at line 90 of file paratr.hxx.

References sw::FormatDropDefiner::FormatDropNotify().

Member Data Documentation

◆ m_bWholeWord

bool SwFormatDrop::m_bWholeWord
private

First word with initials.

Definition at line 77 of file paratr.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

◆ m_nChars

sal_uInt8 SwFormatDrop::m_nChars
private

Character count.

Definition at line 76 of file paratr.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

◆ m_nDistance

sal_uInt16 SwFormatDrop::m_nDistance
private

Distance to beginning of text.

Definition at line 74 of file paratr.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

◆ m_nLines

sal_uInt8 SwFormatDrop::m_nLines
private

Line count.

Definition at line 75 of file paratr.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

◆ m_pDefinedIn

sw::FormatDropDefiner* SwFormatDrop::m_pDefinedIn
private

TextNode or FormatColl that contains the CapDrops.

Definition at line 73 of file paratr.hxx.

Referenced by operator==().


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