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

knows all meta-fields in the document. More...

#include <fmtmeta.hxx>

Public Member Functions

 MetaFieldManager ()
 
std::shared_ptr< MetaFieldmakeMetaField (SwFormatMeta *const i_pFormat=nullptr, const sal_uInt32 nNumberFormat=SAL_MAX_UINT32, const bool bIsFixedLanguage=false)
 
std::vector< css::uno::Reference< css::text::XTextField > > getMetaFields ()
 get all meta fields More...
 
void copyDocumentProperties (const SwDoc &rSource)
 Copy document properties from rSource to m_xDocumentProperties. More...
 
const css::uno::Reference< css::document::XDocumentProperties > & getDocumentProperties () const
 

Private Types

typedef std::vector< std::weak_ptr< MetaField > > MetaFieldList_t
 

Private Member Functions

 MetaFieldManager (MetaFieldManager const &)=delete
 
MetaFieldManageroperator= (MetaFieldManager const &)=delete
 

Private Attributes

MetaFieldList_t m_MetaFields
 
css::uno::Reference< css::document::XDocumentProperties > m_xDocumentProperties
 Document properties of a clipboard document, empty for non-clipboard documents. More...
 

Detailed Description

knows all meta-fields in the document.

Definition at line 201 of file fmtmeta.hxx.

Member Typedef Documentation

◆ MetaFieldList_t

typedef std::vector< std::weak_ptr<MetaField> > sw::MetaFieldManager::MetaFieldList_t
private

Definition at line 204 of file fmtmeta.hxx.

Constructor & Destructor Documentation

◆ MetaFieldManager() [1/2]

sw::MetaFieldManager::MetaFieldManager ( MetaFieldManager const &  )
privatedelete

◆ MetaFieldManager() [2/2]

sw::MetaFieldManager::MetaFieldManager ( )

Definition at line 790 of file fmtatr2.cxx.

Member Function Documentation

◆ copyDocumentProperties()

void sw::MetaFieldManager::copyDocumentProperties ( const SwDoc rSource)

Copy document properties from rSource to m_xDocumentProperties.

Definition at line 845 of file fmtatr2.cxx.

References SwDoc::GetDocShell(), SfxObjectShell::GetModel(), and m_xDocumentProperties.

Referenced by SwTransferable::PrepareForCopyTextRange().

◆ getDocumentProperties()

const uno::Reference< document::XDocumentProperties > & sw::MetaFieldManager::getDocumentProperties ( ) const

Definition at line 856 of file fmtatr2.cxx.

References m_xDocumentProperties.

Referenced by RtfExport::WriteUserProps().

◆ getMetaFields()

std::vector< uno::Reference< text::XTextField > > sw::MetaFieldManager::getMetaFields ( )

get all meta fields

Definition at line 825 of file fmtatr2.cxx.

References m_MetaFields.

◆ makeMetaField()

std::shared_ptr< MetaField > sw::MetaFieldManager::makeMetaField ( SwFormatMeta *const  i_pFormat = nullptr,
const sal_uInt32  nNumberFormat = SAL_MAX_UINT32,
const bool  bIsFixedLanguage = false 
)

Definition at line 795 of file fmtatr2.cxx.

References m_MetaFields.

Referenced by SwXMeta::AttachImpl(), and SwFormatMeta::DoCopy().

◆ operator=()

MetaFieldManager & sw::MetaFieldManager::operator= ( MetaFieldManager const &  )
privatedelete

Member Data Documentation

◆ m_MetaFields

MetaFieldList_t sw::MetaFieldManager::m_MetaFields
private

Definition at line 205 of file fmtmeta.hxx.

Referenced by getMetaFields(), and makeMetaField().

◆ m_xDocumentProperties

css::uno::Reference<css::document::XDocumentProperties> sw::MetaFieldManager::m_xDocumentProperties
private

Document properties of a clipboard document, empty for non-clipboard documents.

Definition at line 207 of file fmtmeta.hxx.

Referenced by copyDocumentProperties(), and getDocumentProperties().


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