summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-05-11 16:51:27 +0000
committerNiklas Nebel <nn@openoffice.org>2001-05-11 16:51:27 +0000
commit637811a2e6c4276cb000d894bca6c43a9df68159 (patch)
treecfe622da76bdf23c4be9b82ee03d4230f4c070cb /sc/source/ui/view/cellsh.cxx
parent00c3332d3f7ce44715def10b4b4ec395c0af4f14 (diff)
CopyToClipboard/CreateFromSystemClipboard need Window parameter
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r--sc/source/ui/view/cellsh.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 72d97cc937a9..e1397eb3aba1 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cellsh.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: nn $ $Date: 2001-05-02 15:44:59 $
+ * last change: $Author: nn $ $Date: 2001-05-11 17:51:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -332,12 +332,12 @@ void lcl_TestFormat( SvxClipboardFmtItem& rFormats, const TransferableDataHelper
}
}
-// static
void ScCellShell::GetPossibleClipboardFormats( SvxClipboardFmtItem& rFormats )
{
BOOL bDraw = ( ScDrawTransferObj::GetOwnClipboard() != NULL );
- TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard() );
+ TransferableDataHelper aDataHelper(
+ TransferableDataHelper::CreateFromSystemClipboard( GetViewData()->GetActiveWin() ) );
lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_DRAWING );
lcl_TestFormat( rFormats, aDataHelper, SOT_FORMATSTR_ID_SVXB );
@@ -371,7 +371,8 @@ void __EXPORT ScCellShell::GetClipState( SfxItemSet& rSet )
bDisable = FALSE;
else
{
- TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard() );
+ TransferableDataHelper aDataHelper(
+ TransferableDataHelper::CreateFromSystemClipboard( GetViewData()->GetActiveWin() ) );
if ( aDataHelper.HasFormat( SOT_FORMAT_BITMAP ) ||
aDataHelper.HasFormat( SOT_FORMAT_GDIMETAFILE ) ||