2003-12-11 11:30:31 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* $RCSfile: scrollbar.hxx,v $
|
|
|
|
* $Revision: 1.9 $
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
2008-04-11 07:26:34 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2003-12-11 11:30:31 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|
|
|
|
#define FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|
|
|
|
|
|
|
|
#include "FormComponent.hxx"
|
2004-04-13 10:16:03 +00:00
|
|
|
#include "frm_module.hxx"
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
//........................................................................
|
|
|
|
namespace frm
|
|
|
|
{
|
|
|
|
//........................................................................
|
|
|
|
|
|
|
|
//====================================================================
|
|
|
|
//= OScrollBarModel
|
|
|
|
//====================================================================
|
|
|
|
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
|
|
|
|
DECLARE_XCLONEABLE();
|
|
|
|
|
|
|
|
// XPropertyState
|
|
|
|
virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 _nHandle ) const;
|
|
|
|
|
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
|
2003-12-11 11:30:31 +00:00
|
|
|
) const;
|
|
|
|
|
|
|
|
// OPropertySetHelper
|
|
|
|
virtual void SAL_CALL getFastPropertyValue( ::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle ) const;
|
|
|
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue )
|
|
|
|
throw ( ::com::sun::star::uno::Exception );
|
|
|
|
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 )
|
|
|
|
throw ( ::com::sun::star::lang::IllegalArgumentException );
|
|
|
|
|
|
|
|
// OBoundControlModel
|
|
|
|
virtual ::com::sun::star::uno::Any
|
|
|
|
translateDbColumnToControlValue( );
|
|
|
|
virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset );
|
|
|
|
virtual ::com::sun::star::uno::Any
|
|
|
|
getDefaultForReset() const;
|
|
|
|
|
|
|
|
virtual ::com::sun::star::uno::Any
|
2005-03-23 10:32:32 +00:00
|
|
|
translateExternalValueToControlValue( ) const;
|
2003-12-11 11:30:31 +00:00
|
|
|
virtual ::com::sun::star::uno::Any
|
2005-03-23 10:32:32 +00:00
|
|
|
translateControlValueToExternalValue( ) const;
|
2004-04-02 09:57:22 +00:00
|
|
|
virtual sal_Bool approveValueBinding( const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding );
|
2003-12-11 11:30:31 +00:00
|
|
|
|
|
|
|
// XCoponent and related helpers
|
|
|
|
virtual void SAL_CALL disposing();
|
|
|
|
|
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
|
|
|
};
|
|
|
|
//........................................................................
|
|
|
|
} // namespacefrm
|
|
|
|
//........................................................................
|
|
|
|
|
|
|
|
#endif // FORMS_SOURCE_COMPONENT_SCROLLBAR_HXX
|