bump product version to 4.1.6.2
[LibreOffice.git] / forms / source / component / scrollbar.hxx
blobb11706f93b224d6747216035c55f5d8db4e6d72c
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 FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
20 #define FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
22 #include "FormComponent.hxx"
23 #include "frm_module.hxx"
25 //........................................................................
26 namespace frm
28 //........................................................................
30 //====================================================================
31 //= OScrollBarModel
32 //====================================================================
33 class OScrollBarModel :public OBoundControlModel
35 private:
36 // <properties>
37 sal_Int32 m_nDefaultScrollValue;
38 // </properties>
40 protected:
41 DECLARE_DEFAULT_LEAF_XTOR( OScrollBarModel );
43 // XServiceInfo
44 DECLARE_SERVICE_REGISTRATION( OScrollBarModel )
46 // XPersistObject
47 DECLARE_XPERSISTOBJECT()
49 // XCloneable
50 DECLARE_XCLONEABLE();
52 // XPropertyState
53 virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 _nHandle ) const;
55 // OControlModel's property handling
56 virtual void describeFixedProperties(
57 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
58 ) const;
60 // OPropertySetHelper
61 virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle ) const;
62 virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue )
63 throw ( ::com::sun::star::uno::Exception );
64 virtual sal_Bool SAL_CALL convertFastPropertyValue( ::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue )
65 throw ( ::com::sun::star::lang::IllegalArgumentException );
67 // OBoundControlModel
68 virtual ::com::sun::star::uno::Any
69 translateDbColumnToControlValue( );
70 virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset );
71 virtual ::com::sun::star::uno::Any
72 getDefaultForReset() const;
74 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
75 getSupportedBindingTypes();
76 virtual ::com::sun::star::uno::Any
77 translateExternalValueToControlValue( const ::com::sun::star::uno::Any& _rExternalValue ) const;
78 virtual ::com::sun::star::uno::Any
79 translateControlValueToExternalValue( ) const;
81 // XCoponent and related helpers
82 virtual void SAL_CALL disposing();
84 // prevent method hiding
85 using OBoundControlModel::disposing;
86 using OBoundControlModel::getFastPropertyValue;
89 //........................................................................
90 } // namespacefrm
91 //........................................................................
93 #endif // FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */