update credits
[LibreOffice.git] / filter / source / pdf / pdfdialog.hxx
blob23504bee589f21ae237699e83488d88e2b9e540d
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 PDFDIALOG_HXX
21 #define PDFDIALOG_HXX
23 #include "pdffilter.hxx"
24 #include <svtools/genericunodialog.hxx>
26 #include <cppuhelper/implbase2.hxx>
28 // -------------
29 // - PDFDialog -
30 // -------------
32 class Window;
34 typedef ::svt::OGenericUnoDialog PDFDialog_DialogBase;
35 typedef ::cppu::ImplInheritanceHelper2 <
36 PDFDialog_DialogBase,
37 XPropertyAccess,
38 XExporter
39 > PDFDialog_Base;
41 class PDFDialog : public PDFDialog_Base,
42 public ::comphelper::OPropertyArrayUsageHelper< PDFDialog >
44 private:
45 Sequence< PropertyValue > maMediaDescriptor;
46 Sequence< PropertyValue > maFilterData;
47 Reference< XComponent > mxSrcDoc;
49 protected:
50 // OGenericUnoDialog
51 virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(RuntimeException);
52 virtual OUString SAL_CALL getImplementationName() throw (RuntimeException);
53 virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException);
54 virtual Dialog* createDialog( Window* pParent );
55 virtual void executedDialog( sal_Int16 nExecutionResult );
56 virtual Reference< XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(RuntimeException);
57 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
58 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
60 // XPropertyAccess
61 using OPropertySetHelper::getPropertyValues;
62 virtual Sequence< PropertyValue > SAL_CALL getPropertyValues( ) throw (RuntimeException);
63 using OPropertySetHelper::setPropertyValues;
64 virtual void SAL_CALL setPropertyValues( const Sequence< PropertyValue >& aProps ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException);
66 // XExporter
67 virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException);
69 public:
71 PDFDialog( const Reference< XComponentContext >& rxContext );
72 virtual ~PDFDialog();
75 // -----------------------------------------------------------------------------
77 OUString PDFDialog_getImplementationName () throw (RuntimeException);
78 Sequence< sal_Int8 > SAL_CALL PDFDialog_getImplementationId() throw(RuntimeException);
79 Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames() throw (RuntimeException);
80 Reference< XInterface > SAL_CALL PDFDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception );
82 #endif // PDFDIALOG_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */