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

#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 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
 
bool HasOnlyOneListener () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
bool IsModifyLocked () 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 ()
 

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 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
 

Detailed Description

Definition at line 169 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 722 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 730 of file fmtatr2.cxx.

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

Referenced by lcl_NewMetaPortion().

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

Definition at line 182 of file fmtmeta.hxx.

References m_bIsFixedLanguage.

Referenced by SwFormatMeta::DoCopy().

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

Definition at line 183 of file fmtmeta.hxx.

Referenced by SwXMetaField::setPropertyValue().

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

Definition at line 766 of file fmtatr2.cxx.

References m_nNumberFormat.

Referenced by SwXMetaField::setPropertyValue().

Friends And Related Function Documentation

friend class ::sw::MetaFieldManager
friend

Definition at line 175 of file fmtmeta.hxx.

friend class ::SwFormatMeta
friend

Definition at line 173 of file fmtmeta.hxx.

friend class ::SwXMetaField
friend

Definition at line 174 of file fmtmeta.hxx.

Member Data Documentation

bool sw::MetaField::m_bIsFixedLanguage
private

Definition at line 178 of file fmtmeta.hxx.

Referenced by IsFixedLanguage().

sal_uInt32 sw::MetaField::m_nNumberFormat
private

Definition at line 177 of file fmtmeta.hxx.

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


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