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

#include <fmtmeta.hxx>

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

Public Member Functions

void GetPrefixAndSuffix (OUString *const o_pPrefix, OUString *const o_pSuffix)
 get prefix/suffix from the RDF repository. More...
 
- Public Member Functions inherited from sw::Meta
 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 ()
 
 SwModify (SwModify *pToRegisterIn)
 
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 ()
 
- 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 ()
 

Private Member Functions

sal_uInt32 GetNumberFormat (OUString const &rContent) const
 
void SetNumberFormat (sal_uInt32 nNumberFormat)
 
bool IsFixedLanguage () const
 
void SetIsFixedLanguage (bool b)
 
 MetaField (SwFormatMeta *const i_pFormat, const sal_uInt32 nNumberFormat, const bool bIsFixedLanguage)
 

Private Attributes

sal_uInt32 m_nNumberFormat
 
bool m_bIsFixedLanguage
 

Friends

class ::SwFormatMeta
 
class ::SwXMetaField
 
class ::sw::MetaFieldManager
 

Additional Inherited Members

- Protected Member Functions inherited from sw::Meta
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
 

Detailed Description

Definition at line 171 of file fmtmeta.hxx.

Constructor & Destructor Documentation

sw::MetaField::MetaField ( SwFormatMeta *const  i_pFormat,
const sal_uInt32  nNumberFormat,
const bool  bIsFixedLanguage 
)
explicitprivate

Definition at line 725 of file fmtatr2.cxx.

Member Function Documentation

sal_uInt32 sw::MetaField::GetNumberFormat ( OUString const &  rContent) const
private
void sw::MetaField::GetPrefixAndSuffix ( OUString *const  o_pPrefix,
OUString *const  o_pSuffix 
)

get prefix/suffix from the RDF repository.

Exceptions
RuntimeException

Definition at line 733 of file fmtatr2.cxx.

References SwNode::GetDoc(), SwDoc::GetDocShell(), getPrefixAndSuffix(), sw::Meta::GetTextNode(), sw::Meta::MakeUnoObject(), and xModel.

Referenced by lcl_NewMetaPortion().

bool sw::MetaField::IsFixedLanguage ( ) const
inlineprivate

Definition at line 184 of file fmtmeta.hxx.

References m_bIsFixedLanguage.

Referenced by SwFormatMeta::DoCopy().

void sw::MetaField::SetIsFixedLanguage ( bool  b)
inlineprivate

Definition at line 185 of file fmtmeta.hxx.

Referenced by SwXMetaField::setPropertyValue().

void sw::MetaField::SetNumberFormat ( sal_uInt32  nNumberFormat)
private

Definition at line 769 of file fmtatr2.cxx.

References m_nNumberFormat.

Referenced by SwXMetaField::setPropertyValue().

Friends And Related Function Documentation

friend class ::sw::MetaFieldManager
friend

Definition at line 177 of file fmtmeta.hxx.

friend class ::SwFormatMeta
friend

Definition at line 175 of file fmtmeta.hxx.

friend class ::SwXMetaField
friend

Definition at line 176 of file fmtmeta.hxx.

Member Data Documentation

bool sw::MetaField::m_bIsFixedLanguage
private

Definition at line 180 of file fmtmeta.hxx.

Referenced by IsFixedLanguage().

sal_uInt32 sw::MetaField::m_nNumberFormat
private

Definition at line 179 of file fmtmeta.hxx.

Referenced by SwFormatMeta::DoCopy(), GetNumberFormat(), and SetNumberFormat().


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