diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:03:37 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-10-09 14:03:37 +0000 |
commit | 89af22b13b4ac61b7d2a576985cf81f7e0f7fd90 (patch) | |
tree | b1aba51f9cd4449df9ad42d92e10cd1bc5fefef9 /basic | |
parent | 412bdef3da7573736b4f71536fa57e05a4b26d83 (diff) |
INTEGRATION: CWS basmgr03 (1.5.14); FILE MERGED
2007/09/06 05:56:57 fs 1.5.14.2: RESYNC: (1.5-1.6); FILE MERGED
2007/07/27 20:50:26 fs 1.5.14.1: #i73331# use the newly introduced XEmbeddedScripts to access the scripts/dialogs in a document
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index ddd690444590..78cb2d0b251f 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -4,9 +4,9 @@ * * $RCSfile: basicmanagerrepository.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: vg $ $Date: 2007-08-30 09:58:36 $ + * last change: $Author: kz $ $Date: 2007-10-09 15:03:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -65,6 +65,9 @@ #ifndef _COM_SUN_STAR_DOCUMENT_XSTORAGEBASEDDOCUMENT_HPP_ #include <com/sun/star/document/XStorageBasedDocument.hpp> #endif +#ifndef _COM_SUN_STAR_DOCUMENT_XEMBEDDEDSCRIPTS_HPP_ +#include <com/sun/star/document/XEmbeddedScripts.hpp> +#endif /** === end UNO includes === **/ #ifndef _EHDL_HXX @@ -131,6 +134,7 @@ namespace basic using ::com::sun::star::document::XDocumentInfoSupplier; using ::com::sun::star::document::XStorageBasedDocument; using ::com::sun::star::lang::XComponent; + using ::com::sun::star::document::XEmbeddedScripts; /** === end UNO using === **/ typedef BasicManager* BasicManagerPointer; @@ -576,15 +580,9 @@ namespace basic _out_rxDialogLibraries.clear(); try { - Reference< XPropertySet > xDocumentProperties( _rxDocument, UNO_QUERY_THROW ); - _out_rxBasicLibraries.set( - xDocumentProperties->getPropertyValue( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BasicLibraries" ) ) ), - UNO_QUERY_THROW ); - _out_rxDialogLibraries.set( - xDocumentProperties->getPropertyValue( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DialogLibraries" ) ) ), - UNO_QUERY_THROW ); + Reference< XEmbeddedScripts > xScripts( _rxDocument, UNO_QUERY_THROW ); + _out_rxBasicLibraries.set( xScripts->getBasicLibraries(), UNO_QUERY_THROW ); + _out_rxDialogLibraries.set(xScripts->getDialogLibraries(), UNO_QUERY_THROW ); } catch( const Exception& ) { |