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: pptin.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 #include <svx/svdfppt.hxx>
35 #include <svx/msdffdef.hxx>
37 #include <svx/svdtypes.hxx>
38 #include <svx/msfiltertracer.hxx>
39 #include <com/sun/star/uno/Any.h>
40 #include <boost/shared_ptr.hpp>
45 /*************************************************************************
49 \************************************************************************/
52 class SdAnimationInfo
;
53 struct PptInteractiveInfoAtom
;
56 typedef boost::shared_ptr
< Ppt97Animation
> Ppt97AnimationPtr
;
57 typedef ::std::map
< SdrObject
*, Ppt97AnimationPtr
> tAnimationMap
;
58 typedef std::vector
< std::pair
< SdrObject
*, Ppt97AnimationPtr
> > tAnimationVector
;
60 class ImplSdPPTImport
: public SdrPowerPointImport
64 // SvStream* mpPicStream;
65 DffRecordHeader maDocHd
;
68 sal_uInt32 mnFilterOptions
;
69 SdDrawDocument
* mpDoc
;
70 PresChange mePresChange
;
71 SdrLayerID mnBackgroundLayerID
;
72 SdrLayerID mnBackgroundObjectsLayerID
;
74 tAnimationMap maAnimations
;
76 void SetHeaderFooterPageSettings( SdPage
* pPage
, const PptSlidePersistEntry
* pMasterPersist
);
77 void ImportPageEffect( SdPage
* pPage
, const sal_Bool bNewAnimationsUsed
);
79 void FillSdAnimationInfo( SdAnimationInfo
* pInfo
, PptInteractiveInfoAtom
* pIAtom
, String aMacroName
);
81 virtual SdrObject
* ProcessObj( SvStream
& rSt
, DffObjData
& rData
, void* pData
, Rectangle
& rTextRect
, SdrObject
* pObj
);
82 virtual SdrObject
* ApplyTextObj( PPTTextObj
* pTextObj
, SdrTextObj
* pText
, SdPage
* pPage
,
83 SfxStyleSheet
*, SfxStyleSheet
** ) const;
87 String
ReadSound( sal_uInt32 nSoundRef
) const;
88 String
ReadMedia( sal_uInt32 nMediaRef
) const;
90 ImplSdPPTImport( SdDrawDocument
* pDoc
, SvStorage
& rStorage
, SfxMedium
& rMed
, PowerPointImportParam
& );
98 ImplSdPPTImport
* pFilter
;
102 SdPPTImport( SdDrawDocument
* pDoc
, SvStream
& rDocStream
, SvStorage
& rStorage
, SfxMedium
& rMed
, MSFilterTracer
* pTracer
= NULL
);
108 #endif // _SD_PPTIN_HXX