nss: upgrade to release 3.73
[LibreOffice.git] / sd / workben / custompanel / ctp_panel.hxx
blobced2ab7f8f2c07eeb0c6655919f3121c086988fb
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_SD_WORKBEN_CUSTOMPANEL_CTP_PANEL_HXX
21 #define INCLUDED_SD_WORKBEN_CUSTOMPANEL_CTP_PANEL_HXX
23 #include <com/sun/star/drawing/framework/XView.hpp>
24 #include <com/sun/star/ui/XToolPanel.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <com/sun/star/drawing/framework/XConfigurationController.hpp>
27 #include <com/sun/star/drawing/framework/XResourceId.hpp>
28 #include <com/sun/star/awt/XPaintListener.hpp>
30 #include <cppuhelper/compbase.hxx>
31 #include <cppuhelper/basemutex.hxx>
33 #include <memory>
35 namespace sd::colortoolpanel
38 typedef ::cppu::WeakComponentImplHelper < css::drawing::framework::XView
39 , css::ui::XToolPanel
40 , css::awt::XPaintListener
41 > SingleColorPanel_Base;
42 class SingleColorPanel :public ::cppu::BaseMutex
43 ,public SingleColorPanel_Base
45 public:
46 SingleColorPanel(
47 const css::uno::Reference< css::uno::XComponentContext >& i_rContext,
48 const css::uno::Reference< css::drawing::framework::XConfigurationController >& i_rConfigController,
49 const css::uno::Reference< css::drawing::framework::XResourceId >& i_rResourceId
52 // XToolPanel
53 virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getWindow( ) throw (css::uno::RuntimeException);
54 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL createAccessible( const css::uno::Reference< css::accessibility::XAccessible >& ParentAccessible ) throw (css::uno::RuntimeException);
56 // XView
57 // (no methods)
59 // XResource
60 virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId( ) throw (css::uno::RuntimeException);
61 virtual sal_Bool SAL_CALL isAnchorOnly( ) throw (css::uno::RuntimeException);
63 // XPaintListener
64 virtual void SAL_CALL windowPaint( const css::awt::PaintEvent& e ) throw (css::uno::RuntimeException);
66 // XEventListener
67 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw (css::uno::RuntimeException);
69 // XComponent equivalents
70 virtual void SAL_CALL disposing();
72 protected:
73 ~SingleColorPanel();
75 private:
76 css::uno::Reference< css::uno::XComponentContext > m_xContext;
77 css::uno::Reference< css::drawing::framework::XResourceId > m_xResourceId;
78 css::uno::Reference< css::awt::XWindow > m_xWindow;
81 } } // namespace sd::colortoolpanel
83 #endif // INCLUDED_SD_WORKBEN_CUSTOMPANEL_CTP_PANEL_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */