LibreOffice Module sd (master) 1
sdfilter.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <osl/module.h>
23#include <rtl/ustring.hxx>
24#include <tools/ref.hxx>
25#include <com/sun/star/beans/PropertyValue.hpp>
26#include <com/sun/star/frame/XModel.hpp>
27#include <com/sun/star/task/XStatusIndicator.hpp>
28#include "sddllapi.h"
29#include <vector>
30
31namespace osl { class Module; }
32namespace sd { class DrawDocShell; }
33class SdDrawDocument;
34class SfxMedium;
35class SfxObjectShell;
36class SotStorage;
37class SvMemoryStream;
38
40{
41public:
42 SdFilter( SfxMedium& rMedium, ::sd::DrawDocShell& rDocShell );
43 virtual ~SdFilter();
44
45 bool IsDraw() const { return mbIsDraw; }
46 virtual bool Export() = 0;
47
48protected:
49 css::uno::Reference< css::frame::XModel > mxModel;
50 css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator;
51
55 bool mbIsDraw : 1;
57};
58
59SD_DLLPUBLIC bool ExportPPT( const std::vector< css::beans::PropertyValue >& rMediaData,
60 tools::SvRef<SotStorage> const & rSvStorage,
61 css::uno::Reference< css::frame::XModel > const & rXModel,
62 css::uno::Reference< css::task::XStatusIndicator > const & rXStatInd,
63 SvMemoryStream* pVBA,
64 sal_uInt32 nCnvrtFlags );
65
66// exported function
68 SdDrawDocument* pDocument, SvStream& rDocStream, SotStorage& rStorage, SfxMedium& rMedium );
69
70SD_DLLPUBLIC bool SaveVBA( SfxObjectShell& rDocShell, SvMemoryStream*& pBas );
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SdFilter()
Definition: sdfilter.cxx:49
SfxMedium & mrMedium
Definition: sdfilter.hxx:52
::sd::DrawDocShell & mrDocShell
Definition: sdfilter.hxx:53
bool mbIsDraw
Definition: sdfilter.hxx:55
SdFilter(SfxMedium &rMedium, ::sd::DrawDocShell &rDocShell)
Definition: sdfilter.cxx:40
css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator
Definition: sdfilter.hxx:50
css::uno::Reference< css::frame::XModel > mxModel
Definition: sdfilter.hxx:49
void CreateStatusIndicator()
Definition: sdfilter.cxx:53
virtual bool Export()=0
SdDrawDocument & mrDocument
Definition: sdfilter.hxx:54
bool IsDraw() const
Definition: sdfilter.hxx:45
#define SD_DLLPUBLIC
Definition: sddllapi.h:27
SD_DLLPUBLIC bool ExportPPT(const std::vector< css::beans::PropertyValue > &rMediaData, tools::SvRef< SotStorage > const &rSvStorage, css::uno::Reference< css::frame::XModel > const &rXModel, css::uno::Reference< css::task::XStatusIndicator > const &rXStatInd, SvMemoryStream *pVBA, sal_uInt32 nCnvrtFlags)
Definition: eppt.cxx:1421
SD_DLLPUBLIC bool ImportPPT(SdDrawDocument *pDocument, SvStream &rDocStream, SotStorage &rStorage, SfxMedium &rMedium)
Definition: pptin.cxx:2762
SD_DLLPUBLIC bool SaveVBA(SfxObjectShell &rDocShell, SvMemoryStream *&pBas)
Definition: eppt.cxx:1434