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

#include <flditem.hxx>

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

Public Member Functions

virtual sal_Int32 GetClassId () const override
 
 SvxExtTimeField ()
 
 SvxExtTimeField (const tools::Time &rTime, SvxTimeType eType, SvxTimeFormat eFormat=SvxTimeFormat::Standard)
 
sal_Int64 GetFixTime () const
 
void SetFixTime (const tools::Time &rTime)
 
SvxTimeType GetType () const
 
void SetType (SvxTimeType eTp)
 
SvxTimeFormat GetFormat () const
 
void SetFormat (SvxTimeFormat 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 (tools::Time const &rTime, SvxTimeFormat 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::EXTENDED_TIME
 
- Static Public Attributes inherited from SvxFieldData
static constexpr auto CLASS_ID = css::text::textfield::Type::UNSPECIFIED
 

Private Attributes

sal_Int64 m_nFixTime
 
SvxTimeType eType
 
SvxTimeFormat eFormat
 

Detailed Description

Definition at line 273 of file flditem.hxx.

Constructor & Destructor Documentation

◆ SvxExtTimeField() [1/2]

SvxExtTimeField::SvxExtTimeField ( )

Definition at line 587 of file flditem.cxx.

References eFormat, eType, GetTime(), Standard, Time, and Var.

◆ SvxExtTimeField() [2/2]

SvxExtTimeField::SvxExtTimeField ( const tools::Time rTime,
SvxTimeType  eType,
SvxTimeFormat  eFormat = SvxTimeFormat::Standard 
)
explicit

Definition at line 595 of file flditem.cxx.

References eFormat, eType, and GetTime().

Member Function Documentation

◆ Clone()

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

Reimplemented from SvxFieldData.

Definition at line 603 of file flditem.cxx.

◆ createBeginComment()

MetaAction * SvxExtTimeField::createBeginComment ( ) const
overridevirtual

Reimplemented from SvxFieldData.

Definition at line 692 of file flditem.cxx.

◆ GetClassId()

virtual sal_Int32 SvxExtTimeField::GetClassId ( ) const
inlineoverridevirtual

Reimplemented from SvxFieldData.

Definition at line 282 of file flditem.hxx.

◆ GetFixTime()

sal_Int64 SvxExtTimeField::GetFixTime ( ) const
inline

Definition at line 288 of file flditem.hxx.

◆ GetFormat()

SvxTimeFormat SvxExtTimeField::GetFormat ( ) const
inline

Definition at line 294 of file flditem.hxx.

◆ GetFormatted() [1/2]

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

◆ GetFormatted() [2/2]

OUString SvxExtTimeField::GetFormatted ( tools::Time const &  rTime,
SvxTimeFormat  eFormat,
SvNumberFormatter rFormatter,
LanguageType  eLanguage 
)
static

◆ GetType()

SvxTimeType SvxExtTimeField::GetType ( ) const
inline

Definition at line 291 of file flditem.hxx.

References eType.

◆ operator==()

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

Reimplemented from SvxFieldData.

Definition at line 609 of file flditem.cxx.

References eFormat, eType, and m_nFixTime.

◆ SetFixTime()

void SvxExtTimeField::SetFixTime ( const tools::Time rTime)
inline

Definition at line 289 of file flditem.hxx.

References tools::Time::GetTime().

◆ SetFormat()

void SvxExtTimeField::SetFormat ( SvxTimeFormat  eFmt)
inline

Definition at line 295 of file flditem.hxx.

◆ SetType()

void SvxExtTimeField::SetType ( SvxTimeType  eTp)
inline

Definition at line 292 of file flditem.hxx.

References eType.

Member Data Documentation

◆ CLASS_ID

constexpr auto SvxExtTimeField::CLASS_ID = css::text::textfield::Type::EXTENDED_TIME
staticconstexpr

Definition at line 281 of file flditem.hxx.

◆ eFormat

SvxTimeFormat SvxExtTimeField::eFormat
private

Definition at line 278 of file flditem.hxx.

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

◆ eType

SvxTimeType SvxExtTimeField::eType
private

Definition at line 277 of file flditem.hxx.

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

◆ m_nFixTime

sal_Int64 SvxExtTimeField::m_nFixTime
private

Definition at line 276 of file flditem.hxx.

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


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