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 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX
24 #define EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX
25 
26 #include <svtools/genericunodialog.hxx>
27 #include "modulepcr.hxx"
28 #include <com/sun/star/awt/XTabControllerModel.hpp>
29 #include <com/sun/star/awt/XControlContainer.hpp>
30 
31 //........................................................................
32 namespace pcr
33 {
34 //........................................................................
35 
36     //====================================================================
37     //= OTabOrderDialog
38     //====================================================================
39     class OTabOrderDialog;
40     typedef ::svt::OGenericUnoDialog                                    OTabOrderDialog_DBase;
41     typedef ::comphelper::OPropertyArrayUsageHelper< OTabOrderDialog >  OTabOrderDialog_PBase;
42 
43     class OTabOrderDialog
44                 :public OTabOrderDialog_DBase
45                 ,public OTabOrderDialog_PBase
46                 ,public PcrClient
47     {
48     protected:
49         // <properties>
50         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >
51                 m_xTabbingModel;
52         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer >
53                 m_xControlContext;
54         // </properties>
55 
56     public:
57         OTabOrderDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext );
58         ~OTabOrderDialog();
59 
60         // XTypeProvider
61         virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
62 
63         // XServiceInfo
64         virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
65         virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
66 
67         // XServiceInfo - static methods
68         static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
69         static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
70         static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
71                 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
72 
73         // XPropertySet
74         virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
75         virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
76 
77         // OPropertyArrayUsageHelper
78         virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
79 
80     protected:
81     // OGenericUnoDialog overridables
82         virtual Dialog* createDialog(Window* _pParent);
83     };
84 
85 //........................................................................
86 } // namespacepcr
87 //........................................................................
88 
89 #endif // EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX
90 
91