merge the formfield patch from ooo-build
[ooovba.git] / binfilter / inc / bf_so3 / outplace.hxx
blob0401f07580328760fff053490cc7e1e4b3edc152
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: outplace.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _OUTPLACE_HXX
32 #define _OUTPLACE_HXX
34 #ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_
35 #include <com/sun/star/lang/XComponent.hpp>
36 #endif
38 #ifndef _COM_SUN_STAR_DATATRANSFER_XTRANSFERABLE_HPP_
39 #include <com/sun/star/datatransfer/XTransferable.hpp>
40 #endif
42 #include <bf_so3/ipobj.hxx>
44 #ifndef INCLUDED_SO3DLLAPI_H
45 #include "bf_so3/so3dllapi.h"
46 #endif
48 //=========================================================================
49 namespace binfilter
51 struct SvOutPlace_Impl;
52 class SvObjectServer;
54 class SO3_DLLPUBLIC SvOutPlaceObject : public SvInPlaceObject
55 /* [Beschreibung]
57 Die Klasse SvOutPlaceObject ist ein Wrapper fuer alle Windows Ole-Objekte
59 [Probleme]
62 private:
63 SvOutPlace_Impl * pImpl;
65 SO3_DLLPRIVATE void DataChanged_Impl( BOOL bOnlyEmbedSource );
66 SO3_DLLPRIVATE void LoadSO_Cont();
67 SO3_DLLPRIVATE BOOL MakeWorkStorageWrap_Impl( SvStorage * pStor );
69 protected:
70 SO3_DLLPRIVATE virtual void FillClass( SvGlobalName * pClassName,
71 ULONG * pFormat,
72 String * pAppName,
73 String * pFullTypeName,
74 String * pShortTypeName,
75 long nFileFormat = SOFFICE_FILEFORMAT_CURRENT ) const;
76 // Protokoll
77 SO3_DLLPRIVATE virtual void Open( BOOL bOpen );
78 SO3_DLLPRIVATE virtual void Embed( BOOL bEmbedded );
79 SO3_DLLPRIVATE virtual ErrCode Verb( long, SvEmbeddedClient * pCallerClient,
80 Window * pWin, const Rectangle * pWorkRectPixel );
82 // Datenaustausch
83 SO3_DLLPRIVATE virtual void Draw( OutputDevice *,
84 const JobSetup & rSetup,
85 USHORT nAspect = ASPECT_CONTENT );
87 // Laden speichern
88 SO3_DLLPRIVATE virtual BOOL InitNew( SvStorage * );
89 SO3_DLLPRIVATE virtual BOOL Load( SvStorage * );
90 SO3_DLLPRIVATE virtual BOOL Save();
91 SO3_DLLPRIVATE virtual BOOL SaveAs( SvStorage * );
92 SO3_DLLPRIVATE virtual void HandsOff();
93 SO3_DLLPRIVATE virtual BOOL SaveCompleted( SvStorage * );
95 SO3_DLLPRIVATE ~SvOutPlaceObject();
96 public:
97 SO2_DECL_BASIC_CLASS(SvOutPlaceObject)
98 SvOutPlaceObject();
99 static SvInPlaceObjectRef InsertObject( Window *, SvStorage * pIStorage,
100 BOOL & bOut, const SvGlobalName & rName, String & rFileName );
101 #ifdef WNT
102 static SvInPlaceObjectRef CreateFromData( const ::com::sun::star::uno::Reference<
103 ::com::sun::star::datatransfer::XTransferable>&,
104 SvStorage*);
105 static SvGlobalName GetCLSID( const String & rFileName );
106 #endif
107 static const ::binfilter::SvObjectServer* GetInternalServer_Impl( const SvGlobalName& aGlobName );
109 void ClearCache();
110 SotStorage * GetWorkingStorage();
111 virtual void SetVisArea( const Rectangle & rVisArea );
112 using SvEmbeddedObject::GetVisArea;
113 Rectangle GetVisArea( USHORT dwAspect ) const;
114 void ViewChanged( USHORT nAspects );
115 virtual const SvVerbList & GetVerbList() const;
117 virtual UINT32 GetViewAspect() const;
118 ::com::sun::star::uno::Reference < ::com::sun::star::lang::XComponent > GetUnoComponent() const;
119 SvGlobalName GetObjectCLSID();
120 void DrawObject( OutputDevice *,
121 const JobSetup & rSetup,
122 const Size& rSize,
123 USHORT nAspect = ASPECT_CONTENT );
127 SO2_DECL_IMPL_REF(SvOutPlaceObject)
131 #endif // _OUTPLACE_HXX