summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/unocontrolbase.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-12-06 14:14:11 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-12-06 14:14:11 +0100
commit2033a625d3a213755d8c5015bd233b748b514b83 (patch)
tree259f30b33f0dab7e8732fec3497a033cdfbe40fd /toolkit/source/controls/unocontrolbase.cxx
parentcda10a2d67d77b74cafb41c5ce294c2fd195dc66 (diff)
gridsort: give the UnoControl(Model/Base) classes a ctor taking a service factory, so we have access to the factory
which created us, and don't need to resort to the process'es service factory
Diffstat (limited to 'toolkit/source/controls/unocontrolbase.cxx')
-rw-r--r--toolkit/source/controls/unocontrolbase.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx
index bbd0fc507e80..4dc1412ba661 100644
--- a/toolkit/source/controls/unocontrolbase.cxx
+++ b/toolkit/source/controls/unocontrolbase.cxx
@@ -32,6 +32,7 @@
#include <toolkit/controls/unocontrolbase.hxx>
#include <toolkit/helper/property.hxx>
+#include <comphelper/processfactory.hxx>
#include <tools/debug.hxx>
@@ -39,6 +40,14 @@
// class UnoControlBase
// ----------------------------------------------------
+UnoControlBase::UnoControlBase()
+ :UnoControl( ::comphelper::getProcessServiceFactory() )
+{
+ OSL_ENSURE( false, "UnoControlBase::UnoControlBase: not implemented. Well, not really." );
+ // just implemented to let the various FooImplInheritanceHelper compile, you should use the
+ // version taking a service factory
+}
+
sal_Bool UnoControlBase::ImplHasProperty( sal_uInt16 nPropId )
{
::rtl::OUString aPropName( GetPropertyName( nPropId ) );