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:
[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 SfxPoolItemClone (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 sal_uInt16 GetVersion (sal_uInt16 nFileFormatVersion) const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
virtual SfxPoolItemCreate (SvStream &, sal_uInt16 nItemVersion) const
 
virtual SvStreamStore (SvStream &, sal_uInt16 nItemVersion) 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 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

SwModifym_pDefinedIn
 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 40 of file paratr.cxx.

Referenced by Clone(), and CreateDefault().

SwFormatDrop::~SwFormatDrop ( )
overridevirtual

Definition at line 62 of file paratr.cxx.

SwFormatDrop::SwFormatDrop ( const SwFormatDrop rCpy)

Definition at line 51 of file paratr.cxx.

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 107 of file paratr.cxx.

References SwFormatDrop().

SfxPoolItem * SwFormatDrop::CreateDefault ( )
static

Definition at line 36 of file paratr.cxx.

References SwFormatDrop().

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

Definition at line 99 of file paratr.hxx.

References SwClient::GetRegisteredIn().

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

Definition at line 90 of file paratr.hxx.

const SwModify* SwFormatDrop::GetDefinedIn ( ) const
inline

Get and set Modify pointer.

Definition at line 105 of file paratr.hxx.

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

Definition at line 96 of file paratr.hxx.

bool SwFormatDrop::GetInfo ( SfxPoolItem ) const
overridevirtual

Get information from Client.

Reimplemented from SwClient.

Definition at line 91 of file paratr.cxx.

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

Definition at line 87 of file paratr.hxx.

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

Reimplemented from SfxPoolItem.

Definition at line 149 of file attrdesc.cxx.

References SwResId().

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

Definition at line 93 of file paratr.hxx.

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

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 96 of file paratr.cxx.

References 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 
)
overridevirtual
bool SwFormatDrop::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwFormatDrop::SetCharFormat ( SwCharFormat pNew)

Member Data Documentation

bool SwFormatDrop::m_bWholeWord
private

First word with initials.

Definition at line 57 of file paratr.hxx.

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

sal_uInt8 SwFormatDrop::m_nChars
private

Character count.

Definition at line 56 of file paratr.hxx.

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

sal_uInt16 SwFormatDrop::m_nDistance
private

Distance to beginning of text.

Definition at line 54 of file paratr.hxx.

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

sal_uInt8 SwFormatDrop::m_nLines
private

Line count.

Definition at line 55 of file paratr.hxx.

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

SwModify* SwFormatDrop::m_pDefinedIn
private

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: