fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / classes / actiontriggerseparatorpropertyset.hxx
blob65409a57e8f12f2f9e77912b4f6bc182e4108358
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
21 #define INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
23 #include <cppuhelper/basemutex.hxx>
24 #include <cppuhelper/propshlp.hxx>
25 #include <cppuhelper/weak.hxx>
26 #include <osl/mutex.hxx>
27 #include <rtl/ustring.hxx>
28 #include <com/sun/star/lang/XServiceInfo.hpp>
29 #include <com/sun/star/lang/XTypeProvider.hpp>
30 #include <com/sun/star/lang/IllegalArgumentException.hpp>
31 #include <framework/fwedllapi.h>
33 #define SERVICENAME_ACTIONTRIGGERSEPARATOR "com.sun.star.ui.ActionTriggerSeparator"
34 #define IMPLEMENTATIONNAME_ACTIONTRIGGERSEPARATOR "com.sun.star.comp.ui.ActionTriggerSeparator"
36 namespace framework
39 class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
40 public ::com::sun::star::lang::XServiceInfo ,
41 public ::com::sun::star::lang::XTypeProvider,
42 public ::cppu::OBroadcastHelper ,
43 public ::cppu::OPropertySetHelper , // -> XPropertySet, XFastPropertySet, XMultiPropertySet
44 public ::cppu::OWeakObject
46 public:
47 ActionTriggerSeparatorPropertySet();
48 virtual ~ActionTriggerSeparatorPropertySet();
50 // XInterface
51 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
52 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
53 virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
54 virtual void SAL_CALL release() throw () SAL_OVERRIDE;
56 // XServiceInfo
57 virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 // XTypeProvider
62 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 private:
67 // OPropertySetHelper
69 virtual sal_Bool SAL_CALL convertFastPropertyValue( com::sun::star::uno::Any& aConvertedValue,
70 com::sun::star::uno::Any& aOldValue,
71 sal_Int32 nHandle,
72 const com::sun::star::uno::Any& aValue )
73 throw( com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE;
75 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any& aValue )
76 throw( com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE;
78 using cppu::OPropertySetHelper::getFastPropertyValue;
79 virtual void SAL_CALL getFastPropertyValue( com::sun::star::uno::Any& aValue, sal_Int32 nHandle ) const SAL_OVERRIDE;
81 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
83 virtual com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
84 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 static const com::sun::star::uno::Sequence< com::sun::star::beans::Property > impl_getStaticPropertyDescriptor();
88 // helper
90 bool impl_tryToChangeProperty( sal_Int16 aCurrentValue ,
91 const com::sun::star::uno::Any& aNewValue ,
92 com::sun::star::uno::Any& aOldValue ,
93 com::sun::star::uno::Any& aConvertedValue ) throw( com::sun::star::lang::IllegalArgumentException );
95 // members
97 sal_Int16 m_nSeparatorType;
102 #endif // INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */