progressmonitor.cxx (0b4ced1d) progressmonitor.cxx (b4abecfe)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 86 unchanged lines hidden (view full) ---

95 // ... and add controls to basecontainercontrol!
96 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Topic_Top ) ;
97 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Text_Top ) ;
98 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Topic_Bottom ) ;
99 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Text_Bottom ) ;
100 addControl ( OUString::createFromAscii( CONTROLNAME_BUTTON ) , xRef_Button ) ;
101 addControl ( OUString::createFromAscii( CONTROLNAME_PROGRESSBAR ) , xRef_ProgressBar ) ;
102
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 86 unchanged lines hidden (view full) ---

95 // ... and add controls to basecontainercontrol!
96 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Topic_Top ) ;
97 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Text_Top ) ;
98 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Topic_Bottom ) ;
99 addControl ( OUString::createFromAscii( CONTROLNAME_TEXT ) , xRef_Text_Bottom ) ;
100 addControl ( OUString::createFromAscii( CONTROLNAME_BUTTON ) , xRef_Button ) ;
101 addControl ( OUString::createFromAscii( CONTROLNAME_PROGRESSBAR ) , xRef_ProgressBar ) ;
102
103 // FixedText make it automaticly visible by himself ... but not the progressbar !!!
103 // FixedText make it automatically visible by himself ... but not the progressbar !!!
104 // it must be set explicitly
105 Reference< XWindow > xWindowRef_ProgressBar( m_xProgressBar, UNO_QUERY );
106 xWindowRef_ProgressBar->setVisible( sal_True );
107
108 // Reset to defaults !!!
104 // it must be set explicitly
105 Reference< XWindow > xWindowRef_ProgressBar( m_xProgressBar, UNO_QUERY );
106 xWindowRef_ProgressBar->setVisible( sal_True );
107
108 // Reset to defaults !!!
109 // (progressbar take automaticly its own defaults)
109 // (progressbar take automatically its own defaults)
110 m_xButton->setLabel ( OUString::createFromAscii( DEFAULT_BUTTONLABEL ) ) ;
111 m_xTopic_Top->setText ( OUString::createFromAscii( DEFAULT_TOPIC ) ) ;
112 m_xText_Top->setText ( OUString::createFromAscii( DEFAULT_TEXT ) ) ;
113 m_xTopic_Bottom->setText ( OUString::createFromAscii( DEFAULT_TOPIC ) ) ;
114 m_xText_Bottom->setText ( OUString::createFromAscii( DEFAULT_TEXT ) ) ;
115
116 --m_refCount ;
117

--- 518 unchanged lines hidden (view full) ---

636 if (
637 ( nWidth != aBasePosSize.Width ) ||
638 ( nHeight != aBasePosSize.Height)
639 )
640 {
641 // calc new layout for controls
642 impl_recalcLayout () ;
643 // clear background (!)
110 m_xButton->setLabel ( OUString::createFromAscii( DEFAULT_BUTTONLABEL ) ) ;
111 m_xTopic_Top->setText ( OUString::createFromAscii( DEFAULT_TOPIC ) ) ;
112 m_xText_Top->setText ( OUString::createFromAscii( DEFAULT_TEXT ) ) ;
113 m_xTopic_Bottom->setText ( OUString::createFromAscii( DEFAULT_TOPIC ) ) ;
114 m_xText_Bottom->setText ( OUString::createFromAscii( DEFAULT_TEXT ) ) ;
115
116 --m_refCount ;
117

--- 518 unchanged lines hidden (view full) ---

636 if (
637 ( nWidth != aBasePosSize.Width ) ||
638 ( nHeight != aBasePosSize.Height)
639 )
640 {
641 // calc new layout for controls
642 impl_recalcLayout () ;
643 // clear background (!)
644 // [Childs was repainted in "recalcLayout" by setPosSize() automaticly!]
644 // [Childs was repainted in "recalcLayout" by setPosSize() automatically!]
645 getPeer()->invalidate(2);
646 // and repaint the control
647 impl_paint ( 0, 0, impl_getGraphicsPeer() ) ;
648 }
649}
650
651//____________________________________________________________________________________________________________
652// impl but public method to register service

--- 410 unchanged lines hidden ---
645 getPeer()->invalidate(2);
646 // and repaint the control
647 impl_paint ( 0, 0, impl_getGraphicsPeer() ) ;
648 }
649}
650
651//____________________________________________________________________________________________________________
652// impl but public method to register service

--- 410 unchanged lines hidden ---