summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-09 16:09:13 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-09 16:09:13 +0000
commit2cf9513f8ab2495e038d2b0c5f799301eb175aeb (patch)
treeda87727c1726537eaed2ebe2fbba9fbc6f91c581 /framework
parentbafe9486b43798f82e7567c3d3fe691204a1dbe0 (diff)
INTEGRATION: CWS toolbars2 (1.3.36); FILE MERGED
2004/08/11 10:38:55 cd 1.3.36.2: #i32219# Status bar is now controlled by framework based layout manager 2004/08/05 15:26:51 cd 1.3.36.1: #i32219# New classes for framework based status bar
Diffstat (limited to 'framework')
-rw-r--r--framework/source/classes/sfxhelperfunctions.cxx22
1 files changed, 19 insertions, 3 deletions
diff --git a/framework/source/classes/sfxhelperfunctions.cxx b/framework/source/classes/sfxhelperfunctions.cxx
index 516fa07e29b3..0ff0713d828c 100644
--- a/framework/source/classes/sfxhelperfunctions.cxx
+++ b/framework/source/classes/sfxhelperfunctions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sfxhelperfunctions.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: obo $ $Date: 2004-07-06 16:56:52 $
+ * last change: $Author: obo $ $Date: 2004-09-09 17:09:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,7 +63,8 @@
#include <classes/sfxhelperfunctions.hxx>
#endif
-static pfunc_setToolBoxControllerCreator pToolBoxControllerCreator = NULL;
+static pfunc_setToolBoxControllerCreator pToolBoxControllerCreator = NULL;
+static pfunc_setStatusBarControllerCreator pStatusBarControllerCreator = NULL;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::frame;
@@ -86,4 +87,19 @@ svt::ToolboxController* SAL_CALL CreateToolBoxController( const Reference< XFram
return NULL;
}
+pfunc_setStatusBarControllerCreator SAL_CALL SetStatusBarControllerCreator( pfunc_setStatusBarControllerCreator pSetStatusBarControllerCreator )
+{
+ pfunc_setStatusBarControllerCreator pOldSetStatusBarControllerCreator = pSetStatusBarControllerCreator;
+ pStatusBarControllerCreator = pSetStatusBarControllerCreator;
+ return pOldSetStatusBarControllerCreator;
+}
+
+svt::StatusbarController* SAL_CALL CreateStatusBarController( const Reference< XFrame >& rFrame, StatusBar* pStatusBar, unsigned short nID, const ::rtl::OUString& aCommandURL )
+{
+ if ( pStatusBarControllerCreator )
+ return (*pStatusBarControllerCreator)( rFrame, pStatusBar, nID, aCommandURL );
+ else
+ return NULL;
+}
+
}