Tag: cws_src680_dba24 User: oj Date: 05/01/31 23:52:24 Modified: /dba/dbaccess/source/ui/app/ AppController.cxx
Log: #i41727# disable propeties for specific types File Changes: Directory: /dba/dbaccess/source/ui/app/ ======================================= File [changed]: AppController.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/app/AppController.cxx?r1=1.12&r2=1.12.4.1 Delta lines: +7 -7 ------------------- --- AppController.cxx 21 Jan 2005 17:05:05 -0000 1.12 +++ AppController.cxx 1 Feb 2005 07:52:21 -0000 1.12.4.1 @@ -2,9 +2,9 @@ * * $RCSfile: AppController.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.12.4.1 $ * - * last change: $Author: kz $ $Date: 2005/01/21 17:05:05 $ + * last change: $Author: oj $ $Date: 2005/02/01 07:52:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -519,7 +519,7 @@ Reference<XConnection> xCon(_rSource.Source, UNO_QUERY); if ( xCon.is() ) { - if ( getContainer()&& getContainer()->getElementType() == E_TABLE ) + if ( getContainer() && getContainer()->getElementType() == E_TABLE ) { TDataSourceConnections::iterator aIter = m_aDataSourceConnections.begin(); TDataSourceConnections::iterator aEnd = m_aDataSourceConnections.end(); @@ -765,11 +765,11 @@ aReturn.bEnabled = getContainer()->getElementType() == E_TABLE && getActiveConnection().is(); break; case SID_DB_APP_DSPROPS: - if ( m_xDataSource.is() ) + if ( aReturn.bEnabled = m_xDataSource.is() ) { static ODsnTypeCollection aTypeCollection; DATASOURCE_TYPE eType = aTypeCollection.getType(::comphelper::getString(m_xDataSource->getPropertyValue(PROPERTY_URL))); - aReturn.bEnabled = DST_EMBEDDED != eType; + aReturn.bEnabled = DST_EMBEDDED != eType && DST_MOZILLA != eType && DST_EVOLUTION != eType && DST_OUTLOOK != eType && DST_OUTLOOKEXP != eType; } break; case SID_DB_APP_DSCONNECTION_TYPE: @@ -781,7 +781,7 @@ } break; case SID_DB_APP_DSADVANCED_SETTINGS: - if ( m_xDataSource.is() ) + if ( aReturn.bEnabled = m_xDataSource.is() ) { DATASOURCE_TYPE eType = m_aTypeCollection.getType(::comphelper::getString(m_xDataSource->getPropertyValue(PROPERTY_URL))); aReturn.bEnabled = DST_EMBEDDED != eType && DST_LDAP != eType && DST_CALC != eType && DST_MOZILLA != eType && DST_EVOLUTION != eType && DST_OUTLOOK != eType && DST_OUTLOOKEXP != eType; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
