INTEGRATION: CWS eforms2 (1.7.4); FILE MERGED
2004/05/12 08:15:06 fs 1.7.4.1: #116712# outsourced common refvalue-associated behavior to a base class
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: CheckBox.hxx,v $
|
||||
*
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
* last change: $Author: rt $ $Date: 2004-04-02 10:49:21 $
|
||||
* last change: $Author: obo $ $Date: 2004-11-16 10:35:44 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -62,29 +62,20 @@
|
||||
#ifndef _FORMS_CHECKBOX_HXX_
|
||||
#define _FORMS_CHECKBOX_HXX_
|
||||
|
||||
#ifndef _FORMS_FORMCOMPONENT_HXX_
|
||||
#include "FormComponent.hxx"
|
||||
#endif
|
||||
|
||||
#ifndef _COMPHELPER_PROPERTY_MULTIPLEX_HXX_
|
||||
#include <comphelper/propmultiplex.hxx>
|
||||
#ifndef EFORMS2_FORMS_SOURCE_COMPONENT_REFVALUECOMPONENT_HXX
|
||||
#include "refvaluecomponent.hxx"
|
||||
#endif
|
||||
|
||||
//.........................................................................
|
||||
namespace frm
|
||||
{
|
||||
|
||||
enum { CB_NOCHECK, CB_CHECK, CB_DONTKNOW };
|
||||
|
||||
//==================================================================
|
||||
//= OCheckBoxModel
|
||||
//==================================================================
|
||||
class OCheckBoxModel :public OBoundControlModel
|
||||
class OCheckBoxModel :public OReferenceValueComponent
|
||||
,public ::comphelper::OAggregationArrayUsageHelper< OCheckBoxModel >
|
||||
{
|
||||
::rtl::OUString m_sReferenceValue; // Referenzwert zum Checken des Buttons
|
||||
sal_Int16 m_nDefaultChecked; // Soll beim Reset gecheckt werden ?
|
||||
|
||||
protected:
|
||||
sal_Int16 getState(const ::com::sun::star::uno::Any& rValue);
|
||||
|
||||
@@ -95,14 +86,6 @@ public:
|
||||
IMPLEMENTATION_NAME(OCheckBoxModel);
|
||||
virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
|
||||
|
||||
// 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);
|
||||
|
||||
// XPropertySetRef
|
||||
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
|
||||
virtual cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
||||
@@ -128,17 +111,6 @@ protected:
|
||||
virtual ::com::sun::star::uno::Any
|
||||
translateDbColumnToControlValue( );
|
||||
virtual sal_Bool commitControlValueToDbColumn( bool _bPostReset );
|
||||
virtual ::com::sun::star::uno::Any
|
||||
translateExternalValueToControlValue( );
|
||||
virtual ::com::sun::star::uno::Any
|
||||
translateControlValueToExternalValue( );
|
||||
|
||||
virtual ::com::sun::star::uno::Any
|
||||
getDefaultForReset() const;
|
||||
|
||||
virtual void onConnectedDbColumn( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxForm );
|
||||
|
||||
virtual sal_Bool approveValueBinding( const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding );
|
||||
};
|
||||
|
||||
//==================================================================
|
||||
|
Reference in New Issue
Block a user