bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / filter / ppt / pptin.hxx
blob0d3d8d2a21b470cb7c242bc2118dc50fd1f0ea93
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_SOURCE_FILTER_PPT_PPTIN_HXX
21 #define INCLUDED_SD_SOURCE_FILTER_PPT_PPTIN_HXX
23 #include <filter/msfilter/svdfppt.hxx>
24 #include <svx/msdffdef.hxx>
25 #include <diadef.h>
26 #include <svx/svdtypes.hxx>
27 #include <com/sun/star/uno/Any.h>
28 #include <boost/shared_ptr.hpp>
30 class SdDrawDocument;
31 class SfxMedium;
33 /*************************************************************************
35 |* lokaler Import
37 \************************************************************************/
39 class SdPage;
40 class SdAnimationInfo;
41 struct PptInteractiveInfoAtom;
42 class Ppt97Animation;
44 typedef boost::shared_ptr< Ppt97Animation > Ppt97AnimationPtr;
45 typedef ::std::map < SdrObject*, Ppt97AnimationPtr > tAnimationMap;
46 typedef std::vector< std::pair< SdrObject*, Ppt97AnimationPtr > > tAnimationVector;
48 class ImplSdPPTImport : public SdrPowerPointImport
50 SfxMedium& mrMed;
51 SotStorage& mrStorage;
52 // SvStream* mpPicStream;
53 DffRecordHeader maDocHd;
54 std::vector<OUString> maSlideNameList;
55 bool mbDocumentFound;
56 sal_uInt32 mnFilterOptions;
57 SdDrawDocument* mpDoc;
58 PresChange mePresChange;
59 SdrLayerID mnBackgroundLayerID;
60 SdrLayerID mnBackgroundObjectsLayerID;
62 tAnimationMap maAnimations;
63 void SetHeaderFooterPageSettings( SdPage* pPage, const PptSlidePersistEntry* pMasterPersist );
64 void ImportPageEffect( SdPage* pPage, const bool bNewAnimationsUsed );
66 void FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiveInfoAtom* pIAtom, const OUString& aMacroName );
68 virtual SdrObject* ProcessObj( SvStream& rSt, DffObjData& rData, void* pData, Rectangle& rTextRect, SdrObject* pObj ) SAL_OVERRIDE;
69 virtual SdrObject* ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pText, SdPageCapsule pPage,
70 SfxStyleSheet*, SfxStyleSheet** ) const SAL_OVERRIDE;
72 public:
74 OUString ReadSound( sal_uInt32 nSoundRef ) const;
75 OUString ReadMedia( sal_uInt32 nMediaRef ) const;
77 ImplSdPPTImport( SdDrawDocument* pDoc, SotStorage& rStorage, SfxMedium& rMed, PowerPointImportParam& );
78 virtual ~ImplSdPPTImport();
80 bool Import();
81 virtual bool ReadFormControl( tools::SvRef<SotStorage>& rSrc1, com::sun::star::uno::Reference< com::sun::star::form::XFormComponent > & rFormComp ) const SAL_OVERRIDE;
84 class SdPPTImport
86 ImplSdPPTImport* pFilter;
88 public:
90 SdPPTImport( SdDrawDocument* pDoc, SvStream& rDocStream, SotStorage& rStorage, SfxMedium& rMed );
91 ~SdPPTImport();
93 bool Import();
96 #endif // INCLUDED_SD_SOURCE_FILTER_PPT_PPTIN_HXX
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */