diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-24 16:54:23 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:58:01 -0400 |
commit | 1de32aeca83edb2c8e6a575e4f7132ec39b9ca52 (patch) | |
tree | e53bdf3cca3db3d477b2fa8d3b61ba4a6db1a7af /sc/inc/editsrc.hxx | |
parent | Have ScHeaderFooterTextObj store authoritative EditTextObject instance. (diff) | |
download | core-1de32aeca83edb2c8e6a575e4f7132ec39b9ca52.tar.gz core-1de32aeca83edb2c8e6a575e4f7132ec39b9ca52.zip |
Ok, the regression I had introduced in my prev commit is now fixed.
The idea is to keep a reference to the ScHeaderFooterTextData instance
in ScHeaderFooterTextObj which is the authoritative copy, instead of
making copies of it everywhere. This way when the text is updated
in ScHeaderFooterTextObj all the other places will see it too without
needing to propagate the change.
Diffstat (limited to 'sc/inc/editsrc.hxx')
-rw-r--r-- | sc/inc/editsrc.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx index 435fb856bcd7..76911d5d8463 100644 --- a/sc/inc/editsrc.hxx +++ b/sc/inc/editsrc.hxx @@ -66,15 +66,15 @@ public: class ScHeaderFooterEditSource : public SvxEditSource { private: - ScHeaderFooterTextData* pTextData; + ScHeaderFooterTextData* mpTextData; public: - ScHeaderFooterEditSource(const ScHeaderFooterTextData& rData); - ScHeaderFooterEditSource(ScHeaderFooterContentObj& rContent, sal_uInt16 nP, const EditTextObject* pTextObj); + ScHeaderFooterEditSource(ScHeaderFooterTextData* pData); virtual ~ScHeaderFooterEditSource(); // GetEditEngine is needed because the forwarder doesn't have field functions ScEditEngineDefaulter* GetEditEngine(); + void SetTextData(ScHeaderFooterTextData* pData); virtual SvxEditSource* Clone() const; virtual SvxTextForwarder* GetTextForwarder(); |