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, SwDBData aDBData)
 
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
 
virtual void UpdateFields () 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
 
OUString GetInputOrDateTime (const OUString &rInput, const double &rVal, sal_uInt32 nFormat) const
 Query input or formatted value for dialog. More...
 
- Public Member Functions inherited from SwFieldType
unotools::WeakReference< SwXFieldMaster > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXFieldMaster > const &xFieldMaster)
 
virtual OUString GetName () const
 Only in derived classes. More...
 
virtual std::unique_ptr< SwFieldTypeCopy () const =0
 
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const
 
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich)
 
SwFieldIds Which () 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< SwNodeOffset > &rvNodeIndex)
 
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
 
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
 
void GatherDdeTables (std::vector< SwDDETable * > &rvTables) const
 
void UpdateDocPos (const SwTwips nDocPos)
 
virtual void UpdateFields ()
 

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...
 

Detailed Description

Definition at line 29 of file dbfld.hxx.

Constructor & Destructor Documentation

◆ SwDBFieldType()

SwDBFieldType::SwDBFieldType ( SwDoc pDocPtr,
const OUString &  rColumnName,
SwDBData  aDBData 
)

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::~SwDBFieldType ( )
overridevirtual

Definition at line 66 of file dbfld.cxx.

Member Function Documentation

◆ AddRef()

void SwDBFieldType::AddRef ( )
inline

Definition at line 44 of file dbfld.hxx.

◆ Copy()

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

Implements SwFieldType.

Definition at line 70 of file dbfld.cxx.

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

◆ GetColumnName()

const OUString & SwDBFieldType::GetColumnName ( ) const
inline

Definition at line 47 of file dbfld.hxx.

Referenced by SwDoc::ChangeDBFields(), and AttributeOutputBase::TextField().

◆ GetDBData()

const SwDBData & SwDBFieldType::GetDBData ( ) const
inline

Definition at line 48 of file dbfld.hxx.

◆ GetName()

OUString SwDBFieldType::GetName ( ) const
overridevirtual

Only in derived classes.

Reimplemented from SwFieldType.

Definition at line 75 of file dbfld.cxx.

References m_sName.

◆ PutValue()

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

◆ QueryValue()

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

◆ ReleaseRef()

void SwDBFieldType::ReleaseRef ( )

◆ UpdateFields()

virtual void SwDBFieldType::UpdateFields ( )
inlineoverridevirtual

Reimplemented from SwFieldType.

Definition at line 52 of file dbfld.hxx.

Member Data Documentation

◆ m_aDBData

SwDBData SwDBFieldType::m_aDBData
private

Definition at line 31 of file dbfld.hxx.

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

◆ m_nRefCnt

tools::Long SwDBFieldType::m_nRefCnt
private

Definition at line 34 of file dbfld.hxx.

Referenced by ReleaseRef().

◆ m_sColumn

OUString SwDBFieldType::m_sColumn
private

Definition at line 33 of file dbfld.hxx.

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

◆ m_sName

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: