1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef SD_VIEW_CLIPBOARD_HXX
29 #define SD_VIEW_CLIPBOARD_HXX
31 #include <tools/solar.h>
41 /** Handle clipboard related tasks for the draw view.
46 ViewClipboard (::sd::View
& rView
);
47 virtual ~ViewClipboard (void);
49 /** Handle the drop of a drag-and-drop action where the transferable
50 contains a set of pages.
52 virtual void HandlePageDrop (const SdTransferable
& rTransferable
);
57 /** Return the first master page of the given transferable. When the
58 bookmark list of the transferable contains at least one non-master
59 page then NULL is returned.
61 SdPage
* GetFirstMasterPage (const SdTransferable
& rTransferable
);
63 /** Assign the (first) master page of the given transferable to the
66 virtual void AssignMasterPage (
67 const SdTransferable
& rTransferable
,
70 /** Return an index of a page after which the pages of the transferable
71 are to be inserted into the target document.
73 virtual sal_uInt16
DetermineInsertPosition (
74 const SdTransferable
& rTransferable
);
76 /** Insert the slides in the given transferable behind the last selected
77 slide or, when the selection is empty, behind the last slide.
79 This transferable defines which pages to insert.
80 @param nInsertPosition
81 The pages of the transferable will be inserted behind the page
84 Returns the number of inserted slides.
86 virtual sal_uInt16
InsertSlides (
87 const SdTransferable
& rTransferable
,
88 sal_uInt16 nInsertPosition
);
91 } // end of namespace ::sd