summaryrefslogtreecommitdiff
path: root/sw/inc/expfld.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-08-20 12:56:12 +0200
committerMichael Stahl <mstahl@redhat.com>2014-08-20 16:40:17 +0200
commiteee8b6eed6145f695d532aa62c33e3a0c44cba86 (patch)
tree9623e5865fd79d7516fda81b189cc941c20f6165 /sw/inc/expfld.hxx
parentbbd97fe57d9ec184ef6aee36bd57d6d7e53b4719 (diff)
SwWrtShell::StartInputFldDlg() can be called with RES_SETEXPFLD too
... and there's no way to get the SwFmtFld from a SwSetExpField, so add a member for it like SwInputField has. That's still better than the UnoCallBack nonsense. Change-Id: I59c82e95414dbae284432b8a318a6ce1a34256c7
Diffstat (limited to 'sw/inc/expfld.hxx')
-rw-r--r--sw/inc/expfld.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 121125ec1be9..071967e0dd18 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -216,6 +216,7 @@ class SW_DLLPUBLIC SwSetExpField : public SwFormulaField
bool bInput;
sal_uInt16 nSeqNo;
sal_uInt16 nSubType;
+ SwFmtFld * mpFmtFld; /// pool item to which the SwSetExpField belongs
virtual OUString Expand() const SAL_OVERRIDE;
virtual SwField* Copy() const SAL_OVERRIDE;
@@ -223,6 +224,9 @@ class SW_DLLPUBLIC SwSetExpField : public SwFormulaField
public:
SwSetExpField(SwSetExpFieldType*, const OUString& rFormel, sal_uLong nFmt = 0);
+ void SetFmtFld(SwFmtFld & rFmtFld);
+ SwFmtFld* GetFmtFld() { return mpFmtFld;}
+
virtual void SetValue( const double& rVal ) SAL_OVERRIDE;
inline OUString GetExpStr() const;