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
unotools::WeakReference< SwXFieldMaster > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXFieldMaster > 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
 
void UpdateDocPos (const SwTwips nDocPos)
 
virtual void UpdateFields ()
 

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...
 

Detailed Description

Definition at line 65 of file authfld.hxx.

Constructor & Destructor Documentation

◆ SwAuthorityFieldType()

SwAuthorityFieldType::SwAuthorityFieldType ( SwDoc pDoc)

Definition at line 75 of file authfld.cxx.

References TableOfAuthorities.

◆ ~SwAuthorityFieldType()

SwAuthorityFieldType::~SwAuthorityFieldType ( )
overridevirtual

Definition at line 86 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 177 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 90 of file authfld.cxx.

References m_pDoc.

◆ CreateTOXInternational()

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

Definition at line 190 of file authfld.cxx.

References m_eLanguage, m_sSortAlgorithm, and NONE.

Referenced by SwAuthorityField::GetAuthority(), and GetSequencePos().

◆ DelSequenceArray()

void SwAuthorityFieldType::DelSequenceArray ( )
inline

Definition at line 94 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 294 of file initui.cxx.

References SwFieldType::dumpAsXml(), and m_DataArr.

◆ GetAllEntryIdentifiers()

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

Definition at line 136 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

◆ GetDoc()

SwDoc * SwAuthorityFieldType::GetDoc ( )
inline

◆ GetEntryByIdentifier()

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

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

Referenced by QueryValue().

◆ GetSortKey()

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

Definition at line 441 of file authfld.cxx.

References m_SortKeyArr.

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

◆ GetSortKeyCount()

sal_uInt16 SwAuthorityFieldType::GetSortKeyCount ( ) const

Definition at line 436 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 125 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 90 of file authfld.hxx.

◆ SetLanguage()

void SwAuthorityFieldType::SetLanguage ( LanguageType  nLang)
inline

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

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSequence()

void SwAuthorityFieldType::SetSequence ( bool  bSet)
inline

Definition at line 111 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSortAlgorithm()

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

Definition at line 144 of file authfld.hxx.

References rSet.

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

◆ SetSortByDocument()

void SwAuthorityFieldType::SetSortByDocument ( bool  bSet)
inline

Definition at line 126 of file authfld.hxx.

Referenced by SwTOXMgr::UpdateOrInsertTOX().

◆ SetSortKeys()

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

Definition at line 449 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

Definition at line 429 of file authfld.cxx.

References DelSequenceArray().

Member Data Documentation

◆ m_bIsSequence

bool SwAuthorityFieldType::m_bIsSequence
private

Definition at line 74 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_bSortByDocument

bool SwAuthorityFieldType::m_bSortByDocument
private

Definition at line 75 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_cPrefix

sal_Unicode SwAuthorityFieldType::m_cPrefix
private

Definition at line 72 of file authfld.hxx.

Referenced by PutValue(), and QueryValue().

◆ m_cSuffix

sal_Unicode SwAuthorityFieldType::m_cSuffix
private

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

Referenced by CreateTOXInternational().

◆ m_pDoc

SwDoc* SwAuthorityFieldType::m_pDoc
private

Definition at line 67 of file authfld.hxx.

Referenced by Copy(), and GetSequencePos().

◆ m_SequArr

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

Definition at line 69 of file authfld.hxx.

Referenced by GetSequencePos().

◆ m_SequArrRLHidden

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

hidden redlines

Definition at line 70 of file authfld.hxx.

Referenced by GetSequencePos().

◆ m_SortKeyArr

SortKeyArr SwAuthorityFieldType::m_SortKeyArr
private

Definition at line 71 of file authfld.hxx.

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

◆ m_sSortAlgorithm

OUString SwAuthorityFieldType::m_sSortAlgorithm
private

Definition at line 77 of file authfld.hxx.

Referenced by CreateTOXInternational().


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