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

#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 SwFormatCharFormatClone (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
 
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
 

Private Member Functions

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 
SwFormatCharFormatoperator= (const SwFormatCharFormat &)=delete
 @@ public copy ctor, but no copy assignment? More...
 

Private Attributes

SwTextCharFormatm_pTextAttribute
 My text attribute. More...
 

Friends

class SwTextCharFormat
 

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

Definition at line 30 of file fchrfmt.hxx.

Constructor & Destructor Documentation

◆ SwFormatCharFormat() [1/2]

SwFormatCharFormat::SwFormatCharFormat ( SwCharFormat pFormat)
explicit

single argument ctors shall be explicit.

Definition at line 60 of file fmtatr2.cxx.

Referenced by Clone().

◆ ~SwFormatCharFormat()

SwFormatCharFormat::~SwFormatCharFormat ( )
overridevirtual

Definition at line 74 of file fmtatr2.cxx.

◆ SwFormatCharFormat() [2/2]

SwFormatCharFormat::SwFormatCharFormat ( const SwFormatCharFormat rAttr)

@@ public copy ctor, but no copy assignment?

Definition at line 67 of file fmtatr2.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 82 of file fmtatr2.cxx.

References SwFormatCharFormat().

◆ GetCharFormat()

SwCharFormat * SwFormatCharFormat::GetCharFormat ( ) const
inline

◆ GetInfo()

bool SwFormatCharFormat::GetInfo ( SfxPoolItem rInfo) const
overridevirtual

Reimplemented from SwClient.

Definition at line 98 of file fmtatr2.cxx.

References SwTextCharFormat::GetInfo(), and m_pTextAttribute.

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 87 of file attrdesc.cxx.

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

◆ operator=()

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

@@ public copy ctor, but no copy assignment?

◆ operator==()

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

"pure virtual methods" of SfxPoolItem

Implements SfxPoolItem.

Definition at line 76 of file fmtatr2.cxx.

References GetCharFormat().

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 110 of file fmtatr2.cxx.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 102 of file fmtatr2.cxx.

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

◆ SetCharFormat()

void SwFormatCharFormat::SetCharFormat ( SwFormat pFormat)
inline

Definition at line 65 of file fchrfmt.hxx.

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

Referenced by SwAttrSet::CopyToModify(), and MakeTextAttr().

◆ SwClientNotify()

void SwFormatCharFormat::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SwClient.

Definition at line 88 of file fmtatr2.cxx.

References SfxHint::GetId(), m_pTextAttribute, and SwTextCharFormat::TriggerNodeUpdate().

Friends And Related Function Documentation

◆ SwTextCharFormat

friend class SwTextCharFormat
friend

Definition at line 32 of file fchrfmt.hxx.

Member Data Documentation

◆ m_pTextAttribute

SwTextCharFormat* SwFormatCharFormat::m_pTextAttribute
private

My text attribute.

Definition at line 33 of file fchrfmt.hxx.

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


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