summaryrefslogtreecommitdiff
path: root/sw/inc/docufld.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-14 12:41:23 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:08 +0100
commit17cf1b2695e20f5120c308fd59af35e6b83b2732 (patch)
tree958274beed4786e9b6413a7ddef09afb84c58d91 /sw/inc/docufld.hxx
parent815ffb5e166129285132aee8846578ae9839862d (diff)
sw_redlinehide_3: add second result to SwRefPageGetField
With the old Hide implementation this actually would take the last set-field in the redline nodes array section to set the value at the start of the document, because there was no check for that; surely that was wrong... Change-Id: I63fb89ccf0067f1fe375226d6d04cafb6485c5d6
Diffstat (limited to 'sw/inc/docufld.hxx')
-rw-r--r--sw/inc/docufld.hxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index fbdfe9935b03..70f39e522628 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -601,14 +601,16 @@ class SwRefPageGetFieldType : public SwFieldType
SwDoc* m_pDoc;
sal_Int16 m_nNumberingType;
- void UpdateField( SwTextField const * pTextField, SetGetExpFields const & rSetList );
+ void UpdateField(SwTextField const * pTextField,
+ SetGetExpFields const & rSetList, SwRootFrame const* pLayout);
+
protected:
/// overwritten to update all RefPageGet fields
virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override;
public:
SwRefPageGetFieldType( SwDoc* pDoc );
virtual SwFieldType* Copy() const override;
- bool MakeSetList( SetGetExpFields& rTmpLst );
+ bool MakeSetList(SetGetExpFields& rTmpLst, SwRootFrame const* pLayout);
SwDoc* GetDoc() const { return m_pDoc; }
};
@@ -616,15 +618,17 @@ public:
class SwRefPageGetField : public SwField
{
OUString m_sText;
+ OUString m_sTextRLHidden; ///< hidden redlines
+
public:
SwRefPageGetField( SwRefPageGetFieldType*, sal_uInt32 nFormat );
virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
virtual std::unique_ptr<SwField> Copy() const override;
- void SetText( const OUString& rText ) { m_sText = rText; }
+ void SetText(const OUString& rText, SwRootFrame const* pLayout);
- void ChangeExpansion( const SwFrame* pFrame, const SwTextField* pField );
+ void ChangeExpansion(const SwFrame& rFrame, const SwTextField* pField);
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
};