19 #ifndef INCLUDED_SW_INC_AUTHFLD_HXX
20 #define INCLUDED_SW_INC_AUTHFLD_HXX
25 #include <rtl/ref.hxx>
43 const OUString& rField);
52 bSortAscending(true){}
67 bool m_bIsSequence :1;
68 bool m_bSortByDocument :1;
78 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
80 virtual void QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
81 virtual void PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
86 SwAuthEntry* AddField(
const OUString& rFieldContents);
90 m_SequArrRLHidden.clear();
93 void GetAllEntryIdentifiers( std::vector<OUString>& rToFill )
const;
94 SwAuthEntry* GetEntryByIdentifier(std::u16string_view rIdentifier)
const;
96 bool ChangeEntryContent(
const SwAuthEntry* pNewEntry);
106 m_bIsSequence = bSet;
121 m_bSortByDocument = bSet;
124 sal_uInt16 GetSortKeyCount()
const ;
126 void SetSortKeys(sal_uInt16 nKeyCount,
SwTOXSortKey const nKeys[]);
155 virtual std::unique_ptr<SwField>
Copy()
const override;
159 OUString ConditionalExpandAuthIdentifier(
SwRootFrame const* pLayout)
const;
170 virtual void SetPar1(
const OUString& rStr)
override;
173 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
174 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
Instances of SwFields and those derived from it occur 0 to n times.
OUString const & GetAuthorField(ToxAuthorityField ePos) const
std::vector< rtl::Reference< SwAuthEntry > > SwAuthDataArr
virtual std::unique_ptr< SwFieldType > Copy() const =0
void SetSortAlgorithm(const OUString &rSet)
Base class of all fields.
void SetAuthorField(ToxAuthorityField ePos, const OUString &rField)
void SetDoc(SwDoc *pNewDoc)
The root element of a Writer document layout.
static LanguageType nLang
OUString m_aAuthFields[AUTH_FIELD_END]
void SetPreSuffix(sal_Unicode cPre, sal_Unicode cSuf)
sal_Unicode GetPrefix() const
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const =0
invariant for SwAuthorityField is that it is always registered at its SwAuthorityFieldType via AddFie...
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId)
void SetSortByDocument(bool bSet)
sal_IntPtr m_nTempSequencePos
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhichId) const
SwAuthEntry * GetAuthEntry() const
virtual OUString GetDescription() const
virtual SwFieldType * ChgTyp(SwFieldType *)
Set new type (used for copying among documents).
rtl::Reference< SwAuthEntry > m_xAuthEntry
virtual void SetPar1(const OUString &rStr)
void SetSequence(bool bSet)
virtual std::unique_ptr< SwField > Copy() const =0
sal_Unicode GetSuffix() const
LanguageType GetLanguage() const
void SetLanguage(LanguageType nLang)
virtual void QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const
std::vector< SwAuthEntry * > m_SequArrRLHidden
hidden redlines
bool operator==(const SwAuthEntry &rComp) const
#define SAL_WARN_IF(condition, area, stream)
sal_IntPtr m_nTempSequencePosRLHidden
hidden redlines
std::vector< SwTOXSortKey > SortKeyArr
virtual void PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich)
const OUString & GetSortAlgorithm() const
std::vector< SwAuthEntry * > m_SequArr
bool IsSortByDocument() const
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
OUString m_sSortAlgorithm