1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
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
47 ActionTriggerSeparatorPropertySet();
48 virtual ~ActionTriggerSeparatorPropertySet();
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
;
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
;
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
;
69 virtual sal_Bool SAL_CALL
convertFastPropertyValue( com::sun::star::uno::Any
& aConvertedValue
,
70 com::sun::star::uno::Any
& aOldValue
,
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();
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
);
97 sal_Int16 m_nSeparatorType
;
102 #endif // INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */