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

#include <fchrfmt.hxx>

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

Public Member Functions

 SwFormatCharFormat (SwCharFormat *pFormat)
 single argument ctors shall be explicit. More...
 
virtual ~SwFormatCharFormat () override
 
 SwFormatCharFormat (const SwFormatCharFormat &rAttr)
 @@ public copy ctor, but no copy assignment? More...
 
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
 
virtual bool GetInfo (SfxPoolItem &rInfo) const override
 
void SetCharFormat (SwFormat *pFormat)
 
SwCharFormatGetCharFormat () const
 
- 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
 

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

SwFormatCharFormatoperator= (const SwFormatCharFormat &)=delete
 @@ public copy ctor, but no copy assignment? More...
 

Private Attributes

SwTextCharFormatm_pTextAttribute
 My text attribute. More...
 

Friends

class SwTextCharFormat
 

Detailed Description

Definition at line 30 of file fchrfmt.hxx.

Constructor & Destructor Documentation

SwFormatCharFormat::SwFormatCharFormat ( SwCharFormat pFormat)
explicit

single argument ctors shall be explicit.

Definition at line 64 of file fmtatr2.cxx.

Referenced by Clone().

SwFormatCharFormat::~SwFormatCharFormat ( )
overridevirtual

Definition at line 78 of file fmtatr2.cxx.

SwFormatCharFormat::SwFormatCharFormat ( const SwFormatCharFormat rAttr)

@@ public copy ctor, but no copy assignment?

Definition at line 71 of file fmtatr2.cxx.

Member Function Documentation

SfxPoolItem * SwFormatCharFormat::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 86 of file fmtatr2.cxx.

References SwFormatCharFormat().

SwCharFormat* SwFormatCharFormat::GetCharFormat ( ) const
inline
bool SwFormatCharFormat::GetInfo ( SfxPoolItem rInfo) const
overridevirtual

Reimplemented from SwClient.

Definition at line 99 of file fmtatr2.cxx.

References SwTextCharFormat::GetInfo(), and m_pTextAttribute.

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

Reimplemented from SfxPoolItem.

Definition at line 93 of file attrdesc.cxx.

References aStr, SwFormat::GetPresentation(), and SwResId().

void SwFormatCharFormat::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual

Reimplemented from SwClient.

Definition at line 92 of file fmtatr2.cxx.

References m_pTextAttribute, and SwTextCharFormat::ModifyNotification().

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

@@ public copy ctor, but no copy assignment?

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

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 80 of file fmtatr2.cxx.

References GetCharFormat().

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

Reimplemented from SfxPoolItem.

Definition at line 111 of file fmtatr2.cxx.

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

Reimplemented from SfxPoolItem.

Definition at line 103 of file fmtatr2.cxx.

References ChrFmt, SwStyleNameMapper::FillProgName(), and GetCharFormat().

void SwFormatCharFormat::SetCharFormat ( SwFormat pFormat)
inline

Definition at line 65 of file fchrfmt.hxx.

References SwModify::Add(), and SwFormat::IsDefault().

Referenced by MakeTextAttr().

Friends And Related Function Documentation

friend class SwTextCharFormat
friend

Definition at line 32 of file fchrfmt.hxx.

Member Data Documentation

SwTextCharFormat* SwFormatCharFormat::m_pTextAttribute
private

My text attribute.

Definition at line 33 of file fchrfmt.hxx.

Referenced by GetInfo(), Modify(), and SwTextCharFormat::SwTextCharFormat().


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