LibreOffice Module sw (master) 1
|
#include <dbfld.hxx>
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< SwFieldType > | Copy () const override |
void | AddRef () |
void | ReleaseRef () |
const OUString & | GetColumnName () const |
const SwDBData & | GetDBData () 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 | |
SwDoc * | GetDoc () 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< SwFieldType > | Copy () 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 |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (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... | |
Definition at line 49 of file dbfld.cxx.
References Database, DB_DELIM, m_aDBData, m_sName, m_sName, SwDBData::sCommand, and SwDBData::sDataSource.
|
overridevirtual |
Implements SwFieldType.
Definition at line 70 of file dbfld.cxx.
References SwValueFieldType::GetDoc(), m_aDBData, and m_sColumn.
|
inline |
Definition at line 47 of file dbfld.hxx.
Referenced by SwDoc::ChangeDBFields(), and AttributeOutputBase::TextField().
|
overridevirtual |
Only in derived classes.
Reimplemented from SwFieldType.
Definition at line 75 of file dbfld.cxx.
References m_sName.
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 122 of file dbfld.cxx.
References SwDBField::ClearInitialized(), FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_SHORT1, SwFieldType::GatherFields(), SwDBField::InitContent(), m_aDBData, m_sColumn, SwDBData::nCommandType, SwDBData::sCommand, and SwDBData::sDataSource.
|
overridevirtual |
Reimplemented from SwFieldType.
Definition at line 101 of file dbfld.cxx.
References FIELD_PROP_PAR1, FIELD_PROP_PAR2, FIELD_PROP_PAR3, FIELD_PROP_SHORT1, m_aDBData, m_sColumn, SwDBData::nCommandType, SwDBData::sCommand, and SwDBData::sDataSource.
void SwDBFieldType::ReleaseRef | ( | ) |
Definition at line 80 of file dbfld.cxx.
References SwValueFieldType::GetDoc(), SwDoc::getIDocumentFieldsAccess(), m_nRefCnt, nPos, IDocumentFieldsAccess::RemoveFieldType(), and size.
|
inlineoverridevirtual |
Reimplemented from SwFieldType.
|
private |
Definition at line 31 of file dbfld.hxx.
Referenced by Copy(), PutValue(), QueryValue(), and SwDBFieldType().
|
private |
Definition at line 34 of file dbfld.hxx.
Referenced by ReleaseRef().
|
private |
Definition at line 33 of file dbfld.hxx.
Referenced by Copy(), PutValue(), and QueryValue().
|
private |
only used in GetName() !
Definition at line 32 of file dbfld.hxx.
Referenced by GetName(), and SwDBFieldType().