diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-17 10:02:05 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:13:09 -0400 |
commit | 1a43dd8e5b0b948bbc37e3f2989cafea5c996b1b (patch) | |
tree | b9844b62c639c3f71416f43529404a2f45f080b9 /sc/inc/clipcontext.hxx | |
parent | 11a164f0ac81f4cff4b2698e1fc114ce7e4737df (diff) |
Move the boolean flags to the context bucket.
To reduce the number of function parameters lower.
Change-Id: I816bd7c27070597f5fcdf69bdc7d981279390ca6
Diffstat (limited to 'sc/inc/clipcontext.hxx')
-rw-r--r-- | sc/inc/clipcontext.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index e28d265df47d..0df627c77091 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -30,6 +30,8 @@ class ClipContextBase SCTAB mnTabStart; SCTAB mnTabEnd; + ClipContextBase(); // disabled + public: ClipContextBase(ScDocument& rDoc); virtual ~ClipContextBase(); @@ -44,7 +46,6 @@ public: class CopyFromClipContext : public ClipContextBase { - ScDocument* mpRefUndoDoc; ScDocument* mpClipDoc; sal_uInt16 mnInsertFlag; @@ -69,9 +70,17 @@ public: class CopyToClipContext : public ClipContextBase { + bool mbKeepScenarioFlags:1; + bool mbCloneNotes:1; + + CopyToClipContext(); // disabled + public: - CopyToClipContext(ScDocument& rDoc); + CopyToClipContext(ScDocument& rDoc, bool bKeepScenarioFlags, bool bCloneNotes); virtual ~CopyToClipContext(); + + bool isKeepScenarioFlags() const; + bool isCloneNotes() const; }; } |