update dev300-m58
[ooovba.git] / svx / source / inc / xfm_addcondition.hxx
blobee2a017545d199d53b7eada944963018e005cd89
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: xfm_addcondition.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
32 #define SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
34 /** === begin UNO includes === **/
35 #include <com/sun/star/xforms/XModel.hpp>
36 /** === end UNO includes === **/
37 #include <svtools/genericunodialog.hxx>
38 #include <comphelper/proparrhlp.hxx>
40 //........................................................................
41 namespace svxform
43 //........................................................................
45 //====================================================================
46 //= OAddConditionDialog
47 //====================================================================
48 typedef ::svt::OGenericUnoDialog OAddConditionDialogBase;
49 class OAddConditionDialog
50 :public OAddConditionDialogBase
51 ,public ::comphelper::OPropertyArrayUsageHelper< OAddConditionDialog >
53 private:
54 // <properties>
55 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
56 m_xBinding;
57 ::rtl::OUString m_sFacetName;
58 ::rtl::OUString m_sConditionValue;
59 ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XModel >
60 m_xWorkModel;
61 // </properties>
63 public:
64 static ::com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
65 SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
67 protected:
68 OAddConditionDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB );
70 // XTypeProvider
71 virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(com::sun::star::uno::RuntimeException);
73 // XServiceInfo
74 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
75 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException);
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();
81 // OPropertyArrayUsageHelper
82 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
84 protected:
85 // OGenericUnoDialog overridables
86 virtual Dialog* createDialog(Window* _pParent);
87 virtual void executedDialog(sal_Int16 _nExecutionResult);
90 //........................................................................
91 } // namespace svxform
92 //........................................................................
94 #endif // SVX_SOURCE_INC_XFM_ADDCONDITION_HXX