summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/DrawCommandDispatch.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/main/DrawCommandDispatch.hxx')
-rw-r--r--chart2/source/controller/main/DrawCommandDispatch.hxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.hxx b/chart2/source/controller/main/DrawCommandDispatch.hxx
index 7df47171a79e..65200cca6323 100644
--- a/chart2/source/controller/main/DrawCommandDispatch.hxx
+++ b/chart2/source/controller/main/DrawCommandDispatch.hxx
@@ -16,10 +16,11 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_DRAWCOMMANDDISPATCH_HXX
-#define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_DRAWCOMMANDDISPATCH_HXX
+#pragma once
+#include <svx/svdobjkind.hxx>
#include "FeatureCommandDispatchBase.hxx"
+#include <rtl/ref.hxx>
class SfxItemSet;
class SdrObject;
@@ -44,7 +45,7 @@ public:
protected:
// WeakComponentImplHelperBase
- virtual void SAL_CALL disposing() override;
+ virtual void disposing( std::unique_lock<std::mutex>& rGuard ) override;
// XEventListener
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
@@ -59,10 +60,10 @@ protected:
virtual void describeSupportedFeatures() override;
private:
- void setInsertObj( sal_uInt16 eObj );
- SdrObject* createDefaultObject( const sal_uInt16 nID );
+ void setInsertObj(SdrObjKind eObj);
+ rtl::Reference<SdrObject> createDefaultObject( const ChartCommandID nID );
- bool parseCommandURL( const OUString& rCommandURL, sal_uInt16* pnFeatureId, OUString* pBaseCommand, OUString* pCustomShapeType );
+ bool parseCommandURL( const OUString& rCommandURL, ChartCommandID* pnFeatureId, OUString* pBaseCommand, OUString* pCustomShapeType );
ChartController* m_pChartController;
OUString m_aCustomShapeType;
@@ -70,7 +71,4 @@ private:
} // namespace chart
-// INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_DRAWCOMMANDDISPATCH_HXX
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */