diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-05-11 16:51:27 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-05-11 16:51:27 +0000 |
commit | 637811a2e6c4276cb000d894bca6c43a9df68159 (patch) | |
tree | cfe622da76bdf23c4be9b82ee03d4230f4c070cb /sc/source/ui/view/cellsh.cxx | |
parent | 00c3332d3f7ce44715def10b4b4ec395c0af4f14 (diff) |
CopyToClipboard/CreateFromSystemClipboard need Window parameter
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 11 |
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 ) || |