1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
36 namespace oox
{ namespace ppt
{
38 class PresentationFragmentHandler
: public ::oox::core::FragmentHandler2
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
);
47 bool importSlide( const ::oox::core::FragmentHandlerRef
& rxSlideFragmentHandler
,
48 const oox::ppt::SlidePersistPtr pPersist
);
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
70 #endif // OOX_PPT_PRESENTATION_FRAGMENTHANDLER
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */