Branch libreoffice-5-0-4
[LibreOffice.git] / include / oox / ppt / presentationfragmenthandler.hxx
blobb4b10bca23b190ae6d12971b0038631077ff99e6
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_OOX_PPT_PRESENTATIONFRAGMENTHANDLER_HXX
21 #define INCLUDED_OOX_PPT_PRESENTATIONFRAGMENTHANDLER_HXX
23 #include <com/sun/star/drawing/XDrawPage.hpp>
24 #include <com/sun/star/awt/Size.hpp>
25 #include <oox/ppt/slidepersist.hxx>
26 #include <oox/core/contexthandler.hxx>
27 #include <oox/core/fragmenthandler.hxx>
28 #include <oox/core/fragmenthandler2.hxx>
29 #include <oox/core/relations.hxx>
30 #include <oox/ppt/customshowlistcontext.hxx>
31 #include <oox/ppt/comments.hxx>
32 #include <stack>
33 #include <vector>
35 namespace oox { namespace ppt {
37 class PresentationFragmentHandler : public ::oox::core::FragmentHandler2
39 public:
40 PresentationFragmentHandler( ::oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath ) throw();
41 virtual ~PresentationFragmentHandler() throw();
42 virtual void finalizeImport() SAL_OVERRIDE;
43 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) SAL_OVERRIDE;
45 protected:
46 bool importSlide( const ::oox::core::FragmentHandlerRef& rSlideFragmentHandler,
47 const oox::ppt::SlidePersistPtr& rPersist );
49 private:
51 void importSlide(sal_uInt32 nSlide, bool bFirstSlide, bool bImportNotes);
53 std::vector< OUString > maSlideMasterVector;
54 std::vector< OUString > maSlidesVector;
55 std::vector< OUString > maNotesMasterVector;
56 ::oox::drawingml::TextListStylePtr mpTextListStyle;
58 ::com::sun::star::awt::Size maSlideSize;
59 ::com::sun::star::awt::Size maNotesSize;
61 std::vector< CustomShow > maCustomShowList;
63 CommentAuthorList maAuthorList;
64 bool mbCommentAuthorsRead; // read commentAuthors.xml only once
67 } }
69 #endif // INCLUDED_OOX_PPT_PRESENTATIONFRAGMENTHANDLER_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */