1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef _SVT_UNOIFACE_HXX 29*cdf0e10cSrcweir #define _SVT_UNOIFACE_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <toolkit/awt/vclxwindow.hxx> 32*cdf0e10cSrcweir #include <toolkit/awt/vclxwindows.hxx> 33*cdf0e10cSrcweir #include <toolkit/helper/listenermultiplexer.hxx> 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx> 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir #include <com/sun/star/awt/XTextArea.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/awt/XTextComponent.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/awt/XTextLayoutConstrains.hpp> 40*cdf0e10cSrcweir #include <svtools/svmedit.hxx> 41*cdf0e10cSrcweir #include <svtools/fmtfield.hxx> 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir #include <comphelper/uno3.hxx> 45*cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx> 46*cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> 47*cdf0e10cSrcweir #include <com/sun/star/awt/XItemEventBroadcaster.hpp> 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir namespace com { namespace sun { namespace star { namespace util { 51*cdf0e10cSrcweir class XNumberFormatsSupplier; 52*cdf0e10cSrcweir } } } } 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir class SvNumberFormatsSupplierObj; 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir // ---------------------------------------------------- 57*cdf0e10cSrcweir // class VCLXMultiLineEdit 58*cdf0e10cSrcweir // ---------------------------------------------------- 59*cdf0e10cSrcweir class VCLXMultiLineEdit : public ::com::sun::star::awt::XTextComponent, 60*cdf0e10cSrcweir public ::com::sun::star::awt::XTextArea, 61*cdf0e10cSrcweir public ::com::sun::star::awt::XTextLayoutConstrains, 62*cdf0e10cSrcweir public VCLXWindow 63*cdf0e10cSrcweir { 64*cdf0e10cSrcweir private: 65*cdf0e10cSrcweir TextListenerMultiplexer maTextListeners; 66*cdf0e10cSrcweir LineEnd meLineEndType; 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir protected: 69*cdf0e10cSrcweir void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ); 70*cdf0e10cSrcweir 71*cdf0e10cSrcweir public: 72*cdf0e10cSrcweir VCLXMultiLineEdit(); 73*cdf0e10cSrcweir ~VCLXMultiLineEdit(); 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir // ::com::sun::star::uno::XInterface 76*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); 77*cdf0e10cSrcweir void SAL_CALL acquire() throw() { VCLXWindow::acquire(); } 78*cdf0e10cSrcweir void SAL_CALL release() throw() { VCLXWindow::release(); } 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir // ::com::sun::star::lang::XTypeProvider 81*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); 82*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir // ::com::sun::star::awt::XTextComponent 85*cdf0e10cSrcweir void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException); 86*cdf0e10cSrcweir void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException); 87*cdf0e10cSrcweir void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException); 88*cdf0e10cSrcweir void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException); 89*cdf0e10cSrcweir ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException); 90*cdf0e10cSrcweir ::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException); 91*cdf0e10cSrcweir void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException); 92*cdf0e10cSrcweir ::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException); 93*cdf0e10cSrcweir sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException); 94*cdf0e10cSrcweir void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException); 95*cdf0e10cSrcweir void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException); 96*cdf0e10cSrcweir sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException); 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir //XTextArea 99*cdf0e10cSrcweir ::rtl::OUString SAL_CALL getTextLines( ) throw(::com::sun::star::uno::RuntimeException); 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir // ::com::sun::star::awt::XLayoutConstrains 102*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException); 103*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException); 104*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException); 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir // ::com::sun::star::awt::XTextLayoutConstrains 107*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException); 108*cdf0e10cSrcweir void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException); 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir // ::com::sun::star::awt::XVclWindowPeer 111*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 112*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir // ::com::sun::star::awt::XWindow 115*cdf0e10cSrcweir void SAL_CALL setFocus( ) throw(::com::sun::star::uno::RuntimeException); 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 118*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 119*cdf0e10cSrcweir }; 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir // ---------------------------------------------------- 123*cdf0e10cSrcweir // class VCLXFileControl 124*cdf0e10cSrcweir // ---------------------------------------------------- 125*cdf0e10cSrcweir class VCLXFileControl : ::com::sun::star::awt::XTextComponent, public ::com::sun::star::awt::XTextLayoutConstrains, public VCLXWindow 126*cdf0e10cSrcweir { 127*cdf0e10cSrcweir protected: 128*cdf0e10cSrcweir DECL_LINK( ModifyHdl, Edit* ); 129*cdf0e10cSrcweir TextListenerMultiplexer maTextListeners; 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir public: 132*cdf0e10cSrcweir VCLXFileControl(); 133*cdf0e10cSrcweir ~VCLXFileControl(); 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir void SetWindow( Window* pWindow ); 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir // ::com::sun::star::uno::XInterface 138*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); 139*cdf0e10cSrcweir void SAL_CALL acquire() throw() { VCLXWindow::acquire(); } 140*cdf0e10cSrcweir void SAL_CALL release() throw() { VCLXWindow::release(); } 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir // ::com::sun::star::lang::XTypeProvider 143*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); 144*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); 145*cdf0e10cSrcweir 146*cdf0e10cSrcweir // ::com::sun::star::awt::XTextComponent 147*cdf0e10cSrcweir void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException); 148*cdf0e10cSrcweir void SAL_CALL removeTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException); 149*cdf0e10cSrcweir void SAL_CALL setText( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException); 150*cdf0e10cSrcweir void SAL_CALL insertText( const ::com::sun::star::awt::Selection& Sel, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException); 151*cdf0e10cSrcweir ::rtl::OUString SAL_CALL getText( ) throw(::com::sun::star::uno::RuntimeException); 152*cdf0e10cSrcweir ::rtl::OUString SAL_CALL getSelectedText( ) throw(::com::sun::star::uno::RuntimeException); 153*cdf0e10cSrcweir void SAL_CALL setSelection( const ::com::sun::star::awt::Selection& aSelection ) throw(::com::sun::star::uno::RuntimeException); 154*cdf0e10cSrcweir ::com::sun::star::awt::Selection SAL_CALL getSelection( ) throw(::com::sun::star::uno::RuntimeException); 155*cdf0e10cSrcweir sal_Bool SAL_CALL isEditable( ) throw(::com::sun::star::uno::RuntimeException); 156*cdf0e10cSrcweir void SAL_CALL setEditable( sal_Bool bEditable ) throw(::com::sun::star::uno::RuntimeException); 157*cdf0e10cSrcweir void SAL_CALL setMaxTextLen( sal_Int16 nLen ) throw(::com::sun::star::uno::RuntimeException); 158*cdf0e10cSrcweir sal_Int16 SAL_CALL getMaxTextLen( ) throw(::com::sun::star::uno::RuntimeException); 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir // ::com::sun::star::awt::XLayoutConstrains 161*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getMinimumSize( ) throw(::com::sun::star::uno::RuntimeException); 162*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getPreferredSize( ) throw(::com::sun::star::uno::RuntimeException); 163*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL calcAdjustedSize( const ::com::sun::star::awt::Size& aNewSize ) throw(::com::sun::star::uno::RuntimeException); 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir // ::com::sun::star::awt::XTextLayoutConstrains 166*cdf0e10cSrcweir ::com::sun::star::awt::Size SAL_CALL getMinimumSize( sal_Int16 nCols, sal_Int16 nLines ) throw(::com::sun::star::uno::RuntimeException); 167*cdf0e10cSrcweir void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException); 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value) throw(::com::sun::star::uno::RuntimeException); 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 172*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 173*cdf0e10cSrcweir }; 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir // ---------------------------------------------------- 176*cdf0e10cSrcweir // class SVTXFormattedField 177*cdf0e10cSrcweir // ---------------------------------------------------- 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir class SVTXFormattedField : public VCLXSpinField 180*cdf0e10cSrcweir { 181*cdf0e10cSrcweir protected: 182*cdf0e10cSrcweir SvNumberFormatsSupplierObj* m_pCurrentSupplier; 183*cdf0e10cSrcweir sal_Bool bIsStandardSupplier; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir sal_Int32 nKeyToSetDelayed; 186*cdf0e10cSrcweir 187*cdf0e10cSrcweir FormattedField* GetFormattedField() const { return (FormattedField*)GetWindow(); } 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir public: 190*cdf0e10cSrcweir SVTXFormattedField(); 191*cdf0e10cSrcweir ~SVTXFormattedField(); 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir // ::com::sun::star::awt::XVclWindowPeer 194*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 195*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir protected: 198*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const; 199*cdf0e10cSrcweir void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier); 200*cdf0e10cSrcweir sal_Int32 getFormatKey(void) const; 201*cdf0e10cSrcweir void setFormatKey(sal_Int32 nKey); 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir void SetValue(const ::com::sun::star::uno::Any& rValue); 204*cdf0e10cSrcweir ::com::sun::star::uno::Any GetValue(); 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir void SetTreatAsNumber(sal_Bool bSet); 207*cdf0e10cSrcweir sal_Bool GetTreatAsNumber(); 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir void SetDefaultValue(const ::com::sun::star::uno::Any& rValue); 210*cdf0e10cSrcweir ::com::sun::star::uno::Any GetDefaultValue(); 211*cdf0e10cSrcweir 212*cdf0e10cSrcweir void SetMinValue(const ::com::sun::star::uno::Any& rValue); 213*cdf0e10cSrcweir ::com::sun::star::uno::Any GetMinValue(); 214*cdf0e10cSrcweir 215*cdf0e10cSrcweir void SetMaxValue(const ::com::sun::star::uno::Any& rValue); 216*cdf0e10cSrcweir ::com::sun::star::uno::Any GetMaxValue(); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir void NotifyTextListeners(); 219*cdf0e10cSrcweir ::com::sun::star::uno::Any convertEffectiveValue(const ::com::sun::star::uno::Any& rValue); 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir virtual void SetWindow(Window* _pWindow); 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 224*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 225*cdf0e10cSrcweir }; 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir // ---------------------------------------------------- 230*cdf0e10cSrcweir // class SVTXRoadmap 231*cdf0e10cSrcweir // ---------------------------------------------------- 232*cdf0e10cSrcweir 233*cdf0e10cSrcweir namespace svt 234*cdf0e10cSrcweir { 235*cdf0e10cSrcweir class ORoadmap; 236*cdf0e10cSrcweir } 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir struct RMItemData 239*cdf0e10cSrcweir { 240*cdf0e10cSrcweir sal_Bool b_Enabled; 241*cdf0e10cSrcweir sal_Int32 n_ID; 242*cdf0e10cSrcweir ::rtl::OUString Label; 243*cdf0e10cSrcweir }; 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir typedef ::cppu::ImplInheritanceHelper3 < VCLXGraphicControl 246*cdf0e10cSrcweir , ::com::sun::star::container::XContainerListener 247*cdf0e10cSrcweir , ::com::sun::star::beans::XPropertyChangeListener 248*cdf0e10cSrcweir , ::com::sun::star::awt::XItemEventBroadcaster 249*cdf0e10cSrcweir > SVTXRoadmap_Base; 250*cdf0e10cSrcweir class SVTXRoadmap : public SVTXRoadmap_Base 251*cdf0e10cSrcweir 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir { 254*cdf0e10cSrcweir private: 255*cdf0e10cSrcweir ItemListenerMultiplexer maItemListeners; 256*cdf0e10cSrcweir 257*cdf0e10cSrcweir RMItemData CurRMItemData; 258*cdf0e10cSrcweir RMItemData GetRMItemData( const ::com::sun::star::container::ContainerEvent& _rEvent ); 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir protected: 261*cdf0e10cSrcweir ::svt::ORoadmap* GetRoadmap() const { return (::svt::ORoadmap*)GetWindow(); } 262*cdf0e10cSrcweir void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ); 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir ~SVTXRoadmap(); 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir public: 267*cdf0e10cSrcweir SVTXRoadmap(); 268*cdf0e10cSrcweir 269*cdf0e10cSrcweir void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { VCLXWindow::disposing( Source ); } 270*cdf0e10cSrcweir 271*cdf0e10cSrcweir // ::com::sun::star::awt::XVclWindowPeer 272*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 273*cdf0e10cSrcweir 274*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 275*cdf0e10cSrcweir 276*cdf0e10cSrcweir // XContainerListener 277*cdf0e10cSrcweir void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException); 278*cdf0e10cSrcweir void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException); 279*cdf0e10cSrcweir void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException); 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir // XItemEventBroadcaster 282*cdf0e10cSrcweir virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException); 283*cdf0e10cSrcweir virtual void SAL_CALL removeItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException); 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir // XPropertyChangeListener 286*cdf0e10cSrcweir virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException); 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir protected: 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir // VCLXGraphicControl overridables 291*cdf0e10cSrcweir virtual void ImplSetNewImage(); 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 294*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 295*cdf0e10cSrcweir }; 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir 298*cdf0e10cSrcweir 299*cdf0e10cSrcweir // ---------------------------------------------------- 300*cdf0e10cSrcweir // class SVTXNumericField 301*cdf0e10cSrcweir // ---------------------------------------------------- 302*cdf0e10cSrcweir class SVTXNumericField : public ::com::sun::star::awt::XNumericField, public SVTXFormattedField 303*cdf0e10cSrcweir { 304*cdf0e10cSrcweir public: 305*cdf0e10cSrcweir SVTXNumericField(); 306*cdf0e10cSrcweir ~SVTXNumericField(); 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir // ::com::sun::star::uno::XInterface 309*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); 310*cdf0e10cSrcweir void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); } 311*cdf0e10cSrcweir void SAL_CALL release() throw() { SVTXFormattedField::release(); } 312*cdf0e10cSrcweir 313*cdf0e10cSrcweir // ::com::sun::star::lang::XTypeProvider 314*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); 315*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); 316*cdf0e10cSrcweir 317*cdf0e10cSrcweir // ::com::sun::star::awt::XNumericField 318*cdf0e10cSrcweir void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException); 319*cdf0e10cSrcweir double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException); 320*cdf0e10cSrcweir void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException); 321*cdf0e10cSrcweir double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException); 322*cdf0e10cSrcweir void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException); 323*cdf0e10cSrcweir double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException); 324*cdf0e10cSrcweir void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException); 325*cdf0e10cSrcweir double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException); 326*cdf0e10cSrcweir void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException); 327*cdf0e10cSrcweir double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException); 328*cdf0e10cSrcweir void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException); 329*cdf0e10cSrcweir double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException); 330*cdf0e10cSrcweir void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException); 331*cdf0e10cSrcweir sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException); 332*cdf0e10cSrcweir void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException); 333*cdf0e10cSrcweir sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException); 334*cdf0e10cSrcweir 335*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 336*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 337*cdf0e10cSrcweir }; 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir // ---------------------------------------------------- 340*cdf0e10cSrcweir // class VCLXCurrencyField 341*cdf0e10cSrcweir // ---------------------------------------------------- 342*cdf0e10cSrcweir class SVTXCurrencyField : public ::com::sun::star::awt::XCurrencyField, public SVTXFormattedField 343*cdf0e10cSrcweir { 344*cdf0e10cSrcweir public: 345*cdf0e10cSrcweir SVTXCurrencyField(); 346*cdf0e10cSrcweir ~SVTXCurrencyField(); 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir // ::com::sun::star::uno::XInterface 349*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); 350*cdf0e10cSrcweir void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); } 351*cdf0e10cSrcweir void SAL_CALL release() throw() { SVTXFormattedField::release(); } 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir // ::com::sun::star::lang::XTypeProvider 354*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); 355*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir // ::com::sun::star::awt::XVclWindowPeer 358*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 359*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir // ::com::sun::star::awt::XCurrencyField 362*cdf0e10cSrcweir void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException); 363*cdf0e10cSrcweir double SAL_CALL getValue( ) throw(::com::sun::star::uno::RuntimeException); 364*cdf0e10cSrcweir void SAL_CALL setMin( double Value ) throw(::com::sun::star::uno::RuntimeException); 365*cdf0e10cSrcweir double SAL_CALL getMin( ) throw(::com::sun::star::uno::RuntimeException); 366*cdf0e10cSrcweir void SAL_CALL setMax( double Value ) throw(::com::sun::star::uno::RuntimeException); 367*cdf0e10cSrcweir double SAL_CALL getMax( ) throw(::com::sun::star::uno::RuntimeException); 368*cdf0e10cSrcweir void SAL_CALL setFirst( double Value ) throw(::com::sun::star::uno::RuntimeException); 369*cdf0e10cSrcweir double SAL_CALL getFirst( ) throw(::com::sun::star::uno::RuntimeException); 370*cdf0e10cSrcweir void SAL_CALL setLast( double Value ) throw(::com::sun::star::uno::RuntimeException); 371*cdf0e10cSrcweir double SAL_CALL getLast( ) throw(::com::sun::star::uno::RuntimeException); 372*cdf0e10cSrcweir void SAL_CALL setSpinSize( double Value ) throw(::com::sun::star::uno::RuntimeException); 373*cdf0e10cSrcweir double SAL_CALL getSpinSize( ) throw(::com::sun::star::uno::RuntimeException); 374*cdf0e10cSrcweir void SAL_CALL setDecimalDigits( sal_Int16 nDigits ) throw(::com::sun::star::uno::RuntimeException); 375*cdf0e10cSrcweir sal_Int16 SAL_CALL getDecimalDigits( ) throw(::com::sun::star::uno::RuntimeException); 376*cdf0e10cSrcweir void SAL_CALL setStrictFormat( sal_Bool bStrict ) throw(::com::sun::star::uno::RuntimeException); 377*cdf0e10cSrcweir sal_Bool SAL_CALL isStrictFormat( ) throw(::com::sun::star::uno::RuntimeException); 378*cdf0e10cSrcweir 379*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 380*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 381*cdf0e10cSrcweir }; 382*cdf0e10cSrcweir 383*cdf0e10cSrcweir // ---------------------------------------------------- 384*cdf0e10cSrcweir // class VCLXProgressBar 385*cdf0e10cSrcweir // ---------------------------------------------------- 386*cdf0e10cSrcweir class VCLXProgressBar : public ::com::sun::star::awt::XProgressBar, 387*cdf0e10cSrcweir public VCLXWindow 388*cdf0e10cSrcweir { 389*cdf0e10cSrcweir private: 390*cdf0e10cSrcweir sal_Int32 m_nValue; 391*cdf0e10cSrcweir sal_Int32 m_nValueMin; 392*cdf0e10cSrcweir sal_Int32 m_nValueMax; 393*cdf0e10cSrcweir 394*cdf0e10cSrcweir protected: 395*cdf0e10cSrcweir void ImplUpdateValue(); 396*cdf0e10cSrcweir 397*cdf0e10cSrcweir public: 398*cdf0e10cSrcweir VCLXProgressBar(); 399*cdf0e10cSrcweir ~VCLXProgressBar(); 400*cdf0e10cSrcweir 401*cdf0e10cSrcweir // ::com::sun::star::uno::XInterface 402*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); 403*cdf0e10cSrcweir void SAL_CALL acquire() throw() { VCLXWindow::acquire(); } 404*cdf0e10cSrcweir void SAL_CALL release() throw() { VCLXWindow::release(); } 405*cdf0e10cSrcweir 406*cdf0e10cSrcweir // ::com::sun::star::lang::XTypeProvider 407*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException); 408*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException); 409*cdf0e10cSrcweir 410*cdf0e10cSrcweir // ::com::sun::star::awt::XProgressBar 411*cdf0e10cSrcweir void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException); 412*cdf0e10cSrcweir void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException); 413*cdf0e10cSrcweir void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException); 414*cdf0e10cSrcweir void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException ); 415*cdf0e10cSrcweir sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException); 416*cdf0e10cSrcweir 417*cdf0e10cSrcweir // ::com::sun::star::awt::VclWindowPeer 418*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 419*cdf0e10cSrcweir ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 420*cdf0e10cSrcweir 421*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 422*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 423*cdf0e10cSrcweir }; 424*cdf0e10cSrcweir 425*cdf0e10cSrcweir // ---------------------------------------------------- 426*cdf0e10cSrcweir // class SVTXDateField 427*cdf0e10cSrcweir // ---------------------------------------------------- 428*cdf0e10cSrcweir class SVTXDateField : public VCLXDateField 429*cdf0e10cSrcweir { 430*cdf0e10cSrcweir public: 431*cdf0e10cSrcweir SVTXDateField(); 432*cdf0e10cSrcweir ~SVTXDateField(); 433*cdf0e10cSrcweir 434*cdf0e10cSrcweir // ::com::sun::star::awt::VclWindowPeer 435*cdf0e10cSrcweir void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 436*cdf0e10cSrcweir 437*cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds ); 438*cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 439*cdf0e10cSrcweir }; 440*cdf0e10cSrcweir 441*cdf0e10cSrcweir #endif // _SVT_UNOIFACE_HXX 442