diff options
-rw-r--r-- | sc/inc/colorscale.hxx | 19 | ||||
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 18 |
2 files changed, 19 insertions, 18 deletions
diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index 832e09b9b026..944148378986 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -29,24 +29,7 @@ class ScFormulaCell; class ScTokenArray; struct ScDataBarInfo; class BitmapEx; - -class ScFormulaListener : public SvtListener -{ -private: - std::vector<ScRange> maCells; - mutable bool mbDirty; - ScDocument* mpDoc; - - void startListening(ScTokenArray* pTokens, const ScAddress& rPos); - -public: - ScFormulaListener(ScFormulaCell* pCell); - virtual ~ScFormulaListener(); - - void Notify( SvtBroadcaster& rBC, const SfxHint& rHint ); - - bool NeedsRepaint() const; -}; +class ScFormulaListener; // don't change the order // they are also used in the dialog to determine the position diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 9d4d71b56ee5..a96711a013c4 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -19,6 +19,24 @@ #include <algorithm> +class ScFormulaListener : public SvtListener +{ +private: + std::vector<ScRange> maCells; + mutable bool mbDirty; + ScDocument* mpDoc; + + void startListening(ScTokenArray* pTokens, const ScAddress& rPos); + +public: + ScFormulaListener(ScFormulaCell* pCell); + virtual ~ScFormulaListener(); + + void Notify( SvtBroadcaster& rBC, const SfxHint& rHint ); + + bool NeedsRepaint() const; +}; + ScFormulaListener::ScFormulaListener(ScFormulaCell* pCell): mbDirty(false), mpDoc(pCell->GetDocument()) |