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 _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX 29*cdf0e10cSrcweir #define _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 32*cdf0e10cSrcweir // includes of other projects 33*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #include <com/sun/star/awt/XFileDialog.hpp> 36*cdf0e10cSrcweir #include <com/sun/star/awt/XTextComponent.hpp> 37*cdf0e10cSrcweir #include <com/sun/star/awt/XListBox.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/awt/XProgressMonitor.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/awt/TextAlign.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/awt/XScrollBar.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/awt/XVclContainerPeer.hpp> 42*cdf0e10cSrcweir #include <com/sun/star/awt/XTabControllerModel.hpp> 43*cdf0e10cSrcweir #include <com/sun/star/awt/XMessageBox.hpp> 44*cdf0e10cSrcweir #include <com/sun/star/awt/XTextEditField.hpp> 45*cdf0e10cSrcweir #include <com/sun/star/awt/Style.hpp> 46*cdf0e10cSrcweir #include <com/sun/star/awt/XTimeField.hpp> 47*cdf0e10cSrcweir #include <com/sun/star/awt/XVclWindowPeer.hpp> 48*cdf0e10cSrcweir #include <com/sun/star/awt/XControlModel.hpp> 49*cdf0e10cSrcweir #include <com/sun/star/awt/XSpinField.hpp> 50*cdf0e10cSrcweir #include <com/sun/star/awt/XUnoControlContainer.hpp> 51*cdf0e10cSrcweir #include <com/sun/star/awt/XTextLayoutConstrains.hpp> 52*cdf0e10cSrcweir #include <com/sun/star/awt/XNumericField.hpp> 53*cdf0e10cSrcweir #include <com/sun/star/awt/XButton.hpp> 54*cdf0e10cSrcweir #include <com/sun/star/awt/XTextArea.hpp> 55*cdf0e10cSrcweir #include <com/sun/star/awt/XImageButton.hpp> 56*cdf0e10cSrcweir #include <com/sun/star/awt/XFixedText.hpp> 57*cdf0e10cSrcweir #include <com/sun/star/awt/XControlContainer.hpp> 58*cdf0e10cSrcweir #include <com/sun/star/awt/XDialog.hpp> 59*cdf0e10cSrcweir #include <com/sun/star/awt/ScrollBarOrientation.hpp> 60*cdf0e10cSrcweir #include <com/sun/star/awt/XRadioButton.hpp> 61*cdf0e10cSrcweir #include <com/sun/star/awt/XCurrencyField.hpp> 62*cdf0e10cSrcweir #include <com/sun/star/awt/XPatternField.hpp> 63*cdf0e10cSrcweir #include <com/sun/star/awt/VclWindowPeerAttribute.hpp> 64*cdf0e10cSrcweir #include <com/sun/star/awt/XTabController.hpp> 65*cdf0e10cSrcweir #include <com/sun/star/awt/XVclContainer.hpp> 66*cdf0e10cSrcweir #include <com/sun/star/awt/XDateField.hpp> 67*cdf0e10cSrcweir #include <com/sun/star/awt/XComboBox.hpp> 68*cdf0e10cSrcweir #include <com/sun/star/awt/XControl.hpp> 69*cdf0e10cSrcweir #include <com/sun/star/awt/XCheckBox.hpp> 70*cdf0e10cSrcweir #include <com/sun/star/awt/MessageBoxCommand.hpp> 71*cdf0e10cSrcweir #include <com/sun/star/awt/XLayoutConstrains.hpp> 72*cdf0e10cSrcweir #include <com/sun/star/awt/XProgressBar.hpp> 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 75*cdf0e10cSrcweir // includes of my own project 76*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 77*cdf0e10cSrcweir #include "basecontainercontrol.hxx" 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 80*cdf0e10cSrcweir // namespace 81*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir namespace unocontrols{ 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir #define UNO3_ANY ::com::sun::star::uno::Any 86*cdf0e10cSrcweir #define UNO3_OUSTRING ::rtl::OUString 87*cdf0e10cSrcweir #define UNO3_RECTANGLE ::com::sun::star::awt::Rectangle 88*cdf0e10cSrcweir #define UNO3_REFERENCE ::com::sun::star::uno::Reference 89*cdf0e10cSrcweir #define UNO3_RUNTIMEEXCEPTION ::com::sun::star::uno::RuntimeException 90*cdf0e10cSrcweir #define UNO3_SEQUENCE ::com::sun::star::uno::Sequence 91*cdf0e10cSrcweir #define UNO3_SIZE ::com::sun::star::awt::Size 92*cdf0e10cSrcweir #define UNO3_TYPE ::com::sun::star::uno::Type 93*cdf0e10cSrcweir #define UNO3_XACTIONLISTENER ::com::sun::star::awt::XActionListener 94*cdf0e10cSrcweir #define UNO3_XBUTTON ::com::sun::star::awt::XButton 95*cdf0e10cSrcweir #define UNO3_XCONTROLMODEL ::com::sun::star::awt::XControlModel 96*cdf0e10cSrcweir #define UNO3_XFIXEDTEXT ::com::sun::star::awt::XFixedText 97*cdf0e10cSrcweir #define UNO3_XGRAPHICS ::com::sun::star::awt::XGraphics 98*cdf0e10cSrcweir #define UNO3_XLAYOUTCONSTRAINS ::com::sun::star::awt::XLayoutConstrains 99*cdf0e10cSrcweir #define UNO3_XMULTISERVICEFACTORY ::com::sun::star::lang::XMultiServiceFactory 100*cdf0e10cSrcweir #define UNO3_XPROGRESSBAR ::com::sun::star::awt::XProgressBar 101*cdf0e10cSrcweir #define UNO3_XPROGRESSMONITOR ::com::sun::star::awt::XProgressMonitor 102*cdf0e10cSrcweir #define UNO3_XTOOLKIT ::com::sun::star::awt::XToolkit 103*cdf0e10cSrcweir #define UNO3_XWINDOWPEER ::com::sun::star::awt::XWindowPeer 104*cdf0e10cSrcweir 105*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 106*cdf0e10cSrcweir // defines 107*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir #define SERVICENAME_PROGRESSMONITOR "com.sun.star.awt.XProgressMonitor" 110*cdf0e10cSrcweir #define IMPLEMENTATIONNAME_PROGRESSMONITOR "stardiv.UnoControls.ProgressMonitor" 111*cdf0e10cSrcweir #define FREEBORDER 10 // border around and between the controls 112*cdf0e10cSrcweir #define WIDTH_RELATION 4 // reserve 1/4 for button width and rest for progressbar width 113*cdf0e10cSrcweir #define HEIGHT_RELATION 5 // reserve 1/5 for button and progressbar heigth and rest for text height 114*cdf0e10cSrcweir #define FIXEDTEXT_SERVICENAME "com.sun.star.awt.UnoControlFixedText" 115*cdf0e10cSrcweir #define BUTTON_SERVICENAME "com.sun.star.awt.UnoControlButton" 116*cdf0e10cSrcweir #define FIXEDTEXT_MODELNAME "com.sun.star.awt.UnoControlFixedTextModel" 117*cdf0e10cSrcweir #define BUTTON_MODELNAME "com.sun.star.awt.UnoControlButtonModel" 118*cdf0e10cSrcweir #define CONTROLNAME_TEXT "Text" // identifier the control in container 119*cdf0e10cSrcweir #define CONTROLNAME_BUTTON "Button" // -||- 120*cdf0e10cSrcweir #define CONTROLNAME_PROGRESSBAR "ProgressBar" // -||- 121*cdf0e10cSrcweir #define DEFAULT_BUTTONLABEL "Abbrechen" 122*cdf0e10cSrcweir #define DEFAULT_TOPIC "\0" 123*cdf0e10cSrcweir #define DEFAULT_TEXT "\0" 124*cdf0e10cSrcweir #define BACKGROUNDCOLOR TRGB_COLORDATA( 0x00, 0xC0, 0xC0, 0xC0 ) // lighgray 125*cdf0e10cSrcweir #define LINECOLOR_BRIGHT TRGB_COLORDATA( 0x00, 0xFF, 0xFF, 0xFF ) // white 126*cdf0e10cSrcweir #define LINECOLOR_SHADOW TRGB_COLORDATA( 0x00, 0x00, 0x00, 0x00 ) // black 127*cdf0e10cSrcweir #define HEIGHT_PROGRESSBAR 15 128*cdf0e10cSrcweir // Overwrite defines from basecontrol.hxx!!! 129*cdf0e10cSrcweir #undef DEFAULT_WIDTH 130*cdf0e10cSrcweir #undef DEFAULT_HEIGHT 131*cdf0e10cSrcweir #define DEFAULT_WIDTH 350 132*cdf0e10cSrcweir #define DEFAULT_HEIGHT 100 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 135*cdf0e10cSrcweir // structs, types 136*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir /// Item of TextList 139*cdf0e10cSrcweir struct IMPL_TextlistItem 140*cdf0e10cSrcweir { 141*cdf0e10cSrcweir UNO3_OUSTRING sTopic ; /// Left site of textline in dialog 142*cdf0e10cSrcweir UNO3_OUSTRING sText ; /// Right site of textline in dialog 143*cdf0e10cSrcweir }; 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir /// Define a list-class for struct IMPL_TextlistItem 146*cdf0e10cSrcweir class IMPL_Textlist ; 147*cdf0e10cSrcweir DECLARE_LIST( IMPL_Textlist, IMPL_TextlistItem* ) 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 150*cdf0e10cSrcweir // class declaration 151*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir class ProgressMonitor : public UNO3_XLAYOUTCONSTRAINS 154*cdf0e10cSrcweir , public UNO3_XBUTTON 155*cdf0e10cSrcweir , public UNO3_XPROGRESSMONITOR 156*cdf0e10cSrcweir , public BaseContainerControl 157*cdf0e10cSrcweir { 158*cdf0e10cSrcweir 159*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 160*cdf0e10cSrcweir // public methods 161*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir public: 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir //________________________________________________________________________________________________________ 166*cdf0e10cSrcweir // construct/destruct 167*cdf0e10cSrcweir //________________________________________________________________________________________________________ 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 170*cdf0e10cSrcweir @short 171*cdf0e10cSrcweir @descr 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir @seealso 174*cdf0e10cSrcweir 175*cdf0e10cSrcweir @param 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir @return 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir @onerror 180*cdf0e10cSrcweir */ 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir ProgressMonitor( const UNO3_REFERENCE< UNO3_XMULTISERVICEFACTORY >& xFactory ); 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 185*cdf0e10cSrcweir @short 186*cdf0e10cSrcweir @descr 187*cdf0e10cSrcweir 188*cdf0e10cSrcweir @seealso 189*cdf0e10cSrcweir 190*cdf0e10cSrcweir @param 191*cdf0e10cSrcweir 192*cdf0e10cSrcweir @return 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir @onerror 195*cdf0e10cSrcweir */ 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir virtual ~ProgressMonitor(); 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir //________________________________________________________________________________________________________ 200*cdf0e10cSrcweir // XInterface 201*cdf0e10cSrcweir //________________________________________________________________________________________________________ 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 204*cdf0e10cSrcweir @short give answer, if interface is supported 205*cdf0e10cSrcweir @descr The interfaces are searched by type. 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir @seealso XInterface 208*cdf0e10cSrcweir 209*cdf0e10cSrcweir @param "rType" is the type of searched interface. 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir @return Any information about found interface 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir @onerror A RuntimeException is thrown. 214*cdf0e10cSrcweir */ 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir virtual UNO3_ANY SAL_CALL queryInterface( const UNO3_TYPE& aType ) throw( UNO3_RUNTIMEEXCEPTION ); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 219*cdf0e10cSrcweir @short increment refcount 220*cdf0e10cSrcweir @descr - 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir @seealso XInterface 223*cdf0e10cSrcweir @seealso release() 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir @param - 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir @return - 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir @onerror A RuntimeException is thrown. 230*cdf0e10cSrcweir */ 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir virtual void SAL_CALL acquire() throw(); 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 235*cdf0e10cSrcweir @short decrement refcount 236*cdf0e10cSrcweir @descr - 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir @seealso XInterface 239*cdf0e10cSrcweir @seealso acquire() 240*cdf0e10cSrcweir 241*cdf0e10cSrcweir @param - 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir @return - 244*cdf0e10cSrcweir 245*cdf0e10cSrcweir @onerror A RuntimeException is thrown. 246*cdf0e10cSrcweir */ 247*cdf0e10cSrcweir 248*cdf0e10cSrcweir virtual void SAL_CALL release() throw(); 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir //________________________________________________________________________________________________________ 251*cdf0e10cSrcweir // XTypeProvider 252*cdf0e10cSrcweir //________________________________________________________________________________________________________ 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 255*cdf0e10cSrcweir @short get information about supported interfaces 256*cdf0e10cSrcweir @descr - 257*cdf0e10cSrcweir 258*cdf0e10cSrcweir @seealso XTypeProvider 259*cdf0e10cSrcweir 260*cdf0e10cSrcweir @param - 261*cdf0e10cSrcweir 262*cdf0e10cSrcweir @return Sequence of types of all supported interfaces 263*cdf0e10cSrcweir 264*cdf0e10cSrcweir @onerror A RuntimeException is thrown. 265*cdf0e10cSrcweir */ 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir virtual UNO3_SEQUENCE< UNO3_TYPE > SAL_CALL getTypes() throw( UNO3_RUNTIMEEXCEPTION ); 268*cdf0e10cSrcweir 269*cdf0e10cSrcweir //________________________________________________________________________________________________________ 270*cdf0e10cSrcweir // XAggregation 271*cdf0e10cSrcweir //________________________________________________________________________________________________________ 272*cdf0e10cSrcweir 273*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 274*cdf0e10cSrcweir @short - 275*cdf0e10cSrcweir @descr - 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir @seealso - 278*cdf0e10cSrcweir 279*cdf0e10cSrcweir @param - 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir @return - 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir @onerror - 284*cdf0e10cSrcweir */ 285*cdf0e10cSrcweir 286*cdf0e10cSrcweir virtual UNO3_ANY SAL_CALL queryAggregation( const UNO3_TYPE& aType ) throw( UNO3_RUNTIMEEXCEPTION ); 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir //________________________________________________________________________________________________________ 289*cdf0e10cSrcweir // XProgressMonitor 290*cdf0e10cSrcweir //________________________________________________________________________________________________________ 291*cdf0e10cSrcweir 292*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 293*cdf0e10cSrcweir @short add topic to dialog 294*cdf0e10cSrcweir @descr Add a topic with a text in right textlist (used for FixedText-member).<BR> 295*cdf0e10cSrcweir ( "beforeProgress" fix the right list ). The dialog metric is recalculated. 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir @seealso removeText(), updateText() 298*cdf0e10cSrcweir 299*cdf0e10cSrcweir @param sTopic Name of topic<BR> 300*cdf0e10cSrcweir [sTopic != "" && sTopic != NULL] 301*cdf0e10cSrcweir @param sText Value of topic<BR> 302*cdf0e10cSrcweir [sText != "" && sText != NULL] 303*cdf0e10cSrcweir @param bbeforeProgress Position of topic<BR> 304*cdf0e10cSrcweir [True => before progressbar / False => below progressbar] 305*cdf0e10cSrcweir 306*cdf0e10cSrcweir @return - 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir @onerror DEBUG = Assertion<BR> 309*cdf0e10cSrcweir RELEASE = nothing 310*cdf0e10cSrcweir */ 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir virtual void SAL_CALL addText( const UNO3_OUSTRING& sTopic , 313*cdf0e10cSrcweir const UNO3_OUSTRING& sText , 314*cdf0e10cSrcweir sal_Bool bbeforeProgress ) throw( UNO3_RUNTIMEEXCEPTION ); 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 317*cdf0e10cSrcweir @short - 318*cdf0e10cSrcweir @descr - 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir @seealso - 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir @param - 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir @return - 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir @onerror - 327*cdf0e10cSrcweir */ 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir virtual void SAL_CALL removeText( const UNO3_OUSTRING& sTopic , 330*cdf0e10cSrcweir sal_Bool bbeforeProgress ) throw( UNO3_RUNTIMEEXCEPTION ); 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 333*cdf0e10cSrcweir @short - 334*cdf0e10cSrcweir @descr - 335*cdf0e10cSrcweir 336*cdf0e10cSrcweir @seealso - 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir @param - 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir @return - 341*cdf0e10cSrcweir 342*cdf0e10cSrcweir @onerror - 343*cdf0e10cSrcweir */ 344*cdf0e10cSrcweir 345*cdf0e10cSrcweir virtual void SAL_CALL updateText( const UNO3_OUSTRING& sTopic , 346*cdf0e10cSrcweir const UNO3_OUSTRING& sText , 347*cdf0e10cSrcweir sal_Bool bbeforeProgress ) throw( UNO3_RUNTIMEEXCEPTION ); 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir //________________________________________________________________________________________________________ 350*cdf0e10cSrcweir // XProgressBar 351*cdf0e10cSrcweir //________________________________________________________________________________________________________ 352*cdf0e10cSrcweir 353*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 354*cdf0e10cSrcweir @short - 355*cdf0e10cSrcweir @descr - 356*cdf0e10cSrcweir 357*cdf0e10cSrcweir @seealso - 358*cdf0e10cSrcweir 359*cdf0e10cSrcweir @param - 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir @return - 362*cdf0e10cSrcweir 363*cdf0e10cSrcweir @onerror - 364*cdf0e10cSrcweir */ 365*cdf0e10cSrcweir 366*cdf0e10cSrcweir virtual void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw( UNO3_RUNTIMEEXCEPTION ); 367*cdf0e10cSrcweir 368*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 369*cdf0e10cSrcweir @short - 370*cdf0e10cSrcweir @descr - 371*cdf0e10cSrcweir 372*cdf0e10cSrcweir @seealso - 373*cdf0e10cSrcweir 374*cdf0e10cSrcweir @param - 375*cdf0e10cSrcweir 376*cdf0e10cSrcweir @return - 377*cdf0e10cSrcweir 378*cdf0e10cSrcweir @onerror - 379*cdf0e10cSrcweir */ 380*cdf0e10cSrcweir 381*cdf0e10cSrcweir virtual void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw( UNO3_RUNTIMEEXCEPTION ); 382*cdf0e10cSrcweir 383*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 384*cdf0e10cSrcweir @short - 385*cdf0e10cSrcweir @descr - 386*cdf0e10cSrcweir 387*cdf0e10cSrcweir @seealso - 388*cdf0e10cSrcweir 389*cdf0e10cSrcweir @param - 390*cdf0e10cSrcweir 391*cdf0e10cSrcweir @return - 392*cdf0e10cSrcweir 393*cdf0e10cSrcweir @onerror - 394*cdf0e10cSrcweir */ 395*cdf0e10cSrcweir 396*cdf0e10cSrcweir virtual void SAL_CALL setValue( sal_Int32 nValue ) throw( UNO3_RUNTIMEEXCEPTION ); 397*cdf0e10cSrcweir 398*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 399*cdf0e10cSrcweir @short - 400*cdf0e10cSrcweir @descr - 401*cdf0e10cSrcweir 402*cdf0e10cSrcweir @seealso - 403*cdf0e10cSrcweir 404*cdf0e10cSrcweir @param - 405*cdf0e10cSrcweir 406*cdf0e10cSrcweir @return - 407*cdf0e10cSrcweir 408*cdf0e10cSrcweir @onerror - 409*cdf0e10cSrcweir */ 410*cdf0e10cSrcweir 411*cdf0e10cSrcweir virtual void SAL_CALL setRange( sal_Int32 nMin , 412*cdf0e10cSrcweir sal_Int32 nMax ) throw( UNO3_RUNTIMEEXCEPTION ); 413*cdf0e10cSrcweir 414*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 415*cdf0e10cSrcweir @short - 416*cdf0e10cSrcweir @descr - 417*cdf0e10cSrcweir 418*cdf0e10cSrcweir @seealso - 419*cdf0e10cSrcweir 420*cdf0e10cSrcweir @param - 421*cdf0e10cSrcweir 422*cdf0e10cSrcweir @return - 423*cdf0e10cSrcweir 424*cdf0e10cSrcweir @onerror - 425*cdf0e10cSrcweir */ 426*cdf0e10cSrcweir 427*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getValue() throw( UNO3_RUNTIMEEXCEPTION ); 428*cdf0e10cSrcweir 429*cdf0e10cSrcweir //________________________________________________________________________________________________________ 430*cdf0e10cSrcweir // XButton 431*cdf0e10cSrcweir //________________________________________________________________________________________________________ 432*cdf0e10cSrcweir 433*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 434*cdf0e10cSrcweir @short - 435*cdf0e10cSrcweir @descr - 436*cdf0e10cSrcweir 437*cdf0e10cSrcweir @seealso - 438*cdf0e10cSrcweir 439*cdf0e10cSrcweir @param - 440*cdf0e10cSrcweir 441*cdf0e10cSrcweir @return - 442*cdf0e10cSrcweir 443*cdf0e10cSrcweir @onerror - 444*cdf0e10cSrcweir */ 445*cdf0e10cSrcweir 446*cdf0e10cSrcweir virtual void SAL_CALL addActionListener( const UNO3_REFERENCE< UNO3_XACTIONLISTENER >& xListener ) throw( UNO3_RUNTIMEEXCEPTION ); 447*cdf0e10cSrcweir 448*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 449*cdf0e10cSrcweir @short - 450*cdf0e10cSrcweir @descr - 451*cdf0e10cSrcweir 452*cdf0e10cSrcweir @seealso - 453*cdf0e10cSrcweir 454*cdf0e10cSrcweir @param - 455*cdf0e10cSrcweir 456*cdf0e10cSrcweir @return - 457*cdf0e10cSrcweir 458*cdf0e10cSrcweir @onerror - 459*cdf0e10cSrcweir */ 460*cdf0e10cSrcweir 461*cdf0e10cSrcweir virtual void SAL_CALL removeActionListener( const UNO3_REFERENCE< UNO3_XACTIONLISTENER >& xListener ) throw( UNO3_RUNTIMEEXCEPTION ); 462*cdf0e10cSrcweir 463*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 464*cdf0e10cSrcweir @short - 465*cdf0e10cSrcweir @descr - 466*cdf0e10cSrcweir 467*cdf0e10cSrcweir @seealso - 468*cdf0e10cSrcweir 469*cdf0e10cSrcweir @param - 470*cdf0e10cSrcweir 471*cdf0e10cSrcweir @return - 472*cdf0e10cSrcweir 473*cdf0e10cSrcweir @onerror - 474*cdf0e10cSrcweir */ 475*cdf0e10cSrcweir 476*cdf0e10cSrcweir virtual void SAL_CALL setLabel( const UNO3_OUSTRING& sLabel ) throw( UNO3_RUNTIMEEXCEPTION ); 477*cdf0e10cSrcweir 478*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 479*cdf0e10cSrcweir @short - 480*cdf0e10cSrcweir @descr - 481*cdf0e10cSrcweir 482*cdf0e10cSrcweir @seealso - 483*cdf0e10cSrcweir 484*cdf0e10cSrcweir @param - 485*cdf0e10cSrcweir 486*cdf0e10cSrcweir @return - 487*cdf0e10cSrcweir 488*cdf0e10cSrcweir @onerror - 489*cdf0e10cSrcweir */ 490*cdf0e10cSrcweir 491*cdf0e10cSrcweir virtual void SAL_CALL setActionCommand( const UNO3_OUSTRING& sCommand ) throw( UNO3_RUNTIMEEXCEPTION ); 492*cdf0e10cSrcweir 493*cdf0e10cSrcweir //________________________________________________________________________________________________________ 494*cdf0e10cSrcweir // XLayoutConstrains 495*cdf0e10cSrcweir //________________________________________________________________________________________________________ 496*cdf0e10cSrcweir 497*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 498*cdf0e10cSrcweir @short - 499*cdf0e10cSrcweir @descr - 500*cdf0e10cSrcweir 501*cdf0e10cSrcweir @seealso - 502*cdf0e10cSrcweir 503*cdf0e10cSrcweir @param - 504*cdf0e10cSrcweir 505*cdf0e10cSrcweir @return - 506*cdf0e10cSrcweir 507*cdf0e10cSrcweir @onerror - 508*cdf0e10cSrcweir */ 509*cdf0e10cSrcweir 510*cdf0e10cSrcweir virtual UNO3_SIZE SAL_CALL getMinimumSize() throw( UNO3_RUNTIMEEXCEPTION ); 511*cdf0e10cSrcweir 512*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 513*cdf0e10cSrcweir @short - 514*cdf0e10cSrcweir @descr - 515*cdf0e10cSrcweir 516*cdf0e10cSrcweir @seealso - 517*cdf0e10cSrcweir 518*cdf0e10cSrcweir @param - 519*cdf0e10cSrcweir 520*cdf0e10cSrcweir @return - 521*cdf0e10cSrcweir 522*cdf0e10cSrcweir @onerror - 523*cdf0e10cSrcweir */ 524*cdf0e10cSrcweir 525*cdf0e10cSrcweir virtual UNO3_SIZE SAL_CALL getPreferredSize() throw( UNO3_RUNTIMEEXCEPTION ); 526*cdf0e10cSrcweir 527*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 528*cdf0e10cSrcweir @short - 529*cdf0e10cSrcweir @descr - 530*cdf0e10cSrcweir 531*cdf0e10cSrcweir @seealso - 532*cdf0e10cSrcweir 533*cdf0e10cSrcweir @param - 534*cdf0e10cSrcweir 535*cdf0e10cSrcweir @return - 536*cdf0e10cSrcweir 537*cdf0e10cSrcweir @onerror - 538*cdf0e10cSrcweir */ 539*cdf0e10cSrcweir 540*cdf0e10cSrcweir virtual UNO3_SIZE SAL_CALL calcAdjustedSize( const UNO3_SIZE& aNewSize ) throw( UNO3_RUNTIMEEXCEPTION ); 541*cdf0e10cSrcweir 542*cdf0e10cSrcweir //________________________________________________________________________________________________________ 543*cdf0e10cSrcweir // XControl 544*cdf0e10cSrcweir //________________________________________________________________________________________________________ 545*cdf0e10cSrcweir 546*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 547*cdf0e10cSrcweir @short - 548*cdf0e10cSrcweir @descr - 549*cdf0e10cSrcweir 550*cdf0e10cSrcweir @seealso - 551*cdf0e10cSrcweir 552*cdf0e10cSrcweir @param - 553*cdf0e10cSrcweir 554*cdf0e10cSrcweir @return - 555*cdf0e10cSrcweir 556*cdf0e10cSrcweir @onerror - 557*cdf0e10cSrcweir */ 558*cdf0e10cSrcweir 559*cdf0e10cSrcweir virtual void SAL_CALL createPeer( const UNO3_REFERENCE< UNO3_XTOOLKIT >& xToolkit , 560*cdf0e10cSrcweir const UNO3_REFERENCE< UNO3_XWINDOWPEER >& xParent ) throw( UNO3_RUNTIMEEXCEPTION ); 561*cdf0e10cSrcweir 562*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 563*cdf0e10cSrcweir @short - 564*cdf0e10cSrcweir @descr - 565*cdf0e10cSrcweir 566*cdf0e10cSrcweir @seealso - 567*cdf0e10cSrcweir 568*cdf0e10cSrcweir @param - 569*cdf0e10cSrcweir 570*cdf0e10cSrcweir @return - 571*cdf0e10cSrcweir 572*cdf0e10cSrcweir @onerror - 573*cdf0e10cSrcweir */ 574*cdf0e10cSrcweir 575*cdf0e10cSrcweir virtual sal_Bool SAL_CALL setModel( const UNO3_REFERENCE< UNO3_XCONTROLMODEL >& xModel ) throw( UNO3_RUNTIMEEXCEPTION ); 576*cdf0e10cSrcweir 577*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 578*cdf0e10cSrcweir @short - 579*cdf0e10cSrcweir @descr - 580*cdf0e10cSrcweir 581*cdf0e10cSrcweir @seealso - 582*cdf0e10cSrcweir 583*cdf0e10cSrcweir @param - 584*cdf0e10cSrcweir 585*cdf0e10cSrcweir @return - 586*cdf0e10cSrcweir 587*cdf0e10cSrcweir @onerror - 588*cdf0e10cSrcweir */ 589*cdf0e10cSrcweir 590*cdf0e10cSrcweir virtual UNO3_REFERENCE< UNO3_XCONTROLMODEL > SAL_CALL getModel() throw( UNO3_RUNTIMEEXCEPTION ); 591*cdf0e10cSrcweir 592*cdf0e10cSrcweir //________________________________________________________________________________________________________ 593*cdf0e10cSrcweir // XComponent 594*cdf0e10cSrcweir //________________________________________________________________________________________________________ 595*cdf0e10cSrcweir 596*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 597*cdf0e10cSrcweir @short - 598*cdf0e10cSrcweir @descr - 599*cdf0e10cSrcweir 600*cdf0e10cSrcweir @seealso - 601*cdf0e10cSrcweir 602*cdf0e10cSrcweir @param - 603*cdf0e10cSrcweir 604*cdf0e10cSrcweir @return - 605*cdf0e10cSrcweir 606*cdf0e10cSrcweir @onerror - 607*cdf0e10cSrcweir */ 608*cdf0e10cSrcweir 609*cdf0e10cSrcweir virtual void SAL_CALL dispose() throw( UNO3_RUNTIMEEXCEPTION ); 610*cdf0e10cSrcweir 611*cdf0e10cSrcweir //________________________________________________________________________________________________________ 612*cdf0e10cSrcweir // XWindow 613*cdf0e10cSrcweir //________________________________________________________________________________________________________ 614*cdf0e10cSrcweir 615*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 616*cdf0e10cSrcweir @short - 617*cdf0e10cSrcweir @descr - 618*cdf0e10cSrcweir 619*cdf0e10cSrcweir @seealso - 620*cdf0e10cSrcweir 621*cdf0e10cSrcweir @param - 622*cdf0e10cSrcweir 623*cdf0e10cSrcweir @return - 624*cdf0e10cSrcweir 625*cdf0e10cSrcweir @onerror - 626*cdf0e10cSrcweir */ 627*cdf0e10cSrcweir 628*cdf0e10cSrcweir virtual void SAL_CALL setPosSize( sal_Int32 nX , 629*cdf0e10cSrcweir sal_Int32 nY , 630*cdf0e10cSrcweir sal_Int32 nWidth , 631*cdf0e10cSrcweir sal_Int32 nHeight , 632*cdf0e10cSrcweir sal_Int16 nFlags ) throw( UNO3_RUNTIMEEXCEPTION ); 633*cdf0e10cSrcweir 634*cdf0e10cSrcweir //________________________________________________________________________________________________________ 635*cdf0e10cSrcweir // BaseControl 636*cdf0e10cSrcweir //________________________________________________________________________________________________________ 637*cdf0e10cSrcweir 638*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 639*cdf0e10cSrcweir @short - 640*cdf0e10cSrcweir @descr - 641*cdf0e10cSrcweir 642*cdf0e10cSrcweir @seealso - 643*cdf0e10cSrcweir 644*cdf0e10cSrcweir @param - 645*cdf0e10cSrcweir 646*cdf0e10cSrcweir @return - 647*cdf0e10cSrcweir 648*cdf0e10cSrcweir @onerror - 649*cdf0e10cSrcweir */ 650*cdf0e10cSrcweir 651*cdf0e10cSrcweir static const UNO3_SEQUENCE< UNO3_OUSTRING > impl_getStaticSupportedServiceNames(); 652*cdf0e10cSrcweir 653*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 654*cdf0e10cSrcweir @short - 655*cdf0e10cSrcweir @descr - 656*cdf0e10cSrcweir 657*cdf0e10cSrcweir @seealso - 658*cdf0e10cSrcweir 659*cdf0e10cSrcweir @param - 660*cdf0e10cSrcweir 661*cdf0e10cSrcweir @return - 662*cdf0e10cSrcweir 663*cdf0e10cSrcweir @onerror - 664*cdf0e10cSrcweir */ 665*cdf0e10cSrcweir 666*cdf0e10cSrcweir static const UNO3_OUSTRING impl_getStaticImplementationName(); 667*cdf0e10cSrcweir 668*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 669*cdf0e10cSrcweir // protected methods 670*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 671*cdf0e10cSrcweir 672*cdf0e10cSrcweir protected: 673*cdf0e10cSrcweir 674*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 675*cdf0e10cSrcweir @short - 676*cdf0e10cSrcweir @descr - 677*cdf0e10cSrcweir 678*cdf0e10cSrcweir @seealso - 679*cdf0e10cSrcweir 680*cdf0e10cSrcweir @param - 681*cdf0e10cSrcweir 682*cdf0e10cSrcweir @return - 683*cdf0e10cSrcweir 684*cdf0e10cSrcweir @onerror - 685*cdf0e10cSrcweir */ 686*cdf0e10cSrcweir 687*cdf0e10cSrcweir virtual void impl_paint( sal_Int32 nX , 688*cdf0e10cSrcweir sal_Int32 nY , 689*cdf0e10cSrcweir const UNO3_REFERENCE< UNO3_XGRAPHICS >& xGraphics ); 690*cdf0e10cSrcweir 691*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 692*cdf0e10cSrcweir // private methods 693*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 694*cdf0e10cSrcweir 695*cdf0e10cSrcweir private: 696*cdf0e10cSrcweir using BaseControl::impl_recalcLayout; 697*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 698*cdf0e10cSrcweir @short - 699*cdf0e10cSrcweir @descr - 700*cdf0e10cSrcweir 701*cdf0e10cSrcweir @seealso - 702*cdf0e10cSrcweir 703*cdf0e10cSrcweir @param - 704*cdf0e10cSrcweir 705*cdf0e10cSrcweir @return - 706*cdf0e10cSrcweir 707*cdf0e10cSrcweir @onerror - 708*cdf0e10cSrcweir */ 709*cdf0e10cSrcweir 710*cdf0e10cSrcweir void impl_recalcLayout(); 711*cdf0e10cSrcweir 712*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 713*cdf0e10cSrcweir @short - 714*cdf0e10cSrcweir @descr - 715*cdf0e10cSrcweir 716*cdf0e10cSrcweir @seealso - 717*cdf0e10cSrcweir 718*cdf0e10cSrcweir @param - 719*cdf0e10cSrcweir 720*cdf0e10cSrcweir @return - 721*cdf0e10cSrcweir 722*cdf0e10cSrcweir @onerror - 723*cdf0e10cSrcweir */ 724*cdf0e10cSrcweir 725*cdf0e10cSrcweir void impl_rebuildFixedText(); 726*cdf0e10cSrcweir 727*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 728*cdf0e10cSrcweir @short - 729*cdf0e10cSrcweir @descr - 730*cdf0e10cSrcweir 731*cdf0e10cSrcweir @seealso - 732*cdf0e10cSrcweir 733*cdf0e10cSrcweir @param - 734*cdf0e10cSrcweir 735*cdf0e10cSrcweir @return - 736*cdf0e10cSrcweir 737*cdf0e10cSrcweir @onerror - 738*cdf0e10cSrcweir */ 739*cdf0e10cSrcweir 740*cdf0e10cSrcweir void impl_cleanMemory(); 741*cdf0e10cSrcweir 742*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 743*cdf0e10cSrcweir @short - 744*cdf0e10cSrcweir @descr - 745*cdf0e10cSrcweir 746*cdf0e10cSrcweir @seealso - 747*cdf0e10cSrcweir 748*cdf0e10cSrcweir @param - 749*cdf0e10cSrcweir 750*cdf0e10cSrcweir @return - 751*cdf0e10cSrcweir 752*cdf0e10cSrcweir @onerror - 753*cdf0e10cSrcweir */ 754*cdf0e10cSrcweir 755*cdf0e10cSrcweir IMPL_TextlistItem* impl_searchTopic( const UNO3_OUSTRING& sTopic , 756*cdf0e10cSrcweir sal_Bool bbeforeProgress ); 757*cdf0e10cSrcweir 758*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 759*cdf0e10cSrcweir // debug methods 760*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 761*cdf0e10cSrcweir 762*cdf0e10cSrcweir private: 763*cdf0e10cSrcweir 764*cdf0e10cSrcweir /**_______________________________________________________________________________________________________ 765*cdf0e10cSrcweir @short - 766*cdf0e10cSrcweir @descr - 767*cdf0e10cSrcweir 768*cdf0e10cSrcweir @seealso - 769*cdf0e10cSrcweir 770*cdf0e10cSrcweir @param - 771*cdf0e10cSrcweir 772*cdf0e10cSrcweir @return - 773*cdf0e10cSrcweir 774*cdf0e10cSrcweir @onerror - 775*cdf0e10cSrcweir */ 776*cdf0e10cSrcweir 777*cdf0e10cSrcweir #ifdef DBG_UTIL 778*cdf0e10cSrcweir 779*cdf0e10cSrcweir sal_Bool impl_debug_checkParameter( const UNO3_OUSTRING& sTopic, const UNO3_OUSTRING& sText, sal_Bool bbeforeProgress ); // addText, updateText 780*cdf0e10cSrcweir sal_Bool impl_debug_checkParameter( const UNO3_OUSTRING& rTopic, sal_Bool bbeforeProgress ); // removeText 781*cdf0e10cSrcweir 782*cdf0e10cSrcweir #endif 783*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 784*cdf0e10cSrcweir // private variables 785*cdf0e10cSrcweir //____________________________________________________________________________________________________________ 786*cdf0e10cSrcweir 787*cdf0e10cSrcweir private: 788*cdf0e10cSrcweir 789*cdf0e10cSrcweir IMPL_Textlist* m_pTextlist_Top ; // Elements before progress 790*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XFIXEDTEXT > m_xTopic_Top ; // (used, if parameter "beforeProgress"=sal_True in "addText, updateText, removeText") 791*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XFIXEDTEXT > m_xText_Top ; 792*cdf0e10cSrcweir 793*cdf0e10cSrcweir IMPL_Textlist* m_pTextlist_Bottom ; // Elements below of progress 794*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XFIXEDTEXT > m_xTopic_Bottom ; // (used, if parameter "beforeProgress"=sal_False in "addText, updateText, removeText") 795*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XFIXEDTEXT > m_xText_Bottom ; 796*cdf0e10cSrcweir 797*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XPROGRESSBAR > m_xProgressBar ; 798*cdf0e10cSrcweir UNO3_REFERENCE< UNO3_XBUTTON > m_xButton ; 799*cdf0e10cSrcweir UNO3_RECTANGLE m_a3DLine ; 800*cdf0e10cSrcweir 801*cdf0e10cSrcweir }; // class ProgressMonitor 802*cdf0e10cSrcweir 803*cdf0e10cSrcweir } // namespace unocontrols 804*cdf0e10cSrcweir 805*cdf0e10cSrcweir #endif // #ifndef _UNOCONTROLS_PROGRESSMONITOR_CTRL_HXX 806