1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX 28 #define EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX 29 30 #include <svtools/genericunodialog.hxx> 31 #include "modulepcr.hxx" 32 #include <com/sun/star/awt/XTabControllerModel.hpp> 33 #include <com/sun/star/awt/XControlContainer.hpp> 34 35 //........................................................................ 36 namespace pcr 37 { 38 //........................................................................ 39 40 //==================================================================== 41 //= OTabOrderDialog 42 //==================================================================== 43 class OTabOrderDialog; 44 typedef ::svt::OGenericUnoDialog OTabOrderDialog_DBase; 45 typedef ::comphelper::OPropertyArrayUsageHelper< OTabOrderDialog > OTabOrderDialog_PBase; 46 47 class OTabOrderDialog 48 :public OTabOrderDialog_DBase 49 ,public OTabOrderDialog_PBase 50 ,public PcrClient 51 { 52 protected: 53 // <properties> 54 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel > 55 m_xTabbingModel; 56 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > 57 m_xControlContext; 58 // </properties> 59 60 public: 61 OTabOrderDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext ); 62 ~OTabOrderDialog(); 63 64 // XTypeProvider 65 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException); 66 67 // XServiceInfo 68 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); 69 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); 70 71 // XServiceInfo - static methods 72 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException ); 73 static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException ); 74 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > 75 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&); 76 77 // XPropertySet 78 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException); 79 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); 80 81 // OPropertyArrayUsageHelper 82 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; 83 84 protected: 85 // OGenericUnoDialog overridables 86 virtual Dialog* createDialog(Window* _pParent); 87 }; 88 89 //........................................................................ 90 } // namespacepcr 91 //........................................................................ 92 93 #endif // EXTENSIONS_SOURCE_PROPCTRLR_PCRUNODIALOGS_HXX 94 95