update credits
[LibreOffice.git] / include / oox / ppt / presentationfragmenthandler.hxx
blobae26cb233e8c6921029e67bd898f2e681bc87e5a
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 OOX_PPT_PRESENTATION_FRAGMENTHANDLER
21 #define OOX_PPT_PRESENTATION_FRAGMENTHANDLER
23 #include <com/sun/star/drawing/XDrawPage.hpp>
24 #include <com/sun/star/awt/Size.hpp>
25 #include "oox/drawingml/textliststyle.hxx"
26 #include "oox/ppt/slidepersist.hxx"
27 #include "oox/core/contexthandler.hxx"
28 #include "oox/core/fragmenthandler.hxx"
29 #include "oox/core/fragmenthandler2.hxx"
30 #include "oox/core/relations.hxx"
31 #include "oox/ppt/customshowlistcontext.hxx"
32 #include "oox/ppt/comments.hxx"
33 #include <stack>
34 #include <vector>
36 namespace oox { namespace ppt {
38 class PresentationFragmentHandler : public ::oox::core::FragmentHandler2
40 public:
41 PresentationFragmentHandler( ::oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath ) throw();
42 virtual ~PresentationFragmentHandler() throw();
43 virtual void finalizeImport();
44 virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs );
46 protected:
47 bool importSlide( const ::oox::core::FragmentHandlerRef& rxSlideFragmentHandler,
48 const oox::ppt::SlidePersistPtr pPersist );
50 private:
52 void importSlide(sal_uInt32 nSlide, sal_Bool bFirstSlide, sal_Bool bImportNotes);
54 std::vector< OUString > maSlideMasterVector;
55 std::vector< OUString > maSlidesVector;
56 std::vector< OUString > maNotesMasterVector;
57 ::oox::drawingml::TextListStylePtr mpTextListStyle;
59 ::com::sun::star::awt::Size maSlideSize;
60 ::com::sun::star::awt::Size maNotesSize;
62 std::vector< CustomShow > maCustomShowList;
64 CommentAuthorList maAuthorList;
65 bool mbCommentAuthorsRead; // read commentAuthors.xml only once
68 } }
70 #endif // OOX_PPT_PRESENTATION_FRAGMENTHANDLER
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */