bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / svg / svgdialog.hxx
blobb2ba26baffd516a21d9e86058d45454fc95a062f
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 SVGDIALOG_HXX
21 #define SVGDIALOG_HXX
23 #include <com/sun/star/beans/XPropertyAccess.hpp>
24 #include <com/sun/star/document/XExporter.hpp>
26 #include <svtools/genericunodialog.hxx>
27 #include <memory>
29 // -------------
30 // - SVGDialog -
31 // -------------
33 class ResMgr;
35 class SVGDialog : public ::svt::OGenericUnoDialog,
36 public ::comphelper::OPropertyArrayUsageHelper< SVGDialog >,
37 public ::com::sun::star::beans::XPropertyAccess,
38 public ::com::sun::star::document::XExporter
40 private:
42 ::std::auto_ptr< ResMgr > mapResMgr;
43 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maMediaDescriptor;
44 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maFilterData;
45 com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mxSrcDoc;
47 protected:
49 // XInterface
50 virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException);
51 virtual void SAL_CALL acquire() throw ();
52 virtual void SAL_CALL release() throw ();
54 // OGenericUnoDialog
55 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(com::sun::star::uno::RuntimeException);
56 virtual OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException);
57 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
58 virtual Dialog* createDialog( Window* pParent );
59 virtual void executedDialog( sal_Int16 nExecutionResult );
60 virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
61 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
62 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
64 // XPropertyAccess
65 using cppu::OPropertySetHelper::getPropertyValues;
66 virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (com::sun::star::uno::RuntimeException);
67 using cppu::OPropertySetHelper::setPropertyValues;
68 virtual void SAL_CALL setPropertyValues( const com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps ) throw (com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException);
70 // XExporter
71 virtual void SAL_CALL setSourceDocument( const com::sun::star::uno::Reference< com::sun::star::lang::XComponent >& xDoc ) throw(com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException);
73 public:
75 SVGDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
76 virtual ~SVGDialog();
79 // -----------------------------------------------------------------------------
81 OUString SVGDialog_getImplementationName ()
82 throw ( ::com::sun::star::uno::RuntimeException );
84 // -----------------------------------------------------------------------------
86 sal_Bool SAL_CALL SVGDialog_supportsService( const OUString& ServiceName )
87 throw ( ::com::sun::star::uno::RuntimeException );
89 // -----------------------------------------------------------------------------
91 ::com::sun::star::uno::Sequence< OUString > SAL_CALL SVGDialog_getSupportedServiceNames( )
92 throw ( ::com::sun::star::uno::RuntimeException );
94 // -----------------------------------------------------------------------------
96 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
97 SAL_CALL SVGDialog_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr)
98 throw ( ::com::sun::star::uno::Exception );
100 #endif // SVGDialog_HXX
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */