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 sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
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 SetInDocDTOR ()
 
bool IsModifyLocked () const
 
bool IsInCache () const
 
void CheckCaching (const sal_uInt16 nWhich)
 
bool HasOnlyOneListener () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
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 SwClientNotify (const SwModify &, const SfxHint &) override
 
- 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 635 of file fmtatr2.cxx.

sw::Meta::~Meta ( )
overridevirtual

Definition at line 643 of file fmtatr2.cxx.

Member Function Documentation

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

Definition at line 145 of file fmtmeta.hxx.

References m_pFormat.

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

sfx2::Metadatable

Implements sfx2::Metadatable.

Definition at line 685 of file fmtatr2.cxx.

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

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

Definition at line 647 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 143 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 150 of file fmtmeta.hxx.

References m_wXMeta.

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

Implements sfx2::Metadatable.

Definition at line 696 of file fmtatr2.cxx.

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

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

Implements sfx2::Metadatable.

Definition at line 710 of file fmtatr2.cxx.

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

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

Implements sfx2::Metadatable.

Definition at line 703 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 717 of file fmtatr2.cxx.

References SwXMeta::CreateXMeta().

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

void sw::Meta::NotifyChangeTextNode ( SwTextNode *const  pTextNode)
protected
void sw::Meta::SetFormatMeta ( SwFormatMeta *const  i_pFormat)
inlineprotected

Definition at line 146 of file fmtmeta.hxx.

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

Definition at line 152 of file fmtmeta.hxx.

Referenced by SwClientNotify().

void sw::Meta::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprotectedvirtual

Friends And Related Function Documentation

friend class ::SwFormatMeta
friend

SetFormatMeta, NotifyChangeTextNode.

Definition at line 131 of file fmtmeta.hxx.

friend class ::SwXMeta
friend

GetTextNode, GetTextAttr, Get/SetXMeta.

Definition at line 132 of file fmtmeta.hxx.

Member Data Documentation

SwFormatMeta* sw::Meta::m_pFormat
private

Definition at line 137 of file fmtmeta.hxx.

Referenced by GetFormatMeta(), and GetTextAttr().

SwTextNode* sw::Meta::m_pTextNode
private

Definition at line 138 of file fmtmeta.hxx.

Referenced by GetTextNode(), and NotifyChangeTextNode().

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

Definition at line 135 of file fmtmeta.hxx.

Referenced by GetXMeta().


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