merged tag ooo/OOO330_m14
[LibreOffice.git] / extensions / source / propctrlr / editpropertyhandler.hxx
blobd3429f635d2666203201a6d864077372ceb7a121
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX
29 #define EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX
31 #include "propertyhandler.hxx"
33 /** === begin UNO includes === **/
34 /** === end UNO includes === **/
36 //........................................................................
37 namespace pcr
39 //........................................................................
41 //====================================================================
42 //= EditPropertyHandler
43 //====================================================================
44 class EditPropertyHandler;
45 typedef HandlerComponentBase< EditPropertyHandler > EditPropertyHandler_Base;
46 /** a property handler for any virtual string properties
48 class EditPropertyHandler : public EditPropertyHandler_Base
50 public:
51 EditPropertyHandler(
52 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext
55 static ::rtl::OUString SAL_CALL getImplementationName_static( ) throw (::com::sun::star::uno::RuntimeException);
56 static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_static( ) throw (::com::sun::star::uno::RuntimeException);
58 protected:
59 ~EditPropertyHandler();
61 protected:
62 // XPropertyHandler overriables
63 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& _rPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
64 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);
65 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupersededProperties( ) throw (::com::sun::star::uno::RuntimeException);
66 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getActuatingProperties( ) throw (::com::sun::star::uno::RuntimeException);
67 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);
69 // PropertyHandler overridables
70 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >
71 SAL_CALL doDescribeSupportedProperties() const;
72 private:
73 bool implHaveBothScrollBarProperties() const;
74 bool implHaveTextTypeProperty() const;
77 //........................................................................
78 } // namespace pcr
79 //........................................................................
81 #endif // EXTENSIONS_SOURCE_PROPCTRLR_EDITPROPERTYHANDLER_HXX