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 (const OUString &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...
 
SwFieldIds Which () const
 
void UpdateFields () const
 
void PrintHiddenPara ()
 
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< sal_uLong > &rvNodeIndex)
 
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
 
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
 
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
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 &)
 
- 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...
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 62 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)
SwAuthEntry * SwAuthorityFieldType::AppendField ( const SwAuthEntry rInsert)

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

Definition at line 171 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.

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

Definition at line 184 of file authfld.cxx.

References m_eLanguage, m_sSortAlgorithm, and NONE.

Referenced by GetSequencePos().

void SwAuthorityFieldType::DelSequenceArray ( )
inline

Definition at line 91 of file authfld.hxx.

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

void SwAuthorityFieldType::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SwFieldType.

Definition at line 292 of file initui.cxx.

References SwFieldType::dumpAsXml(), m_DataArr, and void().

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

Definition at line 130 of file authfld.cxx.

References AUTH_FIELD_IDENTIFIER, and m_DataArr.

Referenced by IMPL_LINK_NOARG().

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

Definition at line 280 of file initui.cxx.

References AUTH_TYPE_END, i, and SwResId().

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

SwDoc* SwAuthorityFieldType::GetDoc ( )
inline
SwAuthEntry * SwAuthorityFieldType::GetEntryByIdentifier ( std::u16string_view  rIdentifier) const

Definition at line 139 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 137 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 140 of file authfld.hxx.

Referenced by QueryValue().

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

Definition at line 435 of file authfld.cxx.

References m_SortKeyArr.

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

sal_uInt16 SwAuthorityFieldType::GetSortKeyCount ( ) const

Definition at line 430 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 122 of file authfld.hxx.

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

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(), m_DataArr, and m_nCount.

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

void SwAuthorityFieldType::SetDoc ( SwDoc pNewDoc)
inline

Definition at line 87 of file authfld.hxx.

void SwAuthorityFieldType::SetLanguage ( LanguageType  nLang)
inline

Definition at line 138 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 114 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

void SwAuthorityFieldType::SetSequence ( bool  bSet)
inline

Definition at line 108 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

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

Definition at line 141 of file authfld.hxx.

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

void SwAuthorityFieldType::SetSortByDocument ( bool  bSet)
inline

Definition at line 123 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

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

Definition at line 443 of file authfld.cxx.

References AUTH_FIELD_END, i, and m_SortKeyArr.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

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

Reimplemented from SwModify.

Definition at line 423 of file authfld.cxx.

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

Member Data Documentation

bool SwAuthorityFieldType::m_bIsSequence
private

Definition at line 71 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

bool SwAuthorityFieldType::m_bSortByDocument
private

Definition at line 72 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

sal_Unicode SwAuthorityFieldType::m_cPrefix
private

Definition at line 69 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

sal_Unicode SwAuthorityFieldType::m_cSuffix
private

Definition at line 70 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

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

Definition at line 73 of file authfld.hxx.

Referenced by CreateTOXInternational().

SwDoc* SwAuthorityFieldType::m_pDoc
private

Definition at line 64 of file authfld.hxx.

Referenced by Copy(), and GetSequencePos().

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

Definition at line 66 of file authfld.hxx.

Referenced by GetSequencePos().

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

hidden redlines

Definition at line 67 of file authfld.hxx.

Referenced by GetSequencePos().

SortKeyArr SwAuthorityFieldType::m_SortKeyArr
private

Definition at line 68 of file authfld.hxx.

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

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: