summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app/AppControllerGen.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-17 13:46:10 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-17 13:46:10 +0000
commitad399f1adca62f8a646be53e7196b4b89157ab40 (patch)
tree751a57bd76ea91237d4013eb23fd4c53af234665 /dbaccess/source/ui/app/AppControllerGen.cxx
parent2791f1ea5ad8e06f65e4dc2db95c0f0e9cb0028c (diff)
INTEGRATION: CWS dba18 (1.3.16); FILE MERGED
2004/11/10 14:59:08 oj 1.3.16.3: RESYNC: (1.3-1.5); FILE MERGED 2004/10/25 06:36:39 oj 1.3.16.2: #i35848# create status bar 2004/10/15 08:19:16 oj 1.3.16.1: #i30188# statusbar
Diffstat (limited to 'dbaccess/source/ui/app/AppControllerGen.cxx')
-rw-r--r--dbaccess/source/ui/app/AppControllerGen.cxx22
1 files changed, 17 insertions, 5 deletions
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx
index b8f72df5c4500..53b8b737e7b48 100644
--- a/dbaccess/source/ui/app/AppControllerGen.cxx
+++ b/dbaccess/source/ui/app/AppControllerGen.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AppControllerGen.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: pjunck $ $Date: 2004-10-22 11:59:50 $
+ * last change: $Author: obo $ $Date: 2004-11-17 14:46:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -347,8 +347,14 @@ void SAL_CALL OApplicationController::propertyChange( const PropertyChangeEvent&
::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
::osl::MutexGuard aGuard(m_aMutex);
m_bNeedToReconnect = sal_True;
- if ( getContainer() && m_xDataSource.is() )
- getContainer()->setStatusInformations(m_xDataSource);
+ if ( evt.PropertyName == PROPERTY_USER )
+ InvalidateFeature(SID_DB_APP_STATUS_USERNAME);
+ else if ( evt.PropertyName == PROPERTY_URL )
+ {
+ InvalidateFeature(SID_DB_APP_STATUS_DBNAME);
+ InvalidateFeature(SID_DB_APP_STATUS_TYPE);
+ InvalidateFeature(SID_DB_APP_STATUS_HOSTNAME);
+ }
EventObject aEvt;
aEvt.Source = m_xDataSource;
@@ -601,7 +607,11 @@ sal_Bool OApplicationController::isRenameDeleteAllowed(ElementType _eType,sal_Bo
// -----------------------------------------------------------------------------
void OApplicationController::onLoadedMenu(const Reference< drafts::com::sun::star::frame::XLayoutManager >& _xLayoutManager)
{
- OGenericUnoController::onLoadedMenu( _xLayoutManager );
+ OGenericUnoController::loadSubToolbar(_xLayoutManager);
+
+ static ::rtl::OUString s_sStatusbar(RTL_CONSTASCII_USTRINGPARAM("private:resource/statusbar/statusbar"));
+ _xLayoutManager->createElement( s_sStatusbar );
+ _xLayoutManager->requestElement( s_sStatusbar );
if ( getContainer() )
getContainer()->createIconAutoMnemonics();
@@ -625,6 +635,8 @@ void OApplicationController::doAction(sal_uInt16 _nId ,sal_Bool _bEdit)
openElement(*aIter,eType, _bEdit );
}
}
+// -----------------------------------------------------------------------------
+
//........................................................................
} // namespace dbaui
//........................................................................