LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwDateTimeField Class Referencefinal

#include <flddat.hxx>

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

Public Member Functions

 SwDateTimeField (SwDateTimeFieldType *pType, sal_uInt16 nSubType=DATEFLD, sal_uLong nFormat=0, LanguageType nLng=LANGUAGE_SYSTEM)
 
virtual sal_uInt16 GetSubType () const override
 
virtual void SetSubType (sal_uInt16 nSub) override
 
virtual double GetValue () const override
 
virtual void SetPar2 (const OUString &rStr) override
 
virtual OUString GetPar2 () const override
 
void SetOffset (tools::Long nMinutes)
 
tools::Long GetOffset () const
 
Date GetDate () const
 
tools::Time GetTime () const
 
void SetDateTime (const DateTime &rDT)
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nMId) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nMId) override
 
- Public Member Functions inherited from SwValueField
virtual ~SwValueField () override
 
virtual SwFieldTypeChgTyp (SwFieldType *) override
 Set a new type. More...
 
virtual void SetLanguage (LanguageType nLng) override
 set language of the format More...
 
SwDocGetDoc () const
 
virtual double GetValue () const
 
virtual void SetValue (const double &rVal)
 
OUString ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const 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...
 
SwFieldTypesEnum GetTypeId () const
 
virtual sal_uInt16 GetSubType () const
 
virtual void SetSubType (sal_uInt16)
 
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)
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId)
 
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
 
const OUString & GetTitle () const
 
void SetTitle (const OUString &rTitle)
 

Static Public Member Functions

static double GetDateTime (SwDoc &rDoc, const DateTime &rDT)
 
- Static Public Member Functions inherited from SwValueField
static sal_uInt32 GetSystemFormat (SvNumberFormatter *pFormatter, sal_uInt32 nFormat)
 get format in office language More...
 

Private Member Functions

virtual OUString ExpandImpl (SwRootFrame const *pLayout) const override
 
virtual std::unique_ptr< SwFieldCopy () const override
 

Private Attributes

sal_uInt16 m_nSubType
 
tools::Long m_nOffset
 

Additional Inherited Members

- Protected Member Functions inherited from SwValueField
 SwValueField (SwValueFieldType *pFieldType, sal_uInt32 nFormat, LanguageType nLang=LANGUAGE_SYSTEM, const double fVal=0.0)
 
 SwValueField (const SwValueField &rField)
 
- 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 45 of file flddat.hxx.

Constructor & Destructor Documentation

◆ SwDateTimeField()

SwDateTimeField::SwDateTimeField ( SwDateTimeFieldType pType,
sal_uInt16  nSubType = DATEFLD,
sal_uLong  nFormat = 0,
LanguageType  nLng = LANGUAGE_SYSTEM 
)

Member Function Documentation

◆ Copy()

std::unique_ptr< SwField > SwDateTimeField::Copy ( ) const
overrideprivatevirtual

◆ ExpandImpl()

OUString SwDateTimeField::ExpandImpl ( SwRootFrame const *  pLayout) const
overrideprivatevirtual

◆ GetDate()

Date SwDateTimeField::GetDate ( ) const

◆ GetDateTime()

double SwDateTimeField::GetDateTime ( SwDoc rDoc,
const DateTime rDT 
)
static

◆ GetOffset()

tools::Long SwDateTimeField::GetOffset ( ) const
inline

Definition at line 66 of file flddat.hxx.

◆ GetPar2()

OUString SwDateTimeField::GetPar2 ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 115 of file flddat.cxx.

References m_nOffset.

◆ GetSubType()

sal_uInt16 SwDateTimeField::GetSubType ( ) const
overridevirtual

Reimplemented from SwField.

Definition at line 100 of file flddat.cxx.

References m_nSubType.

Referenced by SwWW8ImplReader::Read_F_DateTime().

◆ GetTime()

tools::Time SwDateTimeField::GetTime ( ) const

Definition at line 162 of file flddat.cxx.

References DateTime::AddTime(), DateTime::EMPTY, GetValue(), and o3tl::temporary().

Referenced by QueryValue().

◆ GetValue()

double SwDateTimeField::GetValue ( ) const
overridevirtual

◆ PutValue()

bool SwDateTimeField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nMId 
)
overridevirtual

◆ QueryValue()

bool SwDateTimeField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nMId 
) const
overridevirtual

◆ SetDateTime()

void SwDateTimeField::SetDateTime ( const DateTime rDT)

◆ SetOffset()

void SwDateTimeField::SetOffset ( tools::Long  nMinutes)
inline

Definition at line 65 of file flddat.hxx.

Referenced by SwXTextField::attach().

◆ SetPar2()

void SwDateTimeField::SetPar2 ( const OUString &  rStr)
overridevirtual

Reimplemented from SwField.

Definition at line 110 of file flddat.cxx.

References m_nOffset.

◆ SetSubType()

void SwDateTimeField::SetSubType ( sal_uInt16  nSub)
overridevirtual

Reimplemented from SwField.

Definition at line 105 of file flddat.cxx.

References m_nSubType, and nType.

Referenced by SwWW8ImplReader::Read_F_DateTime().

Member Data Documentation

◆ m_nOffset

tools::Long SwDateTimeField::m_nOffset
private

Definition at line 48 of file flddat.hxx.

Referenced by Copy(), ExpandImpl(), GetPar2(), PutValue(), QueryValue(), and SetPar2().

◆ m_nSubType

sal_uInt16 SwDateTimeField::m_nSubType
private

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