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

#include <authfld.hxx>

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

Public Member Functions

 SwAuthorityFieldType (SwDoc *pDoc)
 
virtual ~SwAuthorityFieldType () override
 
virtual std::unique_ptr< SwFieldTypeCopy () const override
 
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhichId) const override
 
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhichId) override
 
void SetDoc (SwDoc *pNewDoc)
 
SwDocGetDoc ()
 
void RemoveField (const SwAuthEntry *nHandle)
 
SwAuthEntryAddField (const OUString &rFieldContents)
 
void DelSequenceArray ()
 
void GetAllEntryIdentifiers (std::vector< OUString > &rToFill) const
 
SwAuthEntryGetEntryByIdentifier (const OUString &rIdentifier) const
 
bool ChangeEntryContent (const SwAuthEntry *pNewEntry)
 
sal_uInt16 AppendField (const SwAuthEntry &rInsert)
 appends a new entry (if new) and returns the array position More...
 
sal_uInt16 GetSequencePos (const SwAuthEntry *pAuthEntry, SwRootFrame const *pLayout)
 
bool IsSequence () const
 
void SetSequence (bool bSet)
 
void SetPreSuffix (sal_Unicode cPre, sal_Unicode cSuf)
 
sal_Unicode GetPrefix () const
 
sal_Unicode GetSuffix () const
 
bool IsSortByDocument () const
 
void SetSortByDocument (bool bSet)
 
sal_uInt16 GetSortKeyCount () const
 
const SwTOXSortKeyGetSortKey (sal_uInt16 nIdx) const
 
void SetSortKeys (sal_uInt16 nKeyCount, SwTOXSortKey const nKeys[])
 
LanguageType GetLanguage () const
 
void SetLanguage (LanguageType nLang)
 
const OUString & GetSortAlgorithm () const
 
void SetSortAlgorithm (const OUString &rSet)
 
- 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...
 
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 ()
 

Static Public Member Functions

static OUString const & GetAuthFieldName (ToxAuthorityField eType)
 
static OUString const & GetAuthTypeName (ToxAuthorityType eType)
 
- Static Public Member Functions inherited from SwFieldType
static OUString GetTypeStr (SwFieldTypesEnum nTypeId)
 

Protected Member Functions

virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 
- 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
 
SwAuthDataArr m_DataArr
 
std::vector< SwAuthEntry * > m_SequArr
 
std::vector< SwAuthEntry * > m_SequArrRLHidden
 hidden redlines More...
 
SortKeyArr m_SortKeyArr
 
sal_Unicode m_cPrefix
 
sal_Unicode m_cSuffix
 
bool m_bIsSequence:1
 
bool m_bSortByDocument:1
 
LanguageType m_eLanguage
 
OUString m_sSortAlgorithm
 

Detailed Description

Definition at line 57 of file authfld.hxx.

Constructor & Destructor Documentation

SwAuthorityFieldType::SwAuthorityFieldType ( SwDoc pDoc)

Definition at line 69 of file authfld.cxx.

References TableOfAuthorities.

SwAuthorityFieldType::~SwAuthorityFieldType ( )
overridevirtual

Definition at line 80 of file authfld.cxx.

Member Function Documentation

SwAuthEntry * SwAuthorityFieldType::AddField ( const OUString &  rFieldContents)
sal_uInt16 SwAuthorityFieldType::AppendField ( const SwAuthEntry rInsert)

appends a new entry (if new) and returns the array position

Definition at line 168 of file authfld.cxx.

References m_DataArr.

bool SwAuthorityFieldType::ChangeEntryContent ( const SwAuthEntry pNewEntry)
std::unique_ptr< SwFieldType > SwAuthorityFieldType::Copy ( ) const
overridevirtual

Implements SwFieldType.

Definition at line 84 of file authfld.cxx.

References m_pDoc.

void SwAuthorityFieldType::DelSequenceArray ( )
inline

Definition at line 87 of file authfld.hxx.

Referenced by AddField(), GetSequencePos(), Modify(), and RemoveField().

void SwAuthorityFieldType::GetAllEntryIdentifiers ( std::vector< OUString > &  rToFill) const
OUString const & SwAuthorityFieldType::GetAuthFieldName ( ToxAuthorityField  eType)
static
OUString const & SwAuthorityFieldType::GetAuthTypeName ( ToxAuthorityType  eType)
static
SwDoc* SwAuthorityFieldType::GetDoc ( )
inline
SwAuthEntry * SwAuthorityFieldType::GetEntryByIdentifier ( const OUString &  rIdentifier) const

Definition at line 136 of file authfld.cxx.

References AUTH_FIELD_IDENTIFIER, and m_DataArr.

Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().

LanguageType SwAuthorityFieldType::GetLanguage ( ) const
inline

Definition at line 132 of file authfld.hxx.

Referenced by QueryValue().

sal_Unicode SwAuthorityFieldType::GetPrefix ( ) const
inline
sal_uInt16 SwAuthorityFieldType::GetSequencePos ( const SwAuthEntry pAuthEntry,
SwRootFrame const *  pLayout 
)
const OUString& SwAuthorityFieldType::GetSortAlgorithm ( ) const
inline

Definition at line 135 of file authfld.hxx.

Referenced by QueryValue().

const SwTOXSortKey * SwAuthorityFieldType::GetSortKey ( sal_uInt16  nIdx) const

Definition at line 443 of file authfld.cxx.

References m_SortKeyArr.

Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().

sal_uInt16 SwAuthorityFieldType::GetSortKeyCount ( ) const

Definition at line 438 of file authfld.cxx.

References m_SortKeyArr.

Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().

sal_Unicode SwAuthorityFieldType::GetSuffix ( ) const
inline
bool SwAuthorityFieldType::IsSequence ( ) const
inline
bool SwAuthorityFieldType::IsSortByDocument ( ) const
inline

Definition at line 117 of file authfld.hxx.

Referenced by SwTOXEntryTabPage::ActivatePage(), and SwTOXAuthority::sort_lt().

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

Reimplemented from SwModify.

Definition at line 431 of file authfld.cxx.

References DelSequenceArray(), and SwModify::NotifyClients().

void SwAuthorityFieldType::PutValue ( const css::uno::Any &  rVal,
sal_uInt16  nWhichId 
)
overridevirtual
void SwAuthorityFieldType::QueryValue ( css::uno::Any &  rVal,
sal_uInt16  nWhichId 
) const
overridevirtual
void SwAuthorityFieldType::RemoveField ( const SwAuthEntry nHandle)

Definition at line 89 of file authfld.cxx.

References DelSequenceArray(), and m_DataArr.

Referenced by SwAuthorityField::ChgTyp(), and SwAuthorityField::SetPar1().

void SwAuthorityFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 83 of file authfld.hxx.

void SwAuthorityFieldType::SetLanguage ( LanguageType  nLang)
inline

Definition at line 133 of file authfld.hxx.

References nLang.

Referenced by PutValue(), and SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetPreSuffix ( sal_Unicode  cPre,
sal_Unicode  cSuf 
)
inline

Definition at line 109 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetSequence ( bool  bSet)
inline

Definition at line 103 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetSortAlgorithm ( const OUString &  rSet)
inline

Definition at line 136 of file authfld.hxx.

Referenced by PutValue(), and SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetSortByDocument ( bool  bSet)
inline

Definition at line 118 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetSortKeys ( sal_uInt16  nKeyCount,
SwTOXSortKey const  nKeys[] 
)

Definition at line 451 of file authfld.cxx.

References AUTH_FIELD_END, i, and m_SortKeyArr.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

Member Data Documentation

bool SwAuthorityFieldType::m_bIsSequence
private

Definition at line 66 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

bool SwAuthorityFieldType::m_bSortByDocument
private

Definition at line 67 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

sal_Unicode SwAuthorityFieldType::m_cPrefix
private

Definition at line 64 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

sal_Unicode SwAuthorityFieldType::m_cSuffix
private

Definition at line 65 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

SwAuthDataArr SwAuthorityFieldType::m_DataArr
private
LanguageType SwAuthorityFieldType::m_eLanguage
private

Definition at line 68 of file authfld.hxx.

Referenced by GetSequencePos().

SwDoc* SwAuthorityFieldType::m_pDoc
private

Definition at line 59 of file authfld.hxx.

Referenced by Copy(), and GetSequencePos().

std::vector<SwAuthEntry*> SwAuthorityFieldType::m_SequArr
private

Definition at line 61 of file authfld.hxx.

Referenced by GetSequencePos().

std::vector<SwAuthEntry*> SwAuthorityFieldType::m_SequArrRLHidden
private

hidden redlines

Definition at line 62 of file authfld.hxx.

Referenced by GetSequencePos().

SortKeyArr SwAuthorityFieldType::m_SortKeyArr
private

Definition at line 63 of file authfld.hxx.

Referenced by GetSortKey(), GetSortKeyCount(), PutValue(), QueryValue(), and SetSortKeys().

OUString SwAuthorityFieldType::m_sSortAlgorithm
private

Definition at line 69 of file authfld.hxx.

Referenced by GetSequencePos().


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