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

#include <flditem.hxx>

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

Public Member Functions

virtual sal_Int32 GetClassId () const override
 
 SvxDateField ()
 
 SvxDateField (const Date &rDate, SvxDateType eType, SvxDateFormat eFormat=SvxDateFormat::StdSmall)
 
sal_Int32 GetFixDate () const
 
void SetFixDate (const Date &rDate)
 
SvxDateType GetType () const
 
void SetType (SvxDateType eTp)
 
SvxDateFormat GetFormat () const
 
void SetFormat (SvxDateFormat eFmt)
 
OUString GetFormatted (SvNumberFormatter &rFormatter, LanguageType eLanguage) const
 
virtual std::unique_ptr< SvxFieldDataClone () const override
 
virtual bool operator== (const SvxFieldData &) const override
 
virtual MetaActioncreateBeginComment () const override
 
- Public Member Functions inherited from SvxFieldData
virtual sal_Int32 GetClassId () const
 
 SvxFieldData ()
 
virtual ~SvxFieldData ()
 
 SvxFieldData (SvxFieldData const &)=default
 
 SvxFieldData (SvxFieldData &&)=default
 
SvxFieldDataoperator= (SvxFieldData const &)=default
 
SvxFieldDataoperator= (SvxFieldData &&)=default
 
virtual std::unique_ptr< SvxFieldDataClone () const
 
virtual bool operator== (const SvxFieldData &) const
 
virtual MetaActioncreateBeginComment () const
 

Static Public Member Functions

static OUString GetFormatted (Date const &rDate, SvxDateFormat eFormat, SvNumberFormatter &rFormatter, LanguageType eLanguage)
 
- Static Public Member Functions inherited from SvxFieldData
static SvxFieldDataCreate (const css::uno::Reference< css::text::XTextContent > &xContent)
 
static MetaActioncreateEndComment ()
 

Static Public Attributes

static constexpr auto CLASS_ID = css::text::textfield::Type::DATE
 
- Static Public Attributes inherited from SvxFieldData
static constexpr auto CLASS_ID = css::text::textfield::Type::UNSPECIFIED
 

Private Attributes

sal_Int32 nFixDate
 
SvxDateType eType
 
SvxDateFormat eFormat
 

Detailed Description

Definition at line 102 of file flditem.hxx.

Constructor & Destructor Documentation

◆ SvxDateField() [1/2]

SvxDateField::SvxDateField ( )

Definition at line 323 of file flditem.cxx.

References eFormat, eType, Date::GetDate(), nFixDate, StdSmall, Date::SYSTEM, and Var.

◆ SvxDateField() [2/2]

SvxDateField::SvxDateField ( const Date rDate,
SvxDateType  eType,
SvxDateFormat  eFormat = SvxDateFormat::StdSmall 
)
explicit

Definition at line 331 of file flditem.cxx.

References eFormat, eType, Date::GetDate(), and nFixDate.

Member Function Documentation

◆ Clone()

std::unique_ptr< SvxFieldData > SvxDateField::Clone ( ) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 339 of file flditem.cxx.

◆ createBeginComment()

MetaAction * SvxDateField::createBeginComment ( ) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 429 of file flditem.cxx.

◆ GetClassId()

virtual sal_Int32 SvxDateField::GetClassId ( ) const
inlineoverridevirtual

Reimplemented from SvxFieldData.

Definition at line 110 of file flditem.hxx.

◆ GetFixDate()

sal_Int32 SvxDateField::GetFixDate ( ) const
inline

Definition at line 117 of file flditem.hxx.

◆ GetFormat()

SvxDateFormat SvxDateField::GetFormat ( ) const
inline

Definition at line 123 of file flditem.hxx.

◆ GetFormatted() [1/2]

OUString SvxDateField::GetFormatted ( Date const &  rDate,
SvxDateFormat  eFormat,
SvNumberFormatter rFormatter,
LanguageType  eLanguage 
)
static

◆ GetFormatted() [2/2]

OUString SvxDateField::GetFormatted ( SvNumberFormatter rFormatter,
LanguageType  eLanguage 
) const

◆ GetType()

SvxDateType SvxDateField::GetType ( ) const
inline

Definition at line 120 of file flditem.hxx.

References eType.

◆ operator==()

bool SvxDateField::operator== ( const SvxFieldData rOther) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 345 of file flditem.cxx.

References eFormat, eType, and nFixDate.

◆ SetFixDate()

void SvxDateField::SetFixDate ( const Date rDate)
inline

Definition at line 118 of file flditem.hxx.

References Date::GetDate().

◆ SetFormat()

void SvxDateField::SetFormat ( SvxDateFormat  eFmt)
inline

Definition at line 124 of file flditem.hxx.

◆ SetType()

void SvxDateField::SetType ( SvxDateType  eTp)
inline

Definition at line 121 of file flditem.hxx.

References eType.

Member Data Documentation

◆ CLASS_ID

constexpr auto SvxDateField::CLASS_ID = css::text::textfield::Type::DATE
staticconstexpr

Definition at line 109 of file flditem.hxx.

◆ eFormat

SvxDateFormat SvxDateField::eFormat
private

Definition at line 106 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxDateField().

◆ eType

SvxDateType SvxDateField::eType
private

Definition at line 105 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxDateField().

◆ nFixDate

sal_Int32 SvxDateField::nFixDate
private

Definition at line 104 of file flditem.hxx.

Referenced by GetFormatted(), operator==(), and SvxDateField().


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