fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / main / ShapeToolbarController.hxx
blob8bdb1ed096d26963b7a02f08b50513834cdab7d0
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPETOOLBARCONTROLLER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPETOOLBARCONTROLLER_HXX
22 #include <sal/config.h>
24 #include <map>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/uno/XComponentContext.hpp>
28 #include <com/sun/star/frame/XSubToolbarController.hpp>
30 #include <cppuhelper/implbase2.hxx>
31 #include <rtl/ref.hxx>
32 #include <svtools/toolboxcontroller.hxx>
34 class SfxToolBoxControl;
36 namespace chart
39 typedef ::cppu::ImplHelper2 < ::com::sun::star::lang::XServiceInfo,
40 ::com::sun::star::frame::XSubToolbarController> ShapeToolbarController_Base;
42 typedef rtl::Reference<SfxToolBoxControl> TToolbarHelper;
44 class ShapeToolbarController : public ::svt::ToolboxController
45 ,public ShapeToolbarController_Base
47 typedef std::map<OUString, sal_Bool> TCommandState;
48 TCommandState m_aStates;
49 TToolbarHelper m_pToolbarController;
50 sal_uInt16 m_nToolBoxId;
51 sal_uInt16 m_nSlotId;
52 ShapeToolbarController( const ShapeToolbarController& ) SAL_DELETED_FUNCTION;
53 void operator =( const ShapeToolbarController& ) SAL_DELETED_FUNCTION;
55 public:
56 ShapeToolbarController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
57 virtual ~ShapeToolbarController();
59 // ::com::sun::star::uno::XInterface
60 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
62 virtual void SAL_CALL release() throw () SAL_OVERRIDE;
64 // ::com::sun::star::lang::XServiceInfo
65 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 // needed by registration
69 static OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException );
70 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(::com::sun::star::uno::RuntimeException);
71 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
73 // ::com::sun::star::lang::XInitialization
74 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
76 // ::com::sun::star::frame::XStatusListener
77 virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
79 // ::com::sun::star::frame::XToolbarController
80 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createPopupWindow() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
81 virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 // ::com::sun::star::frame::XSubToolbarController
84 virtual sal_Bool SAL_CALL opensSubToolbar() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
85 virtual OUString SAL_CALL getSubToolbarName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 virtual void SAL_CALL functionSelected( const OUString& aCommand ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
87 virtual void SAL_CALL updateImage() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
90 } // namespace chart
92 #endif // INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_SHAPETOOLBARCONTROLLER_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */