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