fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / framework / inc / classes / rootactiontriggercontainer.hxx
blobbfa20500c7f6824c1e5713c556ce0fca015964f3
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_ROOTACTIONTRIGGERCONTAINER_HXX
21 #define INCLUDED_FRAMEWORK_INC_CLASSES_ROOTACTIONTRIGGERCONTAINER_HXX
23 #include <helper/propertysetcontainer.hxx>
24 #include <vcl/menu.hxx>
25 #include <com/sun/star/container/XNamed.hpp>
26 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
27 #include <com/sun/star/lang/XServiceInfo.hpp>
28 #include <com/sun/star/lang/XUnoTunnel.hpp>
29 #include <com/sun/star/lang/XTypeProvider.hpp>
30 #include <framework/fwedllapi.h>
32 #define IMPLEMENTATIONNAME_ROOTACTIONTRIGGERCONTAINER "com.sun.star.comp.ui.RootActionTriggerContainer"
34 namespace framework
37 class FWE_DLLPUBLIC RootActionTriggerContainer : public PropertySetContainer,
38 public com::sun::star::lang::XMultiServiceFactory,
39 public com::sun::star::lang::XServiceInfo,
40 public com::sun::star::lang::XUnoTunnel,
41 public com::sun::star::lang::XTypeProvider,
42 public com::sun::star::container::XNamed
44 public:
45 RootActionTriggerContainer( const Menu* pMenu, const OUString* pMenuIdentifier);
46 virtual ~RootActionTriggerContainer();
48 // XInterface
49 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
50 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
52 virtual void SAL_CALL release() throw () SAL_OVERRIDE;
54 // XMultiServiceFactory
55 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance( const OUString& aServiceSpecifier )
56 throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString& ServiceSpecifier, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Arguments )
58 throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames()
60 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
62 // XIndexContainer
63 virtual void SAL_CALL insertByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
64 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual void SAL_CALL removeByIndex( sal_Int32 Index )
67 throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 // XIndexReplace
70 virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element )
71 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
73 // XIndexAccess
74 virtual sal_Int32 SAL_CALL getCount()
75 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
77 virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
78 throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 // XElementAccess
81 virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
82 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
84 virtual sal_Bool SAL_CALL hasElements()
85 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
87 // XServiceInfo
88 virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
89 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
90 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
92 // XUnoTunnel
93 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
95 // XTypeProvider
96 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
97 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
99 // XNamed
100 virtual OUString SAL_CALL getName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
101 virtual void SAL_CALL setName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
103 private:
104 void FillContainer();
106 bool m_bContainerCreated;
107 bool m_bContainerChanged;
108 bool m_bInContainerCreation;
109 const Menu* m_pMenu;
110 const OUString* m_pMenuIdentifier;
115 #endif // INCLUDED_FRAMEWORK_INC_CLASSES_ROOTACTIONTRIGGERCONTAINER_HXX
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */