LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwValueFieldType Class Reference

Fields containing values that have to be formatted via number formatter. More...

#include <fldbas.hxx>

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

Public Member Functions

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)
 
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 UpdateFields () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
 SwModify (SwModify *pToRegisterIn)
 
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 ()
 
- 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 ()
 

Protected Member Functions

 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
 

Private Attributes

SwDocm_pDoc
 
bool m_bUseFormat
 Use number formatter. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static OUString GetTypeStr (sal_uInt16 nTypeId)
 

Detailed Description

Fields containing values that have to be formatted via number formatter.

Definition at line 398 of file fldbas.hxx.

Constructor & Destructor Documentation

SwValueFieldType::SwValueFieldType ( SwDoc pDocPtr,
SwFieldIds  nWhichId 
)
protected

Definition at line 460 of file fldbas.cxx.

SwValueFieldType::SwValueFieldType ( const SwValueFieldType rTyp)
protected

Definition at line 467 of file fldbas.cxx.

Member Function Documentation

OUString SwValueFieldType::DoubleToString ( const double &  rVal,
LanguageType  eLng 
) const
OUString SwValueFieldType::DoubleToString ( const double &  rVal,
sal_uInt32  nFormat 
) const
void SwValueFieldType::EnableFormat ( bool  bFormat = true)
inline
OUString SwValueFieldType::ExpandValue ( const double &  rVal,
sal_uInt32  nFormat,
LanguageType  nLng 
) const
SwDoc* SwValueFieldType::GetDoc ( ) const
inline
void SwValueFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 412 of file fldbas.hxx.

bool SwValueFieldType::UseFormat ( ) const
inline

Definition at line 416 of file fldbas.hxx.

References m_bUseFormat.

Member Data Documentation

bool SwValueFieldType::m_bUseFormat
private

Use number formatter.

Definition at line 402 of file fldbas.hxx.

Referenced by UseFormat().

SwDoc* SwValueFieldType::m_pDoc
private

Definition at line 401 of file fldbas.hxx.

Referenced by DoubleToString(), ExpandValue(), and GetDoc().


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