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

#include <dbfld.hxx>

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

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
 
void PrintHiddenPara ()
 
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 () const
 
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 sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
bool HasOnlyOneListener () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
bool IsModifyLocked () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () 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
 
tools::Long m_nRefCnt
 

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static const 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 SwModify
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- 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 48 of file dbfld.cxx.

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

SwDBFieldType::~SwDBFieldType ( )
overridevirtual

Definition at line 65 of file dbfld.cxx.

Member Function Documentation

void SwDBFieldType::AddRef ( )
inline

Definition at line 44 of file dbfld.hxx.

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

Implements SwFieldType.

Definition at line 69 of file dbfld.cxx.

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

const OUString& SwDBFieldType::GetColumnName ( ) const
inline

Definition at line 47 of file dbfld.hxx.

Referenced by SwDoc::ChangeDBFields().

const SwDBData& SwDBFieldType::GetDBData ( ) const
inline

Definition at line 48 of file dbfld.hxx.

OUString SwDBFieldType::GetName ( ) const
overridevirtual

Only in derived classes.

Reimplemented from SwFieldType.

Definition at line 74 of file dbfld.cxx.

References m_sName.

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

Member Data Documentation

SwDBData SwDBFieldType::m_aDBData
private

Definition at line 31 of file dbfld.hxx.

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

tools::Long SwDBFieldType::m_nRefCnt
private

Definition at line 34 of file dbfld.hxx.

Referenced by ReleaseRef().

OUString SwDBFieldType::m_sColumn
private

Definition at line 33 of file dbfld.hxx.

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

OUString SwDBFieldType::m_sName
private

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: