2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 08:00:24 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:00:24 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:00:24 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:00:24 +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.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:00:24 +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).
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-11 08:00:24 +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.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _TOOLKIT_HELPER_UNOCONTROLS_HXX_
|
|
|
|
#define _TOOLKIT_HELPER_UNOCONTROLS_HXX_
|
|
|
|
|
2005-01-11 13:05:01 +00:00
|
|
|
#include <toolkit/dllapi.h>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <com/sun/star/awt/XTextComponent.hpp>
|
|
|
|
#include <com/sun/star/awt/XTextListener.hpp>
|
|
|
|
#include <com/sun/star/awt/XLayoutConstrains.hpp>
|
|
|
|
#include <com/sun/star/awt/XTextLayoutConstrains.hpp>
|
|
|
|
#include <com/sun/star/awt/XButton.hpp>
|
2006-08-28 13:56:18 +00:00
|
|
|
#include <com/sun/star/awt/XToggleButton.hpp>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <com/sun/star/awt/XRadioButton.hpp>
|
|
|
|
#include <com/sun/star/awt/XItemListener.hpp>
|
|
|
|
#include <com/sun/star/awt/XCheckBox.hpp>
|
2008-01-29 14:04:01 +00:00
|
|
|
#include <com/sun/star/awt/XFixedHyperlink.hpp>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <com/sun/star/awt/XFixedText.hpp>
|
|
|
|
#include <com/sun/star/awt/XListBox.hpp>
|
|
|
|
#include <com/sun/star/awt/XComboBox.hpp>
|
|
|
|
#include <com/sun/star/awt/XDateField.hpp>
|
2002-09-05 06:37:05 +00:00
|
|
|
#include <com/sun/star/awt/XSpinField.hpp>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <com/sun/star/awt/XTimeField.hpp>
|
|
|
|
#include <com/sun/star/awt/XNumericField.hpp>
|
|
|
|
#include <com/sun/star/awt/XCurrencyField.hpp>
|
|
|
|
#include <com/sun/star/awt/XPatternField.hpp>
|
2001-04-26 08:09:16 +00:00
|
|
|
#include <com/sun/star/awt/XProgressBar.hpp>
|
2010-04-29 10:05:04 +02:00
|
|
|
#include <com/sun/star/awt/XItemList.hpp>
|
2008-12-01 12:31:27 +00:00
|
|
|
#include <com/sun/star/graphic/XGraphicObject.hpp>
|
2000-09-18 16:07:07 +00:00
|
|
|
#include <toolkit/controls/unocontrolmodel.hxx>
|
|
|
|
#include <toolkit/controls/unocontrolbase.hxx>
|
|
|
|
#include <toolkit/helper/macros.hxx>
|
|
|
|
#include <toolkit/helper/servicenames.hxx>
|
|
|
|
#include <vcl/bitmapex.hxx>
|
2010-04-29 10:05:04 +02:00
|
|
|
#include <cppuhelper/implbase5.hxx>
|
2003-03-27 16:05:12 +00:00
|
|
|
#include <cppuhelper/implbase4.hxx>
|
2006-10-18 12:13:57 +00:00
|
|
|
#include <cppuhelper/implbase2.hxx>
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
2004-05-07 15:16:31 +00:00
|
|
|
#include <comphelper/uno3.hxx>
|
2002-01-08 12:43:32 +00:00
|
|
|
|
2003-03-27 16:05:12 +00:00
|
|
|
#include <list>
|
2010-04-29 10:05:04 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
#include <boost/optional.hpp>
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2008-12-01 12:31:27 +00:00
|
|
|
#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
|
|
|
|
#define UNO_NAME_GRAPHOBJ_URLPKGPREFIX "vnd.sun.star.Package:"
|
|
|
|
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlEditModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlEditModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlEditModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlEditModel( const UnoControlEditModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlEditModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlEditModel, UnoControlModel, szServiceName2_UnoControlEditModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoEditControl
|
|
|
|
// ----------------------------------------------------
|
2004-05-07 15:16:31 +00:00
|
|
|
typedef ::cppu::ImplHelper4 < ::com::sun::star::awt::XTextComponent
|
|
|
|
, ::com::sun::star::awt::XTextListener
|
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
, ::com::sun::star::awt::XTextLayoutConstrains
|
|
|
|
> UnoEditControl_Base;
|
2005-01-11 13:05:01 +00:00
|
|
|
class TOOLKIT_DLLPUBLIC UnoEditControl :public UnoControlBase
|
|
|
|
,public UnoEditControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
TextListenerMultiplexer maTextListeners;
|
|
|
|
|
2001-10-11 14:21:14 +00:00
|
|
|
// Not all fields derived from UnoEditCOntrol have the property "Text"
|
2004-05-07 15:16:31 +00:00
|
|
|
// They only support XTextComponent, so keep the text
|
2001-10-11 14:21:14 +00:00
|
|
|
// here, maybe there is no Peer when calling setText()...
|
|
|
|
::rtl::OUString maText;
|
|
|
|
USHORT mnMaxTextLen;
|
2004-05-07 15:16:31 +00:00
|
|
|
|
|
|
|
sal_Bool mbSetTextInPeer;
|
|
|
|
sal_Bool mbSetMaxTextLenInPeer;
|
|
|
|
sal_Bool mbHasTextProperty;
|
2001-10-11 14:21:14 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
UnoEditControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
|
|
|
|
|
2002-09-05 07:54:42 +00:00
|
|
|
void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// disambiguate XInterface
|
|
|
|
DECLARE_XINTERFACE()
|
|
|
|
|
|
|
|
// XAggregation
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// XTypeProvider
|
|
|
|
DECLARE_XTYPEPROVIDER()
|
|
|
|
|
|
|
|
// XTextListener
|
2000-09-18 16:07:07 +00:00
|
|
|
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// XTextComponent
|
2000-09-18 16:07:07 +00:00
|
|
|
void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// XLayoutConstrains
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// XTextLayoutConstrains
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-07 15:16:31 +00:00
|
|
|
// XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoEditControl, UnoControlBase, szServiceName2_UnoControlEdit )
|
2004-05-07 15:16:31 +00:00
|
|
|
|
|
|
|
sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlFileControlModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlFileControlModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlFileControlModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlFileControlModel( const UnoControlFileControlModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlFileControlModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFileControlModel, UnoControlModel, szServiceName2_UnoControlFileControlModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoFileControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoFileControl : public UnoEditControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoFileControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFileControl, UnoEditControl, szServiceName2_UnoControlFileControl )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
// class GraphicControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
class GraphicControlModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2001-04-04 15:06:33 +00:00
|
|
|
private:
|
2006-10-18 12:13:57 +00:00
|
|
|
bool mbAdjustingImagePosition;
|
|
|
|
bool mbAdjustingGraphic;
|
2001-04-04 15:06:33 +00:00
|
|
|
|
2008-12-01 12:31:27 +00:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > mxGrfObj;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > getGraphicFromURL_nothrow( const ::rtl::OUString& _rURL );
|
2001-04-04 15:06:33 +00:00
|
|
|
|
2010-06-18 15:33:54 +02:00
|
|
|
protected:
|
|
|
|
GraphicControlModel() : mbAdjustingImagePosition( false ), mbAdjustingGraphic( false ) { }
|
|
|
|
GraphicControlModel( const GraphicControlModel& _rSource ) : UnoControlModel( _rSource ), mbAdjustingImagePosition( false ), mbAdjustingGraphic( false ) { }
|
2001-04-04 15:06:33 +00:00
|
|
|
|
2004-07-05 14:54:27 +00:00
|
|
|
// ::cppu::OPropertySetHelper
|
|
|
|
void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
|
|
|
|
|
2006-10-18 12:13:57 +00:00
|
|
|
// UnoControlModel
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
|
2004-07-05 14:54:27 +00:00
|
|
|
private:
|
2010-06-18 15:33:54 +02:00
|
|
|
GraphicControlModel& operator=( const GraphicControlModel& ); // never implemented
|
2004-07-05 14:54:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlButtonModel
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
class UnoControlButtonModel : public GraphicControlModel
|
2004-07-05 14:54:27 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlButtonModel();
|
2010-06-18 15:33:54 +02:00
|
|
|
UnoControlButtonModel( const UnoControlButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
|
2004-07-05 14:54:27 +00:00
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlButtonModel( *this ); }
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlButtonModel, GraphicControlModel, szServiceName2_UnoControlButtonModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoButtonControl
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
|
2006-08-28 13:56:18 +00:00
|
|
|
, ::com::sun::star::awt::XButton
|
|
|
|
, ::com::sun::star::awt::XToggleButton
|
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
, ::com::sun::star::awt::XItemListener
|
|
|
|
> UnoButtonControl_Base;
|
|
|
|
class UnoButtonControl : public UnoButtonControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
2006-08-28 13:56:18 +00:00
|
|
|
ItemListenerMultiplexer maItemListeners;
|
2000-09-18 16:07:07 +00:00
|
|
|
::rtl::OUString maActionCommand;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UnoButtonControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XButton
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2006-08-28 13:56:18 +00:00
|
|
|
// ::com::sun::star::awt::XToggleButton
|
|
|
|
// ::com::sun::star::awt::XItemEventBroadcaster
|
|
|
|
void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XEventListener
|
|
|
|
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// XItemListener
|
|
|
|
virtual void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoButtonControl, UnoControlBase, szServiceName2_UnoControlButton )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlImageControlModel
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
class UnoControlImageControlModel : public GraphicControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2008-12-01 12:31:27 +00:00
|
|
|
private:
|
|
|
|
bool mbAdjustingImageScaleMode;
|
2001-04-11 14:10:57 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlImageControlModel();
|
2010-06-18 15:33:54 +02:00
|
|
|
UnoControlImageControlModel( const UnoControlImageControlModel& rModel ) : GraphicControlModel( rModel ), mbAdjustingImageScaleMode( false ) { }
|
2001-01-24 14:00:58 +00:00
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlImageControlModel( *this ); }
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlImageControlModel, GraphicControlModel, szServiceName2_UnoControlImageControlModel )
|
2008-12-01 12:31:27 +00:00
|
|
|
|
|
|
|
// ::cppu::OPropertySetHelper
|
|
|
|
void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoImageControlControl
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper1 < UnoControlBase
|
2006-10-18 12:13:57 +00:00
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
> UnoImageControlControl_Base;
|
|
|
|
class UnoImageControlControl : public UnoImageControlControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
::rtl::OUString maActionCommand;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UnoImageControlControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoImageControlControl, UnoControlBase, szServiceName2_UnoControlImageControl )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlRadioButtonModel
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
class UnoControlRadioButtonModel : public GraphicControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlRadioButtonModel();
|
2010-06-18 15:33:54 +02:00
|
|
|
UnoControlRadioButtonModel( const UnoControlRadioButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
|
2001-01-24 14:00:58 +00:00
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlRadioButtonModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlRadioButtonModel, GraphicControlModel, szServiceName2_UnoControlRadioButtonModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoRadioButtonControl
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
|
2006-10-18 12:13:57 +00:00
|
|
|
, ::com::sun::star::awt::XButton
|
|
|
|
, ::com::sun::star::awt::XRadioButton
|
|
|
|
, ::com::sun::star::awt::XItemListener
|
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
> UnoRadioButtonControl_Base;
|
|
|
|
class UnoRadioButtonControl : public UnoRadioButtonControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
2001-04-04 08:30:18 +00:00
|
|
|
ItemListenerMultiplexer maItemListeners;
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
::rtl::OUString maActionCommand;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UnoRadioButtonControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
2010-06-18 15:33:54 +02:00
|
|
|
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-04-04 08:30:18 +00:00
|
|
|
// ::com::sun::star::awt::XButton
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::awt::XRadioButton
|
|
|
|
void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL getState( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XItemListener
|
|
|
|
void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoRadioButtonControl, UnoControlBase, szServiceName2_UnoControlRadioButton )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlCheckBoxModel
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
class UnoControlCheckBoxModel : public GraphicControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlCheckBoxModel();
|
2010-06-18 15:33:54 +02:00
|
|
|
UnoControlCheckBoxModel( const UnoControlCheckBoxModel& rModel ) : GraphicControlModel( rModel ) {;}
|
2001-01-24 14:00:58 +00:00
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlCheckBoxModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlCheckBoxModel, GraphicControlModel, szServiceName2_UnoControlCheckBoxModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoCheckBoxControl
|
|
|
|
// ----------------------------------------------------
|
2010-06-18 15:33:54 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
|
2006-10-18 12:13:57 +00:00
|
|
|
, ::com::sun::star::awt::XButton
|
|
|
|
, ::com::sun::star::awt::XCheckBox
|
|
|
|
, ::com::sun::star::awt::XItemListener
|
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
> UnoCheckBoxControl_Base;
|
|
|
|
class UnoCheckBoxControl : public UnoCheckBoxControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
private:
|
2001-07-26 11:24:37 +00:00
|
|
|
ItemListenerMultiplexer maItemListeners;
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
::rtl::OUString maActionCommand;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UnoCheckBoxControl();
|
|
|
|
~UnoCheckBoxControl(){;}
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
2010-06-18 15:33:54 +02:00
|
|
|
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-07-26 11:24:37 +00:00
|
|
|
// ::com::sun::star::awt::XButton
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setActionCommand( const ::rtl::OUString& Command ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2004-05-19 12:43:09 +00:00
|
|
|
virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
sal_Int16 SAL_CALL getState( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setState( sal_Int16 n ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLabel( const ::rtl::OUString& Label ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL enableTriState( sal_Bool b ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XItemListener
|
|
|
|
void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2010-06-18 15:33:54 +02:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoCheckBoxControl, UnoControlBase, szServiceName2_UnoControlCheckBox )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2008-01-29 14:04:01 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlFixedTextModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlFixedHyperlinkModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlFixedHyperlinkModel();
|
|
|
|
UnoControlFixedHyperlinkModel( const UnoControlFixedHyperlinkModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlFixedHyperlinkModel( *this ); }
|
|
|
|
|
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedHyperlinkModel, UnoControlModel, szServiceName_UnoControlFixedHyperlinkModel )
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoFixedHyperlinkControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoFixedHyperlinkControl : public UnoControlBase,
|
|
|
|
public ::com::sun::star::awt::XFixedHyperlink,
|
|
|
|
public ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoFixedHyperlinkControl();
|
|
|
|
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XFixedHyperlink
|
|
|
|
void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setURL( const ::rtl::OUString& URL ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getURL( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getAlignment( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFixedHyperlinkControl, UnoControlBase, szServiceName_UnoControlFixedHyperlink )
|
|
|
|
};
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlFixedTextModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlFixedTextModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlFixedTextModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlFixedTextModel( const UnoControlFixedTextModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlFixedTextModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedTextModel, UnoControlModel, szServiceName2_UnoControlFixedTextModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoFixedTextControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoFixedTextControl : public UnoControlBase,
|
|
|
|
public ::com::sun::star::awt::XFixedText,
|
|
|
|
public ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoFixedTextControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XControl
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XFixedText
|
|
|
|
void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setAlignment( sal_Int16 nAlign ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getAlignment( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFixedTextControl, UnoControlBase, szServiceName2_UnoControlFixedText )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlGroupBoxModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlGroupBoxModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlGroupBoxModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlGroupBoxModel( const UnoControlGroupBoxModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlGroupBoxModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlGroupBoxModel, UnoControlModel, szServiceName2_UnoControlGroupBoxModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoGroupBoxControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoGroupBoxControl : public UnoControlBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoGroupBoxControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoGroupBoxControl, UnoControlBase, szServiceName2_UnoControlGroupBox )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlListBoxModel
|
|
|
|
// ----------------------------------------------------
|
2010-04-29 10:05:04 +02:00
|
|
|
struct UnoControlListBoxModel_Data;
|
|
|
|
typedef ::cppu::AggImplInheritanceHelper1 < UnoControlModel
|
|
|
|
, ::com::sun::star::awt::XItemList
|
|
|
|
> UnoControlListBoxModel_Base;
|
|
|
|
class UnoControlListBoxModel :public UnoControlListBoxModel_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoControlListBoxModel();
|
2010-04-29 10:05:04 +02:00
|
|
|
UnoControlListBoxModel( const UnoControlListBoxModel& i_rSource );
|
2001-01-24 14:00:58 +00:00
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlListBoxModel( *this ); }
|
|
|
|
|
2002-05-16 04:47:45 +00:00
|
|
|
virtual void ImplNormalizePropertySequence(
|
|
|
|
const sal_Int32 _nCount, /// the number of entries in the arrays
|
|
|
|
sal_Int32* _pHandles, /// the handles of the properties to set
|
|
|
|
::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
|
|
|
|
sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
|
|
|
|
) const SAL_THROW(());
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlListBoxModel, UnoControlModel, szServiceName2_UnoControlListBoxModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-04-29 10:05:04 +02:00
|
|
|
// ::com::sun::star::awt::XItemList
|
|
|
|
virtual ::sal_Int32 SAL_CALL getItemCount() throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL insertItem( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL insertItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL insertItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL removeItem( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL removeAllItems( ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setItemText( ::sal_Int32 Position, const ::rtl::OUString& ItemText ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setItemImage( ::sal_Int32 Position, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setItemTextAndImage( ::sal_Int32 Position, const ::rtl::OUString& ItemText, const ::rtl::OUString& ItemImageURL ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
2010-04-29 15:29:46 +02:00
|
|
|
virtual void SAL_CALL setItemData( ::sal_Int32 Position, const ::com::sun::star::uno::Any& DataValue ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
2010-04-29 10:05:04 +02:00
|
|
|
virtual ::rtl::OUString SAL_CALL getItemText( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getItemImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > SAL_CALL getItemTextAndImage( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
2010-04-29 15:29:46 +02:00
|
|
|
virtual ::com::sun::star::uno::Any SAL_CALL getItemData( ::sal_Int32 Position ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
2010-04-29 10:05:04 +02:00
|
|
|
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Pair< ::rtl::OUString, ::rtl::OUString > > SAL_CALL getAllItems( ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL addItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL removeItemListListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListListener >& Listener ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// OPropertySetHelper
|
|
|
|
void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void impl_notifyItemListEvent_nolck(
|
|
|
|
const sal_Int32 i_nItemPosition,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemText,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
|
|
|
|
void ( SAL_CALL ::com::sun::star::awt::XItemListListener::*NotificationMethod )( const ::com::sun::star::awt::ItemListEvent& )
|
|
|
|
);
|
|
|
|
|
|
|
|
void impl_handleInsert(
|
|
|
|
const sal_Int32 i_nItemPosition,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemText,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
|
|
|
|
::osl::ClearableMutexGuard& i_rClearBeforeNotify
|
|
|
|
);
|
|
|
|
|
|
|
|
void impl_handleRemove(
|
|
|
|
const sal_Int32 i_nItemPosition,
|
|
|
|
::osl::ClearableMutexGuard& i_rClearBeforeNotify
|
|
|
|
);
|
|
|
|
|
|
|
|
void impl_handleModify(
|
|
|
|
const sal_Int32 i_nItemPosition,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemText,
|
|
|
|
const ::boost::optional< ::rtl::OUString >& i_rItemImageURL,
|
|
|
|
::osl::ClearableMutexGuard& i_rClearBeforeNotify
|
|
|
|
);
|
|
|
|
|
|
|
|
void impl_getStringItemList( ::std::vector< ::rtl::OUString >& o_rStringItems ) const;
|
|
|
|
void impl_setStringItemList_nolck( const ::std::vector< ::rtl::OUString >& i_rStringItems );
|
|
|
|
|
|
|
|
private:
|
|
|
|
::boost::scoped_ptr< UnoControlListBoxModel_Data > m_pData;
|
|
|
|
::cppu::OInterfaceContainerHelper m_aItemListListeners;
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoListBoxControl
|
|
|
|
// ----------------------------------------------------
|
2010-04-29 10:05:04 +02:00
|
|
|
typedef ::cppu::AggImplInheritanceHelper5 < UnoControlBase
|
|
|
|
, ::com::sun::star::awt::XListBox
|
|
|
|
, ::com::sun::star::awt::XItemListener
|
|
|
|
, ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
, ::com::sun::star::awt::XTextLayoutConstrains
|
|
|
|
, ::com::sun::star::awt::XItemListListener
|
|
|
|
> UnoListBoxControl_Base;
|
|
|
|
class UnoListBoxControl : public UnoListBoxControl_Base
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoListBoxControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XListBox
|
|
|
|
void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getItemCount( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getSelectedItemPos( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getSelectedItemsPos( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getSelectedItem( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSelectedItems( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL selectItemPos( sal_Int16 nPos, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL selectItemsPos( const ::com::sun::star::uno::Sequence< sal_Int16 >& aPositions, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL selectItem( const ::rtl::OUString& aItem, sal_Bool bSelect ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isMutipleMode( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMultipleMode( sal_Bool bMulti ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getDropDownLineCount( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL makeVisible( sal_Int16 nEntry ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XItemListener
|
|
|
|
void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XTextLayoutConstrains
|
|
|
|
::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2010-04-29 10:05:04 +02:00
|
|
|
// XUnoControl
|
|
|
|
sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
|
|
|
|
|
|
|
|
// XItemListListener
|
|
|
|
virtual void SAL_CALL listItemInserted( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL listItemRemoved( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL listItemModified( const ::com::sun::star::awt::ItemListEvent& Event ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL allItemsRemoved( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL itemListChanged( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoListBoxControl, UnoControlBase, szServiceName2_UnoControlListBox )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2010-04-29 10:05:04 +02:00
|
|
|
protected:
|
|
|
|
void ImplUpdateSelectedItemsProperty();
|
|
|
|
virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
|
|
|
|
virtual void updateFromModel();
|
|
|
|
|
|
|
|
private:
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
ItemListenerMultiplexer maItemListeners;
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlComboBoxModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlComboBoxModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlComboBoxModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlComboBoxModel( const UnoControlComboBoxModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlComboBoxModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlComboBoxModel, UnoControlModel, szServiceName2_UnoControlComboBoxModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoComboBoxControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoComboBoxControl : public UnoEditControl,
|
|
|
|
public ::com::sun::star::awt::XComboBox
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
ActionListenerMultiplexer maActionListeners;
|
|
|
|
ItemListenerMultiplexer maItemListeners;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
UnoComboBoxControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XComboBox
|
|
|
|
void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeActionListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XActionListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addItem( const ::rtl::OUString& aItem, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL addItems( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aItems, sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeItems( sal_Int16 nPos, sal_Int16 nCount ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getItemCount( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getItem( sal_Int16 nPos ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getItems( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getDropDownLineCount( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setDropDownLineCount( sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoComboBoxControl, UnoEditControl, szServiceName2_UnoControlComboBox )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoSpinFieldControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoSpinFieldControl : public UnoEditControl,
|
|
|
|
public ::com::sun::star::awt::XSpinField
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
SpinListenerMultiplexer maSpinListeners;
|
|
|
|
BOOL mbRepeat;
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoSpinFieldControl();
|
|
|
|
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XSpinField
|
|
|
|
void SAL_CALL addSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL removeSpinListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XSpinListener >& l ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL up() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL down() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL first() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL last() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL enableRepeat( sal_Bool bRepeat ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
|
|
|
// No service info, only base class for other fields.
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlDateFieldModel
|
|
|
|
// ----------------------------------------------------
|
2001-01-24 14:00:58 +00:00
|
|
|
class UnoControlDateFieldModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlDateFieldModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlDateFieldModel( const UnoControlDateFieldModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlDateFieldModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlDateFieldModel, UnoControlModel, szServiceName2_UnoControlDateFieldModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoDateFieldControl
|
|
|
|
// ----------------------------------------------------
|
2002-09-05 06:37:05 +00:00
|
|
|
class UnoDateFieldControl : public UnoSpinFieldControl,
|
2000-09-18 16:07:07 +00:00
|
|
|
public ::com::sun::star::awt::XDateField
|
|
|
|
{
|
2001-08-10 08:10:14 +00:00
|
|
|
private:
|
|
|
|
sal_Int32 mnFirst;
|
|
|
|
sal_Int32 mnLast;
|
|
|
|
sal_Bool mbLongFormat;
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
UnoDateFieldControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-08-10 08:10:14 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::awt::XTextListener
|
|
|
|
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
//XDateField
|
|
|
|
void SAL_CALL setDate( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getDate( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMin( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMax( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setFirst( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLast( sal_Int32 Date ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLongFormat( sal_Bool bLong ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isLongFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setEmpty( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isEmpty( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoDateFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlDateField )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlTimeFieldModel
|
|
|
|
// ----------------------------------------------------
|
2001-01-24 14:00:58 +00:00
|
|
|
class UnoControlTimeFieldModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlTimeFieldModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlTimeFieldModel( const UnoControlTimeFieldModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlTimeFieldModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlTimeFieldModel, UnoControlModel, szServiceName2_UnoControlTimeFieldModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoTimeFieldControl
|
|
|
|
// ----------------------------------------------------
|
2002-09-05 06:37:05 +00:00
|
|
|
class UnoTimeFieldControl : public UnoSpinFieldControl,
|
2000-09-18 16:07:07 +00:00
|
|
|
public ::com::sun::star::awt::XTimeField
|
|
|
|
{
|
2001-08-10 08:10:14 +00:00
|
|
|
private:
|
|
|
|
sal_Int32 mnFirst;
|
|
|
|
sal_Int32 mnLast;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
UnoTimeFieldControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-08-10 08:10:14 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::awt::XTextListener
|
|
|
|
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
//XTimeField
|
|
|
|
void SAL_CALL setTime( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getTime( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMin( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMax( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setFirst( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLast( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int32 SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setEmpty( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isEmpty( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoTimeFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlTimeField )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlNumericFieldModel
|
|
|
|
// ----------------------------------------------------
|
2001-01-24 14:00:58 +00:00
|
|
|
class UnoControlNumericFieldModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlNumericFieldModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlNumericFieldModel( const UnoControlNumericFieldModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlNumericFieldModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlNumericFieldModel, UnoControlModel, szServiceName2_UnoControlNumericFieldModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoNumericFieldControl
|
|
|
|
// ----------------------------------------------------
|
2002-09-05 06:37:05 +00:00
|
|
|
class UnoNumericFieldControl : public UnoSpinFieldControl,
|
2000-09-18 16:07:07 +00:00
|
|
|
public ::com::sun::star::awt::XNumericField
|
|
|
|
{
|
2001-08-10 08:52:16 +00:00
|
|
|
private:
|
|
|
|
double mnFirst;
|
|
|
|
double mnLast;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
UnoNumericFieldControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2001-08-10 08:52:16 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XTextListener
|
|
|
|
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XNumericField
|
|
|
|
void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoNumericFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlNumericField )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlCurrencyFieldModel
|
|
|
|
// ----------------------------------------------------
|
2001-01-24 14:00:58 +00:00
|
|
|
class UnoControlCurrencyFieldModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlCurrencyFieldModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlCurrencyFieldModel( const UnoControlCurrencyFieldModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlCurrencyFieldModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlCurrencyFieldModel, UnoControlModel, szServiceName2_UnoControlCurrencyFieldModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoCurrencyFieldControl
|
|
|
|
// ----------------------------------------------------
|
2002-09-05 06:37:05 +00:00
|
|
|
class UnoCurrencyFieldControl : public UnoSpinFieldControl,
|
2000-09-18 16:07:07 +00:00
|
|
|
public ::com::sun::star::awt::XCurrencyField
|
|
|
|
{
|
2001-08-10 08:52:16 +00:00
|
|
|
private:
|
|
|
|
double mnFirst;
|
|
|
|
double mnLast;
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
|
|
|
UnoCurrencyFieldControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2001-08-10 08:52:16 +00:00
|
|
|
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XTextListener
|
|
|
|
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XCurrencyField
|
|
|
|
void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoCurrencyFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlCurrencyField )
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlPatternFieldModel
|
|
|
|
// ----------------------------------------------------
|
2001-01-24 14:00:58 +00:00
|
|
|
class UnoControlPatternFieldModel : public UnoControlModel
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlPatternFieldModel();
|
2001-01-24 14:00:58 +00:00
|
|
|
UnoControlPatternFieldModel( const UnoControlPatternFieldModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlPatternFieldModel( *this ); }
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
2001-01-24 14:00:58 +00:00
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlPatternFieldModel, UnoControlModel, szServiceName2_UnoControlPatternFieldModel )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoPatternFieldControl
|
|
|
|
// ----------------------------------------------------
|
2002-09-05 06:37:05 +00:00
|
|
|
class UnoPatternFieldControl : public UnoSpinFieldControl,
|
2000-09-18 16:07:07 +00:00
|
|
|
public ::com::sun::star::awt::XPatternField
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoPatternFieldControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
2002-09-05 06:37:05 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
|
2000-09-18 16:07:07 +00:00
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XPatternField
|
|
|
|
void SAL_CALL setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL getMasks( ::rtl::OUString& EditMask, ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setString( const ::rtl::OUString& Str ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::rtl::OUString SAL_CALL getString( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoPatternFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlPatternField )
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2001-04-26 08:09:16 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlProgressBarModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlProgressBarModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlProgressBarModel();
|
|
|
|
UnoControlProgressBarModel( const UnoControlProgressBarModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlProgressBarModel( *this ); }
|
|
|
|
|
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-04-26 08:09:16 +00:00
|
|
|
// XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlProgressBarModel, UnoControlModel, szServiceName2_UnoControlProgressBarModel )
|
2001-04-26 08:09:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoProgressBarControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoProgressBarControl : public UnoControlBase,
|
|
|
|
public ::com::sun::star::awt::XProgressBar
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoProgressBarControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
|
|
|
|
::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
|
2001-09-28 08:52:24 +00:00
|
|
|
void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
|
|
|
|
void SAL_CALL release() throw() { OWeakAggObject::release(); }
|
2001-04-26 08:09:16 +00:00
|
|
|
|
|
|
|
// ::com::sun::star::lang::XTypeProvider
|
|
|
|
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::awt::XProgressBar
|
|
|
|
void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
|
|
|
|
sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoProgressBarControl, UnoControlBase, szServiceName2_UnoControlProgressBar )
|
2001-04-26 08:09:16 +00:00
|
|
|
};
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
2001-05-04 08:04:05 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoControlFixedLineModel
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoControlFixedLineModel : public UnoControlModel
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
|
|
|
|
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
|
|
|
|
|
|
|
|
public:
|
|
|
|
UnoControlFixedLineModel();
|
|
|
|
UnoControlFixedLineModel( const UnoControlFixedLineModel& rModel ) : UnoControlModel( rModel ) {;}
|
|
|
|
|
|
|
|
UnoControlModel* Clone() const { return new UnoControlFixedLineModel( *this ); }
|
|
|
|
|
|
|
|
// ::com::sun::star::beans::XMultiPropertySet
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-11 06:34:54 +00:00
|
|
|
// ::com::sun::star::io::XPersistObject
|
|
|
|
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
2001-05-04 08:04:05 +00:00
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedLineModel, UnoControlModel, szServiceName2_UnoControlFixedLineModel )
|
2001-05-04 08:04:05 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// class UnoFixedLineControl
|
|
|
|
// ----------------------------------------------------
|
|
|
|
class UnoFixedLineControl : public UnoControlBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
UnoFixedLineControl();
|
|
|
|
::rtl::OUString GetComponentServiceName();
|
|
|
|
|
|
|
|
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// ::com::sun::star::lang::XServiceInfo
|
2003-03-27 16:05:12 +00:00
|
|
|
DECLIMPL_SERVICEINFO_DERIVED( UnoFixedLineControl, UnoControlBase, szServiceName2_UnoControlFixedLine )
|
2001-05-04 08:04:05 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
#endif // _TOOLKIT_HELPER_UNOCONTROLS_HXX_
|
|
|
|
|