2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-12 17:21:24 +00: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_ROOTACTIONTRIGGERCONTAINER_HXX
|
|
|
|
#define INCLUDED_FRAMEWORK_INC_CLASSES_ROOTACTIONTRIGGERCONTAINER_HXX
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
#include <helper/propertysetcontainer.hxx>
|
|
|
|
#include <vcl/menu.hxx>
|
2008-12-15 12:01:46 +00:00
|
|
|
#include <com/sun/star/container/XNamed.hpp>
|
2001-12-04 06:49:07 +00:00
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/lang/XUnoTunnel.hpp>
|
|
|
|
#include <com/sun/star/lang/XTypeProvider.hpp>
|
2010-04-19 19:05:02 +02:00
|
|
|
#include <framework/fwedllapi.h>
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
#define IMPLEMENTATIONNAME_ROOTACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.RootActionTriggerContainer"
|
|
|
|
|
|
|
|
namespace framework
|
|
|
|
{
|
|
|
|
|
2010-04-16 23:01:28 +02:00
|
|
|
class FWE_DLLPUBLIC RootActionTriggerContainer : public PropertySetContainer,
|
2015-10-13 16:59:57 +02:00
|
|
|
public css::lang::XMultiServiceFactory,
|
|
|
|
public css::lang::XServiceInfo,
|
|
|
|
public css::lang::XUnoTunnel,
|
|
|
|
public css::lang::XTypeProvider,
|
|
|
|
public css::container::XNamed
|
2001-12-04 06:49:07 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-04-07 12:06:47 +02:00
|
|
|
RootActionTriggerContainer( const Menu* pMenu, const OUString* pMenuIdentifier);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~RootActionTriggerContainer() 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
|
|
|
|
|
|
|
// XMultiServiceFactory
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier ) override;
|
|
|
|
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString& ServiceSpecifier, const css::uno::Sequence< css::uno::Any >& Arguments ) override;
|
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XIndexContainer
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL insertByIndex( sal_Int32 Index, const css::uno::Any& Element ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL removeByIndex( sal_Int32 Index ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XIndexReplace
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const css::uno::Any& Element ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XIndexAccess
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual sal_Int32 SAL_CALL getCount() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
|
|
|
// XElementAccess
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual css::uno::Type SAL_CALL getElementType() override;
|
2001-12-04 06:49:07 +00:00
|
|
|
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual sal_Bool SAL_CALL hasElements() 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
|
|
|
|
|
|
|
// XUnoTunnel
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) 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
|
|
|
|
2008-12-15 12:01:46 +00:00
|
|
|
// XNamed
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual OUString SAL_CALL getName( ) override;
|
|
|
|
virtual void SAL_CALL setName( const OUString& aName ) override;
|
2008-12-15 12:01:46 +00:00
|
|
|
|
2001-12-04 06:49:07 +00:00
|
|
|
private:
|
|
|
|
void FillContainer();
|
|
|
|
|
2015-10-13 16:59:57 +02:00
|
|
|
bool m_bContainerCreated;
|
2016-06-20 15:56:35 +02:00
|
|
|
VclPtr<const Menu> m_pMenu;
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString* m_pMenuIdentifier;
|
2001-12-04 06:49:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-11-05 02:25:45 +01:00
|
|
|
#endif // INCLUDED_FRAMEWORK_INC_CLASSES_ROOTACTIONTRIGGERCONTAINER_HXX
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|