summaryrefslogtreecommitdiff
path: root/embeddedobj/source/commonembedding/xfactory.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-10-04 18:50:44 +0000
committerKurt Zenker <kz@openoffice.org>2004-10-04 18:50:44 +0000
commit021e63171ce76fcdd2f0a665cc516f1835c97a1c (patch)
tree643a72ba10ea40cbee723e115779220778c52020 /embeddedobj/source/commonembedding/xfactory.hxx
parent997c2600541eaf12822b422bf40394588ef66d1a (diff)
INTEGRATION: CWS mav09 (1.5.2); FILE MERGED
2004/06/18 14:18:12 mba 1.5.2.2: #i27773#: special objects implementation 2004/06/10 16:19:49 mav 1.5.2.1: #i27773# use configuration for conversion purposes
Diffstat (limited to 'embeddedobj/source/commonembedding/xfactory.hxx')
-rw-r--r--embeddedobj/source/commonembedding/xfactory.hxx46
1 files changed, 43 insertions, 3 deletions
diff --git a/embeddedobj/source/commonembedding/xfactory.hxx b/embeddedobj/source/commonembedding/xfactory.hxx
index 7067f830fbea..6210f18d116c 100644
--- a/embeddedobj/source/commonembedding/xfactory.hxx
+++ b/embeddedobj/source/commonembedding/xfactory.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xfactory.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 17:51:58 $
+ * last change: $Author: kz $ $Date: 2004-10-04 19:50:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,11 +79,14 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#endif
-
+#ifndef _CPPUHELPER_IMPLBASE2_HXX_
+#include <cppuhelper/implbase2.hxx>
+#endif
#ifndef _CPPUHELPER_IMPLBASE5_HXX_
#include <cppuhelper/implbase5.hxx>
#endif
+#include <confighelper.hxx>
class OOoEmbeddedObjectFactory : public ::cppu::WeakImplHelper5<
::com::sun::star::embed::XEmbedObjectCreator,
@@ -94,10 +97,13 @@ class OOoEmbeddedObjectFactory : public ::cppu::WeakImplHelper5<
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
+ ConfigurationHelper m_aConfigHelper;
+
public:
OOoEmbeddedObjectFactory(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory )
: m_xFactory( xFactory )
+ , m_aConfigHelper( xFactory )
{
OSL_ENSURE( xFactory.is(), "No service manager is provided!\n" );
}
@@ -132,5 +138,39 @@ public:
};
+class OOoSpecialEmbeddedObjectFactory : public ::cppu::WeakImplHelper2<
+ ::com::sun::star::embed::XEmbedObjectFactory,
+ ::com::sun::star::lang::XServiceInfo >
+{
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
+
+ ConfigurationHelper m_aConfigHelper;
+
+public:
+ OOoSpecialEmbeddedObjectFactory(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory )
+ : m_xFactory( xFactory )
+ , m_aConfigHelper( xFactory )
+ {
+ OSL_ENSURE( xFactory.is(), "No service manager is provided!\n" );
+ }
+
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL impl_staticGetSupportedServiceNames();
+
+ static ::rtl::OUString SAL_CALL impl_staticGetImplementationName();
+
+ static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
+ impl_staticCreateSelfInstance(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
+
+ // XEmbedObjectFactory
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstanceUserInit( const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const ::rtl::OUString& aClassName, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const ::rtl::OUString& sEntName, sal_Int32 nEntryConnectionMode, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
+
+ // XServiceInfo
+ virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException);
+};
+
#endif