LCOV - code coverage report
Current view: top level - sc/source/ui/inc - drwtrans.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SC_SOURCE_UI_INC_DRWTRANS_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_DRWTRANS_HXX
      22             : 
      23             : #include <com/sun/star/uno/Reference.hxx>
      24             : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      25             : #include <svtools/transfer.hxx>
      26             : 
      27             : #include <sfx2/objsh.hxx>
      28             : #include "global.hxx"
      29             : #include "charthelper.hxx"
      30             : #include "rangelst.hxx"
      31             : 
      32             : class SdrModel;
      33             : class ScDocShell;
      34             : class INetBookmark;
      35             : class SdrObject;
      36             : class SdrView;
      37             : class ScDrawView;
      38             : class SdrOle2Obj;
      39             : 
      40             : class ScDrawTransferObj : public TransferableHelper
      41             : {
      42             : private:
      43             :     SdrModel*                       pModel;
      44             :     TransferableDataHelper          aOleData;
      45             :     TransferableObjectDescriptor    aObjDesc;
      46             :     SfxObjectShellRef               aDocShellRef;
      47             :     SfxObjectShellRef               aDrawPersistRef;
      48             : 
      49             :                                     // extracted from model in ctor:
      50             :     Size                            aSrcSize;
      51             :     INetBookmark*                   pBookmark;
      52             :     bool                            bGraphic;
      53             :     bool                            bGrIsBit;
      54             :     bool                            bOleObj;
      55             :                                     // source information for drag&drop:
      56             :                                     // (view is needed to handle drawing obejcts)
      57             :     SdrView*                        pDragSourceView;
      58             :     sal_uInt16                      nDragSourceFlags;
      59             :     bool                            bDragWasInternal;
      60             : 
      61             :     sal_uInt32                      nSourceDocID;
      62             : 
      63             :     ScRangeListVector               m_aProtectedChartRangesVector;
      64             : 
      65             :     OUString maShellID;
      66             : 
      67             :     void                InitDocShell();
      68             :     SdrOle2Obj* GetSingleObject();
      69             : 
      70             :     void CreateOLEData();
      71             : 
      72             : public:
      73             :             ScDrawTransferObj( SdrModel* pClipModel, ScDocShell* pContainerShell,
      74             :                                 const TransferableObjectDescriptor& rDesc );
      75             :     virtual ~ScDrawTransferObj();
      76             : 
      77             :     virtual void        AddSupportedFormats() SAL_OVERRIDE;
      78             :     virtual bool GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ) SAL_OVERRIDE;
      79             :     virtual bool        WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId,
      80             :                                         const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) SAL_OVERRIDE;
      81             :     virtual void        ObjectReleased() SAL_OVERRIDE;
      82             :     virtual void        DragFinished( sal_Int8 nDropAction ) SAL_OVERRIDE;
      83             : 
      84           0 :     SdrModel*           GetModel()  { return pModel; }
      85             : 
      86             :     void                SetDrawPersist( const SfxObjectShellRef& rRef );
      87             :     void                SetDragSource( ScDrawView* pView );
      88             :     void                SetDragSourceObj( SdrObject* pObj, SCTAB nTab );
      89             :     void                SetDragSourceFlags( sal_uInt16 nFlags );
      90             :     void                SetDragWasInternal();
      91             : 
      92             :     OUString GetShellID() const;
      93             : 
      94           0 :     SdrView*            GetDragSourceView()             { return pDragSourceView; }
      95           0 :     sal_uInt16              GetDragSourceFlags() const      { return nDragSourceFlags; }
      96             : 
      97             :     void                SetSourceDocID( sal_uInt32 nVal )
      98             :                             { nSourceDocID = nVal; }
      99             :     sal_uInt32          GetSourceDocID() const      { return nSourceDocID; }
     100             : 
     101             :     static ScDrawTransferObj* GetOwnClipboard( vcl::Window* pUIWin );
     102             :     virtual sal_Int64 SAL_CALL getSomething( const com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     103             :     static const com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
     104             : 
     105           0 :     const ScRangeListVector& GetProtectedChartRangesVector() const { return m_aProtectedChartRangesVector; }
     106             : };
     107             : 
     108             : #endif
     109             : 
     110             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10