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

#include <fmtmeta.hxx>

Inheritance diagram for sw::Meta:
[legend]
Collaboration diagram for sw::Meta:
[legend]

Public Member Functions

 Meta (SwFormatMeta *const i_pFormat)
 
virtual ~Meta () override
 
virtual ::sfx2::IXmlIdRegistryGetRegistry () override
 sfx2::Metadatable More...
 
virtual bool IsInClipboard () const override
 
virtual bool IsInUndo () const override
 
virtual bool IsInContent () const override
 
virtual css::uno::Reference< css::rdf::XMetadatable > MakeUnoObject () override
 
- Public Member Functions inherited from sfx2::Metadatable
 Metadatable ()
 
virtual ~Metadatable ()
 
css::beans::StringPair GetMetadataReference () const
 
void SetMetadataReference (const css::beans::StringPair &i_rReference)
 
void EnsureMetadataReference ()
 
void RemoveMetadataReference ()
 
void RegisterAsCopyOf (Metadatable const &i_rSource, const bool i_bCopyPrecedesSource=false)
 
std::shared_ptr< MetadatableUndoCreateUndo () const
 
std::shared_ptr< MetadatableUndoCreateUndoForDelete ()
 
void RestoreMetadata (std::shared_ptr< MetadatableUndo > const &i_pUndo)
 
void JoinMetadatable (Metadatable const &i_rOther, const bool i_isMergedEmpty, const bool i_isOtherEmpty)
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void ModifyBroadcast (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
virtual void CallSwClientNotify (const SfxHint &rHint) const
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
void SetInCache (bool bNew)
 
void SetInSwFntCache (bool bNew)
 
void SetInDocDTOR ()
 
bool IsModifyLocked () const
 
bool IsInCache () const
 
bool IsInSwFntCache () const
 
void CheckCaching (const sal_uInt16 nWhich)
 
bool HasOnlyOneListener () 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
 
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 
 BroadcasterMixin (BroadcasterMixin const &)=default
 
BroadcasterMixinoperator= (const BroadcasterMixin &)
 
SvtBroadcasterGetNotifier ()
 

Protected Member Functions

SwTextMetaGetTextAttr () const
 
SwTextNodeGetTextNode () const
 
SwFormatMetaGetFormatMeta () const
 
void SetFormatMeta (SwFormatMeta *const i_pFormat)
 
void NotifyChangeTextNode (SwTextNode *const pTextNode)
 
css::uno::WeakReference< css::rdf::XMetadatable > const & GetXMeta () const
 
void SetXMeta (css::uno::Reference< css::rdf::XMetadatable > const &xMeta)
 
virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 SwClient. More...
 
- 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 Attributes

css::uno::WeakReference< css::rdf::XMetadatable > m_wXMeta
 
SwFormatMetam_pFormat
 
SwTextNodem_pTextNode
 

Friends

class ::SwFormatMeta
 SetFormatMeta, NotifyChangeTextNode. More...
 
class ::SwXMeta
 GetTextNode, GetTextAttr, Get/SetXMeta. More...
 

Detailed Description

Definition at line 127 of file fmtmeta.hxx.

Constructor & Destructor Documentation

sw::Meta::Meta ( SwFormatMeta *const  i_pFormat)
explicit

Definition at line 639 of file fmtatr2.cxx.

sw::Meta::~Meta ( )
overridevirtual

Definition at line 647 of file fmtatr2.cxx.

Member Function Documentation

SwFormatMeta* sw::Meta::GetFormatMeta ( ) const
inlineprotected

Definition at line 146 of file fmtmeta.hxx.

References m_pFormat.

sfx2::IXmlIdRegistry & sw::Meta::GetRegistry ( )
overridevirtual

sfx2::Metadatable

Implements sfx2::Metadatable.

Definition at line 687 of file fmtatr2.cxx.

References SwTextNode::GetRegistry(), and GetTextNode().

SwTextMeta * sw::Meta::GetTextAttr ( ) const
protected

Definition at line 651 of file fmtatr2.cxx.

References SwFormatMeta::GetTextAttr(), and m_pFormat.

SwTextNode* sw::Meta::GetTextNode ( ) const
inlineprotected
Returns
0 if not in document (undo)

Definition at line 144 of file fmtmeta.hxx.

References m_pTextNode.

Referenced by sw::MetaField::GetNumberFormat(), sw::MetaField::GetPrefixAndSuffix(), GetRegistry(), IsInClipboard(), IsInContent(), and IsInUndo().

css::uno::WeakReference<css::rdf::XMetadatable> const& sw::Meta::GetXMeta ( ) const
inlineprotected

Definition at line 151 of file fmtmeta.hxx.

References m_wXMeta.

bool sw::Meta::IsInClipboard ( ) const
overridevirtual

Implements sfx2::Metadatable.

Definition at line 698 of file fmtatr2.cxx.

References GetTextNode(), and SwTextNode::IsInClipboard().

bool sw::Meta::IsInContent ( ) const
overridevirtual

Implements sfx2::Metadatable.

Definition at line 712 of file fmtatr2.cxx.

References GetTextNode(), and SwTextNode::IsInContent().

bool sw::Meta::IsInUndo ( ) const
overridevirtual

Implements sfx2::Metadatable.

Definition at line 705 of file fmtatr2.cxx.

References GetTextNode(), and SwTextNode::IsInUndo().

css::uno::Reference< css::rdf::XMetadatable > sw::Meta::MakeUnoObject ( )
overridevirtual

Implements sfx2::Metadatable.

Definition at line 719 of file fmtatr2.cxx.

References SwXMeta::CreateXMeta().

Referenced by sw::MetaField::GetPrefixAndSuffix().

void sw::Meta::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual
void sw::Meta::NotifyChangeTextNode ( SwTextNode *const  pTextNode)
protected
void sw::Meta::SetFormatMeta ( SwFormatMeta *const  i_pFormat)
inlineprotected

Definition at line 147 of file fmtmeta.hxx.

void sw::Meta::SetXMeta ( css::uno::Reference< css::rdf::XMetadatable > const &  xMeta)
inlineprotected

Definition at line 153 of file fmtmeta.hxx.

Referenced by Modify().

Friends And Related Function Documentation

friend class ::SwFormatMeta
friend

SetFormatMeta, NotifyChangeTextNode.

Definition at line 132 of file fmtmeta.hxx.

friend class ::SwXMeta
friend

GetTextNode, GetTextAttr, Get/SetXMeta.

Definition at line 133 of file fmtmeta.hxx.

Member Data Documentation

SwFormatMeta* sw::Meta::m_pFormat
private

Definition at line 138 of file fmtmeta.hxx.

Referenced by GetFormatMeta(), and GetTextAttr().

SwTextNode* sw::Meta::m_pTextNode
private

Definition at line 139 of file fmtmeta.hxx.

Referenced by GetTextNode(), and NotifyChangeTextNode().

css::uno::WeakReference< css::rdf::XMetadatable> sw::Meta::m_wXMeta
private

Definition at line 136 of file fmtmeta.hxx.

Referenced by GetXMeta().


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