Kaydet (Commit) 15652daf authored tarafından Stephan Bergmann's avatar Stephan Bergmann

UnoControls: sal_False/True -> false/true

Change-Id: If30d43a2693c6df2d483ec135efa54ccb643fdb0
üst 8dccc4d9
...@@ -154,7 +154,7 @@ void SAL_CALL BaseContainerControl::createPeer( const Reference< XToolkit >& ...@@ -154,7 +154,7 @@ void SAL_CALL BaseContainerControl::createPeer( const Reference< XToolkit >&
sal_Bool SAL_CALL BaseContainerControl::setModel( const Reference< XControlModel >& ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL BaseContainerControl::setModel( const Reference< XControlModel >& ) throw( RuntimeException, std::exception )
{ {
// This object has NO model. // This object has NO model.
return sal_False; return false;
} }
// XControl // XControl
......
...@@ -377,7 +377,7 @@ sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException, std::exce ...@@ -377,7 +377,7 @@ sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException, std::exce
sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException, std::exception ) sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException, std::exception )
{ {
return sal_False; return false;
} }
// XWindow // XWindow
......
...@@ -181,7 +181,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo ...@@ -181,7 +181,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo
sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception )
{ {
// We have no model. // We have no model.
return sal_False; return false;
} }
// XControl // XControl
...@@ -205,7 +205,7 @@ void SAL_CALL FrameControl::dispose() throw( RuntimeException, std::exception ) ...@@ -205,7 +205,7 @@ void SAL_CALL FrameControl::dispose() throw( RuntimeException, std::exception )
sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDevice*/ ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDevice*/ ) throw( RuntimeException, std::exception )
{ {
// it is not possible to print this control // it is not possible to print this control
return sal_False; return false;
} }
// XView // XView
...@@ -356,7 +356,7 @@ IPropertyArrayHelper& FrameControl::getInfoHelper() ...@@ -356,7 +356,7 @@ IPropertyArrayHelper& FrameControl::getInfoHelper()
if (!pInfo) if (!pInfo)
{ {
pInfo = new OPropertyArrayHelper( impl_getStaticPropertyDescriptor(), sal_True ); pInfo = new OPropertyArrayHelper( impl_getStaticPropertyDescriptor(), true );
} }
} }
...@@ -447,7 +447,7 @@ void FrameControl::impl_createFrame( const Reference< XWindowPeer >& xPee ...@@ -447,7 +447,7 @@ void FrameControl::impl_createFrame( const Reference< XWindowPeer >& xPee
Any aNewFrame ( &xNewFrame, cppu::UnoType<XFrame>::get()); Any aNewFrame ( &xNewFrame, cppu::UnoType<XFrame>::get());
Any aOldFrame ( &xOldFrame, cppu::UnoType<XFrame>::get()); Any aOldFrame ( &xOldFrame, cppu::UnoType<XFrame>::get());
fire ( &nFrameId, &aNewFrame, &aOldFrame, 1, sal_False ); fire ( &nFrameId, &aNewFrame, &aOldFrame, 1, false );
if (xOldFrame.is()) if (xOldFrame.is())
{ {
...@@ -473,7 +473,7 @@ void FrameControl::impl_deleteFrame() ...@@ -473,7 +473,7 @@ void FrameControl::impl_deleteFrame()
sal_Int32 nFrameId = PROPERTYHANDLE_FRAME; sal_Int32 nFrameId = PROPERTYHANDLE_FRAME;
Any aNewFrame( &xNullFrame, cppu::UnoType<XFrame2>::get()); Any aNewFrame( &xNullFrame, cppu::UnoType<XFrame2>::get());
Any aOldFrame( &xOldFrame, cppu::UnoType<XFrame2>::get()); Any aOldFrame( &xOldFrame, cppu::UnoType<XFrame2>::get());
fire( &nFrameId, &aNewFrame, &aOldFrame, 1, sal_False ); fire( &nFrameId, &aNewFrame, &aOldFrame, 1, false );
// dispose the frame // dispose the frame
if( xOldFrame.is() ) if( xOldFrame.is() )
......
...@@ -294,7 +294,7 @@ void SAL_CALL ProgressBar::setPosSize ( ...@@ -294,7 +294,7 @@ void SAL_CALL ProgressBar::setPosSize (
sal_Bool SAL_CALL ProgressBar::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL ProgressBar::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception )
{ {
// A model is not possible for this control. // A model is not possible for this control.
return sal_False; return false;
} }
// XControl // XControl
......
...@@ -84,7 +84,7 @@ ProgressMonitor::ProgressMonitor( const css::uno::Reference< XComponentContext > ...@@ -84,7 +84,7 @@ ProgressMonitor::ProgressMonitor( const css::uno::Reference< XComponentContext >
// FixedText make it automatically visible by himself ... but not the progressbar !!! // FixedText make it automatically visible by himself ... but not the progressbar !!!
// it must be set explicitly // it must be set explicitly
m_xProgressBar->setVisible( sal_True ); m_xProgressBar->setVisible( true );
// Reset to defaults !!! // Reset to defaults !!!
// (progressbar take automatically its own defaults) // (progressbar take automatically its own defaults)
...@@ -227,7 +227,7 @@ void SAL_CALL ProgressMonitor::addText( ...@@ -227,7 +227,7 @@ void SAL_CALL ProgressMonitor::addText(
MutexGuard aGuard ( m_aMutex ); MutexGuard aGuard ( m_aMutex );
// ... and insert it in right list. // ... and insert it in right list.
if ( bbeforeProgress == sal_True ) if ( bbeforeProgress )
{ {
maTextlist_Top.push_back( pTextItem ); maTextlist_Top.push_back( pTextItem );
} }
...@@ -258,7 +258,7 @@ void SAL_CALL ProgressMonitor::removeText ( const OUString& rTopic, sal_Bool bbe ...@@ -258,7 +258,7 @@ void SAL_CALL ProgressMonitor::removeText ( const OUString& rTopic, sal_Bool bbe
MutexGuard aGuard ( m_aMutex ); MutexGuard aGuard ( m_aMutex );
// ... delete item from right list ... // ... delete item from right list ...
if ( bbeforeProgress == sal_True ) if ( bbeforeProgress )
{ {
vector< IMPL_TextlistItem* >::iterator vector< IMPL_TextlistItem* >::iterator
itr = find( maTextlist_Top.begin(), maTextlist_Top.end(), pSearchItem ); itr = find( maTextlist_Top.begin(), maTextlist_Top.end(), pSearchItem );
...@@ -477,7 +477,7 @@ void SAL_CALL ProgressMonitor::createPeer ( const css::uno::Reference< XToolkit ...@@ -477,7 +477,7 @@ void SAL_CALL ProgressMonitor::createPeer ( const css::uno::Reference< XToolkit
sal_Bool SAL_CALL ProgressMonitor::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL ProgressMonitor::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException, std::exception )
{ {
// We have no model. // We have no model.
return sal_False; return false;
} }
// XControl // XControl
...@@ -890,7 +890,7 @@ bool ProgressMonitor::impl_debug_checkParameter ( ...@@ -890,7 +890,7 @@ bool ProgressMonitor::impl_debug_checkParameter (
// "bbeforeProgress" is valid in everyway! // "bbeforeProgress" is valid in everyway!
// Parameter OK ... return sal_True. // Parameter OK ... return true.
return true; return true;
} }
...@@ -901,7 +901,7 @@ bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic, bool / ...@@ -901,7 +901,7 @@ bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic, bool /
// "bbeforeProgress" is valid in everyway! // "bbeforeProgress" is valid in everyway!
// Parameter OK ... return sal_True. // Parameter OK ... return true.
return true; return true;
} }
......
...@@ -57,7 +57,7 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext > ...@@ -57,7 +57,7 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext >
addControl( CONTROLNAME_PROGRESSBAR, m_xProgressBar.get() ); addControl( CONTROLNAME_PROGRESSBAR, m_xProgressBar.get() );
// FixedText make it automatically visible by himself ... but not the progressbar !!! // FixedText make it automatically visible by himself ... but not the progressbar !!!
// it must be set explicitly // it must be set explicitly
m_xProgressBar->setVisible( sal_True ); m_xProgressBar->setVisible( true );
// Reset to defaults !!! // Reset to defaults !!!
// (progressbar take automatically its own defaults) // (progressbar take automatically its own defaults)
m_xText->setText( STATUSINDICATOR_DEFAULT_TEXT ); m_xText->setText( STATUSINDICATOR_DEFAULT_TEXT );
...@@ -188,7 +188,7 @@ void SAL_CALL StatusIndicator::end() throw( RuntimeException, std::exception ) ...@@ -188,7 +188,7 @@ void SAL_CALL StatusIndicator::end() throw( RuntimeException, std::exception )
// Clear values of status controls. // Clear values of status controls.
m_xText->setText( OUString() ); m_xText->setText( OUString() );
m_xProgressBar->setValue( 0 ); m_xProgressBar->setValue( 0 );
setVisible( sal_False ); setVisible( false );
} }
// XStatusIndicator // XStatusIndicator
...@@ -295,7 +295,7 @@ void SAL_CALL StatusIndicator::createPeer ( ...@@ -295,7 +295,7 @@ void SAL_CALL StatusIndicator::createPeer (
sal_Bool SAL_CALL StatusIndicator::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException, std::exception ) sal_Bool SAL_CALL StatusIndicator::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException, std::exception )
{ {
// We have no model. // We have no model.
return sal_False; return false;
} }
// XControl // XControl
......
...@@ -413,11 +413,11 @@ private: ...@@ -413,11 +413,11 @@ private:
private: private:
::std::vector < IMPL_TextlistItem* > maTextlist_Top; // Elements before progress ::std::vector < IMPL_TextlistItem* > maTextlist_Top; // Elements before progress
::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xTopic_Top; // (used, if parameter "beforeProgress"=sal_True in "addText, updateText, removeText") ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xTopic_Top; // (used, if parameter "beforeProgress"=true in "addText, updateText, removeText")
::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xText_Top; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xText_Top;
::std::vector < IMPL_TextlistItem* > maTextlist_Bottom; // Elements below of progress ::std::vector < IMPL_TextlistItem* > maTextlist_Bottom; // Elements below of progress
::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xTopic_Bottom; // (used, if parameter "beforeProgress"=sal_False in "addText, updateText, removeText") ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xTopic_Bottom; // (used, if parameter "beforeProgress"=false in "addText, updateText, removeText")
::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xText_Bottom; ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFixedText > m_xText_Bottom;
rtl::Reference<ProgressBar> m_xProgressBar; rtl::Reference<ProgressBar> m_xProgressBar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment