LibreOffice Module sw (master) 1
|
#include <docufld.hxx>
Public Member Functions | |
SwDocInfoField (SwDocInfoFieldType *, sal_uInt16 nSub, const OUString &rName, sal_uInt32 nFormat=0) | |
SwDocInfoField (SwDocInfoFieldType *, sal_uInt16 nSub, const OUString &rName, const OUString &rValue, sal_uInt32 nFormat=0) | |
virtual void | SetSubType (sal_uInt16) override |
virtual sal_uInt16 | GetSubType () const override |
virtual void | SetLanguage (LanguageType nLng) override |
set language of the format More... | |
virtual OUString | GetFieldName () const override |
get name or content More... | |
const OUString & | GetName () const |
void | SetName (const OUString &rName) |
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 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) |
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 |
OUString | m_aContent |
OUString | m_aName |
Additional Inherited Members | |
Static Public Member Functions inherited from SwValueField | |
static sal_uInt32 | GetSystemFormat (SvNumberFormatter *pFormatter, sal_uInt32 nFormat) |
get format in office language More... | |
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 531 of file docufld.hxx.
SwDocInfoField::SwDocInfoField | ( | SwDocInfoFieldType * | pTyp, |
sal_uInt16 | nSub, | ||
const OUString & | rName, | ||
sal_uInt32 | nFormat = 0 |
||
) |
Definition at line 1011 of file docufld.cxx.
References Expand, SwField::GetLanguage(), SwField::GetTyp(), m_aContent, m_aName, and m_nSubType.
Referenced by Copy().
SwDocInfoField::SwDocInfoField | ( | SwDocInfoFieldType * | pTyp, |
sal_uInt16 | nSub, | ||
const OUString & | rName, | ||
const OUString & | rValue, | ||
sal_uInt32 | nFormat = 0 |
||
) |
Definition at line 1018 of file docufld.cxx.
References m_aContent, and m_aName.
|
overrideprivatevirtual |
Implements SwField.
Definition at line 1145 of file docufld.cxx.
References SwField::GetFormat(), SwField::GetTyp(), SwField::IsAutomaticLanguage(), m_aContent, m_aName, m_nSubType, and SwDocInfoField().
|
overrideprivatevirtual |
Implements SwField.
Definition at line 1044 of file docufld.cxx.
References nsSwDocInfoSubType::DI_CUSTOM, Expand, SwValueField::ExpandValue(), SwDocShell::GetDoc(), SwValueField::GetDoc(), SwDoc::GetDocShell(), SwField::GetFormat(), SwField::GetLanguage(), SfxObjectShell::GetModel(), SvNumberFormatter::GetNullDate(), SwDoc::GetNumberFormatter(), comphelper::getProcessComponentContext(), SwViewShell::GetShellRes(), SwField::GetTyp(), SwField::IsFixed(), m_aContent, m_aName, m_nSubType, ShellResource::sDurationFormat, and xConverter.
Referenced by QueryValue().
|
overridevirtual |
get name or content
Reimplemented from SwField.
Definition at line 1121 of file docufld.cxx.
References ShellResource::aDocInfoLst, ShellResource::aFixedStr, aStr, nsSwDocInfoSubType::DI_CUSTOM, nsSwDocInfoSubType::DI_SUBTYPE_BEGIN, SwViewShell::GetShellRes(), SwField::GetTypeId(), SwFieldType::GetTypeStr(), SwField::IsFixed(), m_aName, and m_nSubType.
|
inline |
Definition at line 548 of file docufld.hxx.
References m_aName.
Referenced by sw::DocumentFieldsManager::SetFixFields(), AttributeOutputBase::TextField(), and SwXTextField::update().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1154 of file docufld.cxx.
References m_nSubType.
Referenced by sw::DocumentFieldsManager::SetFixFields(), and SwXTextField::update().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1217 of file docufld.cxx.
References nsSwDocInfoSubType::DI_SUB_DATE, nsSwDocInfoSubType::DI_SUB_FIXED, nsSwDocInfoSubType::DI_SUB_TIME, FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR3, FIELD_PROP_USHORT1, m_aContent, m_nSubType, nValue, SwField::PutValue(), and SwField::SetFormat().
|
overridevirtual |
Reimplemented from SwField.
Definition at line 1172 of file docufld.cxx.
References nsSwDocInfoSubType::DI_SUB_DATE, nsSwDocInfoSubType::DI_SUB_FIXED, ExpandImpl(), FIELD_PROP_BOOL1, FIELD_PROP_BOOL2, FIELD_PROP_DOUBLE, FIELD_PROP_FORMAT, FIELD_PROP_PAR1, FIELD_PROP_PAR3, FIELD_PROP_PAR4, FIELD_PROP_USHORT1, SwField::GetFormat(), SwValueField::GetValue(), m_aContent, m_aName, m_nSubType, and SwField::QueryValue().
|
inline |
Definition at line 550 of file docufld.hxx.
References m_aContent.
Referenced by sw::DocumentFieldsManager::SetFixFields(), and SwXTextField::update().
|
overridevirtual |
set language of the format
Reimplemented from SwValueField.
Definition at line 1164 of file docufld.cxx.
References SwField::GetFormat(), SwField::SetLanguage(), and SwValueField::SetLanguage().
|
inline |
Definition at line 549 of file docufld.hxx.
References m_aName.
Referenced by SwFieldPage::InsertField().
|
overridevirtual |
|
private |
Definition at line 534 of file docufld.hxx.
Referenced by Copy(), ExpandImpl(), PutValue(), QueryValue(), and SwDocInfoField().
|
private |
Definition at line 535 of file docufld.hxx.
Referenced by Copy(), ExpandImpl(), GetFieldName(), QueryValue(), and SwDocInfoField().
|
private |
Definition at line 533 of file docufld.hxx.
Referenced by Copy(), ExpandImpl(), GetFieldName(), GetSubType(), PutValue(), QueryValue(), SetSubType(), and SwDocInfoField().