User: hr Date: 06/06/19 18:01:21 Modified: /dba/connectivity/inc/connectivity/sdbcx/ VDescriptor.hxx
Log: INTEGRATION: CWS warnings01 (1.8.30); FILE MERGED 2006/06/14 10:53:31 fs 1.8.30.2: #i66367# superseded changePropertyAttribute with doCreateArrayHelper 2005/11/07 14:42:55 fs 1.8.30.1: #i57457# warning-free code File Changes: Directory: /dba/connectivity/inc/connectivity/sdbcx/ ==================================================== File [changed]: VDescriptor.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/inc/connectivity/sdbcx/VDescriptor.hxx?r1=1.8&r2=1.9 Delta lines: +15 -13 --------------------- --- VDescriptor.hxx 8 Sep 2005 05:04:04 -0000 1.8 +++ VDescriptor.hxx 20 Jun 2006 01:01:19 -0000 1.9 @@ -71,17 +71,15 @@ protected: ::rtl::OUString m_Name; - // set the attributes of the properties corresponding to the isnew() flag - // must be called from createArrayHelper - void changePropertyAttributte(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property>& _rProps) const - { - ::com::sun::star::beans::Property* pBegin = _rProps.getArray(); - ::com::sun::star::beans::Property* pEnd = pBegin + _rProps.getLength(); - for(;pBegin != pEnd;++pBegin) - { - pBegin->Attributes = isNew() ? 0 : ::com::sun::star::beans::PropertyAttribute::READONLY; - } - } + /** helper for derived classes to implement OPropertyArrayUsageHelper::createArrayHelper + + This method just calls describeProperties, and flags all properties as READONLY if and + only if we do *not* act as descriptor, but as final object. + + @seealso isNew + */ + ::cppu::IPropertyArrayHelper* doCreateArrayHelper() const; + private: comphelper::UStringMixEqual m_aCase; sal_Bool m_bNew; @@ -112,6 +110,10 @@ // com::sun::star::lang::XUnoTunnel virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId(); + + static ODescriptor* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxSomeComp ); + // retrieves the ODescriptor implementation of a given UNO component, and returns its ->isNew flag + static sal_Bool isNew( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxDescriptor ); }; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
