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

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

#include <paratr.hxx>

Inheritance diagram for SwFormatDrop:
Collaboration diagram for SwFormatDrop:

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...
const SwModifyGetDefinedIn () const
 Get and set Modify pointer. More...
void ChgDefinedIn (const SwModify *pNew)
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
virtual ~SfxPoolItem ()
void SetWhich (sal_uInt16 nId)
sal_uInt16 Which () const
bool operator!= (const SfxPoolItem &rItem) const
virtual bool operator< (const SfxPoolItem &) const
virtual bool IsSortable () const
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
virtual bool HasMetrics () const
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
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const

Static Public Member Functions

static SfxPoolItemCreateDefault ()

Protected Member Functions

virtual void Modify (const SfxPoolItem *, const SfxPoolItem *) override
- 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
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

Private Member Functions

SwFormatDropoperator= (const SwFormatDrop &)=delete

Private Attributes

 Modify-Object, that contains DropCaps. 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...

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 50 of file paratr.hxx.

Constructor & Destructor Documentation

SwFormatDrop::SwFormatDrop ( )

Definition at line 38 of file paratr.cxx.

Referenced by Clone(), and CreateDefault().

SwFormatDrop::~SwFormatDrop ( )

Definition at line 60 of file paratr.cxx.

SwFormatDrop::SwFormatDrop ( const SwFormatDrop rCpy)

Definition at line 49 of file paratr.cxx.

Member Function Documentation

void SwFormatDrop::ChgDefinedIn ( const SwModify pNew)
SwFormatDrop * SwFormatDrop::Clone ( SfxItemPool pPool = nullptr) const

Implements SfxPoolItem.

Definition at line 105 of file paratr.cxx.

References SwFormatDrop().

SfxPoolItem * SwFormatDrop::CreateDefault ( )

Definition at line 34 of file paratr.cxx.

References SwFormatDrop().

const SwCharFormat* SwFormatDrop::GetCharFormat ( ) const
SwCharFormat* SwFormatDrop::GetCharFormat ( )

Definition at line 99 of file paratr.hxx.

References SwClient::GetRegisteredIn().

sal_uInt8 SwFormatDrop::GetChars ( ) const
sal_uInt8& SwFormatDrop::GetChars ( )

Definition at line 90 of file paratr.hxx.

const SwModify* SwFormatDrop::GetDefinedIn ( ) const

Get and set Modify pointer.

Definition at line 105 of file paratr.hxx.

sal_uInt16 SwFormatDrop::GetDistance ( ) const
sal_uInt16& SwFormatDrop::GetDistance ( )

Definition at line 96 of file paratr.hxx.

bool SwFormatDrop::GetInfo ( SfxPoolItem ) const

Get information from Client.

Reimplemented from SwClient.

Definition at line 89 of file paratr.cxx.

sal_uInt8 SwFormatDrop::GetLines ( ) const
sal_uInt8& SwFormatDrop::GetLines ( )

Definition at line 87 of file paratr.hxx.

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

Reimplemented from SfxPoolItem.

Definition at line 143 of file attrdesc.cxx.

References SwResId().

bool SwFormatDrop::GetWholeWord ( ) const
bool& SwFormatDrop::GetWholeWord ( )

Definition at line 93 of file paratr.hxx.

void SwFormatDrop::Modify ( const SfxPoolItem ,
const SfxPoolItem  
SwFormatDrop& SwFormatDrop::operator= ( const SwFormatDrop )
bool SwFormatDrop::operator== ( const SfxPoolItem rAttr) const

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 94 of file paratr.cxx.

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

bool SwFormatDrop::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
bool SwFormatDrop::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
void SwFormatDrop::SetCharFormat ( SwCharFormat pNew)

Member Data Documentation

bool SwFormatDrop::m_bWholeWord

First word with initials.

Definition at line 57 of file paratr.hxx.

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

sal_uInt8 SwFormatDrop::m_nChars

Character count.

Definition at line 56 of file paratr.hxx.

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

sal_uInt16 SwFormatDrop::m_nDistance

Distance to beginning of text.

Definition at line 54 of file paratr.hxx.

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

sal_uInt8 SwFormatDrop::m_nLines

Line count.

Definition at line 55 of file paratr.hxx.

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

SwModify* SwFormatDrop::m_pDefinedIn

Modify-Object, that contains DropCaps.

Can only be TextFormatCollection/TextNode.

Definition at line 52 of file paratr.hxx.

Referenced by Modify(), and operator==().

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