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...
 
virtual OUString GetFieldName () const
 get name or content More...
 
std::unique_ptr< SwFieldCopyField () 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)
 

Protected Member Functions

const SwDBDataGetDBData () const
 
SwDBDataGetDBData ()
 
 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)
 

Private Attributes

SwDBData m_aDBData
 
sal_uInt16 m_nSubType
 

Detailed Description

Definition at line 122 of file dbfld.hxx.

Constructor & Destructor Documentation

◆ SwDBNameInfField()

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

Definition at line 443 of file dbfld.cxx.

Member Function Documentation

◆ GetDBData() [1/3]

SwDBData & SwDBNameInfField::GetDBData ( )
inlineprotected

Definition at line 129 of file dbfld.hxx.

◆ GetDBData() [2/3]

const SwDBData & SwDBNameInfField::GetDBData ( ) const
inlineprotected

◆ GetDBData() [3/3]

SwDBData SwDBNameInfField::GetDBData ( SwDoc pDoc)

Definition at line 450 of file dbfld.cxx.

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

◆ GetFieldName()

OUString SwDBNameInfField::GetFieldName ( ) const
overridevirtual

get name or content

Returns
name or content.

Reimplemented from SwField.

Definition at line 465 of file dbfld.cxx.

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

◆ GetRealDBData() [1/2]

SwDBData & SwDBNameInfField::GetRealDBData ( )
inline

Definition at line 136 of file dbfld.hxx.

◆ GetRealDBData() [2/2]

const SwDBData & SwDBNameInfField::GetRealDBData ( ) const
inline

DBName.

Definition at line 135 of file dbfld.hxx.

Referenced by SwDoc::ChangeDBFields(), and sw::DocumentFieldsManager::UpdateDBNumFields().

◆ GetSubType()

sal_uInt16 SwDBNameInfField::GetSubType ( ) const
overridevirtual

◆ PutValue()

bool SwDBNameInfField::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual

◆ QueryValue()

bool SwDBNameInfField::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual

◆ SetDBData()

void SwDBNameInfField::SetDBData ( const SwDBData rDBData)

Definition at line 460 of file dbfld.cxx.

References m_aDBData.

◆ SetSubType()

void SwDBNameInfField::SetSubType ( sal_uInt16  nType)
overridevirtual

Reimplemented from SwField.

Definition at line 537 of file dbfld.cxx.

References m_nSubType, and nType.

Referenced by PutValue().

Member Data Documentation

◆ m_aDBData

SwDBData SwDBNameInfField::m_aDBData
private

Definition at line 124 of file dbfld.hxx.

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

◆ m_nSubType

sal_uInt16 SwDBNameInfField::m_nSubType
private

Definition at line 125 of file dbfld.hxx.

Referenced by GetSubType(), and SetSubType().


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