LibreOffice Module sw (master) 1
|
#include <flddat.hxx>
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 SwFieldType * | ChgTyp (SwFieldType *) override |
Set a new type. More... | |
virtual void | SetLanguage (LanguageType nLng) override |
set language of the format More... | |
SwDoc * | GetDoc () 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 | |
SwField & | operator= (SwField const &)=default |
SwField & | operator= (SwField &&)=default |
SwFieldType * | GetTyp () const |
virtual SwFieldType * | ChgTyp (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< SwField > | CopyField () 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< SwField > | Copy () 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) | |
Definition at line 45 of file flddat.hxx.
SwDateTimeField::SwDateTimeField | ( | SwDateTimeFieldType * | pType, |
sal_uInt16 | nSubType = DATEFLD , |
||
sal_uLong | nFormat = 0 , |
||
LanguageType | nLng = LANGUAGE_SYSTEM |
||
) |
Definition at line 44 of file flddat.cxx.
References SwField::ChangeFormat(), DATEFLD, SwValueField::GetDoc(), SvNumberFormatter::GetFormatIndex(), SwField::GetLanguage(), SwDoc::GetNumberFormatter(), SwField::IsFixed(), m_nSubType, NF_DATE_SYSTEM_SHORT, NF_TIME_HHMMSS, SetDateTime(), and DateTime::SYSTEM.
Referenced by Copy().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 87 of file flddat.cxx.
References SwField::GetFormat(), SwField::GetLanguage(), SwField::GetTyp(), GetValue(), SwField::IsAutomaticLanguage(), m_nOffset, m_nSubType, and SwDateTimeField().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 64 of file flddat.cxx.
References SwValueField::ExpandValue(), FIXEDFLD, GetDateTime(), SwValueField::GetDoc(), SwField::GetFormat(), SwField::GetLanguage(), GetValue(), SwField::IsFixed(), m_nOffset, m_nSubType, and DateTime::SYSTEM.
Date SwDateTimeField::GetDate | ( | ) | const |
Definition at line 150 of file flddat.cxx.
References SwValueField::GetDoc(), SvNumberFormatter::GetNullDate(), SwDoc::GetNumberFormatter(), and GetValue().
Referenced by QueryValue().
Definition at line 127 of file flddat.cxx.
References SvNumberFormatter::GetNullDate(), SwDoc::GetNumberFormatter(), and DateTime::Sub().
Referenced by SwDocInfoFieldType::Expand(), ExpandImpl(), GetValue(), and SetDateTime().
|
inline |
Definition at line 66 of file flddat.hxx.
|
overridevirtual |
|
overridevirtual |
Reimplemented from SwField.
Definition at line 100 of file flddat.cxx.
References m_nSubType.
Referenced by SwWW8ImplReader::Read_F_DateTime().
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().
|
overridevirtual |
Reimplemented from SwValueField.
Definition at line 137 of file flddat.cxx.
References FIXEDFLD, GetDateTime(), SwValueField::GetDoc(), SwValueField::GetValue(), SwField::IsFixed(), m_nSubType, and DateTime::SYSTEM.
Referenced by Copy(), ExpandImpl(), GetDate(), and GetTime().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 198 of file flddat.cxx.
References SwField::ChangeFormat(), DATEFLD, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_DATE_TIME, FIELD_PROP_FORMAT, FIELD_PROP_SUBTYPE, FIXEDFLD, m_nOffset, m_nSubType, SwField::PutValue(), SetDateTime(), and TIMEFLD.
|
overridevirtual |
Reimplemented from SwField.
Definition at line 170 of file flddat.cxx.
References DATEFLD, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_DATE_TIME, FIELD_PROP_FORMAT, FIELD_PROP_SUBTYPE, GetDate(), SwField::GetFormat(), GetTime(), DateTime::GetUNODateTime(), SwField::IsFixed(), m_nOffset, m_nSubType, and SwField::QueryValue().
void SwDateTimeField::SetDateTime | ( | const DateTime & | rDT | ) |
Definition at line 122 of file flddat.cxx.
References GetDateTime(), SwValueField::GetDoc(), and SwValueField::SetValue().
Referenced by PutValue(), SwWW8ImplReader::Read_F_DateTime(), and SwDateTimeField().
|
inline |
Definition at line 65 of file flddat.hxx.
Referenced by SwXTextField::attach().
|
overridevirtual |
|
overridevirtual |
Reimplemented from SwField.
Definition at line 105 of file flddat.cxx.
References m_nSubType, and nType.
Referenced by SwWW8ImplReader::Read_F_DateTime().
|
private |
Definition at line 48 of file flddat.hxx.
Referenced by Copy(), ExpandImpl(), GetPar2(), PutValue(), QueryValue(), and SetPar2().
|
private |
Definition at line 47 of file flddat.hxx.
Referenced by Copy(), ExpandImpl(), GetSubType(), GetValue(), PutValue(), QueryValue(), SetSubType(), and SwDateTimeField().