diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-15 12:04:56 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:13:06 -0400 |
commit | e8741c80e2f737bed94d781334f2cabe93becb15 (patch) | |
tree | c39ad9bb7d5875d4c95a561a8bac63f6f3226720 /sc/inc/clipcontext.hxx | |
parent | 3014160a8a3df33083175e8aeaca18340e28574a (diff) |
Move all clip params into the new context class. We don't need two buckets.
Change-Id: Ida0542583242ebcdd7f1448931e31656aa542457
Diffstat (limited to 'sc/inc/clipcontext.hxx')
-rw-r--r-- | sc/inc/clipcontext.hxx | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index 00049f169771..ca6760fbccf9 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -10,13 +10,39 @@ #ifndef SC_CLIPCONTEXT_HXX #define SC_CLIPCONTEXT_HXX +#include "address.hxx" + +class ScDocument; + namespace sc { class CopyFromClipContext { + ScDocument* mpRefUndoDoc; + ScDocument* mpClipDoc; + sal_uInt16 mnInsertFlag; + SCTAB mnTabStart; + SCTAB mnTabEnd; + bool mbAsLink:1; + bool mbSkipAttrForEmptyCells:1; + + CopyFromClipContext(); // disabled public: - CopyFromClipContext(); + CopyFromClipContext( + ScDocument* pRefUndoDoc, ScDocument* pClipDoc, sal_uInt16 nInsertFlag, + bool bAsLink, bool bSkipAttrForEmptyCells); + + void setTabRange(SCTAB nStart, SCTAB nEnd); + ~CopyFromClipContext(); + + ScDocument* getUndoDoc(); + ScDocument* getClipDoc(); + sal_uInt16 getInsertFlag() const; + SCTAB getTabStart() const; + SCTAB getTabEnd() const; + bool isAsLink() const; + bool isSkipAttrForEmptyCells() const; }; } |