summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ControllerCommandDispatch.hxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:58:37 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 12:58:37 +0000
commit3e1a9ddb822a5bf685d1d4dff14f8d274b39b197 (patch)
treec4c5ab2e509073761547879b688478ef8d7696ed /chart2/source/controller/main/ControllerCommandDispatch.hxx
parentINTEGRATION: CWS chart15 (1.3.22); FILE MERGED (diff)
downloadcore-3e1a9ddb822a5bf685d1d4dff14f8d274b39b197.tar.gz
core-3e1a9ddb822a5bf685d1d4dff14f8d274b39b197.zip
INTEGRATION: CWS chart15 (1.2.56); FILE MERGED
2007/12/06 12:23:57 bm 1.2.56.1: #i78290# only dispatch commands when available
Diffstat (limited to 'chart2/source/controller/main/ControllerCommandDispatch.hxx')
-rw-r--r--chart2/source/controller/main/ControllerCommandDispatch.hxx23
1 files changed, 9 insertions, 14 deletions
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.hxx b/chart2/source/controller/main/ControllerCommandDispatch.hxx
index 32a39b8b0866..d656486ff386 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.hxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ControllerCommandDispatch.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: vg $ $Date: 2007-05-22 18:07:07 $
+ * last change: $Author: ihi $ $Date: 2008-01-14 13:58:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -120,21 +120,13 @@ protected:
throw (::com::sun::star::uno::RuntimeException);
private:
- /** Simplification for doing a string compare between a given URL
- (rCompareURL) with a fixed string (rURL), and only in case of equality
- call the fireStatusEvent method at the base class.
-
- @param xSingleListener
- Same behaviour that in base class CommandDispatch: If set, the event
- is only sent to this listener rather than to all registered ones.
- */
- void conditionalFireStatusEventForURL(
- const ::rtl::OUString & rCompareURL,
+ void fireStatusEventForURLImpl(
const ::rtl::OUString & rURL,
- const ::com::sun::star::uno::Any & rState,
- bool bEnabled,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xSingleListener );
+ bool commandAvailable( const ::rtl::OUString & rCommand );
+ void updateCommandAvailability();
+
::com::sun::star::uno::Reference<
::com::sun::star::frame::XController > m_xController;
::com::sun::star::uno::Reference<
@@ -144,6 +136,9 @@ private:
::std::auto_ptr< impl::ModelState > m_apModelState;
::std::auto_ptr< impl::ControllerState > m_apControllerState;
+
+ mutable ::std::map< ::rtl::OUString, bool > m_aCommandAvailability;
+ mutable ::std::map< ::rtl::OUString, ::com::sun::star::uno::Any > m_aCommandArguments;
};
} // namespace chart