fix typo
[LibreOffice.git] / filter / source / svg / svgdialog.hxx
blobd4f0ff1bc99b3d400f1d80dc8374bb63e9a1f21d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * OpenOffice.org - a multi-platform office productivity suite
6 * The Contents of this file are made available subject to
7 * the terms of GNU Lesser General Public License Version 2.1.
10 * GNU Lesser General Public License Version 2.1
11 * =============================================
12 * Copyright 2005 by Sun Microsystems, Inc.
13 * 901 San Antonio Road, Palo Alto, CA 94303, USA
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License version 2.1, as published by the Free Software Foundation.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 * MA 02111-1307 USA
29 ************************************************************************/
31 #ifndef SVGDIALOG_HXX
32 #define SVGDIALOG_HXX
34 #ifndef _COM_SUN_STAR_BEANS_XPROPERTYACCESS_HPP_
35 #include <com/sun/star/beans/XPropertyAccess.hpp>
36 #endif
37 #ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_
38 #include <com/sun/star/document/XExporter.hpp>
39 #endif
41 #include <svtools/genericunodialog.hxx>
42 #include <memory>
44 // -------------
45 // - SVGDialog -
46 // -------------
48 class ResMgr;
50 class SVGDialog : public ::svt::OGenericUnoDialog,
51 public ::comphelper::OPropertyArrayUsageHelper< SVGDialog >,
52 public ::com::sun::star::beans::XPropertyAccess,
53 public ::com::sun::star::document::XExporter
55 private:
57 ::std::auto_ptr< ResMgr > mapResMgr;
58 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maMediaDescriptor;
59 com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > maFilterData;
60 com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mxSrcDoc;
62 protected:
64 // XInterface
65 virtual com::sun::star::uno::Any SAL_CALL queryInterface( const com::sun::star::uno::Type& aType ) throw (com::sun::star::uno::RuntimeException);
66 virtual void SAL_CALL acquire() throw ();
67 virtual void SAL_CALL release() throw ();
69 // OGenericUnoDialog
70 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(com::sun::star::uno::RuntimeException);
71 virtual rtl::OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException);
72 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
73 virtual Dialog* createDialog( Window* pParent );
74 virtual void executedDialog( sal_Int16 nExecutionResult );
75 virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
76 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
77 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
79 // XPropertyAccess
80 using cppu::OPropertySetHelper::getPropertyValues;
81 virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (com::sun::star::uno::RuntimeException);
82 using cppu::OPropertySetHelper::setPropertyValues;
83 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);
85 // XExporter
86 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);
88 public:
90 SVGDialog( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF );
91 virtual ~SVGDialog();
94 // -----------------------------------------------------------------------------
96 ::rtl::OUString SVGDialog_getImplementationName ()
97 throw ( ::com::sun::star::uno::RuntimeException );
99 // -----------------------------------------------------------------------------
101 sal_Bool SAL_CALL SVGDialog_supportsService( const ::rtl::OUString& ServiceName )
102 throw ( ::com::sun::star::uno::RuntimeException );
104 // -----------------------------------------------------------------------------
106 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL SVGDialog_getSupportedServiceNames( )
107 throw ( ::com::sun::star::uno::RuntimeException );
109 // -----------------------------------------------------------------------------
111 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
112 SAL_CALL SVGDialog_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & rSMgr)
113 throw ( ::com::sun::star::uno::Exception );
115 #endif // SVGDialog_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */