Tag: cws_dev300_dba30d
User: fs      
Date: 2008-05-29 11:32:30+0000
Modified:
   dba/dbaccess/source/ui/app/AppView.cxx
   dba/dbaccess/source/ui/app/AppView.hxx
   dba/dbaccess/source/ui/app/AppDetailView.cxx

Log:
 during #i80943#: refactoring: IController now passed around as reference, not 
as pointer

File Changes:

Directory: /dba/dbaccess/source/ui/app/
=======================================

File [changed]: AppView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppView.cxx?r1=1.24&r2=1.24.10.1
Delta lines:  +4 -4
-------------------
--- AppView.cxx 2008-05-05 15:52:24+0000        1.24
+++ AppView.cxx 2008-05-29 11:32:25+0000        1.24.10.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: AppView.cxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.24.10.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -274,7 +274,7 @@
 
//------------------------------------------------------------------------------
 OApplicationView::OApplicationView( Window* pParent
                                                                        ,const 
Reference< XMultiServiceFactory >& _rxOrb
-                                                                       
,IController* _pIController
+                                                                       
,IController& _rIController
                                                                        
,IApplicationElementNotification* _pController
                                                                        
,IControlActionListener* _pActonListener
                                                                        
,IContainerFoundListener* _pContainerListener
@@ -282,7 +282,7 @@
                                                                        ,const 
Reference< XController>& _xController
                                                                        
,PreviewMode _ePreviewMode
                                                                   ) :
-       ODataView( pParent ,_pIController,_rxOrb,WB_DIALOGCONTROL )
+       ODataView( pParent, _rIController, _rxOrb, WB_DIALOGCONTROL )
        ,m_xController(_xController)
        ,m_pElementNotification( _pController )
        ,m_pActonListener(_pActonListener)

File [changed]: AppView.hxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppView.hxx?r1=1.16&r2=1.16.30.1
Delta lines:  +3 -3
-------------------
--- AppView.hxx 2008-04-10 14:01:37+0000        1.16
+++ AppView.hxx 2008-05-29 11:32:26+0000        1.16.30.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: AppView.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.30.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -141,7 +141,7 @@
        public:
                OApplicationView(       Window* pParent
                                                        ,const 
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory 
>&
-                                                       ,IController* 
_pIController
+                                                       ,IController& 
_rIController
                                                        
,IApplicationElementNotification*       _pController
                                                        
,IControlActionListener*                        _pActonListener
                                                        
,IContainerFoundListener*                       _pContainerListener

File [changed]: AppDetailView.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppDetailView.cxx?r1=1.28&r2=1.28.30.1
Delta lines:  +5 -5
-------------------
--- AppDetailView.cxx   2008-04-10 13:57:50+0000        1.28
+++ AppDetailView.cxx   2008-05-29 11:32:27+0000        1.28.30.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: AppDetailView.cxx,v $
- * $Revision: 1.28 $
+ * $Revision: 1.28.30.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -609,7 +609,7 @@
 
        OTasksWindow* pTasks = new OTasksWindow(&m_aTasks,this);
        pTasks->Show();
-       
pTasks->Disable(m_rBorderWin.getView()->getCommandController()->isDataSourceReadOnly());
+       
pTasks->Disable(m_rBorderWin.getView()->getCommandController().isDataSourceReadOnly());
        m_aTasks.setChildWindow(pTasks);
        m_aTasks.SetUniqueId(UID_APP_TASKS_VIEW);
        m_aTasks.Show();
@@ -727,7 +727,7 @@
     OSL_ENSURE( !rData.aTasks.empty(), 
"OApplicationDetailView::impl_createPage: no tasks at all!?" );
     bool bEnabled = rData.aTasks.empty()
                 ?   false
-                :   
getBorderWin().getView()->getCommandController()->isCommandEnabled( 
rData.aTasks[0].sUNOCommand );
+                :   
getBorderWin().getView()->getCommandController().isCommandEnabled( 
rData.aTasks[0].sUNOCommand );
        getTasksWindow().Enable( bEnabled );
        m_aContainer.setTitle( rData.nTitleId );
 
@@ -802,7 +802,7 @@
         )
     {
         if  (   pTask->bHideWhenDisabled
-            &&  
!getBorderWin().getView()->getCommandController()->isCommandEnabled( 
pTask->sUNOCommand )
+            &&  
!getBorderWin().getView()->getCommandController().isCommandEnabled( 
pTask->sUNOCommand )
             )
             pTask = rList.erase( pTask );
         else




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to