Tag: cws_src680_qiq User: fs Date: 06/05/24 02:10:00 Modified: /dba/dbaccess/source/core/inc/ definitioncontainer.hxx
Log: #i51143# File Changes: Directory: /dba/dbaccess/source/core/inc/ ========================================= File [changed]: definitioncontainer.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/inc/definitioncontainer.hxx?r1=1.4&r2=1.4.4.1 Delta lines: +21 -6 -------------------- --- definitioncontainer.hxx 4 May 2006 08:38:22 -0000 1.4 +++ definitioncontainer.hxx 24 May 2006 09:09:57 -0000 1.4.4.1 @@ -4,9 +4,9 @@ * * $RCSfile: definitioncontainer.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.4.4.1 $ * - * last change: $Author: rt $ $Date: 2006/05/04 08:38:22 $ + * last change: $Author: fs $ $Date: 2006/05/24 09:09:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -197,8 +197,19 @@ /** approve that the object given may be inserted into the container. Should be overloaded by derived classes, the default implementation just checks the object to be non-void. + + @throws IllegalArgumentException + if the name of the object are invalid + @throws ElementExistException + if the object already exists in the container, or another object with the same name + already exists + @throws WrappedTargetException + if another error occures which prevents insertion of the object into the container */ - virtual sal_Bool approveNewObject(const ::rtl::OUString& _sName,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _rxObject) const; + virtual void approveNewObject( + const ::rtl::OUString& _sName, + const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _rxObject + ) const; /** create a object from it's persistent data within the configuration. To be overwritten by derived classes. @param _rName the name the object has within the container @@ -272,9 +283,13 @@ ,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _xNewElement ,const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& xOldElement ,ENotifyKind _eHowToNotify); -private: - void implInsert(const ::rtl::OUString& _rName, const ::com::sun::star::uno::Any& aElement); + inline SAL_CALL operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > () const + { + return const_cast< XContainer* >( static_cast< const XContainer* >( this ) ); + } + +private: void addObjectListener(const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _xNewObject); void removeObjectListener(const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >& _xNewObject); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
