build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / toolkit / awt / vclxspinbutton.hxx
blob81fe3ae8273601af7340c569621960977e88db09
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_TOOLKIT_AWT_VCLXSPINBUTTON_HXX
20 #define INCLUDED_TOOLKIT_AWT_VCLXSPINBUTTON_HXX
22 #include <toolkit/awt/vclxwindow.hxx>
23 #include <toolkit/helper/listenermultiplexer.hxx>
24 #include <cppuhelper/implbase1.hxx>
25 #include <comphelper/uno3.hxx>
26 #include <com/sun/star/awt/XSpinValue.hpp>
29 namespace toolkit
33 //= VCLXSpinButton
35 typedef ::cppu::ImplHelper1 < css::awt::XSpinValue
36 > VCLXSpinButton_Base;
38 class VCLXSpinButton :public VCLXWindow
39 ,public VCLXSpinButton_Base
41 private:
42 AdjustmentListenerMultiplexer maAdjustmentListeners;
44 public:
45 VCLXSpinButton();
47 protected:
48 virtual ~VCLXSpinButton( ) override;
50 // XInterface
51 DECLARE_XINTERFACE()
53 // XTypeProvider
54 DECLARE_XTYPEPROVIDER()
56 // XComponent
57 void SAL_CALL dispose( ) throw(css::uno::RuntimeException, std::exception) override;
59 // XSpinValue
60 virtual void SAL_CALL addAdjustmentListener( const css::uno::Reference< css::awt::XAdjustmentListener >& listener ) throw (css::uno::RuntimeException, std::exception) override;
61 virtual void SAL_CALL removeAdjustmentListener( const css::uno::Reference< css::awt::XAdjustmentListener >& listener ) throw (css::uno::RuntimeException, std::exception) override;
62 virtual void SAL_CALL setValue( sal_Int32 n ) throw (css::uno::RuntimeException, std::exception) override;
63 virtual void SAL_CALL setValues( sal_Int32 minValue, sal_Int32 maxValue, sal_Int32 currentValue ) throw (css::uno::RuntimeException, std::exception) override;
64 virtual sal_Int32 SAL_CALL getValue( ) throw (css::uno::RuntimeException, std::exception) override;
65 virtual void SAL_CALL setMinimum( sal_Int32 minValue ) throw (css::uno::RuntimeException, std::exception) override;
66 virtual void SAL_CALL setMaximum( sal_Int32 maxValue ) throw (css::uno::RuntimeException, std::exception) override;
67 virtual sal_Int32 SAL_CALL getMinimum( ) throw (css::uno::RuntimeException, std::exception) override;
68 virtual sal_Int32 SAL_CALL getMaximum( ) throw (css::uno::RuntimeException, std::exception) override;
69 virtual void SAL_CALL setSpinIncrement( sal_Int32 spinIncrement ) throw (css::uno::RuntimeException, std::exception) override;
70 virtual sal_Int32 SAL_CALL getSpinIncrement( ) throw (css::uno::RuntimeException, std::exception) override;
71 virtual void SAL_CALL setOrientation( sal_Int32 orientation ) throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
72 virtual sal_Int32 SAL_CALL getOrientation( ) throw (css::uno::RuntimeException, std::exception) override;
74 // VclWindowPeer
75 virtual void SAL_CALL setProperty( const OUString& PropertyName, const css::uno::Any& Value ) throw(css::uno::RuntimeException, std::exception) override;
76 virtual css::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(css::uno::RuntimeException, std::exception) override;
78 // VCLXWindow
79 void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent ) override;
81 private:
82 VCLXSpinButton( const VCLXSpinButton& ) = delete;
83 VCLXSpinButton& operator=( const VCLXSpinButton& ) = delete;
87 } // namespacetoolkit
90 #endif // TOOLKIT_INC_ INCLUDED_TOOLKIT_AWT_VCLXSPINBUTTON_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */