tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sd / source / filter / ppt / pptin.hxx
blob49f15925baf1d5833c159a6b7cac8e109e83ec90
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 #pragma once
22 #include <filter/msfilter/svdfppt.hxx>
23 #include <diadef.h>
24 #include <sot/storage.hxx>
25 #include <svx/svdtypes.hxx>
26 #include <memory>
28 class SdDrawDocument;
29 class SfxMedium;
31 /*************************************************************************
33 |* local import
35 \************************************************************************/
37 class SdPage;
38 class SdAnimationInfo;
39 class Ppt97Animation;
41 typedef std::shared_ptr< Ppt97Animation > Ppt97AnimationPtr;
42 typedef ::std::map < SdrObject*, Ppt97AnimationPtr > tAnimationMap;
44 class ImplSdPPTImport : public SdrPowerPointImport
46 rtl::Reference<SotStorageStream> mxPicturesStream;
47 SfxMedium& mrMed;
48 SotStorage& mrStorage;
49 DffRecordHeader maDocHd;
50 std::vector<OUString> maSlideNameList;
51 bool mbDocumentFound;
52 sal_uInt32 mnFilterOptions;
53 SdDrawDocument* mpDoc;
54 PresChange mePresChange;
55 SdrLayerID mnBackgroundObjectsLayerID;
57 tAnimationMap maAnimations;
58 void SetHeaderFooterPageSettings( SdPage* pPage, const PptSlidePersistEntry* pMasterPersist );
59 void ImportPageEffect( SdPage* pPage, const bool bNewAnimationsUsed );
61 void FillSdAnimationInfo(SdAnimationInfo* pInfo, const PptInteractiveInfoAtom& rIAtom, const OUString& rMacroName);
63 virtual rtl::Reference<SdrObject> ProcessObj( SvStream& rSt, DffObjData& rData, SvxMSDffClientData& rClientData, ::tools::Rectangle& rTextRect, SdrObject* pObj ) override;
64 virtual SdrObject* ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pText, SdPageCapsule pPage,
65 SfxStyleSheet*, SfxStyleSheet** ) const override;
67 public:
69 OUString ReadSound( sal_uInt32 nSoundRef ) const;
70 OUString ReadMedia( sal_uInt32 nMediaRef ) const;
72 ImplSdPPTImport( SdDrawDocument* pDoc, SotStorage& rStorage, SfxMedium& rMed, PowerPointImportParam& );
73 virtual ~ImplSdPPTImport() override;
75 bool Import();
76 virtual bool ReadFormControl( rtl::Reference<SotStorage>& rSrc1, css::uno::Reference< css::form::XFormComponent > & rFormComp ) const override;
79 class SdPPTImport
81 PowerPointImportParam maParam;
82 std::unique_ptr<ImplSdPPTImport> pFilter;
84 public:
86 SdPPTImport( SdDrawDocument* pDoc, SvStream& rDocStream, SotStorage& rStorage, SfxMedium& rMed );
87 ~SdPPTImport();
89 bool Import();
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */