2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2013-11-05 02:25:45 +01:00
|
|
|
#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
|
|
|
|
#define INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2014-03-18 14:19:48 +01:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2001-12-04 06:49:07 +00:00
|
|
|
#include <cppuhelper/propshlp.hxx>
|
|
|
|
#include <cppuhelper/weak.hxx>
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/lang/XTypeProvider.hpp>
|
|
|
|
#include <com/sun/star/lang/IllegalArgumentException.hpp>
|
2010-04-19 19:05:02 +02:00
|
|
|
#include <framework/fwedllapi.h>
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
#define SERVICENAME_ACTIONTRIGGERSEPARATOR "com.sun.star.ui.ActionTriggerSeparator"
|
|
|
|
#define IMPLEMENTATIONNAME_ACTIONTRIGGERSEPARATOR "com.sun.star.comp.ui.ActionTriggerSeparator"
|
|
|
|
|
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
2014-03-18 14:19:48 +01:00
|
|
|
class ActionTriggerSeparatorPropertySet : private cppu::BaseMutex,
|
2015-10-13 16:59:57 +02:00
|
|
|
public css::lang::XServiceInfo ,
|
|
|
|
public css::lang::XTypeProvider,
|
2001-12-04 06:49:07 +00:00
|
|
|
public ::cppu::OBroadcastHelper ,
|
|
|
|
public ::cppu::OPropertySetHelper , // -> XPropertySet, XFastPropertySet, XMultiPropertySet
|
|
|
|
public ::cppu::OWeakObject
|
|
|
|
{
|
|
|
|
public:
|
2013-01-04 13:38:11 +02:00
|
|
|
ActionTriggerSeparatorPropertySet();
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~ActionTriggerSeparatorPropertySet() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XInterface
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual void SAL_CALL acquire() throw () override;
|
|
|
|
virtual void SAL_CALL release() throw () override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XServiceInfo
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual OUString SAL_CALL getImplementationName( ) override;
|
|
|
|
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
|
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XTypeProvider
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
|
|
|
|
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
private:
|
2014-02-25 18:54:02 +01:00
|
|
|
|
2001-12-04 06:49:07 +00:00
|
|
|
// OPropertySetHelper
|
2014-02-25 18:54:02 +01:00
|
|
|
|
2015-10-13 16:59:57 +02:00
|
|
|
virtual sal_Bool SAL_CALL convertFastPropertyValue( css::uno::Any& aConvertedValue,
|
|
|
|
css::uno::Any& aOldValue,
|
2001-12-04 06:49:07 +00:00
|
|
|
sal_Int32 nHandle,
|
2017-01-26 12:28:58 +01:00
|
|
|
const css::uno::Any& aValue ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& aValue ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2006-06-19 09:48:43 +00:00
|
|
|
using cppu::OPropertySetHelper::getFastPropertyValue;
|
2015-10-13 16:59:57 +02:00
|
|
|
virtual void SAL_CALL getFastPropertyValue( css::uno::Any& aValue, sal_Int32 nHandle ) const override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2015-10-13 16:59:57 +02:00
|
|
|
static const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor();
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// helper
|
2014-02-25 18:54:02 +01:00
|
|
|
|
2017-01-19 17:57:03 +01:00
|
|
|
/// @throws css::lang::IllegalArgumentException
|
|
|
|
/// @throws css::uno::RuntimeException
|
2014-04-04 15:53:21 +02:00
|
|
|
bool impl_tryToChangeProperty( sal_Int16 aCurrentValue ,
|
2015-10-13 16:59:57 +02:00
|
|
|
const css::uno::Any& aNewValue ,
|
|
|
|
css::uno::Any& aOldValue ,
|
2017-01-26 12:28:58 +01:00
|
|
|
css::uno::Any& aConvertedValue );
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// members
|
2014-02-25 18:54:02 +01:00
|
|
|
|
2001-12-04 06:49:07 +00:00
|
|
|
sal_Int16 m_nSeparatorType;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-11-05 02:25:45 +01:00
|
|
|
#endif // INCLUDED_FRAMEWORK_INC_CLASSES_ACTIONTRIGGERSEPARATORPROPERTYSET_HXX
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|