merge the formfield patch from ooo-build
[ooovba.git] / sd / source / filter / ppt / pptin.hxx
blobfd851c394f85ab4d45c02ba2ccaacf56765dfec5
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: pptin.hxx,v $
10 * $Revision: 1.9 $
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 _SD_PPTIN_HXX
32 #define _SD_PPTIN_HXX
34 #include <svx/svdfppt.hxx>
35 #include <svx/msdffdef.hxx>
36 #include <diadef.h>
37 #include <svx/svdtypes.hxx>
38 #include <svx/msfiltertracer.hxx>
39 #include <com/sun/star/uno/Any.h>
40 #include <boost/shared_ptr.hpp>
42 class SdDrawDocument;
43 class SfxMedium;
45 /*************************************************************************
47 |* lokaler Import
49 \************************************************************************/
51 class SdPage;
52 class SdAnimationInfo;
53 struct PptInteractiveInfoAtom;
54 class Ppt97Animation;
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
62 SfxMedium& mrMed;
63 SvStorage& mrStorage;
64 // SvStream* mpPicStream;
65 DffRecordHeader maDocHd;
66 List maSlideNameList;
67 BOOL mbDocumentFound;
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;
85 public:
87 String ReadSound( sal_uInt32 nSoundRef ) const;
88 String ReadMedia( sal_uInt32 nMediaRef ) const;
90 ImplSdPPTImport( SdDrawDocument* pDoc, SvStorage& rStorage, SfxMedium& rMed, PowerPointImportParam& );
91 ~ImplSdPPTImport();
93 sal_Bool Import();
96 class SdPPTImport
98 ImplSdPPTImport* pFilter;
100 public:
102 SdPPTImport( SdDrawDocument* pDoc, SvStream& rDocStream, SvStorage& rStorage, SfxMedium& rMed, MSFilterTracer* pTracer = NULL );
103 ~SdPPTImport();
105 sal_Bool Import();
108 #endif // _SD_PPTIN_HXX