xref: /aoo41x/main/filter/source/pdf/pdfdialog.hxx (revision 22e87013)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef PDFDIALOG_HXX
25 #define PDFDIALOG_HXX
26 
27 #include "pdffilter.hxx"
28 #include <svtools/genericunodialog.hxx>
29 
30 #include <cppuhelper/implbase2.hxx>
31 
32 // -------------
33 // - PDFDialog -
34 // -------------
35 
36 class Window;
37 class ResMgr;
38 
39 typedef ::svt::OGenericUnoDialog             PDFDialog_DialogBase;
40 typedef ::cppu::ImplInheritanceHelper2  <
41                                              PDFDialog_DialogBase,
42                                              XPropertyAccess,
43                                              XExporter
44                                         >    PDFDialog_Base;
45 
46 class PDFDialog : public PDFDialog_Base,
47                   public ::comphelper::OPropertyArrayUsageHelper< PDFDialog >
48 {
49 private:
50     Sequence< PropertyValue >   maMediaDescriptor;
51     Sequence< PropertyValue >   maFilterData;
52     Reference< XComponent >     mxSrcDoc;
53 
54 protected:
55 	// OGenericUnoDialog
56     virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(RuntimeException);
57     virtual OUString SAL_CALL getImplementationName() throw (RuntimeException);
58     virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException);
59     virtual Dialog*	createDialog( Window* pParent );
60     virtual void executedDialog( sal_Int16 nExecutionResult );
61 	virtual Reference< XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(RuntimeException);
62 	virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
63 	virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
64 
65     // XPropertyAccess
66     using OPropertySetHelper::getPropertyValues;
67     virtual Sequence< PropertyValue > SAL_CALL getPropertyValues(  ) throw (RuntimeException);
68     using OPropertySetHelper::setPropertyValues;
69     virtual void SAL_CALL setPropertyValues( const Sequence< PropertyValue >& aProps ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException);
70 
71    	// XExporter
72     virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException);
73 
74 public:
75 
76 				PDFDialog( const Reference< XMultiServiceFactory >& rxMSF );
77 	virtual		~PDFDialog();
78 };
79 
80 // -----------------------------------------------------------------------------
81 
82 OUString PDFDialog_getImplementationName () throw (RuntimeException);
83 Sequence< sal_Int8 > SAL_CALL PDFDialog_getImplementationId() throw(RuntimeException);
84 Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames() throw (RuntimeException);
85 Reference< XInterface > SAL_CALL PDFDialog_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception );
86 
87 #endif // PDFDIALOG_HXX
88