19 #ifndef INCLUDED_SW_INC_AUTHFLD_HXX
20 #define INCLUDED_SW_INC_AUTHFLD_HXX
25 #include <rtl/ref.hxx>
46 const OUString& rField);
56 bSortAscending(true){}
71 bool m_bIsSequence :1;
72 bool m_bSortByDocument :1;
82 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
84 virtual void QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
85 virtual void PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
90 SwAuthEntry* AddField(std::u16string_view rFieldContents);
94 m_SequArrRLHidden.clear();
97 void GetAllEntryIdentifiers( std::vector<OUString>& rToFill )
const;
98 SwAuthEntry* GetEntryByIdentifier(std::u16string_view rIdentifier)
const;
100 bool ChangeEntryContent(
const SwAuthEntry* pNewEntry);
105 std::unique_ptr<SwTOXInternational> CreateTOXInternational()
const;
111 m_bIsSequence = bSet;
126 m_bSortByDocument = bSet;
129 sal_uInt16 GetSortKeyCount()
const ;
131 void SetSortKeys(sal_uInt16 nKeyCount,
SwTOXSortKey const nKeys[]);
161 virtual std::unique_ptr<SwField>
Copy()
const override;
165 OUString ConditionalExpandAuthIdentifier(
SwRootFrame const* pLayout)
const;
176 virtual void SetPar1(
const OUString& rStr)
override;
179 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
180 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
190 OUString GetAbsoluteURL()
const;
Instances of SwFields and those derived from it occur 0 to n times.
OUString const & GetAuthorField(ToxAuthorityField ePos) const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) 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.
void dumpAsXml(xmlTextWriterPtr pWriter) const
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...
A wrapper around SfxPoolItem to store the start position of (usually) a text portion, with an optional end.
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
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
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
struct _xmlTextWriter * xmlTextWriterPtr
virtual void SwClientNotify(const SwModify &, const SfxHint &rHint) override
OUString m_sSortAlgorithm