LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwDBNameInfField Class Reference

#include <dbfld.hxx>

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

Public Member Functions

const SwDBDataGetRealDBData () const
 DBName. More...
 
SwDBDataGetRealDBData ()
 
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
 
SwFieldoperator= (SwField const &)=default
 
SwFieldoperator= (SwField &&)=default
 
SwFieldTypeGetTyp () const
 
virtual SwFieldTypeChgTyp (SwFieldType *)
 Set new type (used for copying among documents). More...
 
OUString ExpandField (bool bCached, SwRootFrame const *pLayout) const
 expand the field. More...
 
std::unique_ptr< SwFieldCopyField () const
 
SwFieldIds Which () const
 ResId. More...
 
SwFieldTypesEnum GetTypeId () const
 
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)
 
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
 

Protected Member Functions

const SwDBDataGetDBData () const
 
SwDBDataGetDBData ()
 
 SwDBNameInfField (SwFieldType *pTyp, const SwDBData &rDBData, 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)
 

Private Attributes

SwDBData m_aDBData
 
sal_uInt16 m_nSubType
 

Detailed Description

Definition at line 121 of file dbfld.hxx.

Constructor & Destructor Documentation

SwDBNameInfField::SwDBNameInfField ( SwFieldType pTyp,
const SwDBData rDBData,
sal_uInt32  nFormat = 0 
)
protected

Definition at line 456 of file dbfld.cxx.

Member Function Documentation

const SwDBData& SwDBNameInfField::GetDBData ( ) const
inlineprotected
SwDBData& SwDBNameInfField::GetDBData ( )
inlineprotected

Definition at line 128 of file dbfld.hxx.

SwDBData SwDBNameInfField::GetDBData ( SwDoc pDoc)

Definition at line 463 of file dbfld.cxx.

References SwDoc::GetDBData(), m_aDBData, and SwDBData::sDataSource.

OUString SwDBNameInfField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 478 of file dbfld.cxx.

References DB_DELIM, SwField::GetFieldName(), lcl_DBSeparatorConvert(), m_aDBData, SwDBData::sCommand, and SwDBData::sDataSource.

const SwDBData& SwDBNameInfField::GetRealDBData ( ) const
inline

DBName.

Definition at line 134 of file dbfld.hxx.

Referenced by sw::DocumentFieldsManager::UpdateDBNumFields().

SwDBData& SwDBNameInfField::GetRealDBData ( )
inline

Definition at line 135 of file dbfld.hxx.

sal_uInt16 SwDBNameInfField::GetSubType ( ) const
overridevirtual
bool SwDBNameInfField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
bool SwDBNameInfField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual
void SwDBNameInfField::SetDBData ( const SwDBData rDBData)

Definition at line 473 of file dbfld.cxx.

References m_aDBData.

void SwDBNameInfField::SetSubType ( sal_uInt16  nType)
overridevirtual

Reimplemented from SwField.

Definition at line 550 of file dbfld.cxx.

References m_nSubType.

Referenced by PutValue().

Member Data Documentation

SwDBData SwDBNameInfField::m_aDBData
private

Definition at line 123 of file dbfld.hxx.

Referenced by GetDBData(), GetFieldName(), PutValue(), QueryValue(), and SetDBData().

sal_uInt16 SwDBNameInfField::m_nSubType
private

Definition at line 124 of file dbfld.hxx.

Referenced by GetSubType(), and SetSubType().


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