User: vg Date: 2008-08-19 09:53:50+0000 Modified: dba/dbaccess/source/core/dataaccess/documentdefinition.hxx
Log: INTEGRATION: CWS dba31a (1.30.20); FILE MERGED 2008/07/02 09:16:14 oj 1.30.20.2: RESYNC: (1.30-1.31); FILE MERGED 2008/07/02 05:11:05 fs 1.30.20.1: copying following changes from CWS dba30f to CWS dba31a: 2008/06/30 20:54:56 fs 1.30.32.1: #i91223# implement XSubDocument 2008/07/01 05:14:41 fs 1.30.32.2: RESYNC: (1.30-1.31); FILE MERGED File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: documentdefinition.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.hxx?r1=1.31&r2=1.32 Delta lines: +32 -8 -------------------- --- documentdefinition.hxx 2008-06-25 14:51:53+0000 1.31 +++ documentdefinition.hxx 2008-08-19 09:53:47+0000 1.32 @@ -34,8 +34,8 @@ #ifndef _CPPUHELPER_PROPSHLP_HXX #include <cppuhelper/propshlp.hxx> #endif -#ifndef _CPPUHELPER_IMPLBASE1_HXX_ -#include <cppuhelper/implbase1.hxx> +#ifndef _CPPUHELPER_IMPLBASE2_HXX_ +#include <cppuhelper/implbase2.hxx> #endif #ifndef DBA_CONTENTHELPER_HXX #include "ContentHelper.hxx" @@ -64,6 +64,7 @@ #ifndef _COM_SUN_STAR_EMBED_XSTATECHANGELISTENER_HPP_ #include <com/sun/star/embed/XStateChangeListener.hpp> #endif +#include <com/sun/star/sdb/XSubDocument.hpp> //........................................................................ namespace dbaccess @@ -77,7 +78,8 @@ //= document //========================================================================== -typedef ::cppu::ImplHelper1 < ::com::sun::star::embed::XComponentSupplier +typedef ::cppu::ImplHelper2 < ::com::sun::star::embed::XComponentSupplier + , ::com::sun::star::sdb::XSubDocument > ODocumentDefinition_Base; class ODocumentDefinition @@ -126,6 +128,12 @@ // XComponentSupplier virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent( ) throw (::com::sun::star::uno::RuntimeException); + // XSubDocument + virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL open( ) throw (::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > SAL_CALL openDesign( ) throw (::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL store( ) throw (::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual ::sal_Bool SAL_CALL close( ) throw (::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + // OPropertySetHelper virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); @@ -160,6 +168,13 @@ static ::com::sun::star::uno::Sequence< sal_Int8 > getDefaultDocumentTypeClassId(); + static ::rtl::OUString GetDocumentServiceFromMediaType( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage + ,const ::rtl::OUString& sEntName + ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB + ,::com::sun::star::uno::Sequence< sal_Int8 >& _rClassId + ); + +private: /** does necessary initializations after our embedded object has been switched to ACTIVE @param _bOpenedInDesignMode determines whether the embedded object has been opened for designing it or for data display @@ -181,11 +196,20 @@ */ void impl_removeFrameFromDesktop_throw( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame ); - static ::rtl::OUString GetDocumentServiceFromMediaType( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage - ,const ::rtl::OUString& sEntName - ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xORB - ,::com::sun::star::uno::Sequence< sal_Int8 >& _rClassId - ); + /** opens the UI for this sub document + */ + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > + impl_openUI_nolck_throw( bool _bForEditing ); + + /** stores our document, if it's already loaded + */ + void + impl_store_throw(); + + /** closes our document, if it's open + */ + bool + impl_close_throw(); protected: // OPropertyArrayUsageHelper --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
