diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-18 16:45:02 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-18 16:51:18 -0500 |
commit | cdc8ebf9646e773351c91039a62f2414c7b02105 (patch) | |
tree | ed0cedf4dc04dd347293d4e40a04bb997c218fdb /sc/inc/clipcontext.hxx | |
parent | 3c7b65c171eeade3272cc766b813b99a35a6ef7d (diff) |
fdo#74573: Delete ranges that are non-empty before pasting from clipboard.
The conditional formatting part is still not working. But other bits
appear to be working now.
Change-Id: Ia8a2cbe57cd2fa9ca9ad46635a91a1d8b99b0e7d
Diffstat (limited to 'sc/inc/clipcontext.hxx')
-rw-r--r-- | sc/inc/clipcontext.hxx | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index 77abcf834618..d016410fecd9 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -22,6 +22,7 @@ class ScDocument; class ScColumn; class ScPatternAttr; class ScPostIt; +class ScConditionalFormatList; namespace sc { @@ -43,21 +44,37 @@ public: class CopyFromClipContext : public ClipContextBase { + SCCOL mnDestCol1; + SCCOL mnDestCol2; + SCROW mnDestRow1; + SCROW mnDestRow2; SCTAB mnTabStart; SCTAB mnTabEnd; ScDocument* mpRefUndoDoc; ScDocument* mpClipDoc; - sal_uInt16 mnInsertFlag; + sal_uInt16 mnInsertFlag; + sal_uInt16 mnDeleteFlag; ScCellValue maSingleCell; + ScConditionalFormatList* mpCondFormatList; const ScPatternAttr* mpSinglePattern; const ScPostIt* mpSingleNote; bool mbAsLink:1; bool mbSkipAttrForEmptyCells:1; bool mbCloneNotes:1; + bool mbTableProtected:1; CopyFromClipContext(); // disabled public: + + struct Range + { + SCCOL mnCol1; + SCCOL mnCol2; + SCROW mnRow1; + SCROW mnRow2; + }; + CopyFromClipContext(ScDocument& rDoc, ScDocument* pRefUndoDoc, ScDocument* pClipDoc, sal_uInt16 nInsertFlag, bool bAsLink, bool bSkipAttrForEmptyCells); @@ -69,18 +86,30 @@ public: SCTAB getTabStart() const; SCTAB getTabEnd() const; + void setDestRange( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); + Range getDestRange() const; + ScDocument* getUndoDoc(); ScDocument* getClipDoc(); sal_uInt16 getInsertFlag() const; + void setDeleteFlag( sal_uInt16 nFlag ); + sal_uInt16 getDeleteFlag() const; + ScCellValue& getSingleCell(); + void setCondFormatList( ScConditionalFormatList* pCondFormatList ); + ScConditionalFormatList* getCondFormatList(); + const ScPatternAttr* getSingleCellPattern() const; void setSingleCellPattern( const ScPatternAttr* pAttr ); const ScPostIt* getSingleCellNote() const; void setSingleCellNote( const ScPostIt* pNote ); + void setTableProtected( bool b ); + bool isTableProtected() const; + bool isAsLink() const; bool isSkipAttrForEmptyCells() const; bool isCloneNotes() const; |