LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
SwDBFieldType Class Referencefinal

#include <dbfld.hxx>

Inheritance diagram for SwDBFieldType:
Collaboration diagram for SwDBFieldType:

Public Member Functions

 SwDBFieldType (SwDoc *pDocPtr, const OUString &rColumnName, const SwDBData &rDBData)
virtual ~SwDBFieldType () override
virtual OUString GetName () const override
 Only in derived classes. More...
virtual std::unique_ptr< SwFieldTypeCopy () const override
void AddRef ()
void ReleaseRef ()
const OUString & GetColumnName () const
const SwDBDataGetDBData () const
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const override
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich) override
- Public Member Functions inherited from SwValueFieldType
SwDocGetDoc () const
void SetDoc (SwDoc *pNewDoc)
bool UseFormat () const
void EnableFormat (bool bFormat=true)
OUString ExpandValue (const double &rVal, sal_uInt32 nFormat, LanguageType nLng) const
 return value formatted as string More...
OUString DoubleToString (const double &rVal, LanguageType eLng) const
OUString DoubleToString (const double &rVal, sal_uInt32 nFormat) const
- Public Member Functions inherited from SwFieldType
SAL_DLLPRIVATE css::uno::WeakReference< css::beans::XPropertySet > const & GetXObject () const
SAL_DLLPRIVATE void SetXObject (css::uno::Reference< css::beans::XPropertySet > const &xFieldMaster)
SwFieldIds Which () const
void UpdateFields () const
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
SwFormatFieldFindFormatForField (const SwField *) const
SwFormatFieldFindFormatForPostItId (sal_uInt32 nPostItId) const
void CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines)
bool HasHiddenInformationNotes ()
void GatherNodeIndex (std::vector< sal_uLong > &rvNodeIndex)
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
- Public Member Functions inherited from SwModify
 SwModify ()
void NotifyClients (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
void ModifyBroadcast (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
virtual void CallSwClientNotify (const SfxHint &rHint) const
virtual ~SwModify () override
void Add (SwClient *pDepend)
SwClientRemove (SwClient *pDepend)
bool HasWriterListeners () const
virtual bool GetInfo (SfxPoolItem &) const override
void LockModify ()
void UnlockModify ()
void SetInCache (bool bNew)
void SetInSwFntCache (bool bNew)
void SetInDocDTOR ()
bool IsModifyLocked () const
bool IsInCache () const
bool IsInSwFntCache () const
void CheckCaching (const sal_uInt16 nWhich)
bool HasOnlyOneListener () const
- Public Member Functions inherited from SwClient
 SwClient ()
 SwClient (SwClient &&) noexcept
virtual ~SwClient () override
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
const SwModifyGetRegisteredIn () const
SwModifyGetRegisteredIn ()
void EndListeningAll ()
void StartListeningToSameModifyAs (const SwClient &)
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 BroadcasterMixin (BroadcasterMixin const &)=default
BroadcasterMixinoperator= (const BroadcasterMixin &)
SvtBroadcasterGetNotifier ()

Private Attributes

SwDBData m_aDBData
OUString m_sName
 only used in ::GetName() ! More...
OUString m_sColumn
long m_nRefCnt

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static OUString GetTypeStr (SwFieldTypesEnum nTypeId)
- Protected Member Functions inherited from SwValueFieldType
 SwValueFieldType (SwDoc *pDocPtr, SwFieldIds nWhichId)
 SwValueFieldType (const SwValueFieldType &rTyp)
- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
SwModifyGetRegisteredInNonConst () const
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE

Detailed Description

Definition at line 29 of file dbfld.hxx.

Constructor & Destructor Documentation

SwDBFieldType::SwDBFieldType ( SwDoc pDocPtr,
const OUString &  rColumnName,
const SwDBData rDBData 

Definition at line 49 of file dbfld.cxx.

References Database, DB_DELIM, m_aDBData, m_sName, m_sName, SwDBData::sCommand, and SwDBData::sDataSource.

SwDBFieldType::~SwDBFieldType ( )

Definition at line 66 of file dbfld.cxx.

Member Function Documentation

void SwDBFieldType::AddRef ( )

Definition at line 44 of file dbfld.hxx.

std::unique_ptr< SwFieldType > SwDBFieldType::Copy ( ) const

Implements SwFieldType.

Definition at line 70 of file dbfld.cxx.

References SwValueFieldType::GetDoc(), m_aDBData, and m_sColumn.

const OUString& SwDBFieldType::GetColumnName ( ) const

Definition at line 47 of file dbfld.hxx.

Referenced by SwDoc::ChangeDBFields().

const SwDBData& SwDBFieldType::GetDBData ( ) const

Definition at line 48 of file dbfld.hxx.

OUString SwDBFieldType::GetName ( ) const

Only in derived classes.

Reimplemented from SwFieldType.

Definition at line 75 of file dbfld.cxx.

References m_sName.

void SwDBFieldType::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
void SwDBFieldType::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
void SwDBFieldType::ReleaseRef ( )

Member Data Documentation

SwDBData SwDBFieldType::m_aDBData

Definition at line 31 of file dbfld.hxx.

Referenced by Copy(), PutValue(), QueryValue(), and SwDBFieldType().

long SwDBFieldType::m_nRefCnt

Definition at line 34 of file dbfld.hxx.

Referenced by ReleaseRef().

OUString SwDBFieldType::m_sColumn

Definition at line 33 of file dbfld.hxx.

Referenced by Copy(), PutValue(), and QueryValue().

OUString SwDBFieldType::m_sName

only used in ::GetName() !

Definition at line 32 of file dbfld.hxx.

Referenced by GetName(), and SwDBFieldType().

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