LibreOffice Module toolkit (master) 1
vclxspinbutton.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
24#include <comphelper/uno3.hxx>
25#include <com/sun/star/awt/XSpinValue.hpp>
26
27
28namespace toolkit
29{
30
31
32 //= VCLXSpinButton
33
34 typedef ::cppu::ImplHelper1 < css::awt::XSpinValue
36
37 class VCLXSpinButton final : public VCLXWindow
39 {
40 private:
41 AdjustmentListenerMultiplexer maAdjustmentListeners;
42
43 public:
45
46 private:
47 virtual ~VCLXSpinButton( ) override;
48
49 // XInterface
51
52 // XTypeProvider
53 DECLARE_XTYPEPROVIDER()
54
55 // XComponent
56 void SAL_CALL dispose( ) override;
57
58 // XSpinValue
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;
72
73 // VclWindowPeer
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;
76
77 // VCLXWindow
78 void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent ) override;
79
80 VCLXSpinButton( const VCLXSpinButton& ) = delete;
81 VCLXSpinButton& operator=( const VCLXSpinButton& ) = delete;
82 };
83
84
85} // namespacetoolkit
86
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Int32 SAL_CALL getValue() override
AdjustmentListenerMultiplexer maAdjustmentListeners
void ProcessWindowEvent(const VclWindowEvent &_rVclWindowEvent) override
virtual css::uno::Any SAL_CALL getProperty(const OUString &PropertyName) override
virtual void SAL_CALL addAdjustmentListener(const css::uno::Reference< css::awt::XAdjustmentListener > &listener) override
virtual void SAL_CALL setOrientation(sal_Int32 orientation) override
virtual void SAL_CALL setSpinIncrement(sal_Int32 spinIncrement) override
virtual void SAL_CALL setMinimum(sal_Int32 minValue) override
virtual ~VCLXSpinButton() override
virtual void SAL_CALL setValues(sal_Int32 minValue, sal_Int32 maxValue, sal_Int32 currentValue) override
virtual sal_Int32 SAL_CALL getMinimum() override
virtual sal_Int32 SAL_CALL getMaximum() override
virtual sal_Int32 SAL_CALL getOrientation() override
virtual void SAL_CALL removeAdjustmentListener(const css::uno::Reference< css::awt::XAdjustmentListener > &listener) override
virtual sal_Int32 SAL_CALL getSpinIncrement() override
virtual void SAL_CALL setMaximum(sal_Int32 maxValue) override
void SAL_CALL dispose() override
virtual void SAL_CALL setValue(sal_Int32 n) override
virtual void SAL_CALL setProperty(const OUString &PropertyName, const css::uno::Any &Value) override
orientation
::cppu::ImplHelper1< css::awt::XSpinValue > VCLXSpinButton_Base
#define DECLARE_XINTERFACE()