xref: /AOO41X/main/svx/source/inc/xfm_addcondition.hxx (revision 3334a7e6acdae9820fa1a6f556bb10129a8de6b2)
1*3334a7e6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*3334a7e6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*3334a7e6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*3334a7e6SAndrew Rist  * distributed with this work for additional information
6*3334a7e6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*3334a7e6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*3334a7e6SAndrew Rist  * "License"); you may not use this file except in compliance
9*3334a7e6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*3334a7e6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*3334a7e6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*3334a7e6SAndrew Rist  * software distributed under the License is distributed on an
15*3334a7e6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*3334a7e6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*3334a7e6SAndrew Rist  * specific language governing permissions and limitations
18*3334a7e6SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*3334a7e6SAndrew Rist  *************************************************************/
21*3334a7e6SAndrew Rist 
22*3334a7e6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
25cdf0e10cSrcweir #define SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir /** === begin UNO includes === **/
28cdf0e10cSrcweir #include <com/sun/star/xforms/XModel.hpp>
29cdf0e10cSrcweir /** === end UNO includes === **/
30cdf0e10cSrcweir #include <svtools/genericunodialog.hxx>
31cdf0e10cSrcweir #include <comphelper/proparrhlp.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir //........................................................................
34cdf0e10cSrcweir namespace svxform
35cdf0e10cSrcweir {
36cdf0e10cSrcweir //........................................................................
37cdf0e10cSrcweir 
38cdf0e10cSrcweir 	//====================================================================
39cdf0e10cSrcweir 	//= OAddConditionDialog
40cdf0e10cSrcweir 	//====================================================================
41cdf0e10cSrcweir     typedef ::svt::OGenericUnoDialog OAddConditionDialogBase;
42cdf0e10cSrcweir     class OAddConditionDialog
43cdf0e10cSrcweir 		    :public OAddConditionDialogBase
44cdf0e10cSrcweir 		    ,public ::comphelper::OPropertyArrayUsageHelper< OAddConditionDialog >
45cdf0e10cSrcweir     {
46cdf0e10cSrcweir     private:
47cdf0e10cSrcweir         // <properties>
48cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
49cdf0e10cSrcweir                                 m_xBinding;
50cdf0e10cSrcweir         ::rtl::OUString         m_sFacetName;
51cdf0e10cSrcweir         ::rtl::OUString         m_sConditionValue;
52cdf0e10cSrcweir         ::com::sun::star::uno::Reference< ::com::sun::star::xforms::XModel >
53cdf0e10cSrcweir                                 m_xWorkModel;
54cdf0e10cSrcweir         // </properties>
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     public:
57cdf0e10cSrcweir         static ::com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
58cdf0e10cSrcweir             SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
59cdf0e10cSrcweir 
60cdf0e10cSrcweir     protected:
61cdf0e10cSrcweir 	    OAddConditionDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB );
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 	    // XTypeProvider
64cdf0e10cSrcweir         virtual com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId(  ) throw(com::sun::star::uno::RuntimeException);
65cdf0e10cSrcweir 
66cdf0e10cSrcweir 	    // XServiceInfo
67cdf0e10cSrcweir 	    virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
68cdf0e10cSrcweir 	    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(com::sun::star::uno::RuntimeException);
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 	    // XPropertySet
71cdf0e10cSrcweir 	    virtual com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo>  SAL_CALL getPropertySetInfo() throw(com::sun::star::uno::RuntimeException);
72cdf0e10cSrcweir 	    virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 	    // OPropertyArrayUsageHelper
75cdf0e10cSrcweir 	    virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
76cdf0e10cSrcweir 
77cdf0e10cSrcweir     protected:
78cdf0e10cSrcweir         // OGenericUnoDialog overridables
79cdf0e10cSrcweir 	    virtual Dialog*	createDialog(Window* _pParent);
80cdf0e10cSrcweir 		virtual void executedDialog(sal_Int16 _nExecutionResult);
81cdf0e10cSrcweir     };
82cdf0e10cSrcweir 
83cdf0e10cSrcweir //........................................................................
84cdf0e10cSrcweir } // namespace svxform
85cdf0e10cSrcweir //........................................................................
86cdf0e10cSrcweir 
87cdf0e10cSrcweir #endif // SVX_SOURCE_INC_XFM_ADDCONDITION_HXX
88cdf0e10cSrcweir 
89