1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: outplace.hxx,v $
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 ************************************************************************/
34 #ifndef _COM_SUN_STAR_LANG_XCOMPONENT_HPP_
35 #include <com/sun/star/lang/XComponent.hpp>
38 #ifndef _COM_SUN_STAR_DATATRANSFER_XTRANSFERABLE_HPP_
39 #include <com/sun/star/datatransfer/XTransferable.hpp>
42 #include <bf_so3/ipobj.hxx>
44 #ifndef INCLUDED_SO3DLLAPI_H
45 #include "bf_so3/so3dllapi.h"
48 //=========================================================================
51 struct SvOutPlace_Impl
;
54 class SO3_DLLPUBLIC SvOutPlaceObject
: public SvInPlaceObject
57 Die Klasse SvOutPlaceObject ist ein Wrapper fuer alle Windows Ole-Objekte
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
);
70 SO3_DLLPRIVATE
virtual void FillClass( SvGlobalName
* pClassName
,
73 String
* pFullTypeName
,
74 String
* pShortTypeName
,
75 long nFileFormat
= SOFFICE_FILEFORMAT_CURRENT
) const;
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
);
83 SO3_DLLPRIVATE
virtual void Draw( OutputDevice
*,
84 const JobSetup
& rSetup
,
85 USHORT nAspect
= ASPECT_CONTENT
);
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();
97 SO2_DECL_BASIC_CLASS(SvOutPlaceObject
)
99 static SvInPlaceObjectRef
InsertObject( Window
*, SvStorage
* pIStorage
,
100 BOOL
& bOut
, const SvGlobalName
& rName
, String
& rFileName
);
102 static SvInPlaceObjectRef
CreateFromData( const ::com::sun::star::uno::Reference
<
103 ::com::sun::star::datatransfer::XTransferable
>&,
105 static SvGlobalName
GetCLSID( const String
& rFileName
);
107 static const ::binfilter::SvObjectServer
* GetInternalServer_Impl( const SvGlobalName
& aGlobName
);
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
,
123 USHORT nAspect
= ASPECT_CONTENT
);
127 SO2_DECL_IMPL_REF(SvOutPlaceObject
)
131 #endif // _OUTPLACE_HXX