diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-14 23:39:50 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-20 20:13:06 -0400 |
commit | 3014160a8a3df33083175e8aeaca18340e28574a (patch) | |
tree | 6fd1bd24d6d706df52e189e017918c734aa40915 /sc/inc | |
parent | ef03feefcc3519e247bc4400f184946b209a1e02 (diff) |
Introduce copy-from-clip context for copy handling code.
It's not used yet, and is currently empty.
Change-Id: Ia377994ae042fc8b19d269adc2f94830422770f1
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/clipcontext.hxx | 26 | ||||
-rw-r--r-- | sc/inc/column.hxx | 7 | ||||
-rw-r--r-- | sc/inc/document.hxx | 16 | ||||
-rw-r--r-- | sc/inc/table.hxx | 7 |
4 files changed, 45 insertions, 11 deletions
diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx new file mode 100644 index 000000000000..00049f169771 --- /dev/null +++ b/sc/inc/clipcontext.hxx @@ -0,0 +1,26 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef SC_CLIPCONTEXT_HXX +#define SC_CLIPCONTEXT_HXX + +namespace sc { + +class CopyFromClipContext +{ +public: + CopyFromClipContext(); + ~CopyFromClipContext(); +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index b7539c639793..9d810e1d59a1 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -50,6 +50,7 @@ namespace editeng { class SvxBorderLine; } namespace sc { struct FormulaGroupContext; class EndListeningContext; + class CopyFromClipContext; } class Fraction; @@ -234,8 +235,10 @@ public: void CopyToClip(SCROW nRow1, SCROW nRow2, ScColumn& rColumn, bool bKeepScenarioFlags) const; void CopyStaticToDocument(SCROW nRow1, SCROW nRow2, ScColumn& rDestCol); void CopyCellToDocument( SCROW nSrcRow, SCROW nDestRow, ScColumn& rDestCol ); - void CopyFromClip(SCROW nRow1, SCROW nRow2, long nDy, - sal_uInt16 nInsFlag, bool bAsLink, bool bSkipAttrForEmpty, ScColumn& rColumn); + void CopyFromClip( + sc::CopyFromClipContext& rCxt, SCROW nRow1, SCROW nRow2, long nDy, + sal_uInt16 nInsFlag, bool bAsLink, bool bSkipAttrForEmpty, ScColumn& rColumn ); + void StartListeningInArea( SCROW nRow1, SCROW nRow2 ); void BroadcastInArea( SCROW nRow1, SCROW nRow2 ); diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 0c59a6750cdf..7b7ea40fa27f 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -50,6 +50,7 @@ namespace editeng { class SvxBorderLine; } namespace sc { struct FormulaGroupContext; class EndListeningContext; + class CopyFromClipContext; } class SvxFontItem; @@ -1140,13 +1141,14 @@ public: void CopyTabToClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCTAB nTab, ScDocument* pClipDoc = NULL); - void CopyBlockFromClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - const ScMarkData& rMark, SCsCOL nDx, SCsROW nDy, - const ScCopyBlockFromClipParams* pCBFCP ); - void CopyNonFilteredFromClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, - const ScMarkData& rMark, SCsCOL nDx, SCsROW nDy, - const ScCopyBlockFromClipParams* pCBFCP, - SCROW & rClipStartRow ); + void CopyBlockFromClip( + sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, + const ScMarkData& rMark, SCsCOL nDx, SCsROW nDy, const ScCopyBlockFromClipParams* pCBFCP ); + void CopyNonFilteredFromClip( + sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, + const ScMarkData& rMark, SCsCOL nDx, SCsROW nDy, const ScCopyBlockFromClipParams* pCBFCP, + SCROW & rClipStartRow ); + void StartListeningFromClip( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, const ScMarkData& rMark, sal_uInt16 nInsFlag ); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 543bdc9861d4..ac2b2bff23c6 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -50,6 +50,7 @@ namespace com { namespace sun { namespace star { namespace sc { struct FormulaGroupContext; class EndListeningContext; + class CopyFromClipContext; } class SfxItemSet; @@ -383,8 +384,10 @@ public: bool bKeepScenarioFlags, bool bCloneNoteCaptions); void CopyStaticToDocument(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, ScTable* pDestTab); void CopyCellToDocument( SCCOL nSrcCol, SCROW nSrcRow, SCCOL nDestCol, SCROW nDestRow, ScTable& rDestTab ); - void CopyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCsCOL nDx, SCsROW nDy, - sal_uInt16 nInsFlag, bool bAsLink, bool bSkipAttrForEmpty, ScTable* pTable); + void CopyFromClip( + sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, + SCsCOL nDx, SCsROW nDy, sal_uInt16 nInsFlag, bool bAsLink, bool bSkipAttrForEmpty, ScTable* pTable ); + void StartListeningInArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ); void BroadcastInArea( SCCOL nCol1, SCROW nRow1, |