2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-11-05 02:31:05 +01:00
|
|
|
#ifndef INCLUDED_FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|
|
|
|
#define INCLUDED_FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
#include "FormComponent.hxx"
|
2004-04-13 10:16:03 +00:00
|
|
|
#include "frm_module.hxx"
|
2003-12-11 11:30:31 +00:00
|
|
|
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2003-12-11 11:30:31 +00:00
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
|
|
|
|
class OScrollBarModel :public OBoundControlModel
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
// <properties>
|
|
|
|
sal_Int32 m_nDefaultScrollValue;
|
|
|
|
// </properties>
|
|
|
|
|
|
|
|
protected:
|
|
|
|
DECLARE_DEFAULT_LEAF_XTOR( OScrollBarModel );
|
|
|
|
|
|
|
|
// XServiceInfo
|
2006-06-19 11:56:59 +00:00
|
|
|
DECLARE_SERVICE_REGISTRATION( OScrollBarModel )
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// XPersistObject
|
2006-06-19 11:56:59 +00:00
|
|
|
DECLARE_XPERSISTOBJECT()
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// XCloneable
|
2014-06-03 23:01:07 +02:00
|
|
|
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// XPropertyState
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 _nHandle ) const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
2007-03-09 12:35:14 +00:00
|
|
|
// OControlModel's property handling
|
|
|
|
virtual void describeFixedProperties(
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
|
2014-03-27 18:12:18 +01:00
|
|
|
) const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// OPropertySetHelper
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle ) const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw ( ::com::sun::star::uno::Exception, std::exception ) SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
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 )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw ( ::com::sun::star::lang::IllegalArgumentException ) SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// OBoundControlModel
|
|
|
|
virtual ::com::sun::star::uno::Any
|
2014-03-27 18:12:18 +01:00
|
|
|
translateDbColumnToControlValue( ) SAL_OVERRIDE;
|
2014-05-06 12:37:38 +02:00
|
|
|
virtual bool commitControlValueToDbColumn( bool _bPostReset ) SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
virtual ::com::sun::star::uno::Any
|
2014-03-27 18:12:18 +01:00
|
|
|
getDefaultForReset() const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
2008-06-25 11:05:55 +00:00
|
|
|
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >
|
2014-03-27 18:12:18 +01:00
|
|
|
getSupportedBindingTypes() SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
virtual ::com::sun::star::uno::Any
|
2014-03-27 18:12:18 +01:00
|
|
|
translateExternalValueToControlValue( const ::com::sun::star::uno::Any& _rExternalValue ) const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
virtual ::com::sun::star::uno::Any
|
2014-03-27 18:12:18 +01:00
|
|
|
translateControlValueToExternalValue( ) const SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// XCoponent and related helpers
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void SAL_CALL disposing() SAL_OVERRIDE;
|
2003-12-11 11:30:31 +00:00
|
|
|
|
2006-06-19 11:56:59 +00:00
|
|
|
// prevent method hiding
|
|
|
|
using OBoundControlModel::disposing;
|
|
|
|
using OBoundControlModel::getFastPropertyValue;
|
|
|
|
|
2003-12-11 11:30:31 +00:00
|
|
|
};
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2003-12-11 11:30:31 +00:00
|
|
|
} // namespacefrm
|
2014-02-25 18:50:02 +01:00
|
|
|
|
2003-12-11 11:30:31 +00:00
|
|
|
|
2013-11-05 02:31:05 +01:00
|
|
|
#endif // INCLUDED_FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|
2010-10-27 12:45:03 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|