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

#include <expfld.hxx>

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

Public Member Functions

 SwSetExpFieldType (SwDoc *pDoc, const OUString &rName, sal_uInt16 nType=nsSwGetSetExpType::GSE_EXPR)
 
virtual std::unique_ptr< SwFieldTypeCopy () const override
 
virtual OUString GetName () const override
 Only in derived classes. More...
 
void SetType (sal_uInt16 nTyp)
 
sal_uInt16 GetType () const
 
void SetSeqFormat (sal_uLong nFormat)
 
sal_uLong GetSeqFormat () const
 
bool IsDeleted () const
 
void SetDeleted (bool b)
 
const OUString & GetSetRefName () const
 Overlay, because set-field takes care for its being updated by itself. More...
 
void SetSeqRefNo (SwSetExpField &rField)
 
size_t GetSeqFieldList (SwSeqFieldList &rList, SwRootFrame const *pLayout)
 
const OUString & GetDelimiter () const
 Number sequence fields chapterwise if required. More...
 
void SetDelimiter (const OUString &s)
 
sal_uInt8 GetOutlineLvl () const
 
void SetOutlineLvl (sal_uInt8 n)
 
void SetChapter (SwSetExpField &rField, const SwNode &rNd, SwRootFrame const *pLayout)
 
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
 
- 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 () 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 ()
 

Protected Member Functions

virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 
- 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
 

Private Attributes

OUString const m_sName
 
OUString m_sDelim
 
sal_uInt16 m_nType
 
sal_uInt8 m_nLevel
 
bool m_bDeleted
 

Additional Inherited Members

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

Detailed Description

Definition at line 144 of file expfld.hxx.

Constructor & Destructor Documentation

SwSetExpFieldType::SwSetExpFieldType ( SwDoc pDoc,
const OUString &  rName,
sal_uInt16  nType = nsSwGetSetExpType::GSE_EXPR 
)

Member Function Documentation

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

Implements SwFieldType.

Definition at line 520 of file expfld.cxx.

References SwValueFieldType::GetDoc(), m_bDeleted, m_nLevel, m_nType, m_sDelim, m_sName, and SwSetExpFieldType().

const OUString& SwSetExpFieldType::GetDelimiter ( ) const
inline
OUString SwSetExpFieldType::GetName ( ) const
overridevirtual

Only in derived classes.

Reimplemented from SwFieldType.

Definition at line 530 of file expfld.cxx.

References m_sName.

Referenced by SwFieldRefPage::FillItemSet(), SwFieldRefPage::Reset(), SwSetExpField::SwSetExpField(), and sw::DocumentFieldsManager::UpdateExpFieldsImpl().

sal_uInt8 SwSetExpFieldType::GetOutlineLvl ( ) const
inline
size_t SwSetExpFieldType::GetSeqFieldList ( SwSeqFieldList rList,
SwRootFrame const *  pLayout 
)
sal_uLong SwSetExpFieldType::GetSeqFormat ( ) const
const OUString & SwSetExpFieldType::GetSetRefName ( ) const
inline

Overlay, because set-field takes care for its being updated by itself.

Definition at line 197 of file expfld.hxx.

References m_sName.

sal_uInt16 SwSetExpFieldType::GetType ( ) const
inline
bool SwSetExpFieldType::IsDeleted ( ) const
inline

Definition at line 167 of file expfld.hxx.

void SwSetExpFieldType::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual

Reimplemented from SwModify.

Definition at line 552 of file expfld.cxx.

void SwSetExpFieldType::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhich 
)
overridevirtual
void SwSetExpFieldType::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhich 
) const
overridevirtual
void SwSetExpFieldType::SetChapter ( SwSetExpField rField,
const SwNode rNd,
SwRootFrame const *  pLayout 
)
void SwSetExpFieldType::SetDeleted ( bool  b)
inline

Definition at line 168 of file expfld.hxx.

void SwSetExpFieldType::SetDelimiter ( const OUString &  s)
inline
void SwSetExpFieldType::SetOutlineLvl ( sal_uInt8  n)
inline
void SwSetExpFieldType::SetSeqFormat ( sal_uLong  nFormat)
void SwSetExpFieldType::SetSeqRefNo ( SwSetExpField rField)
void SwSetExpFieldType::SetType ( sal_uInt16  nTyp)
inline

Member Data Documentation

bool SwSetExpFieldType::m_bDeleted
private

Definition at line 150 of file expfld.hxx.

Referenced by Copy().

sal_uInt8 SwSetExpFieldType::m_nLevel
private

Definition at line 149 of file expfld.hxx.

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

sal_uInt16 SwSetExpFieldType::m_nType
private

Definition at line 148 of file expfld.hxx.

Referenced by Copy(), GetType(), SetSeqRefNo(), SetType(), and SwSetExpFieldType().

OUString SwSetExpFieldType::m_sDelim
private

Definition at line 147 of file expfld.hxx.

Referenced by Copy(), and SetChapter().

OUString const SwSetExpFieldType::m_sName
private

Definition at line 146 of file expfld.hxx.

Referenced by Copy(), GetName(), and GetSetRefName().


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