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 28 #ifndef SVX_SOURCE_INC_XFM_ADDCONDITION_HXX 29 #define SVX_SOURCE_INC_XFM_ADDCONDITION_HXX 30 31 /** === begin UNO includes === **/ 32 #include <com/sun/star/xforms/XModel.hpp> 33 /** === end UNO includes === **/ 34 #include <svtools/genericunodialog.hxx> 35 #include <comphelper/proparrhlp.hxx> 36 37 //........................................................................ 38 namespace svxform 39 { 40 //........................................................................ 41 42 //==================================================================== 43 //= OAddConditionDialog 44 //==================================================================== 45 typedef ::svt::OGenericUnoDialog OAddConditionDialogBase; 46 class OAddConditionDialog 47 :public OAddConditionDialogBase 48 ,public ::comphelper::OPropertyArrayUsageHelper< OAddConditionDialog > 49 { 50 private: 51 // <properties> 52 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > 53 m_xBinding; 54 ::rtl::OUString m_sFacetName; 55 ::rtl::OUString m_sConditionValue; 56 ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XModel > 57 m_xWorkModel; 58 // </properties> 59 60 public: 61 static ::com::sun::star::uno::Reference< com::sun::star::uno::XInterface > 62 SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ); 63 64 protected: 65 OAddConditionDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB ); 66 67 // XTypeProvider 68 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException); 69 70 // XServiceInfo 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 74 // XPropertySet 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 78 // OPropertyArrayUsageHelper 79 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const; 80 81 protected: 82 // OGenericUnoDialog overridables 83 virtual Dialog* createDialog(Window* _pParent); 84 virtual void executedDialog(sal_Int16 _nExecutionResult); 85 }; 86 87 //........................................................................ 88 } // namespace svxform 89 //........................................................................ 90 91 #endif // SVX_SOURCE_INC_XFM_ADDCONDITION_HXX 92 93