summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/browser/genericcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/browser/genericcontroller.cxx')
-rw-r--r--dbaccess/source/ui/browser/genericcontroller.cxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 576289f3fb42..227fe0c5491c 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -92,7 +92,6 @@ class UserDefinedFeatures
public:
explicit UserDefinedFeatures( const Reference< XController >& _rxController );
- static FeatureState getState( const URL& _rFeatureURL );
void execute( const URL& _rFeatureURL, const Sequence< PropertyValue>& _rArgs );
private:
@@ -104,16 +103,6 @@ UserDefinedFeatures::UserDefinedFeatures( const Reference< XController >& _rxCon
{
}
-FeatureState UserDefinedFeatures::getState( const URL& /*_rFeatureURL*/ )
-{
- // for now, enable all the time
- // TODO: we should ask the dispatcher. However, this is laborious, since you cannot ask a dispatcher
- // directly, but need to add a status listener.
- FeatureState aState;
- aState.bEnabled = true;
- return aState;
-}
-
void UserDefinedFeatures::execute( const URL& _rFeatureURL, const Sequence< PropertyValue>& _rArgs )
{
try
@@ -874,7 +863,10 @@ FeatureState OGenericUnoController::GetState( sal_uInt16 _nId ) const
aReturn.bEnabled = true;
break;
default:
- aReturn = UserDefinedFeatures::getState( getURLForId( _nId ) );
+ // for now, enable all the time
+ // TODO: we should ask the dispatcher. However, this is laborious, since you cannot ask a dispatcher
+ // directly, but need to add a status listener.
+ aReturn.bEnabled = true;
break;
}