diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-24 10:33:51 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:58:00 -0400 |
commit | 8cd07281370a51023e1fe65100809f68e6489d6e (patch) | |
tree | a2ed42c24a9a064bf5664c19ee9414d037dd2360 /sc/inc/editsrc.hxx | |
parent | Have the caller pass the content instance directly. (diff) | |
download | core-8cd07281370a51023e1fe65100809f68e6489d6e.tar.gz core-8cd07281370a51023e1fe65100809f68e6489d6e.zip |
No more ScSharedHeaderFooterEditSource.
This shared base class makes no sense. Let's keep it simple.
Diffstat (limited to 'sc/inc/editsrc.hxx')
-rw-r--r-- | sc/inc/editsrc.hxx | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx index b8c8180c4cec..12e47af8743f 100644 --- a/sc/inc/editsrc.hxx +++ b/sc/inc/editsrc.hxx @@ -58,41 +58,27 @@ public: sal_uInt16 GetPart() const { return nPart; } }; - -// all ScSharedHeaderFooterEditSource objects for a single text share the same data - -class ScSharedHeaderFooterEditSource : public SvxEditSource +/** + * ScHeaderFooterEditSource with local copy of ScHeaderFooterTextData is + * used by field objects. + */ +class ScHeaderFooterEditSource : public SvxEditSource { private: ScHeaderFooterTextData* pTextData; -protected: - ScHeaderFooterTextData* GetTextData() const { return pTextData; } // for ScHeaderFooterEditSource - public: - ScSharedHeaderFooterEditSource( ScHeaderFooterTextData* pData ); - virtual ~ScSharedHeaderFooterEditSource(); + ScHeaderFooterEditSource(ScHeaderFooterTextData* pData); + ScHeaderFooterEditSource(ScHeaderFooterContentObj* pContent, sal_uInt16 nP); + ScHeaderFooterEditSource(ScHeaderFooterContentObj& rContent, sal_uInt16 nP); + virtual ~ScHeaderFooterEditSource(); // GetEditEngine is needed because the forwarder doesn't have field functions ScEditEngineDefaulter* GetEditEngine(); - virtual SvxEditSource* Clone() const ; + virtual SvxEditSource* Clone() const; virtual SvxTextForwarder* GetTextForwarder(); - virtual void UpdateData(); - -}; - -// ScHeaderFooterEditSource with local copy of ScHeaderFooterTextData is used by field objects - -class ScHeaderFooterEditSource : public ScSharedHeaderFooterEditSource -{ -public: - ScHeaderFooterEditSource( ScHeaderFooterContentObj* pContent, sal_uInt16 nP ); - ScHeaderFooterEditSource( ScHeaderFooterContentObj& rContent, sal_uInt16 nP ); - virtual ~ScHeaderFooterEditSource(); - - virtual SvxEditSource* Clone() const; }; |