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

#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 (std::u16string_view rFieldContents)
 
void DelSequenceArray ()
 
void GetAllEntryIdentifiers (std::vector< OUString > &rToFill) const
 
SwAuthEntryGetEntryByIdentifier (std::u16string_view rIdentifier) const
 
bool ChangeEntryContent (const SwAuthEntry *pNewEntry)
 
SwAuthEntryAppendField (const SwAuthEntry &rInsert)
 appends a new entry (if new) and returns the copied entry More...
 
sal_uInt16 GetSequencePos (const SwAuthEntry *pAuthEntry, SwRootFrame const *pLayout)
 
std::unique_ptr< SwTOXInternationalCreateTOXInternational () const
 
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)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- 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 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
 
virtual void UpdateFields ()
 
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
virtual void CallSwClientNotify (const SfxHint &rHint) const
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
bool HasOnlyOneListener () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
bool IsModifyLocked () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::optional< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
virtual const SwCellFrameDynCastCellFrame () const
 
virtual const SwTabFrameDynCastTabFrame () const
 
virtual const SwRowFrameDynCastRowFrame () 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 const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)
 

Private Member Functions

virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 

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
 

Additional Inherited Members

- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint)=0
 

Detailed Description

Definition at line 62 of file authfld.hxx.

Constructor & Destructor Documentation

◆ SwAuthorityFieldType()

SwAuthorityFieldType::SwAuthorityFieldType ( SwDoc pDoc)

Definition at line 70 of file authfld.cxx.

References TableOfAuthorities.

◆ ~SwAuthorityFieldType()

SwAuthorityFieldType::~SwAuthorityFieldType ( )
overridevirtual

Definition at line 81 of file authfld.cxx.

Member Function Documentation

◆ AddField()

SwAuthEntry * SwAuthorityFieldType::AddField ( std::u16string_view  rFieldContents)

◆ AppendField()

SwAuthEntry * SwAuthorityFieldType::AppendField ( const SwAuthEntry rInsert)

appends a new entry (if new) and returns the copied entry

Definition at line 172 of file authfld.cxx.

References m_DataArr.

◆ ChangeEntryContent()

bool SwAuthorityFieldType::ChangeEntryContent ( const SwAuthEntry pNewEntry)

◆ Copy()

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

Implements SwFieldType.

Definition at line 85 of file authfld.cxx.

References m_pDoc.

◆ CreateTOXInternational()

std::unique_ptr< SwTOXInternational > SwAuthorityFieldType::CreateTOXInternational ( ) const

Definition at line 185 of file authfld.cxx.

References m_eLanguage, m_sSortAlgorithm, and NONE.

Referenced by GetSequencePos().

◆ DelSequenceArray()

void SwAuthorityFieldType::DelSequenceArray ( )
inline

Definition at line 91 of file authfld.hxx.

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

◆ dumpAsXml()

void SwAuthorityFieldType::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwFieldType.

Definition at line 292 of file initui.cxx.

References SwFieldType::dumpAsXml(), and m_DataArr.

◆ GetAllEntryIdentifiers()

void SwAuthorityFieldType::GetAllEntryIdentifiers ( std::vector< OUString > &  rToFill) const

Definition at line 131 of file authfld.cxx.

References AUTH_FIELD_IDENTIFIER, and m_DataArr.

Referenced by IMPL_LINK_NOARG().

◆ GetAuthFieldName()

OUString const & SwAuthorityFieldType::GetAuthFieldName ( ToxAuthorityField  eType)
static

◆ GetAuthTypeName()

OUString const & SwAuthorityFieldType::GetAuthTypeName ( ToxAuthorityType  eType)
static

Definition at line 280 of file initui.cxx.

References AUTH_TYPE_END, eType, i, STR_AUTH_TYPE_ARY, and SwResId().

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

◆ GetDoc()

SwDoc * SwAuthorityFieldType::GetDoc ( )
inline

◆ GetEntryByIdentifier()

SwAuthEntry * SwAuthorityFieldType::GetEntryByIdentifier ( std::u16string_view  rIdentifier) const

Definition at line 140 of file authfld.cxx.

References AUTH_FIELD_IDENTIFIER, and m_DataArr.

Referenced by IMPL_LINK(), and IMPL_LINK_NOARG().

◆ GetLanguage()

LanguageType SwAuthorityFieldType::GetLanguage ( ) const
inline

Definition at line 137 of file authfld.hxx.

Referenced by QueryValue().

◆ GetPrefix()

sal_Unicode SwAuthorityFieldType::GetPrefix ( ) const
inline

◆ GetSequencePos()

sal_uInt16 SwAuthorityFieldType::GetSequencePos ( const SwAuthEntry pAuthEntry,
SwRootFrame const *  pLayout 
)

◆ GetSortAlgorithm()

const OUString & SwAuthorityFieldType::GetSortAlgorithm ( ) const
inline

Definition at line 140 of file authfld.hxx.

Referenced by QueryValue().

◆ GetSortKey()

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

Definition at line 436 of file authfld.cxx.

References m_SortKeyArr.

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

◆ GetSortKeyCount()

sal_uInt16 SwAuthorityFieldType::GetSortKeyCount ( ) const

Definition at line 431 of file authfld.cxx.

References m_SortKeyArr.

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

◆ GetSuffix()

sal_Unicode SwAuthorityFieldType::GetSuffix ( ) const
inline

◆ IsSequence()

bool SwAuthorityFieldType::IsSequence ( ) const
inline

◆ IsSortByDocument()

bool SwAuthorityFieldType::IsSortByDocument ( ) const
inline

Definition at line 122 of file authfld.hxx.

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

◆ PutValue()

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

◆ QueryValue()

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

◆ RemoveField()

void SwAuthorityFieldType::RemoveField ( const SwAuthEntry nHandle)

◆ SetDoc()

void SwAuthorityFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 87 of file authfld.hxx.

◆ SetLanguage()

void SwAuthorityFieldType::SetLanguage ( LanguageType  nLang)
inline

Definition at line 138 of file authfld.hxx.

References nLang.

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

◆ SetPreSuffix()

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

Definition at line 114 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSequence()

void SwAuthorityFieldType::SetSequence ( bool  bSet)
inline

Definition at line 108 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSortAlgorithm()

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

Definition at line 141 of file authfld.hxx.

References rSet.

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

◆ SetSortByDocument()

void SwAuthorityFieldType::SetSortByDocument ( bool  bSet)
inline

Definition at line 123 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSortKeys()

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

Definition at line 444 of file authfld.cxx.

References AUTH_FIELD_END, i, and m_SortKeyArr.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SwClientNotify()

void SwAuthorityFieldType::SwClientNotify ( const SwModify ,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SwModify.

Definition at line 424 of file authfld.cxx.

References sw::BroadcastingModify::CallSwClientNotify(), and DelSequenceArray().

Member Data Documentation

◆ m_bIsSequence

bool SwAuthorityFieldType::m_bIsSequence
private

Definition at line 71 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_bSortByDocument

bool SwAuthorityFieldType::m_bSortByDocument
private

Definition at line 72 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_cPrefix

sal_Unicode SwAuthorityFieldType::m_cPrefix
private

Definition at line 69 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_cSuffix

sal_Unicode SwAuthorityFieldType::m_cSuffix
private

Definition at line 70 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_DataArr

SwAuthDataArr SwAuthorityFieldType::m_DataArr
private

◆ m_eLanguage

LanguageType SwAuthorityFieldType::m_eLanguage
private

Definition at line 73 of file authfld.hxx.

Referenced by CreateTOXInternational().

◆ m_pDoc

SwDoc* SwAuthorityFieldType::m_pDoc
private

Definition at line 64 of file authfld.hxx.

Referenced by Copy(), and GetSequencePos().

◆ m_SequArr

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

Definition at line 66 of file authfld.hxx.

Referenced by GetSequencePos().

◆ m_SequArrRLHidden

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

hidden redlines

Definition at line 67 of file authfld.hxx.

Referenced by GetSequencePos().

◆ m_SortKeyArr

SortKeyArr SwAuthorityFieldType::m_SortKeyArr
private

Definition at line 68 of file authfld.hxx.

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

◆ m_sSortAlgorithm

OUString SwAuthorityFieldType::m_sSortAlgorithm
private

Definition at line 74 of file authfld.hxx.

Referenced by CreateTOXInternational().


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