1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef CHART2_CHARTDROPTARGETHELPER_HXX 24 #define CHART2_CHARTDROPTARGETHELPER_HXX 25 26 // for DropTargetHelper 27 #include <svtools/transfer.hxx> 28 29 namespace com { namespace sun { namespace star { 30 namespace chart2 { 31 class XChartDocument; 32 } 33 }}} 34 35 namespace chart 36 { 37 38 class ChartDropTargetHelper : public DropTargetHelper 39 { 40 public: 41 explicit ChartDropTargetHelper( 42 const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget >& rxDropTarget, 43 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument > & xChartDocument ); 44 virtual ~ChartDropTargetHelper(); 45 46 protected: 47 48 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); 49 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); 50 51 private: 52 // not available 53 ChartDropTargetHelper(); 54 55 bool satisfiesPrerequisites() const; 56 57 58 ::com::sun::star::uno::Reference< 59 ::com::sun::star::chart2::XChartDocument > m_xChartDocument; 60 }; 61 62 } // namespace chart 63 64 // CHART2_CHARTDROPTARGETHELPER_HXX 65 #endif 66