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

Meta is an annotation on a range of text. More...

#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
 

Protected Member Functions

SwTextMetaGetTextAttr () const
 
SwTextNodeGetTextNode () const
 
SwFormatMetaGetFormatMeta () const
 
void SetFormatMeta (SwFormatMeta *const i_pFormat)
 
void NotifyChangeTextNode (SwTextNode *const pTextNode)
 
unotools::WeakReference< SwXMeta > const & GetXMeta () const
 
void SetXMeta (rtl::Reference< SwXMeta > const &xMeta)
 
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 

Private Attributes

unotools::WeakReference< SwXMetam_wXMeta
 
SwFormatMetam_pFormat
 
SwTextNodem_pTextNode
 

Friends

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

Detailed Description

Meta is an annotation on a range of text.

There is no UI to insert such annotations, but the UNO API can do so.

See https://wiki.documentfoundation.org/Documentation/DevGuide/Office_Development#Annotated_text_range for more details.

Definition at line 134 of file fmtmeta.hxx.

Constructor & Destructor Documentation

◆ Meta()

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

Definition at line 651 of file fmtatr2.cxx.

◆ ~Meta()

sw::Meta::~Meta ( )
overridevirtual

Definition at line 659 of file fmtatr2.cxx.

Member Function Documentation

◆ GetFormatMeta()

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

Definition at line 151 of file fmtmeta.hxx.

References m_pFormat.

◆ GetRegistry()

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

sfx2::Metadatable

Definition at line 703 of file fmtatr2.cxx.

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

◆ GetTextAttr()

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

Definition at line 663 of file fmtatr2.cxx.

References SwFormatMeta::GetTextAttr(), and m_pFormat.

Referenced by SwXMeta::SetContentRange().

◆ GetTextNode()

SwTextNode * sw::Meta::GetTextNode ( ) const
inlineprotected

◆ GetXMeta()

unotools::WeakReference< SwXMeta > const & sw::Meta::GetXMeta ( ) const
inlineprotected

Definition at line 156 of file fmtmeta.hxx.

References m_wXMeta.

◆ IsInClipboard()

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

Definition at line 714 of file fmtatr2.cxx.

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

◆ IsInContent()

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

Definition at line 728 of file fmtatr2.cxx.

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

◆ IsInUndo()

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

Definition at line 721 of file fmtatr2.cxx.

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

◆ MakeUnoObject()

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

◆ NotifyChangeTextNode()

void sw::Meta::NotifyChangeTextNode ( SwTextNode *const  pTextNode)
protected

Definition at line 671 of file fmtatr2.cxx.

References m_pTextNode.

◆ SetFormatMeta()

void sw::Meta::SetFormatMeta ( SwFormatMeta *const  i_pFormat)
inlineprotected

Definition at line 152 of file fmtmeta.hxx.

References m_pFormat.

◆ SetXMeta()

void sw::Meta::SetXMeta ( rtl::Reference< SwXMeta > const &  xMeta)
protected

Definition at line 668 of file fmtatr2.cxx.

References m_wXMeta.

Referenced by SwClientNotify().

◆ SwClientNotify()

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

Definition at line 688 of file fmtatr2.cxx.

References SfxHint::GetId(), RES_REMOVE_UNO_OBJECT(), and SetXMeta().

Friends And Related Function Documentation

◆ ::SwFormatMeta

friend class ::SwFormatMeta
friend

SetFormatMeta, NotifyChangeTextNode.

Definition at line 138 of file fmtmeta.hxx.

◆ ::SwXMeta

friend class ::SwXMeta
friend

GetTextNode, GetTextAttr, Get/SetXMeta.

Definition at line 139 of file fmtmeta.hxx.

Member Data Documentation

◆ m_pFormat

SwFormatMeta* sw::Meta::m_pFormat
private

Definition at line 143 of file fmtmeta.hxx.

Referenced by GetFormatMeta(), GetTextAttr(), and SetFormatMeta().

◆ m_pTextNode

SwTextNode* sw::Meta::m_pTextNode
private

Definition at line 144 of file fmtmeta.hxx.

Referenced by GetTextNode(), and NotifyChangeTextNode().

◆ m_wXMeta

unotools::WeakReference<SwXMeta> sw::Meta::m_wXMeta
private

Definition at line 141 of file fmtmeta.hxx.

Referenced by GetXMeta(), and SetXMeta().


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