LibreOffice Module sw (master) 1
|
#include <dbfld.hxx>
Public Member Functions | |
SwDBSetNumberField (SwDBSetNumberFieldType *, const SwDBData &rDBData, sal_uInt32 nFormat=0) | |
virtual OUString | ExpandImpl (SwRootFrame const *pLayout) const override |
virtual std::unique_ptr< SwField > | Copy () const override |
void | Evaluate (const SwDoc &) |
tools::Long | GetSetNumber () const |
void | SetSetNumber (tools::Long nNum) |
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 SwDBNameInfField | |
const SwDBData & | GetRealDBData () const |
DBName. More... | |
SwDBData & | GetRealDBData () |
SwDBData | GetDBData (SwDoc *pDoc) |
void | SetDBData (const SwDBData &rDBData) |
virtual OUString | GetFieldName () const override |
get name or content More... | |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override |
virtual sal_uInt16 | GetSubType () const override |
virtual void | SetSubType (sal_uInt16 nType) 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 Attributes | |
tools::Long | m_nNumber |
Additional Inherited Members | |
Protected Member Functions inherited from SwDBNameInfField | |
const SwDBData & | GetDBData () const |
SwDBData & | GetDBData () |
SwDBNameInfField (SwFieldType *pTyp, SwDBData aDBData, sal_uInt32 nFormat=0) | |
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) | |
SwDBSetNumberField::SwDBSetNumberField | ( | SwDBSetNumberFieldType * | pTyp, |
const SwDBData & | rDBData, | ||
sal_uInt32 | nFormat = 0 |
||
) |
|
overridevirtual |
Implements SwField.
Definition at line 821 of file dbfld.cxx.
References SwDBNameInfField::GetDBData(), SwField::GetFormat(), SwField::GetLanguage(), SwDBNameInfField::GetSubType(), SwField::GetTyp(), m_nNumber, and SwDBSetNumberField().
void SwDBSetNumberField::Evaluate | ( | const SwDoc & | rDoc | ) |
Definition at line 810 of file dbfld.cxx.
References SwDBNameInfField::GetDBData(), SwDoc::GetDBManager(), SwDBManager::GetSelectedRecordId(), SwDBManager::IsDataSourceOpen(), SwDBManager::IsInMerge(), m_nNumber, SwDBData::sCommand, and SwDBData::sDataSource.
Referenced by sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overridevirtual |
Implements SwField.
Definition at line 803 of file dbfld.cxx.
References FormatNumber(), SwField::GetFormat(), SwDBNameInfField::GetSubType(), m_nNumber, and nsSwExtendedSubType::SUB_INVISIBLE.
|
inline |
Definition at line 283 of file dbfld.hxx.
References m_nNumber.
Referenced by sw::DocumentFieldsManager::UpdateExpFieldsImpl().
|
overridevirtual |
Reimplemented from SwDBNameInfField.
Definition at line 848 of file dbfld.cxx.
References FIELD_PROP_FORMAT, FIELD_PROP_USHORT1, m_nNumber, SwDBNameInfField::PutValue(), and SwField::SetFormat().
|
overridevirtual |
Reimplemented from SwDBNameInfField.
Definition at line 831 of file dbfld.cxx.
References FIELD_PROP_FORMAT, FIELD_PROP_USHORT1, SwField::GetFormat(), m_nNumber, and SwDBNameInfField::QueryValue().
|
inline |
Definition at line 286 of file dbfld.hxx.
References m_nNumber.
Referenced by SwXTextField::attach().
|
private |
Definition at line 269 of file dbfld.hxx.
Referenced by Copy(), Evaluate(), ExpandImpl(), GetSetNumber(), PutValue(), QueryValue(), and SetSetNumber().