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

#include <docufld.hxx>

Inheritance diagram for SwExtUserField:
[legend]
Collaboration diagram for SwExtUserField:
[legend]

Public Member Functions

 SwExtUserField (SwExtUserFieldType *, sal_uInt16 nSub, sal_uInt32 nFormat)
 
virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 
virtual sal_uInt16 GetSubType () const override
 
virtual void SetSubType (sal_uInt16 nSub) override
 
void SetExpansion (const OUString &rStr)
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override
 
- Public Member Functions inherited from SwField
virtual ~SwField ()
 
 SwField (SwField const &)=default
 
 SwField (SwField &&)=default
 
SwFieldoperator= (SwField const &)=default
 
SwFieldoperator= (SwField &&)=default
 
SwFieldTypeGetTyp () const
 
virtual SwFieldTypeChgTyp (SwFieldType *)
 Set new type (used for copying among documents). More...
 
OUString ExpandField (bool bCached, SwRootFrame const *pLayout) const
 expand the field. More...
 
virtual OUString GetFieldName () const
 get name or content More...
 
std::unique_ptr< SwFieldCopyField () const
 
SwFieldIds Which () const
 ResId. More...
 
sal_uInt16 GetTypeId () const
 
LanguageType GetLanguage () const
 Language at field position. More...
 
virtual void SetLanguage (LanguageType nLng)
 
sal_uInt32 GetFormat () const
 Query parameters for dialog and for BASIC. More...
 
virtual OUString GetPar1 () const
 
virtual OUString GetPar2 () const
 
virtual OUString GetFormula () const
 
void ChangeFormat (sal_uInt32 n)
 
virtual void SetPar1 (const OUString &rStr)
 
virtual void SetPar2 (const OUString &rStr)
 
bool HasClickHdl () const
 Does the field possess an action on its ClickHandler? (e.g. INetFields, ...). More...
 
bool IsFixed () const
 
bool IsAutomaticLanguage () const
 
void SetAutomaticLanguage (bool const bSet)
 
virtual OUString GetDescription () const
 
bool IsClickable () const
 Is this field clickable? More...
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

OUString m_aContent
 
sal_uInt16 m_nType
 

Additional Inherited Members

- Protected Member Functions inherited from SwField
void SetFormat (sal_uInt32 const nSet)
 
 SwField (SwFieldType *pTyp, sal_uInt32 nFormat=0, LanguageType nLang=LANGUAGE_SYSTEM, bool m_bUseFieldValueCache=true)
 

Detailed Description

Definition at line 542 of file docufld.hxx.

Constructor & Destructor Documentation

SwExtUserField::SwExtUserField ( SwExtUserFieldType pTyp,
sal_uInt16  nSub,
sal_uInt32  nFormat 
)

Definition at line 1978 of file docufld.cxx.

References SwExtUserFieldType::Expand(), m_aContent, and m_nType.

Referenced by Copy().

Member Function Documentation

std::unique_ptr< SwField > SwExtUserField::Copy ( ) const
overridevirtual

Implements SwField.

Definition at line 1992 of file docufld.cxx.

References SwField::GetFormat(), SwField::GetTyp(), m_aContent, m_nType, and SwExtUserField().

OUString SwExtUserField::ExpandImpl ( SwRootFrame const *  pLayout) const
overridevirtual

Implements SwField.

Definition at line 1984 of file docufld.cxx.

References SwExtUserFieldType::Expand(), SwField::IsFixed(), m_aContent, and m_nType.

sal_uInt16 SwExtUserField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 2000 of file docufld.cxx.

References m_nType.

Referenced by sw::DocumentFieldsManager::SetFixFields(), and SwXTextField::update().

bool SwExtUserField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
bool SwExtUserField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

Reimplemented from SwField.

Definition at line 2010 of file docufld.cxx.

References FIELD_PROP_BOOL1, FIELD_PROP_PAR1, FIELD_PROP_USHORT1, SwField::IsFixed(), m_aContent, and m_nType.

void SwExtUserField::SetExpansion ( const OUString &  rStr)
inline
void SwExtUserField::SetSubType ( sal_uInt16  nSub)
overridevirtual

Reimplemented from SwField.

Definition at line 2005 of file docufld.cxx.

References m_nType.

Member Data Documentation

OUString SwExtUserField::m_aContent
private

Definition at line 544 of file docufld.hxx.

Referenced by Copy(), ExpandImpl(), PutValue(), QueryValue(), and SwExtUserField().

sal_uInt16 SwExtUserField::m_nType
private

Definition at line 545 of file docufld.hxx.

Referenced by Copy(), ExpandImpl(), GetSubType(), PutValue(), QueryValue(), SetSubType(), and SwExtUserField().


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