diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-24 11:00:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-26 09:58:00 -0400 |
commit | 0809ccec5cee9f65461f7b551ffd686d2ff4281c (patch) | |
tree | 3765b411400c652996853f8e26ef8635c6ac9487 /sc/inc/editsrc.hxx | |
parent | 1e6268e50d94eac41743ee23efc1b5dc4bd176bd (diff) |
Merged ScSharedCellEditSource with ScCellEditSource.
Again, this inheritance makes no sense.
Diffstat (limited to 'sc/inc/editsrc.hxx')
-rw-r--r-- | sc/inc/editsrc.hxx | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx index 150e83ddba21..20de06cb99af 100644 --- a/sc/inc/editsrc.hxx +++ b/sc/inc/editsrc.hxx @@ -80,45 +80,34 @@ public: virtual void UpdateData(); }; - -// Data (incl. EditEngine) for cell EditSource is now shared in ScCellTextData - -class ScSharedCellEditSource : public SvxEditSource +/** + * Data (incl. EditEngine) for cell EditSource is now shared in + * ScCellTextData. + * + * ScCellEditSource with local copy of ScCellTextData is used by + * ScCellFieldsObj, ScCellFieldObj. + */ +class ScCellEditSource : public SvxEditSource { private: - ScCellTextData* pCellTextData; - -protected: - ScCellTextData* GetCellTextData() const { return pCellTextData; } // for ScCellEditSource + ScCellTextData* pCellTextData; public: - ScSharedCellEditSource( ScCellTextData* pData ); - virtual ~ScSharedCellEditSource(); + ScCellEditSource(ScDocShell* pDocSh, const ScAddress& rP); + virtual ~ScCellEditSource(); // GetEditEngine is needed because the forwarder doesn't have field functions - ScEditEngineDefaulter* GetEditEngine(); - - virtual SvxEditSource* Clone() const; - virtual SvxTextForwarder* GetTextForwarder(); + ScEditEngineDefaulter* GetEditEngine(); - virtual void UpdateData(); + virtual SvxEditSource* Clone() const; + virtual SvxTextForwarder* GetTextForwarder(); - void SetDoUpdateData(sal_Bool bValue); - sal_Bool IsDirty() const; -}; + virtual void UpdateData(); -// ScCellEditSource with local copy of ScCellTextData is used by ScCellFieldsObj, ScCellFieldObj - -class ScCellEditSource : public ScSharedCellEditSource -{ -public: - ScCellEditSource( ScDocShell* pDocSh, const ScAddress& rP ); - virtual ~ScCellEditSource(); - - virtual SvxEditSource* Clone() const; + void SetDoUpdateData(bool bValue); + bool IsDirty() const; }; - class ScAnnotationEditSource : public SvxEditSource, public SfxListener { private: |