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

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 198 of file fmtmeta.hxx.

Member Typedef Documentation

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

Definition at line 201 of file fmtmeta.hxx.

Constructor & Destructor Documentation

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

Definition at line 776 of file fmtatr2.cxx.

Member Function Documentation

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

Copy document properties from rSource to m_xDocumentProperties.

Definition at line 827 of file fmtatr2.cxx.

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

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

Definition at line 838 of file fmtatr2.cxx.

References m_xDocumentProperties.

Referenced by RtfExport::WriteUserProps().

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

get all meta fields

Definition at line 807 of file fmtatr2.cxx.

References m_MetaFields.

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 781 of file fmtatr2.cxx.

References m_MetaFields.

Referenced by SwFormatMeta::DoCopy().

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

Member Data Documentation

MetaFieldList_t sw::MetaFieldManager::m_MetaFields
private

Definition at line 202 of file fmtmeta.hxx.

Referenced by getMetaFields(), and makeMetaField().

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 204 of file fmtmeta.hxx.

Referenced by copyDocumentProperties(), and getDocumentProperties().


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