Tag: cws_src680_qiq User: fs Date: 2006/06/27 06:53:22 Modified: dba/connectivity/inc/connectivity/sdbcx/VDescriptor.hxx
Log: RESYNC: (1.8-1.9); FILE MERGED 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.104.1&r2=1.8.104.2 Delta lines: +16 -15 --------------------- --- VDescriptor.hxx 16 Jun 2006 11:32:28 -0000 1.8.104.1 +++ VDescriptor.hxx 27 Jun 2006 13:53:19 -0000 1.8.104.2 @@ -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,7 +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 >& _rxComponent ); + + 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]
