Fix the test failing when invalid certificate is in cert store
[LibreOffice.git] / toolkit / inc / controls / tkscrollbar.hxx
blob74014cf6d18a79e4b969724d72c841accefd282e
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 #pragma once
21 #include <toolkit/controls/unocontrolmodel.hxx>
22 #include <toolkit/controls/unocontrolbase.hxx>
23 #include <com/sun/star/awt/XScrollBar.hpp>
24 #include <com/sun/star/awt/XAdjustmentListener.hpp>
27 namespace toolkit
31 //= UnoControlScrollBarModel
33 class UnoControlScrollBarModel final : public UnoControlModel
35 css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
36 ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
38 public:
39 UnoControlScrollBarModel( const css::uno::Reference< css::uno::XComponentContext >& i_factory );
40 UnoControlScrollBarModel( const UnoControlScrollBarModel& rModel ) : UnoControlModel( rModel ) {}
42 rtl::Reference<UnoControlModel> Clone() const override { return new UnoControlScrollBarModel( *this ); }
44 // css::beans::XMultiPropertySet
45 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
47 // css::io::XPersistObject
48 OUString SAL_CALL getServiceName() override;
50 // XServiceInfo
51 OUString SAL_CALL getImplementationName() override;
53 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
57 //= UnoControlScrollBarModel
59 class UnoScrollBarControl final : public UnoControlBase,
60 public css::awt::XAdjustmentListener,
61 public css::awt::XScrollBar
63 private:
64 AdjustmentListenerMultiplexer maAdjustmentListeners;
66 public:
67 UnoScrollBarControl();
68 OUString GetComponentServiceName() override;
70 css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override { return UnoControlBase::queryInterface(rType); }
71 css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
72 void SAL_CALL acquire() noexcept override { OWeakAggObject::acquire(); }
73 void SAL_CALL release() noexcept override { OWeakAggObject::release(); }
74 void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
75 void SAL_CALL disposing( const css::lang::EventObject& Source ) override { UnoControlBase::disposing( Source ); }
76 void SAL_CALL dispose( ) override;
78 // css::lang::XTypeProvider
79 css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
80 css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
82 // css::awt::XAdjustmentListener
83 void SAL_CALL adjustmentValueChanged( const css::awt::AdjustmentEvent& rEvent ) override;
85 // css::awt::XScrollBar
86 void SAL_CALL addAdjustmentListener( const css::uno::Reference< css::awt::XAdjustmentListener >& l ) override;
87 void SAL_CALL removeAdjustmentListener( const css::uno::Reference< css::awt::XAdjustmentListener >& l ) override;
88 void SAL_CALL setValue( sal_Int32 n ) override;
89 void SAL_CALL setValues( sal_Int32 nValue, sal_Int32 nVisible, sal_Int32 nMax ) override;
90 sal_Int32 SAL_CALL getValue( ) override;
91 void SAL_CALL setMaximum( sal_Int32 n ) override;
92 sal_Int32 SAL_CALL getMaximum( ) override;
93 void SAL_CALL setLineIncrement( sal_Int32 n ) override;
94 sal_Int32 SAL_CALL getLineIncrement( ) override;
95 void SAL_CALL setBlockIncrement( sal_Int32 n ) override;
96 sal_Int32 SAL_CALL getBlockIncrement( ) override;
97 void SAL_CALL setVisibleSize( sal_Int32 n ) override;
98 sal_Int32 SAL_CALL getVisibleSize( ) override;
99 void SAL_CALL setOrientation( sal_Int32 n ) override;
100 sal_Int32 SAL_CALL getOrientation( ) override;
102 // css::lang::XServiceInfo
103 OUString SAL_CALL getImplementationName() override;
105 css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
109 } // namespacetoolkit
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */