diff options
Diffstat (limited to 'sc/source/ui/drawfunc/oleobjsh.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/oleobjsh.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/oleobjsh.cxx b/sc/source/ui/drawfunc/oleobjsh.cxx index d98a919a78fc..eab864cb6c7c 100644 --- a/sc/source/ui/drawfunc/oleobjsh.cxx +++ b/sc/source/ui/drawfunc/oleobjsh.cxx @@ -50,6 +50,7 @@ #include "drawview.hxx" #include "scresid.hxx" #include <svx/svdobj.hxx> +#include <sfx2/sidebar/EnumContext.hxx> #define ScOleObjectShell #include "scslots.hxx" @@ -69,6 +70,7 @@ ScOleObjectShell::ScOleObjectShell(ScViewData* pData) : { SetHelpId(HID_SCSHELL_OLEOBEJCTSH); SetName(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("OleObject"))); + SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_OLE)); } ScOleObjectShell::~ScOleObjectShell() @@ -76,4 +78,8 @@ ScOleObjectShell::~ScOleObjectShell() } - +void ScOleObjectShell::HandleSelectionChange (void) +{ + // Do not call the implementation in the base class. Let + // Activate()/Deactivate() handle context switches. +} |