1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <toolkit/awt/vclxwindow.hxx>
22 #include <toolkit/helper/listenermultiplexer.hxx>
23 #include <cppuhelper/implbase1.hxx>
24 #include <comphelper/uno3.hxx>
25 #include <com/sun/star/awt/XSpinValue.hpp>
34 typedef ::cppu::ImplHelper1
< css::awt::XSpinValue
35 > VCLXSpinButton_Base
;
37 class VCLXSpinButton final
: public VCLXWindow
38 ,public VCLXSpinButton_Base
41 AdjustmentListenerMultiplexer maAdjustmentListeners
;
47 virtual ~VCLXSpinButton( ) override
;
53 DECLARE_XTYPEPROVIDER()
56 void SAL_CALL
dispose( ) override
;
59 virtual void SAL_CALL
addAdjustmentListener( const css::uno::Reference
< css::awt::XAdjustmentListener
>& listener
) override
;
60 virtual void SAL_CALL
removeAdjustmentListener( const css::uno::Reference
< css::awt::XAdjustmentListener
>& listener
) override
;
61 virtual void SAL_CALL
setValue( sal_Int32 n
) override
;
62 virtual void SAL_CALL
setValues( sal_Int32 minValue
, sal_Int32 maxValue
, sal_Int32 currentValue
) override
;
63 virtual sal_Int32 SAL_CALL
getValue( ) override
;
64 virtual void SAL_CALL
setMinimum( sal_Int32 minValue
) override
;
65 virtual void SAL_CALL
setMaximum( sal_Int32 maxValue
) override
;
66 virtual sal_Int32 SAL_CALL
getMinimum( ) override
;
67 virtual sal_Int32 SAL_CALL
getMaximum( ) override
;
68 virtual void SAL_CALL
setSpinIncrement( sal_Int32 spinIncrement
) override
;
69 virtual sal_Int32 SAL_CALL
getSpinIncrement( ) override
;
70 virtual void SAL_CALL
setOrientation( sal_Int32 orientation
) override
;
71 virtual sal_Int32 SAL_CALL
getOrientation( ) override
;
74 virtual void SAL_CALL
setProperty( const OUString
& PropertyName
, const css::uno::Any
& Value
) override
;
75 virtual css::uno::Any SAL_CALL
getProperty( const OUString
& PropertyName
) override
;
78 void ProcessWindowEvent( const VclWindowEvent
& _rVclWindowEvent
) override
;
80 VCLXSpinButton( const VCLXSpinButton
& ) = delete;
81 VCLXSpinButton
& operator=( const VCLXSpinButton
& ) = delete;
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */