19#ifndef INCLUDED_SW_INC_REFFLD_HXX
20#define INCLUDED_SW_INC_REFFLD_HXX
33 const SwTextNode& rBehindNd, sal_Int32 nSttPos );
73 virtual std::unique_ptr<SwFieldType>
Copy()
const override;
78 void MergeWithOtherDoc(
SwDoc& rDestDoc );
81 sal_uInt16 nSubType, sal_uInt16 nSeqNo,
82 sal_Int32* pStt, sal_Int32* pEnd =
nullptr,
84 void UpdateGetReferences();
99 virtual std::unique_ptr<SwField>
Copy()
const override;
103 sal_uInt16 nSubType, sal_uInt16 nSeqNo,
sal_uLong nFormat );
118 void UpdateField(
const SwTextField* pFieldTextAttr );
120 void SetExpand(
const OUString& rStr );
123 virtual sal_uInt16
GetSubType()
const override;
124 virtual void SetSubType( sal_uInt16 n )
override;
127 bool IsRefToHeadingCrossRefBookmark()
const;
128 bool IsRefToNumItemCrossRefBookmark()
const;
129 const SwTextNode* GetReferencedTextNode()
const;
131 OUString GetExpandedTextOfReferencedTextNode(
SwRootFrame const& rLayout)
const;
138 virtual OUString
GetPar1()
const override;
139 virtual void SetPar1(
const OUString& rStr)
override;
141 virtual OUString
GetPar2()
const override;
142 virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhichId )
const override;
143 virtual bool PutValue(
const css::uno::Any& rVal, sal_uInt16 nWhichId )
override;
145 void ConvertProgrammaticToUIName();
Instances of SwFields and those derived from it occur 0 to n times.
virtual std::unique_ptr< SwFieldType > Copy() const =0
Base class of all fields.
virtual OUString GetPar1() const
virtual void SetPar1(const OUString &rStr)
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const =0
virtual sal_uInt16 GetSubType() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhichId) const
virtual OUString GetFieldName() const
get name or content
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId)
virtual OUString GetDescription() const
virtual std::unique_ptr< SwField > Copy() const =0
virtual OUString GetPar2() const
virtual void SetSubType(sal_uInt16)
virtual void UpdateFields() override
OUString m_sTextRLHidden
result for layout with redlines hidden
sal_uInt16 m_nSeqNo
reference to either a SwTextFootnote::m_nSeqNo or a SwSetExpField::mnSeqNo
OUString m_sSetReferenceLanguage
const OUString & GetSetRefName() const
void SetSeqNo(sal_uInt16 n)
sal_uInt16 GetSeqNo() const
Get/set SequenceNo (of interest only for REF_SEQUENCEFLD).
The root element of a Writer document layout.
SwTextNode is a paragraph in the document model.
const SwContentFrame * FindAnchor(const SwFrame *pOldAnch, const Point &rNew, const bool bBody=false)
search an anchor for paragraph bound frames starting from pOldAnch
bool IsFrameBehind(const SwTextNode &rMyNd, sal_Int32 nMySttPos, const SwTextNode &rBehindNd, sal_Int32 nSttPos)
@ REF_PAGE_PGDESC
"As Page Style"
@ REF_UPDOWN
"Above/Below"
@ REF_NUMBER
new reference format types for referencing bookmarks and set references
@ REF_ONLYSEQNO
"Numbering"
@ REF_ONLYNUMBER
"Category and Number"
@ REF_ONLYCAPTION
"Caption Text"
@ REF_NUMBER_NO_CONTEXT
"Number (no context)"
@ REF_NUMBER_FULL_CONTEXT
"Number (full context)"