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 
24 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX
25 #define EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX
26 
27 #include "propertyhandler.hxx"
28 
29 /** === begin UNO includes === **/
30 /** === end UNO includes === **/
31 
32 //........................................................................
33 namespace pcr
34 {
35 //........................................................................
36 
37 	//====================================================================
38 	//= EditPropertyHandler
39 	//====================================================================
40     class EditPropertyHandler;
41     typedef HandlerComponentBase< EditPropertyHandler > EditPropertyHandler_Base;
42     /** a property handler for any virtual string properties
43     */
44     class EditPropertyHandler : public EditPropertyHandler_Base
45 	{
46     public:
47         EditPropertyHandler(
48             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext
49         );
50 
51         static ::rtl::OUString SAL_CALL getImplementationName_static(  ) throw (::com::sun::star::uno::RuntimeException);
52         static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static(  ) throw (::com::sun::star::uno::RuntimeException);
53 
54     protected:
55         ~EditPropertyHandler();
56 
57     protected:
58         // XPropertyHandler overriables
59         virtual ::com::sun::star::uno::Any                          SAL_CALL getPropertyValue( const ::rtl::OUString& _rPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
60         virtual void                                                SAL_CALL setPropertyValue( const ::rtl::OUString& _rPropertyName, const ::com::sun::star::uno::Any& _rValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
61         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >  SAL_CALL getSupersededProperties( ) throw (::com::sun::star::uno::RuntimeException);
62         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >  SAL_CALL getActuatingProperties( ) throw (::com::sun::star::uno::RuntimeException);
63         virtual void                                                SAL_CALL actuatingPropertyChanged( const ::rtl::OUString& _rActuatingPropertyName, const ::com::sun::star::uno::Any& _rNewValue, const ::com::sun::star::uno::Any& _rOldValue, const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XObjectInspectorUI >& _rxInspectorUI, sal_Bool ) throw (::com::sun::star::lang::NullPointerException, ::com::sun::star::uno::RuntimeException);
64 
65         // PropertyHandler overridables
66         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >
67                                             SAL_CALL doDescribeSupportedProperties() const;
68     private:
69         bool    implHaveBothScrollBarProperties() const;
70         bool    implHaveTextTypeProperty() const;
71 	};
72 
73 //........................................................................
74 } // namespace pcr
75 //........................................................................
76 
77 #endif // EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX
78 
79