summaryrefslogtreecommitdiff
path: root/forms/source/component
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-03-04 12:59:21 +0000
committerFrank Schönheit <fs@openoffice.org>2002-03-04 12:59:21 +0000
commit388f54a5f8b14e97f093463498dcccb3367c4181 (patch)
tree6cdafa81939c7e66b09c10607d101ea670be87a0 /forms/source/component
parent686559b31b926a99454c9a34349083f268430deb (diff)
outlined getParent for code size (and debugging) reasons
Diffstat (limited to 'forms/source/component')
-rw-r--r--forms/source/component/FormComponent.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 19515e9495a8..19adad0a9563 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FormComponent.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: fs $ $Date: 2001-12-20 16:16:37 $
+ * last change: $Author: fs $ $Date: 2002-03-04 13:59:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -247,11 +247,11 @@ sal_Bool SAL_CALL OControl::supportsService(const rtl::OUString& _rsServiceName)
//------------------------------------------------------------------------------
Sequence<rtl::OUString> SAL_CALL OControl::getSupportedServiceNames() throw(RuntimeException)
{
- Sequence<rtl::OUString> aSupported;
+ Sequence< rtl::OUString > aSupported;
// ask our aggregate
- Reference<com::sun::star::lang::XServiceInfo> xInfo;
- if (query_aggregation(m_xAggregate, xInfo))
+ Reference< com::sun::star::lang::XServiceInfo > xInfo;
+ if ( query_aggregation( m_xAggregate, xInfo ) )
aSupported = xInfo->getSupportedServiceNames();
return aSupported;
@@ -563,6 +563,12 @@ void OControlModel::doSetDelegator()
// XChild
//------------------------------------------------------------------------------
+InterfaceRef SAL_CALL OControlModel::getParent() throw(::com::sun::star::uno::RuntimeException)
+{
+ return m_xParent;
+}
+
+//------------------------------------------------------------------------------
void SAL_CALL OControlModel::setParent(const InterfaceRef& _rxParent) throw(com::sun::star::lang::NoSupportException, RuntimeException)
{
osl::MutexGuard aGuard(m_aMutex);